/* ===== RESET Y NORMALIZACIÓN ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

:root {
  --primary: #0066FF;
  --accent: #00F5D4;
  --dark: #212529;
  --light: #F8F9FA;
  --accent-rgb: 0, 245, 212;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f0c29;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0f0c29;
  z-index: 1000;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: auto;
  display: flex;
  align-items: center;
}

@supports (backdrop-filter: blur(12px)) {
  .navbar {
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  order: 3;
}

.desktop-only {
  display: inline-block;
}


@media screen and (max-width: 768px) {
  .nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }
  
  .logo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
  
  .desktop-only {
    display: inline-block !important;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  
  .nav-links {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0;
    width: 100%;
  }
  
  .nav-links a {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    border-bottom: none;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    margin: 0;
    white-space: nowrap;
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Ajuste del hero para que no quede tapado por el navbar más alto */
  .hero {
    min-height: calc(100vh - 200px);
    margin-top: 200px;
  }
}









/* ===== BOTONES ===== */
button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary, .btn-accent, .btn-select, .modal-wa-close, .btn-pago {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}


/* Reset para botones específicos que no deben tener padding */
.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: #111111;
  border: 2px solid transparent;
}

.btn-accent:hover {
  background: #00d8b9;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.4);
}

.btn-select {
  width: 100%;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-select:hover {
  background: var(--accent);
  color: #111111;
}

/* ===== HERO ===== */
/* PRIMER HERO */
.hero {
  min-height: calc(100vh - 120px);  /* Aumentamos el espacio */
  margin-top: 120px;                  /* Aumentamos el margen superior */
  display: flex;
  align-items: center;
  position: relative;
  background-color: #0f0c29;
  background-image: url('https://picsum.photos/id/1015/2000/1200');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* ESTE ES EL SEGUNDO LINEA 243*/
/* Versión móvil de la imagen ESTE ES EL SEGUNDO*/
@media screen and (max-width: 768px) {
  .hero {
    background-image: url('https://picsum.photos/id/1015/800/1200');
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(15,12,41,0.95) 0%, rgba(48,43,99,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.4rem);
  opacity: 0.95;
  margin-bottom: 2rem;
  color: #ffffff;
}

/* ===== SECCIONES ===== */
.section {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.section-header p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  opacity: 0.9;
  color: #ffffff;
}

/* ===== PLANES ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.plan-card {
  background: #1a1733;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@supports (backdrop-filter: blur(16px)) {
  .plan-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
}

.plan-card.recommended {
  border: 2px solid var(--accent);
  transform: scale(1.02);
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #111111;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.plan-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.plan-price {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0;
  word-break: break-word;
}

.plan-features {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  flex: 1;
}

.plan-features li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

/* ===== COMPROMISO ===== */
.compromiso-card {
  background: #1a1733;
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.15);
  max-width: 800px;
  margin: 0 auto;
}

@supports (backdrop-filter: blur(20px)) {
  .compromiso-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

.compromiso-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1rem;
}

.compromiso-icon {
  font-size: 2rem;
}

.compromiso-header h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--accent);
  margin: 0;
}

.compromiso-mensaje {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.compromiso-mensaje p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
}

.highlight {
  background: rgba(var(--accent-rgb), 0.1);
  padding: 1rem;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
}

/* ===== FAQ ===== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #1a1733;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
}

@supports (backdrop-filter: blur(10px)) {
  .faq-item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.faq-question {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  padding-right: 1rem;
}

.faq-icon {
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  padding: 0 1rem;
  overflow: hidden;
  transition: all 0.3s;
  background: rgba(0,0,0,0.2);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1rem;
}

.faq-answer p {
  margin: 0.5rem 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

/* ===== MODALES ===== */
.modal, .modal-wa {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-content, .modal-wa-content {
  background: #1a1733;
  padding: 1.5rem;
  border-radius: 24px;
  max-width: 90%;
  width: 420px;
  text-align: center;
  border: 2px solid var(--accent);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.3);
}

.modal-wa-content {
  width: 500px;
  text-align: left;
}

.modal-wa-content h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-icon {
  color: #25D366;
  font-size: 1.8rem;
}

.modal-wa-close {
  background: var(--accent);
  color: #111111;
  border: 2px solid var(--accent);
  width: 100%;
  margin-top: 1rem;
}

.modal-wa-close:hover {
  background: transparent;
  color: var(--accent);
}

.btn-pago {
  background: var(--accent);
  color: #111111;
  border: 2px solid var(--accent);
  margin: 1rem 0;
  display: inline-block;
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0820;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}





/* Tablets horizontales y pantallas medianas (769px a 992px) */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .logo {
    font-size: 1.3rem;
    white-space: nowrap;
    
  }
  
  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 0.5rem; /* Reducido para que quepan mejor */
    justify-content: center;
    /* Eliminado flex-wrap: wrap; */
   
  }
  
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
  }
  
  .desktop-only {
    font-size: 0.9rem;
    padding: 8px 16px;
    margin-left: 0.5rem;
    white-space: nowrap;
  }

  /* Ajuste del hero */
  .hero {
    min-height: calc(100vh - 100px); /* Aumentado para más espacio */
    margin-top: 100px;
  }
  
  /* Ajuste de los planes */
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .plan-card {
    padding: 1.2rem;
  }
  
  .plan-card h3 {
    font-size: 1.2rem;
  }
  
  .plan-price {
    font-size: 1.8rem;
  }
}












@media screen and (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .plan-card.recommended {
    transform: scale(1);
  }
  
  .hero-content {
    text-align: center;
    padding: 0 1.5rem;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
  
  .section {
    padding: 60px 0;
  }
  
  .compromiso-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .compromiso-header {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .btn-primary, .btn-accent {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .plan-card {
    padding: 1.2rem;
  }
  
  .plan-price {
    font-size: 1.6rem;
  }
  
  .modal-content, .modal-wa-content {
    padding: 1.2rem;
  }
}





/* Pantallas grandes (>992px) */
@media screen and (min-width: 993px) {
  .nav-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;  /* Cambiamos a flex-start */
    padding: 0 2rem;
  }
  
  .logo {
    margin-right: 2rem;           /* Espacio fijo entre logo y enlaces */
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    margin-right: auto;            /* Empuja el botón a la derecha */
  }
  
  .nav-links a {
    font-size: 1rem;
    padding: 0;
    background: transparent;
  }
  
  .desktop-only {
    display: inline-block;
    /* margin-left: auto;  (ya lo hace margin-right:auto en .nav-links) */
    margin-left: 2rem;
  }
  
  .hero {
    min-height: calc(100vh - 80px);
    margin-top: 80px;
  }
}

/* Botón de WhatsApp en el footer */
.btn-whatsapp-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25D366;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-footer i {
  font-size: 1.6rem;
}

.btn-whatsapp-footer:hover {
  background: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

/* Responsive para móviles */
@media screen and (max-width: 480px) {
  .btn-whatsapp-footer {
    padding: 12px 20px;
    font-size: 1rem;
    gap: 8px;
    width: 90%;
    margin: 0 auto;
  }
  
  .btn-whatsapp-footer i {
    font-size: 1.4rem;
  }
}