/* === CONFIGURACIÓN GLOBAL === */
* {
    box-sizing: border-box; /* Incluye padding y border en el tamaño total */
  }
  
  body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9; /* Fondo claro para el sitio */
  }
  
  /* === NAVEGACIÓN === */
  nav {
    background-color: #00796b;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 1rem 0 0 0;
  }
  
  nav li {
    margin: 0 1rem;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
  }
  
  nav a:hover {
    text-decoration: underline;
  }
  
  nav img {
    height: 45px;
  }
  
  /* === ENCABEZADO PRINCIPAL (HERO) === */
  header {
    background: url('/banner.jpg.webp') no-repeat center center/cover;
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
  }
  
  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece el fondo */
    z-index: 1;
  }
  
  header h1, header p, header a {
    position: relative;
    z-index: 2;
  }
  
  header h1 {
    font-size: 3rem;
    margin: 0;
  }
  
  header p {
    font-size: 1.5rem;
    margin: 1rem 0;
  }
  
  header a {
    background-color: #00796b;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
  }
  
  header a:hover {
    background-color: #004d40;
  }
  
  /* === CONTENIDO PRINCIPAL === */
  main {
    padding-top: 2rem;
  }
  
  section {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
  }
  
  section h2 {
    color: #00796b;
    margin-bottom: 1rem;
  }
  
  .why-choose ul,
  .credits ul,
  .how-it-works ol {
    text-align: left;
    max-width: 700px;
    margin: auto;
    padding-left: 1.5rem;
  }
  
  /* === VERSIÓN ANTIGUA DEL CTA (puede eliminarse) === */
  .cta {
    background-color: #00796b;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
  }
  
  .cta a {
    background-color: #004d40;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
  }
  
  .cta a:hover {
    background-color: #00251a;
  }
  
  /* === NUEVO CTA MEJORADO === */
  .cta {
    background-color: var(--color-principal);
    color: black;
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .cta-content {
    max-width: 600px;
    margin: auto;
  }
  
  .cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .cta-btn {
    display: inline-block;
    background-color: var(--color-secundario);
    color: black;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .cta-btn:hover {
    background-color: var(--color-hover);
  }
  
  .footer {
    background-color: #00796b;
    color: white;
    padding: 3rem 1rem 1rem;
    font-family: 'Poppins', sans-serif;
  }
  
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
  }
  
  .footer-logo img {
    height: 50px;
  }
  
  .footer-contact p {
    margin: 0.3rem 0;
    font-size: 1rem;
  }
  
  .footer-contact i {
    margin-right: 8px;
    color: white;
  }
  
  .footer-contact a {
    color: white;
    text-decoration: none;
  }
  
  .footer-contact a:hover {
    text-decoration: underline;
  }
  
  .footer-bottom {
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
  }
  
  /* Responsive */
  @media (min-width: 600px) {
    .footer-container {
      flex-direction: row;
      justify-content: space-between;
      text-align: left;
    }
  
    .footer-contact {
      text-align: right;
    }
  }
  
  .footer-map iframe {
  width: 100%;
  max-width: 400px;
  height: 200px;
  border: none;
  border-radius: 8px;
}

  /* === RESPONSIVE (Tablet & Móvil) === */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    nav ul {
      display: none;
      flex-direction: column;
      align-items: flex-start;
      margin-top: 1rem;
      background-color: #00796b;
      width: 100%;
      padding: 1rem 0;
    }
  
    nav ul.showing {
      display: flex;
    }
  
    nav li {
      margin: 1rem;
    }
  
    header {
      height: auto;
      padding: 4rem 2rem;
      background-position: center;
    }
  
    header h1 {
      font-size: 2rem;
    }
  
    header p {
      font-size: 1.2rem;
    }
  
    header a {
      font-size: 1rem;
      padding: 0.8rem 1.5rem;
    }
  
    section {
      padding: 1.5rem;
    }
  
    .why-choose ul,
    .credits ul,
    .how-it-works ol {
      padding-left: 1rem;
    }
  
    .cta {
      padding: 2rem 1rem;
    }
  
    .cta a,
    .cta-btn {
      font-size: 1rem;
      padding: 0.8rem 1.5rem;
    }
  
    footer {
      padding: 1rem 0.5rem;
    }
  }
  /* === SECCIÓN TESTIMONIOS === */
#testimonials {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
}

#testimonials h2 {
  font-size: 2rem;
  color: #00796b;
  margin-bottom: 2rem;
}

/* Contenedor del slider */
.testimonial-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.testimonial {
  min-width: 300px;
  max-width: 400px;
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  scroll-snap-align: center;
  text-align: left;
  position: relative;
}

.testimonial blockquote {
  font-style: italic;
  margin: 0 0 1rem;
  color: #333;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: #00796b;
  font-size: 0.95rem;
}

.testimonial-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 10px;
  border: 2px solid #00796b;
}

/* Scroll personalizado para escritorio */
.testimonial-slider::-webkit-scrollbar {
  height: 8px;
}
.testimonial-slider::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial {
    min-width: 85%;
  }
}
/* BOTÓN BASE ESTILO CTA */
.btn-cta {
  display: inline-block;
  background-color: #00796b; /* Verde institucional */
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Efecto hover */
.btn-cta:hover {
  background-color: #004d40;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Efecto de pulsación */
.btn-cta:active {
  transform: scale(0.98);
}

/* BOTÓN SECUNDARIO */
.btn-secondary {
  background-color: white;
  color: #00796b;
  border: 2px solid #00796b;
}

.btn-secondary:hover {
  background-color: #00796b;
  color: white;
}

/* BOTÓN REDONDO PEQUEÑO */
.btn-small {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
}

/* BOTÓN ANCHO */
.btn-fullwidth {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}
/* BOTÓN CON ICONO A LA IZQUIERDA */
.btn-icon-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
@keyframes bounceCTA {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* BOTÓN CTA BRINCANDO */
.btn-cta.bounce {
  animation: bounceCTA 2s infinite;
  background-color: #00796b;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cta.bounce:hover {
  background-color: #004d40;
}
/* Efecto de pulsación */
.btn-cta.bounce:active {
  transform: scale(0.98);
}