/* ============================================================
   VANGUARD SOLUTIONS — PRICING CSS
   ============================================================ */

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

/* ── HERO ───────────────────────────────────────────────────── */
.pricing-hero {
  min-height: 42vh;
}

/* ── PESTAÑAS ───────────────────────────────────────────────── */
.pricing-section {
  padding-top: var(--space-lg);
}

.pr-tabs {
  display: flex;
  gap: 0.4rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto var(--space-lg);
  padding: 0.4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  overflow-x: auto;
}

.pr-tab:first-child { margin-left: auto; }
.pr-tab:last-child { margin-right: auto; }

.pr-tab {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  background: none;
  border: 0;
  border-radius: 999px;
  color: rgba(224, 224, 224, 0.7);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.pr-tab:hover { color: #fff; }

.pr-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(191,0,255,0.2));
  box-shadow: 0 0 0 1px var(--glass-border) inset;
}

.pr-tab:focus-visible,
.pr-panel:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.pr-panel[hidden] { display: none; }

.pr-intro,
.pr-common,
.pr-note {
  max-width: 820px;
  margin: 0 auto var(--space-md);
  text-align: center;
  color: rgba(224, 224, 224, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pr-common { margin-top: var(--space-md); }
.pr-note { margin-top: var(--space-sm); font-size: 0.85rem; color: rgba(224, 224, 224, 0.6); }

/* ── TARJETAS DE PLAN ───────────────────────────────────────── */
.pr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.pr-card--rec {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 12px 40px rgba(0, 240, 255, 0.12);
}

.pr-badge {
  position: absolute;
  top: -12px;
  left: var(--space-md);
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #001418;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pr-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.pr-for {
  min-height: 2.6em;
  margin: 0.3rem 0 var(--space-sm);
  font-size: 0.9rem;
  color: rgba(224, 224, 224, 0.7);
}

.pr-price { margin-bottom: var(--space-sm); }

.pr-amount {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pr-amount[hidden],
.pr-quote[hidden],
.pr-meta [hidden],
.pr-table [hidden],
.pr-foot[hidden] { display: none; }

.pr-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.pr-crc,
.pr-crc-inline,
.pr-sub {
  font-size: 0.8rem;
  color: rgba(224, 224, 224, 0.6);
}

.pr-quote {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan);
}

.pr-meta {
  margin: 0 0 var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--glass-border);
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.pr-meta > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.pr-meta dt { color: rgba(224, 224, 224, 0.6); }
.pr-meta dd { margin: 0; text-align: right; color: #fff; }

.pr-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  flex: 1;
}

.pr-list li {
  padding: 0.3rem 0 0.3rem 1.6rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(224, 224, 224, 0.85);
}

.pr-list li i {
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--green);
  font-size: 0.8rem;
}

.pr-cta-btn { width: 100%; justify-content: center; min-height: 44px; }

/* ── TABLAS ─────────────────────────────────────────────────── */
.pr-h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-size: 1.25rem;
  text-align: center;
  color: #fff;
}

.pr-scroll {
  position: relative; /* contiene los textos .pr-sr, que si no se salen del scroll */
  overflow-x: auto;
}

.pr-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.pr-table th,
.pr-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pr-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
}

.pr-table tbody th {
  color: rgba(224, 224, 224, 0.75);
  font-weight: 500;
}

.pr-table td { color: #fff; }

.pr-table td span[aria-hidden="true"] { color: var(--green); }

/* ── CONDICIONES ────────────────────────────────────────────── */
.pr-cond-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.pr-cond {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pr-cond-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.pr-cond-icon--purple {
  background: rgba(191, 0, 255, 0.08);
  border-color: rgba(191, 0, 255, 0.2);
  color: var(--purple);
}

.pr-cond h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.pr-cond p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(224, 224, 224, 0.75);
}

.pr-more {
  margin-top: var(--space-md);
  text-align: center;
}


/* ── PIE DE MONTOS Y CTA ────────────────────────────────────── */
.pr-foot-section { padding: 0 0 var(--space-lg); }

.pr-foot {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(224, 224, 224, 0.6);
}

.pr-custom {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.pr-custom p {
  margin-bottom: var(--space-sm);
  color: rgba(224, 224, 224, 0.75);
  line-height: 1.6;
}

.pr-custom .pr-cta-btn { width: auto; margin-top: var(--space-sm); }

.pr-cta-box {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.pr-cta-box h2 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2.2rem); }

.pr-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pr-tabs {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: visible;
  }
  .pr-tab:first-child { margin-left: 0; }
  .pr-tab:last-child { margin-right: 0; }
  .pr-tab { flex: 1 1 auto; padding: 0.6rem 0.8rem; font-size: 0.82rem; }
}

@media (min-width: 768px) {
  .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-cond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .pr-cond-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .pr-card { transition: transform 0.25s ease, border-color 0.25s ease; }
  .pr-card:hover { transform: translateY(-4px); }
}

/* ── COTIZADOR DE 1 MINUTO ──────────────────────────────────── */
.pq-hero-link { margin-top: var(--space-sm); }
.pq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.pq-form,
.pq-result { padding: var(--space-md); }

