:root {
  --verde-3f: #5ac85a;
  --verde-3f-claro: #79ff79;
  --cyan: #00f0ff;
  --gris-oscuro: #0d0d0d;
  --blanco: #ffffff;
  --gris-claro: #cfcfcf;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif !important;
  background-color: var(--blanco) !important;
  color: var(--gris-oscuro) !important;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header general */
/* Contenedor principal del header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Esto reemplaza el gap */
  padding: 0 30px;
  height: 60px;
  margin-top: 20px;
  position: absolute;
  width: 100%;
  z-index: 1000;
  overflow: visible !important;
}

/* Logo con borde */
.logo {
  height: 150px;
  padding: 5px;
}

/* Barra de navegación */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Menú principal */
.nav-menu {
  display: flex;
  align-items: stretch;
  height: 60px;
  border: 2px solid #5cd65c;
  overflow: hidden;
}

/* Enlaces */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
  background-color: white;
}

.nav-links a {
  position: relative;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #5cd65c;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

/* Botón */
.call-now {
  background-color: #5cd65c;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  white-space: nowrap;
  padding: 0 25px;
  border-left: 2px solid #5cd65c;
  height: 100%;
  margin-left: auto;
}

/* Hamburguesa (solo en móvil) */
/* Mostrar hamburguesa solo en móviles */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    flex-direction: column;
    background-color: white;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
    animation: slideIn 0.4s ease forwards;
  }

  .nav-menu.closing {
    display: flex;
    animation: slideOut 0.4s ease forwards;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 140px 20px 20px 20px;
    background-color: white;
  }

  .nav-links a {
    font-size: 1.3rem;
    color: #333;
    text-decoration: none;
  }

  .nav-links a:hover {
    color: #5cd65c;
  }

  /* Aquí dentro va el estilo ampliado del botón */
  .call-now {
    background-color: #5cd65c;
    color: black;
    font-weight: bold;
    padding: 15px 16px; /* 🔽 MUY bajo */
    font-size: 16px;
    line-height: 1.2; /* 🔽 Controla altura del texto */
    text-align: center;
    border-radius: 6px;
    margin-top: 60px;
    text-decoration: none;
    width: fit-content; /* Se ajusta al contenido */
    min-width: 160px;
    height: auto !important; /* 🔒 Forzar que NO tenga altura fija */
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .hamburger {
    display: block;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
    font-size: 2rem;
    color: black;
    cursor: pointer;
  }
}

/* ECO HERO AJUSTADO */
.eco-hero {
  position: relative;
  background-image: url("../images/medio.png");
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  overflow: hidden;
  height: 600px; /* Más alto */
  max-width: 1400px; /* Menor ancho lateral */
  margin: 40px auto 0 auto;
  display: flex;
  align-items: flex-end;
}

.eco-overlay {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
  border-radius: 1rem;
  width: 100%;
}

.eco-content {
  color: #fff;
  max-width: 600px;
  text-align: left; /* Alineación del texto */
}

.eco-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.eco-content p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.eco-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.eco-lista {
  flex: 1 1 auto;
}

.eco-btn-wrapper {
  margin: 0;
}

.eco-lista ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.eco-lista ul li {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.eco-btn {
  background-color: #16a34a;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.eco-btn:hover {
  background-color: #15803d;
}

/* Responsivo */
@media (max-width: 768px) {
  .eco-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .eco-content {
    max-width: 100%;
  }

  .eco-row {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente */
    gap: 1rem;
    width: 100%;
  }

  .eco-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%; /* Muy importante: esto permite centrar el botón dentro */
  }

  .eco-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
  }

  .eco-lista ul {
    text-align: center;
  }
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: var(--blanco);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 0 15px var(--verde-3f);
}

.hero p {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--blanco);
}

.btn {
  background: var(--verde-3f);
  color: var(--gris-oscuro);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 0 15px var(--verde-3f-claro);
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.1);
}

