/* Fuente y base */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f9fc;
  color: #333;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #004d66;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  height: 60px;
}

/* Navbar moderno */
.navbar-custom {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #004d66;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
}

.navbar-custom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.logo-navbar {
  height: 70px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #aadcea;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #aadcea;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Sección principal */
.hero {
  padding: 140px 60px 80px;
  background-color: #eaf6fb;
  text-align: center;
}

.hero img {
  max-height: 200px;
}

.hero h1 {
  font-size: 2.6rem;
  color: #007a99;
  margin-top: 30px;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-top: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Logo principal del Hero más grande y con efecto */
.logo-hero {
  max-height: 200px;
  max-width: 100%;
  width: auto;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: rotateOnce 1.2s ease forwards;
}

@keyframes rotateOnce {
  from {
    transform: rotateY(-180deg);
    opacity: 0;
  }
  to {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* Títulos de secciones */
.section-title {
  font-size: 2rem;
  color: #007a99;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
}

/* Tarjetas */
.card img {
  height: 180px;
  width: 100%;
  object-fit: contain;
  background-color: #ffffff;
}

.card h3 {
  color: #004d66;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}

.fade-delay-1 { animation-delay: 0.2s; }
.fade-delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botones personalizados */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-primary {
  border: 2px solid #007a99;
  color: #007a99;
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: #007a99;
  color: white;
}

/* Estilo Carruseles */
.carousel img {
  height: 300px;
  object-fit: contain;
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.carousel img:hover {
  transform: scale(1.01);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  background-size: 50% 50%;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 10px;
}

/* Sección Máquinas */
#maquinas .row {
  margin-bottom: 60px;
  align-items: center;
}

/* CTA */
.cta {
  background-color: #007a99;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.cta button {
  background-color: white;
  color: #007a99;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.cta button:hover {
  box-shadow: 0 0 20px rgba(0, 122, 153, 0.4);
}

/* Footer fijo al fondo */
footer {
  background-color: #004d66;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

/* Responsive mínimo */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .col-6 {
    width: 100%;
    margin-bottom: 30px;
  }

  .carousel-caption {
    font-size: 0.9rem;
  }
}

/* Sectores atendidos */
.sector-box {
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-sector {
  height: 50px;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.sector-box:hover .icon-sector {
  filter: grayscale(0%);
}

.sector-img {
  height: 120px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}

.sector-img:hover {
  transform: scale(1.02);
}
