/* ============================================
   ESTILOS ESPECÍFICOS PARA LANDING PAGE
   ============================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px; /* Compensar altura navbar + banner */
}

@media (max-width: 991.98px) {
  html {
     scroll-padding-top: 80px; /* Navbar móvil aprox */
  }
}

/* Navbar con efectos */
.navbar-custom {
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar-custom.scrolled {
  background: rgba(44, 62, 80, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

/* Posicionamiento responsivo de la barra de navegación */
.navbar-responsive {
  top: 0;
}

@media (min-width: 992px) {
  .navbar-responsive {
    top: 48px;
  }
}

.navbar-custom .navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.navbar-custom .navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-custom .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #F1C40F;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after {
  width: 80%;
}

/* Botones Navbar Especial */
.navbar-btn-contact {
  color: white !important;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.navbar-btn-contact:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

.navbar-btn-login {
  background: #F1C40F !important;
  color: #2C3E50 !important;
  padding: 8px 25px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
  transition: all 0.3s ease;
  border: none;
}

.navbar-btn-login:hover {
  background: #F39C12 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
}

.navbar-btn-login:active, .navbar-btn-login:focus {
  background: #E67E22 !important;
  box-shadow: none;
  transform: translateY(1px);
}

.navbar-btn-contact:active, .navbar-btn-contact:focus {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
}

/* Mejoras de la barra de navegación para móvil */
@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 0.8rem 0;
  }
  
  .navbar-custom .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-custom .nav-link {
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
  }
  
  .navbar-custom .nav-item:not(:last-child) .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-custom .nav-item:last-child {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .navbar-custom .nav-link::after {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.92) 0%, rgba(52, 152, 219, 0.88) 100%);
  color: white;
  padding: 200px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .hero-section {
    margin-top: 0;
    padding: 120px 0 60px;
    min-height: auto;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/portada.png');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
  filter: none;
}

@media (max-width: 991.98px) {
  .hero-section::before {
    filter: blur(4px);
    opacity: 0.4;
  }
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 3px 3px 10px rgba(0,0,0,0.7), 1px 1px 3px rgba(0,0,0,0.9);
}

.hero-section .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.98;
  font-weight: 400;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6), 1px 1px 3px rgba(0,0,0,0.8);
}

