/* Reset y Tipografía */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Encabezado */
/* Forzar estilo de header como en quienes-somos */
header {
  background-color: #1e1e2f !important;
  padding: 20px 0;
  color: #fff;
}

header h1 {
  font-size: 2rem !important;
  color: #fff;
  font-weight: bold;
  margin: 0;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .btn-outline {
  background-color: transparent;
  border: 2px solid #ffcc00;
  color: #ffcc00;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}


/* Hero (Banner Principal) */
.hero, .hero-banner {
  position: relative;
  background: url('images/banner-reading.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero {
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
              url('images/fondo-lectura.jpg') center/cover no-repeat;
  padding: 100px 0;
  flex-wrap: wrap;
}
.hero-text, .hero-image {
  flex: 1;
  min-width: 300px;
}
.hero-text {
  padding-right: 30px;
}
.hero-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
}
.hero-text .btn-primary {
  background-color: #004aad;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}
.hero-image {
  text-align: right;
}
.hero-image img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

/* Hero Banner Especial */
.hero-banner {
  height: 100vh;
  padding-left: 10%;
  color: #fff;
}
.hero-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.5);
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.banner-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ddd;
}

/* Botón CTA */
.btn-primary {
  background-color: #ff6600;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background-color: #e65500;
}

/* Sección: Ventajas por Rol */
.benefits {
  padding: 60px 0;
  background-color: #fff;
}
.benefits h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}
.cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.card {
  background-color: #f0f8ff;
  padding: 20px;
  margin: 10px;
  border-radius: 10px;
  flex: 1 1 30%;
  text-align: center;
}
.card h4 {
  margin-bottom: 10px;
  color: #004aad;
}

/* Sección: Testimonios */
.testimonials {
  padding: 60px 0;
  background-color: #e0f0ff;
}
.testimonials h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}
.testimonials-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 300px;
}
.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.testimonial img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #004aad;
}
.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}
.testimonial span {
  display: block;
  font-weight: bold;
  color: #004aad;
  font-size: 1.1rem;
}

/* Sección: Cómo Funciona */
.how-it-works {
  padding: 60px 0;
  background-color: #fff;
}
.how-it-works h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}
.how-it-works ol {
  max-width: 600px;
  margin: auto;
  list-style: decimal inside;
}
.how-it-works li {
  margin-bottom: 20px;
  font-size: 18px;
}

/* Sección: Estadísticas */
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
  color: #fff;
  position: relative;
}
.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  pointer-events: none;
}
.stats .container {
  position: relative;
  z-index: 1;
}
.stats h3 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
  font-weight: 700;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-item {
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}
.stat-item h4 {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ffcc00;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.stat-item p {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
}

/* Sección: Llamado a la Acción Final */
.cta-final {
  background: linear-gradient(135deg, #0a4d9c, #3578e5);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s infinite linear;
}
@keyframes float {
  0% { transform: translate(-50px, -50px) rotate(0deg); }
  100% { transform: translate(-50px, -50px) rotate(360deg); }
}
.cta-final .container {
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.cta-final p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #e3e3e3;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta {
  background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
  color: #0a4d9c;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  display: inline-block;
}
.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}
.btn-cta:hover::before {
  left: 100%;
}
.btn-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 204, 0, 0.6);
}

/* Pie de Página */
footer {
  background-color: #004aad;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
  /* Header responsivo */
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  header h1 {
    font-size: 1.5rem !important;
  }
  
  /* Hero responsivo */
  .hero {
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .hero-text h2 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .hero-image {
    text-align: center;
  }
  
  /* Hero Banner responsivo */
  .hero-banner {
    height: 70vh;
    padding-left: 5%;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  
  .banner-content h2 {
    font-size: 2rem;
  }
  
  .banner-content p {
    font-size: 1rem;
  }
  
  /* Cards responsivas */
  .cards {
    flex-direction: column;
    align-items: center;
  }
  
  .card {
    flex: 1 1 100%;
    max-width: 400px;
    margin: 10px 0;
  }
  
  /* Estadísticas responsivas */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item {
    padding: 20px 15px;
  }
  
  .stat-item h4 {
    font-size: 36px;
  }
  
  /* Testimonios */
  .testimonials-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .testimonial {
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  /* CTA Final responsivo */
  .cta-final h2 {
    font-size: 2rem;
  }
  
  .cta-final p {
    font-size: 1rem;
  }
  
  /* Contenedor general */
  .container {
    width: 95%;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  /* Ajustes para móviles pequeños */
  .hero-text h2 {
    font-size: 24px;
  }
  
  .banner-content h2 {
    font-size: 1.8rem;
  }
  
  .benefits h3,
  .testimonials h3,
  .how-it-works h3,
  .stats h3 {
    font-size: 24px;
  }
  
  .stat-item h4 {
    font-size: 2rem;
  }
  
  .cta-final h2 {
    font-size: 1.8rem;
  }
  
  .btn-primary,
  .btn-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