/* Responsivo para dispositivos móviles */
@media (max-width: 768px) {
  .hero-content {
    padding: 1rem; /* Reducir el padding */
    margin-top: 13rem; /* Ajustar el margen superior para centrado sin estar demasiado arriba */
    min-height: auto; /* Asegura que no se corte el contenido */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Ajustamos para que no quede centrado, sino ligeramente hacia abajo */
  }

  .hero h1 {
    font-size: 2rem; /* Reducir el tamaño del título */
    margin-bottom: 1rem; /* Reducir el margen inferior */
  }

  .hero p {
    font-size: 1rem; /* Reducir el tamaño del párrafo */
    margin-bottom: 1.5rem; /* Reducir el margen inferior */
  }

  .btn {
    padding: 0.8rem 1.5rem; /* Reducir el tamaño del botón */
    font-size: 1rem; /* Reducir el tamaño de la fuente */
    margin-top: 1rem; /* Pequeña separación entre el párrafo y el botón */
  }
}

/*Sección Quienes Somos*/
.quienes-somos-buffer {
  background-color: #162e27; /* Fondo verde oscuro */
  border-radius: 30px; /* Esquinas redondeadas */
  max-width: 1400px;
  margin: 40px auto 0 auto; /* REDUCIDO de 100px a 40px */
  padding: 60px 80px;
  text-align: center;
  position: relative;
}

.qs-wrapper h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.qs-description {
  font-size: 1.5rem;
  color: #16a34a;
  margin-bottom: 30px;
  font-weight: 500;
}

.qs-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #d4d4d4;
  margin-bottom: 40px;
}

.qs-button {
  display: inline-block;
  background-color: #16a34a;
  color: #162e27;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.qs-button:hover {
  background-color: #16a34a;
}

/* Responsive */
@media (max-width: 992px) {
  .quienes-somos-buffer {
    max-width: 95%;
    padding: 40px 30px;
  }

  .qs-wrapper h2 {
    font-size: 2.5rem;
  }

  .qs-description {
    font-size: 1.3rem;
  }

  .qs-text {
    font-size: 1rem;
  }
}

#servicios {
  background-color: #f1f3f4; /* Fondo gris claro */
  padding: 80px 20px;
  text-align: center;
  margin-top: 40px;
}

.contenedor-servicios-nuevo {
  max-width: 1200px;
  margin: 0 auto;
}

.contenedor-servicios-nuevo h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  font-weight: 700;
  color: #2d2d2d;
}

.contenedor-servicios-nuevo .verde {
  color: #4caf50; /* Verde bonito */
}

.cards-nuevas {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.card-nueva {
  background-color: transparent;
  width: 220px;
  text-align: center;
}

.icono-nuevo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icono-nuevo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.card-nueva h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2d2d2d;
  font-weight: 600;
}

.card-nueva p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.btn-nuevo {
  display: inline-block;
  margin-top: 50px;
  padding: 14px 28px;
  background-color: #4caf50;
  color: white;
  font-size: 1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-nuevo:hover {
  background-color: #43a047;
}

/* Responsive */
@media (max-width: 768px) {
  .cards-nuevas {
    flex-direction: column;
    align-items: center;
  }

  .card-nueva {
    width: 80%;
  }
}

/* FOOTER */
.footer {
  background: linear-gradient(rgba(2, 3, 7, 0.85), rgba(11, 18, 32, 0.85)),
    url("../images/footer.png") no-repeat center center / cover;
  color: #e2e8f0;
  padding: 50px 20px 70px;
  font-family: "Outfit", sans-serif !important;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  border-bottom: 1px solid #334155;
  padding-bottom: 25px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}
.footer-logo img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-logo p {
  font-size: 1rem;
  color: #94a3b8;
}

.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.dev-credits {
  margin-top: 8px;
}

.dev-credits a {
  color: #3b82f6;
  text-decoration: none;
}

.dev-credits a:hover {
  text-decoration: underline;
}

/* Botón "Volver arriba" */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #f31010;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(99, 235, 9, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  transform: scale(1);
}

.back-to-top:hover {
  background-color: #46eb25;
}

.arrow-up {
  animation: bounceUp 1.5s infinite ease-in-out;
}

@keyframes bounceUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-menu {
    justify-content: center;
  }
}

/* BURBUJA WHATSAPP */
#whatsapp-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
}

#whatsapp-toggle {
  width: 50px;
  height: 50px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#whatsapp-toggle img {
  width: 30px;
  height: 30px;
}