.pq-field {
  border: 0;
  margin: 0 0 var(--space-md);
  padding: 0;
  min-width: 0;
}

.pq-field legend {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
}

.pq-opts { display: grid; gap: 0.4rem; }

.pq-opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  color: rgba(224, 224, 224, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.pq-opt:hover { border-color: var(--cyan); }
.pq-opt:has(input:checked) { border-color: var(--cyan); background: rgba(0, 240, 255, 0.08); color: #fff; }
.pq-opt:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

.pq-opt input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.pq-branch[hidden],
.pq-result-body[hidden],
.pq-prompt[hidden],
.pq-addon[hidden],
.pq-answers[hidden] { display: none; }

.pq-custom-note,
.pq-prompt,
.pq-for,
.pq-answers,
.pq-addon,
.pq-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(224, 224, 224, 0.75);
}

.pq-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.pq-plan {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
}

.pq-lines {
  margin: var(--space-sm) 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--glass-border);
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.pq-lines > div { display: flex; justify-content: space-between; gap: var(--space-sm); }
.pq-lines dt { color: rgba(224, 224, 224, 0.6); }
.pq-lines dd { margin: 0; text-align: right; color: #fff; }

.pq-answers { margin: var(--space-sm) 0 0; }
.pq-addon { margin: 0 0 var(--space-sm); color: var(--cyan); }
.pq-note { margin: var(--space-sm) 0; font-size: 0.8rem; color: rgba(224, 224, 224, 0.6); }

.pq-wa { width: 100%; justify-content: center; min-height: 44px; }

@media (min-width: 768px) {
  .pq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .pq-result { position: sticky; top: calc(var(--header-height) + var(--space-sm)); }
}

/* ── QUÉ INCLUYE LA MENSUALIDAD ─────────────────────────────── */
.pm-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.pm-box { padding: var(--space-md); }

.pm-h3 {
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}

.pm-not li i { color: #ff6b6b; }

.pm-note {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(224, 224, 224, 0.6);
}

.pm-tables {
  max-width: 1000px;
  margin: var(--space-lg) auto 0;
}

.pm-tables .pm-h3 { margin-top: var(--space-md); }

.pm-table { min-width: 560px; }

@media (min-width: 768px) {
  .pm-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ── PRESUPUESTO ESTIMADO DEL COTIZADOR ─────────────────────── */
.pq-opt-price {
  margin-left: auto;
  padding-left: var(--space-xs);
  font-size: 0.78rem;
  color: rgba(224, 224, 224, 0.6);
  white-space: nowrap;
}

.pq-opt-price[hidden],
.pq-why[hidden],
.pq-budget[hidden],
.pq-bnote[hidden],
.pq-alt[hidden],
.pq-budget .pq-note[hidden] { display: none; }

.pq-why {
  margin: var(--space-sm) 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cyan);
}

.pq-budget {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--glass-border);
}

.pq-h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
}

.pq-budget .pq-lines { border-top: 0; padding-top: 0; margin-top: var(--space-xs); }
.pq-budget .pq-lines > div:last-child dt,
.pq-budget .pq-lines > div:last-child dd { color: #fff; font-weight: 700; }

.pq-bnote,
.pq-alt {
  margin: var(--space-xs) 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(224, 224, 224, 0.75);
}

/* ── Cotizador: avance, comparación y avisos ── */
.pq-progress { display: flex; align-items: center; gap: var(--space-sm); margin: 0 0 var(--space-md); }
.pq-progress[hidden],
.pq-cmp[hidden],
.pq-tips[hidden],
.pq-opt[hidden] { display: none; }
.pq-progress progress { flex: 1; min-width: 0; height: 8px; accent-color: var(--cyan); }
.pq-progress-text { font-size: 0.8rem; color: rgba(224, 224, 224, 0.7); white-space: nowrap; }

.pq-cmp,
.pq-tips {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--glass-border);
}
.pq-cmp-scroll { overflow-x: auto; }
.pq-cmp-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.pq-cmp-table th,
.pq-cmp-table td { padding: 0.45rem 0.4rem; text-align: right; border-bottom: 1px solid var(--glass-border); color: rgba(224, 224, 224, 0.85); }
.pq-cmp-table thead th { font-weight: 600; color: rgba(224, 224, 224, 0.6); }
.pq-cmp-table tbody th { text-align: left; font-weight: 600; color: #fff; }
.pq-cmp-table tbody th small { display: block; font-weight: 400; font-size: 0.72rem; color: rgba(224, 224, 224, 0.6); }
.pq-cmp-table .pq-cmp-sug th,
.pq-cmp-table .pq-cmp-sug td { background: rgba(0, 240, 255, 0.08); color: #fff; }
.pq-cmp-table .pq-cmp-sug th small { color: var(--cyan); }
.pq-cmp-table .pq-cmp-low th,
.pq-cmp-table .pq-cmp-low td { opacity: 0.55; }

.pq-tip-list { margin: var(--space-xs) 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.pq-tip-list li { font-size: 0.85rem; line-height: 1.6; color: rgba(224, 224, 224, 0.85); }