/* Optimización del hero para móvil */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 120px 0 60px;
    min-height: auto;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-badge {
    display: none;
  }
  
  .guarantee-badge {
    font-size: 0.85rem;
    padding: 12px 20px;
    margin-top: 10px;
  }
  
  .cta-button {
    padding: 14px 30px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
  
  .hero-section h1 br {
    display: none;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(241, 196, 15, 0.95);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  color: #2C3E50;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Botones CTA */
.cta-button {
  padding: 16px 45px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  background: #F1C40F !important;
  color: #2C3E50 !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-shadow: none;
  backdrop-filter: blur(5px);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(241, 196, 15, 0.6);
  background: #F39C12 !important;
  color: #2C3E50 !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button[style*="background: #27AE60"]:hover {
  background: #229954 !important;
  box-shadow: 0 12px 35px rgba(39, 174, 96, 0.6) !important;
}

.cta-primary {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(241, 196, 15, 0.6); }
}

/* Badges de confianza */
.trust-badges {
  background: rgba(255,255,255,0.15);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.trust-stat {
  text-align: center;
}

.trust-stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.trust-stat p {
  margin: 5px 0 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Sección de problema */
.problem-section {
  background: linear-gradient(to bottom, #F8F9FA 0%, #ffffff 100%);
  padding: 80px 0 80px 0;
}

.cost-alert {
  background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  color: white;
  padding: 50px 40px;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.cost-alert::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.cost-alert h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cost-alert .cost-number {
  font-size: 4rem;
  font-weight: 900;
  color: #FFE74C;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
  margin: 20px 0;
}

.cost-alert p {
  font-size: 1.15rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.problem-card {
  border-left: 4px solid #E74C3C;
  padding: 25px;
  margin-bottom: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.problem-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* Sección de solución */
.solution-section {
  padding: 80px 0;
}

.benefit-card {
  height: 100%;
  transition: transform 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.module-icon {
  font-size: 3rem;
  color: #3498DB;
  margin-bottom: 1rem;
}

/* Sección de comparación - Nueva visualización */
.comparison-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.vs-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.vs-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.vs-card.outros {
  border: 3px solid #E74C3C;
}

.vs-card.escola {
  border: 3px solid #27AE60;
  position: relative;
}

.vs-card.escola::before {
  content: '✓ MEJOR OPCIÓN';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #27AE60;
  color: white;
  padding: 8px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: #E74C3C;
  padding-top: 60px;
}

.vs-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
}

.vs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vs-list li {
  padding: 15px 0;
  border-bottom: 1px solid #ecf0f1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}

.vs-list li:last-child {
  border-bottom: none;
}

.vs-list i {
  font-size: 1.3rem;
  margin-top: 2px;
  min-width: 20px;
}

.vs-card.outros .vs-list i {
  color: #E74C3C;
}

.vs-card.escola .vs-list i {
  color: #27AE60;
}

/* Comparación responsiva */
@media (max-width: 992px) {
  .vs-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .vs-divider {
    display: none;
  }
}

/* Tarjetas de testimonios */
.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 100%;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #3498DB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Sección FAQ */
.faq-section {
  background-color: #F8F9FA;
  padding: 80px 0;
}

.faq-item {
  background: white;
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 1px solid #E9ECEF;
}

.faq-answer {
  padding: 20px;
  display: none;
}

.faq-answer.show {
  display: block;
}

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, #3498DB 0%, #2C3E50 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

/* Tarjetas de segmentos */
.segment-card {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 100%;
  transition: transform 0.3s ease;
}

.segment-card:hover {
  transform: translateY(-5px);
}

.segment-icon {
  font-size: 3rem;
  color: #3498DB;
  margin-bottom: 1rem;
}

/* Sección de precios */
.pricing-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.pricing-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.pricing-card.featured {
  border: 3px solid #3498DB;
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'MÁS POPULAR';
  position: absolute;
  top: 20px;
  right: -35px;
  background: #3498DB;
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: #2C3E50;
  margin: 20px 0;
}

.pricing-price small {
  font-size: 1.2rem;
  font-weight: 400;
  color: #7f8c8d;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid #ecf0f1;
  display: flex;
  align-items: center;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: #27AE60;
  margin-right: 10px;
  font-size: 1.1rem;
}

/* Banner de urgencia */
.urgency-banner {
  background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  color: white;
  text-align: center;
  padding: 12px 20px; /* Reducido ligeramente para asegurar que cabe bien */
  font-size: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020; /* Mayor que navbar (1000) */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: slideDown 0.5s ease;
  font-weight: 600;
  height: 48px; /* Altura fija para alineación con navbar */
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.urgency-banner i {
  animation: pulse 1.5s ease-in-out infinite;
}

.urgency-banner strong {
  color: #FFE74C;
  font-size: 1.05rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Sección de estadísticas */
.stats-section {
  background: #2C3E50;
  color: white;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #3498DB, #2ECC71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Vista previa de demostración */
.demo-preview {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.demo-screen {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  background: #ecf0f1;
  padding: 20px;
  text-align: center;
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(39, 174, 96, 0.95);
  padding: 15px 30px;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  margin-top: 15px;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Footer personalizado */
.footer-custom {
  background: linear-gradient(135deg, #ECF0F1 0%, #BDC3C7 100%);
  color: #2C3E50;
  padding: 60px 0 30px;
}

.footer-custom h5 {
  color: #2C3E50;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-custom p {
  color: #34495E;
}

.footer-custom a {
  color: #34495E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: #3498DB;
}

.footer-custom .text-muted {
  color: #7f8c8d !important;
}

.footer-custom hr {
  border-color: rgba(44, 62, 80, 0.2);
  margin: 40px 0 20px;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .cost-alert h3 {
    font-size: 1.5rem;
  }
  
  .cost-alert .cost-number {
    font-size: 2.5rem;
  }
}

/* ============================================
   ESTILOS DE PÁGINA DE CONTACTO
   ============================================ */

.contact-hero-section {
  background: linear-gradient(135deg, #F8F9FA 0%, #ECF0F1 100%);
  padding: 150px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-form-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-card .input-group-text {
  background: #F8F9FA;
  border: 1px solid #dee2e6;
  color: #27AE60;
}

.contact-form-card .form-control:focus {
  border-color: #27AE60;
  box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

.contact-benefits {
  background: rgba(39, 174, 96, 0.05);
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid #27AE60;
}

@media (max-width: 991.98px) {
  .contact-hero-section {
    padding: 100px 0 60px;
  }
  
  .contact-form-card {
    padding: 30px 20px;
  }
}