#whatsapp-window {
  display: none; /* ← Esconde completamente */
  width: 360px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  padding: 0;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

#whatsapp-window.open {
  display: block; /* ← Muestra la ventana */
}

.wa-header {
  background-color: #19826a; /* todo el header verde */
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.wa-body {
  padding: 15px;
  font-size: 14px;
  color: #333;
  text-align: center; /* ✅ Centra el texto */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-button {
  display: block;
  margin: 10px 15px 15px 15px;
  padding: 10px;
  background-color: #25d366;
  color: white;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  animation: bounce 1.5s infinite;
}

/* SECCIÓN DE FOAM */
.testimonios-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0 auto;
  padding: 0 1rem 60px 1rem;
  background-image: url("ruta/de/tu/fondo.jpg");
  background-size: cover;
  background-color: #f1f3f4; /* Fondo gris claro */
  background-position: center;
}

.seccion-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

.seccion-titulo .verde {
  color: #71c344;
}

.categorias {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-weight: 600;
}

.categoria {
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  color: #666;
  transition: all 0.3s ease;
}

.categoria:hover,
.categoria.active {
  color: #2ecc71;
}

.categoria::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #2ecc71;
  transition: width 0.3s ease;
}

.categoria:hover::after,
.categoria.active::after {
  width: 100%;
}

.testimonios-card {
  background: rgb(255, 255, 255);
  border-radius: 35px;
  padding: 4rem 3rem;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 500px; /* o ajusta a lo que necesites */
  position: relative; /* necesario para el posicionamiento absoluto de los contenidos */
  overflow: hidden;
  border: 4px solid var(--verde-3f);
}

.tab-contenido {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center; /* Centrado vertical */
  justify-content: center; /* Centrado horizontal opcional */
  height: 100%;
}

.tab-contenido.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
}

.testimonio-left {
  flex: 1;
  border-radius: 25px;
  min-height: 340px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Clases para imágenes específicas */
.img-pfas {
  background-image: url("../images/sin.png");
}

.img-productos {
  background-image: url("../images/pfas.png");
}

.img-certificaciones {
  background-image: url("../images/certificaciones.png");
}

.testimonio-right {
  flex: 1;
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
  color: #111;
  max-width: 500px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lista-certificaciones {
  list-style: disc;
  padding-left: 1.5rem;
  margin-right: 1.5rem; /* ← mueve el contenido un poco a la izquierda */
}

.lista-certificaciones li {
  display: list-item !important;
  list-style-type: disc;
  text-align: justify;
  margin-bottom: 0.5rem;
}

.testimonio-right li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.testimonio-content {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.testimonio-content.fade-out {
  opacity: 0;
}

@media (max-width: 768px) {
  .testimonios-card {
    position: relative;
    min-height: auto;
    padding: 2rem 1rem;
  }

  .tab-contenido {
    position: static;
    visibility: hidden; /* Ocultar completamente las secciones inactivas */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease-in-out; /* Solo animar opacidad */
    height: 0; /* Asegura que no ocupen espacio */
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .tab-contenido.active {
    visibility: visible; /* Solo se ve la sección activa */
    opacity: 1;
    pointer-events: auto;
    height: auto; /* La altura solo se ajusta para la sección activa */
  }

  .testimonio {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .testimonio-left {
    width: 100%;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .testimonio-right {
    width: 100%;
    font-size: 1rem;
    min-height: auto;
  }

  .seccion-titulo {
    font-size: 1.6rem;
  }

  .categoria {
    font-size: 1rem;
  }
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

.detalle-servicio {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  min-height: 100vh;
}

.contenido {
  background-color: #bbffbb; /* verde suave como el de tus tarjetas */
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  padding: 2rem;
  text-align: center;
}

.contenido h1 {
  color: #003e1f;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contenido img {
  max-width: 80%;
  height: auto;
  border-radius: 16px;
  margin: 1rem 0;
}

.contenido p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contenido ul {
  list-style: disc;
  text-align: left;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.btn-volver {
  display: inline-block;
  background-color: #009900;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-volver:hover {
  background-color: #007a00;
}

.resaltado {
  font-weight: bold;
  font-size: 1.2em;
  color: red;
}
