/* ============================================
   MEMBRESÍAS - MINIMALISTA Y COMPACTO
   Paleta Corporativa - 100% Consistente
   ============================================ */

:root {
  /* Colores Corporativos */
  --color-primary: #02408f;
  --color-secondary: #02b8eb;
  --color-accent: #ff9923;
  --color-neutral: #e8e8e8;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #02408f 0%, #02b8eb 100%);
  --gradient-accent: linear-gradient(135deg, #ff9923 0%, #ff7b00 100%);
  
  /* Texto */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #6b7280;
  
  /* Sombras */
  --shadow-xs: 0 1px 3px rgba(2, 64, 143, 0.08);
  --shadow-sm: 0 2px 8px rgba(2, 64, 143, 0.1);
  --shadow-md: 0 4px 12px rgba(2, 64, 143, 0.12);
  --shadow-hover: 0 8px 20px rgba(2, 184, 235, 0.15);
  
  /* Radios */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-full: 999px;
  
  /* Transiciones */
  --transition: all 0.2s ease;
}


/* ============================================
   HERO / ENCABEZADO - IGUAL A PACKS
============================================ */

.page-header {
  padding: 32px 0;
  background: var(--gradient-primary);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(2, 184, 235, 0.15) 0%, transparent 50%);
  opacity: 0.6;
}

.page-header .container {
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 153, 35, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-badge i {
  font-size: 0.8rem;
  color: var(--color-accent);
}

.page-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-header h1 i {
  color: var(--color-accent);
  margin-right: 8px;
}

.page-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}


/* ============================================
   GRID DE PLANES
============================================ */

section .container {
  max-width: 1100px;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0 30px;
}


/* ============================================
   PLAN CARD - COMPACTO
============================================ */

.plan-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  border: 1px solid var(--color-neutral);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(2, 184, 235, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary);
}

.plan-card:hover::before {
  opacity: 1;
}

/* Card destacada */
.plan-card.destacado {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(2, 64, 143, 0.2);
  background: linear-gradient(to bottom, rgba(2, 184, 235, 0.02), #ffffff);
}

.plan-card.destacado:hover {
  box-shadow: 0 12px 32px rgba(2, 64, 143, 0.25);
}

.badge-destacado {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--gradient-accent);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 4px 12px rgba(255, 153, 35, 0.35);
  z-index: 2;
}


/* ============================================
   ICONO Y NOMBRE
============================================ */

.plan-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(2, 64, 143, 0.1), rgba(2, 184, 235, 0.15));
  font-size: 1.4rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.plan-card:hover .plan-icon {
  transform: scale(1.08);
}

.plan-nombre {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 4px 0;
  line-height: 1.2;
}

.plan-descripcion-corta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 12px;
  line-height: 1.5;
}


/* ============================================
   PRECIO Y DURACIÓN
============================================ */

.plan-precio-container {
  background: #f9fafb;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--color-neutral);
}

.plan-precio-original {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: line-through;
  line-height: 1.2;
}

.plan-precio {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 2px 0;
  line-height: 1;
}

.plan-precio .moneda {
  font-size: 0.85rem;
}

.plan-precio {
  font-size: 1.5rem;
}

.plan-duracion {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.plan-ahorro {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  margin-top: 4px;
  display: inline-block;
}


/* ============================================
   BENEFICIOS
============================================ */

.plan-beneficios {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.plan-beneficios li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.plan-beneficios i {
  color: #22c55e;
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}


/* ============================================
   BOTONES DE PLAN
============================================ */

.btn-plan {
  margin-top: auto;
  width: 100%;
  border-radius: var(--radius-full);
  border: none;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

.btn-plan i {
  font-size: 0.9rem;
}

.btn-plan-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 64, 143, 0.3);
}

.btn-plan-primary:hover {
  background: var(--color-secondary);
  box-shadow: 0 6px 16px rgba(2, 184, 235, 0.35);
  transform: translateY(-1px);
}

.btn-plan-destacado {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 153, 35, 0.4);
}

.btn-plan-destacado:hover {
  box-shadow: 0 6px 18px rgba(255, 153, 35, 0.5);
  transform: translateY(-1px);
}

.btn-plan-disabled {
  background: var(--color-neutral);
  color: var(--text-tertiary);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.btn-plan-disabled:hover {
  transform: none;
}


/* ============================================
   EMPTY STATE
============================================ */

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-tertiary);
}

.empty-state i {
  font-size: 2.8rem;
  margin-bottom: 14px;
  color: #d1d5db;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}


/* ============================================
   BENEFICIOS GENERALES
============================================ */

.beneficios-section {
  padding: 50px 0;
  background: #fafbfc;
  border-top: 1px solid var(--color-neutral);
  border-bottom: 1px solid var(--color-neutral);
}

.beneficios-generales h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.beneficio-item {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--color-neutral);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.beneficio-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-secondary);
}

.beneficio-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(2, 64, 143, 0.1), rgba(2, 184, 235, 0.15));
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.beneficio-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.beneficio-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}


/* ============================================
   FAQ
============================================ */

.faq-section-container {
  padding: 50px 0 70px;
}

.faq-section {
  max-width: 760px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--color-neutral);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-secondary);
}

.faq-item h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.faq-item h3 i {
  color: var(--color-secondary);
  font-size: 1rem;
  flex-shrink: 0;
}

.faq-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}


/* ============================================
   ANIMACIONES
============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-card {
  animation: fadeInUp 0.4s ease-out backwards;
}

.plan-card:nth-child(1) { animation-delay: 0.05s; }
.plan-card:nth-child(2) { animation-delay: 0.1s; }
.plan-card:nth-child(3) { animation-delay: 0.15s; }
.plan-card:nth-child(4) { animation-delay: 0.2s; }


/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
  .page-header {
    padding: 24px 0;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .page-header p {
    font-size: 0.85rem;
  }

  .planes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 30px 0 20px;
  }

  .plan-card {
    border-radius: var(--radius);
  }

  .beneficios-section {
    padding: 40px 0;
  }

  .beneficios-grid {
    grid-template-columns: 1fr;
  }

  .faq-section-container {
    padding: 40px 0 60px;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.2rem;
  }

  .plan-card {
    padding: 16px 14px;
  }

  .beneficio-item {
    padding: 14px;
  }

  .faq-item {
    padding: 12px 14px;
  }
}


/* ============================================
   ACCESIBILIDAD
============================================ */

.btn-plan:focus-visible,
.plan-card:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================
   UTILIDADES
============================================ */

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
