/* ============================================================
   ABARCA IA — planes_precios.css
   Page-specific styles (inherits design system from inicio_home.css)
   ============================================================ */

/* ============================================================
   HERO — PLANES
   ============================================================ */

.hero-planes {
  position: relative;
  background: linear-gradient(135deg, #B3E5FC 0%, #CE93D8 50%, #FFF59D 100%);
  padding: 72px 24px;
  text-align: center;
  overflow: hidden;
}

.hero-planes-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(79,195,247,.3), rgba(179,157,219,.3),
    rgba(244,143,177,.3), rgba(255,183,77,.3),
    rgba(255,241,118,.3), rgba(79,195,247,.3));
  filter: blur(80px);
  animation: orb-spin 24s linear infinite;
  pointer-events: none;
}

.hero-planes-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero-planes-badge {
  display: inline-block;
  background: rgba(255,255,255,.7);
  color: var(--color-dark);
  padding: 5px 14px;
  border-radius: var(--border-radius-md);
  font-size: 12px; font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .05s forwards;
}

.hero-planes h1 {
  font-size: 36px; font-weight: 400;
  line-height: 1.2; letter-spacing: -.4px;
  color: var(--color-dark);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .15s forwards;
}

.hero-planes p {
  font-size: 15px;
  color: #444441;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .25s forwards;
}

/* ============================================================
   PLANES PRINCIPALES
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.planes {
  padding: 56px 24px;
  background: var(--color-surface);
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease-spring), box-shadow .25s ease;
}

.plan-card:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-color-lg);
}

.plan-card--featured {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--color-surface), var(--color-surface)),
    linear-gradient(135deg, #4FC3F7, #B39DDB, #F48FB1, #FFB74D, #FFF176);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #4FC3F7, #B39DDB, #F48FB1, #FFB74D);
  color: var(--color-surface);
  font-size: 10px; font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--border-radius-md);
  white-space: nowrap;
}

.plan-name {
  font-size: 13px; font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.plan-name--gradient {
  background: linear-gradient(90deg, #4FC3F7, #F48FB1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-price {
  font-size: 28px; font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 400;
}

.plan-price--text { font-size: 22px; }

.plan-subtitle {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.plan-features {
  border-top: 0.5px solid var(--color-border);
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.9;
  color: #5F5E5A;
  flex: 1;
  margin-bottom: 18px;
  min-height: 130px;
}

.btn-plan {
  display: block;
  text-align: center;
  padding: 10px;
  border: 0.5px solid var(--color-muted-light);
  border-radius: var(--border-radius-md);
  font-size: 13px; font-weight: 500;
  color: var(--color-dark);
  transition: transform .2s var(--ease-spring), box-shadow .2s ease, background .2s ease;
}

.btn-plan:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-color);
  background: var(--color-background-secondary);
}

.btn-plan--primary {
  background: var(--color-dark);
  color: var(--color-surface);
  border-color: var(--color-dark);
}

.btn-plan--primary:hover {
  background: var(--color-dark-deep);
}

/* ============================================================
   TABLA COMPARATIVA
   ============================================================ */

.comparativa {
  padding: 56px 24px;
  background: var(--color-background-secondary);
}

.comparativa-wrap {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  border: 0.5px solid var(--color-border);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.comp-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  table-layout: fixed;
}

.comp-th {
  padding: 14px 12px;
  background: var(--color-dark);
  color: var(--color-muted-light);
  font-weight: 500;
  text-align: center;
}

.comp-th--feat {
  text-align: left;
  padding-left: 16px;
  width: 36%;
  color: var(--color-surface);
}

.comp-th--highlight { color: var(--color-surface); }

.comp-td {
  padding: 12px 16px;
  color: var(--color-dark);
  border-bottom: 0.5px solid var(--color-border);
}

.comp-row--alt .comp-td { background: #FAFAF8; }

.comp-td--center { text-align: center; padding-left: 12px; padding-right: 12px; }
.comp-td--muted  { color: #5F5E5A; }
.comp-td--strong { font-weight: 500; }
.comp-td--sm     { font-size: 11px; }

.comp-check {
  color: var(--color-sky);
  font-size: 16px;
}

.comp-dash {
  color: var(--color-muted-light);
  font-size: 16px;
}

/* ============================================================
   SERVICIOS ADICIONALES
   ============================================================ */

.adicionales {
  padding: 56px 24px;
  background: var(--color-surface);
}

.adicionales-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.paquetes-card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.paquetes-tag {
  font-size: 11px; font-weight: 500;
  color: var(--color-lav);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.paquetes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.paquete-item {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 14px;
  text-align: center;
  transition: transform .2s var(--ease-spring), box-shadow .2s ease;
}

.paquete-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-color);
}

.paquete-price {
  font-size: 18px; font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.paquete-desc {
  font-size: 11px;
  color: var(--color-muted);
}

.gestion-card {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFE082 100%);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gestion-tag {
  font-size: 11px; font-weight: 500;
  color: #885A00;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.gestion-name {
  font-size: 14px; font-weight: 500;
  color: var(--color-dark);
}

.gestion-price {
  font-size: 22px; font-weight: 500;
  color: var(--color-dark);
}

.gestion-price span {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
}

.gestion-desc {
  font-size: 11px;
  color: #5F5E5A;
}

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

.faq {
  padding: 56px 24px;
  background: var(--color-background-secondary);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.faq-item.is-open {
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px; font-weight: 500;
  color: var(--color-dark);
  text-align: left;
  gap: 12px;
}

.faq-trigger:hover { background: var(--color-background-secondary); }

.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 0.5px solid var(--color-border);
  position: relative;
  transition: background .2s ease, border-color .2s ease, transform .3s var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--color-muted);
  border-radius: 99px;
  transition: transform .3s var(--ease-out), opacity .2s ease;
}

.faq-icon::before {
  width: 8px; height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px; height: 8px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item.is-open .faq-icon {
  background: var(--color-background-secondary);
  border-color: var(--color-muted-light);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out), padding .3s var(--ease-out);
}

.faq-item.is-open .faq-answer {
  max-height: 200px;
  padding-bottom: 16px;
}

.faq-answer p {
  font-size: 12px;
  color: #5F5E5A;
  line-height: 1.6;
  padding: 0 18px;
}

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

@media (max-width: 1024px) {
  .planes-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-planes h1 { font-size: 26px; }

  .planes-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
  }

  .adicionales-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .comparativa-wrap { overflow-x: auto; }
  .comp-table { min-width: 520px; }
}

@media (max-width: 480px) {
  .hero-planes { padding: 48px 16px; }
  .hero-planes h1 { font-size: 22px; }

  .planes,
  .comparativa,
  .adicionales,
  .faq { padding: 40px 16px; }

  .planes-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .paquetes-grid { grid-template-columns: repeat(3, 1fr); }
}
