/* ValoraEmpresa – Niveles de valoración. Usa las variables del tema. */

/* ---------- Tres niveles ---------- */
.vs-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.vs-tier { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 10px; }
.vs-tier h3 { font-size: clamp(1.6rem, 2.3vw, 1.95rem); }
.vs-n { margin: 0; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); }
.vs-price { margin: 6px 0 0; font-family: var(--serif); line-height: 1; }
.vs-price b { font-size: 2.6rem; font-weight: 700; }
.vs-price span { font-family: var(--sans); font-size: 1rem; color: var(--text-soft); margin-left: 4px; }
.vs-sub { margin: 0; font-weight: 700; color: var(--text); }
.vs-desc { margin: 4px 0 0; color: var(--text-soft); }
.vs-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.vs-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.vs-ck { flex: 0 0 20px; margin-top: 3px; color: var(--gold-text); }
.vs-ideal { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 1rem; }
.vs-ideal b { color: var(--text); }
.vs-cta { width: 100%; margin-top: 6px; }
.vs-more { align-self: center; font-weight: 700; color: inherit; font-size: 1rem; }
.vs-more::after { content: " →"; color: var(--gold-2); }
.vs-tier-foot { margin: 4px 0 0; font-size: .92rem; color: var(--text-soft); text-align: center; }

.vs-feat { background: var(--ink); color: var(--on-dark); border: 2px solid var(--gold); box-shadow: 0 24px 60px -24px rgba(0,0,0,.45); transform: translateY(-10px); }
.vs-feat .vs-n { color: var(--gold-2); }
.vs-feat .vs-sub { color: var(--on-dark); }
.vs-feat .vs-desc, .vs-feat .vs-price span, .vs-feat .vs-ideal { color: var(--on-dark-soft); }
.vs-feat .vs-ideal { border-top-color: var(--line-dark); }
.vs-feat .vs-ideal b { color: var(--on-dark); }
.vs-feat .vs-ck { color: var(--gold-2); }
.vs-feat .vs-list b { color: #fff; }
.vs-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }

/* ---------- Página de niveles ---------- */
.vs-hero h1 { max-width: 20ch; }
.vs-hero-sm { padding-block: clamp(48px, 6vw, 84px) clamp(36px, 5vw, 60px); }
.vs-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.vs-niveles .sec-head h2 em, .vs-exp h2 em { font-style: italic; font-weight: 500; color: var(--gold-text); }
.dark h2 em { font-style: italic; font-weight: 500; color: var(--gold-2); }

.vs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.vs-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 1rem; }
.vs-table th, .vs-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table thead th { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; background: var(--paper); }
.vs-table tbody th { font-weight: 700; width: 20%; color: var(--text); }
.vs-table td { color: var(--text-soft); }
.vs-table .vs-col-feat { background: #fbf6ea; color: var(--text); }
.vs-table thead .vs-col-feat { background: var(--gold); color: var(--gold-ink); }
.vs-table .vs-ck { display: inline-block; vertical-align: -4px; margin: 0; }

.vs-pro { padding-block: clamp(72px, 9vw, 120px); }
.vs-pro h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-top: 14px; }
.vs-pro .eyebrow { color: var(--gold-2); }
.vs-pro-grid, .vs-exp-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.vs-lead { font-size: 1.12rem; margin: 20px 0 0; }
.vs-pro .vs-lead { color: var(--on-dark-soft); }
.vs-price-big { font-family: var(--serif); margin: 28px 0 20px; line-height: 1; }
.vs-price-big b { font-size: 3.4rem; }
.vs-price-big span { font-family: var(--sans); font-size: 1.05rem; margin-left: 6px; opacity: .8; }
.vs-need { background: var(--paper); color: var(--text); border-radius: 18px; padding: 32px 30px; }
.vs-need h3 { font-size: 1.7rem; margin-bottom: 12px; }
.vs-need p { margin: 0 0 6px; }
.vs-need .vs-small { margin-top: 18px; }
.vs-files:empty { display: none; }
.vs-small { font-size: .98rem; color: var(--text-soft); margin: 16px 0 0; }
.vs-steps { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.vs-steps li { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.vs-steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-2); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.vs-steps b { display: block; font-size: 1.1rem; }
.vs-steps p { margin: 6px 0 0; color: var(--on-dark-soft); font-size: 1rem; }

.vs-exp h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-top: 14px; }
.vs-eb { color: var(--gold-text); }
.vs-exp .vs-lead { color: var(--text-soft); }
.vs-list-big { margin-top: 24px; gap: 14px; }
.vs-list-big b { color: var(--text); }

.vs-faq-list { display: grid; gap: 12px; }
.vs-faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.vs-faq-list summary { cursor: pointer; font-weight: 700; padding: 18px 0; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.vs-faq-list summary::-webkit-details-marker { display: none; }
.vs-faq-list summary::after { content: "+"; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--gold-text); }
.vs-faq-list details[open] summary::after { content: "–"; }
.vs-faq-list details p { margin: 0 0 20px; color: var(--text-soft); }

.vs-final { padding-block: clamp(64px, 8vw, 100px); text-align: center; }
.vs-final h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.vs-final p { color: var(--on-dark-soft); font-size: 1.15rem; margin: 16px 0 0; }
.vs-final .vs-ctas { justify-content: center; }

/* ---------- Formularios ---------- */
.vs-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3.5vw, 40px); }
.vs-card h3 { font-size: 1.7rem; }
.vs-form .vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 18px; }
.vs-field { display: grid; gap: 6px; }
.vs-full { grid-column: 1 / -1; }
.vs-field label { font-weight: 700; font-size: 1rem; }
.vs-field small { font-weight: 400; color: var(--text-soft); }
.vs-field input, .vs-field select, .vs-field textarea { font: inherit; font-size: 1.05rem; width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1.5px solid #c9d2dd; border-radius: 10px; background: #fff; color: var(--text); min-height: 52px; }
.vs-field textarea { min-height: 96px; resize: vertical; }
.vs-field input:focus, .vs-field select:focus, .vs-field textarea:focus { outline: 3px solid rgba(201,162,74,.35); border-color: var(--gold); }
.vs-field .vs-bad { border-color: #b3261e; }
.vs-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vs-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 1rem; line-height: 1.5; }
.vs-consent input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--gold-text); }
.vs-consent a { color: inherit; }
.vs-err { color: #b3261e; font-weight: 700; margin: 16px 0 0; min-height: 0; }
.vs-err:empty { display: none; }
.vs-submit { width: 100%; margin-top: 20px; font-size: 1.1rem; min-height: 58px; }
.vs-submit[disabled] { opacity: .6; cursor: wait; }
.vs-center { text-align: center; }

/* ---------- Buzón ---------- */
.vs-buzon { padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 120px); }
.vs-stepper { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vs-stepper li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text-soft); border-top: 4px solid var(--line); padding-top: 14px; font-size: 1.02rem; }
.vs-stepper span { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor; font-size: .95rem; }
.vs-stepper .on { color: var(--text); border-top-color: var(--gold); }
.vs-stepper .on span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.vs-stepper .done { color: var(--gold-text); border-top-color: var(--gold-text); }
.vs-stepper .done span { background: var(--gold-text); border-color: var(--gold-text); color: #fff; }
.vs-buzon-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.vs-h { font-size: 1.8rem; }
.vs-h2 { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.vs-form > p { margin: 12px 0 0; }
.vs-drop { margin-top: 18px; border: 2.5px dashed #c3cedb; border-radius: 16px; background: #f5f7fa; padding: 34px 20px; text-align: center; cursor: pointer; display: grid; justify-items: center; gap: 10px; color: var(--gold-text); transition: background .15s, border-color .15s; }
.vs-drop:hover, .vs-drop.over { background: #fbf6ea; border-color: var(--gold); }
.vs-drop:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.vs-drop-t { margin: 0; color: var(--text); font-size: 1.1rem; }
.vs-drop-t b { font-size: 1.25rem; }
.vs-drop-btn { min-height: 46px; padding: 10px 20px; pointer-events: none; }
.vs-files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.vs-files li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.vs-files .vs-fi { width: 34px; height: 34px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--gold-text); text-transform: uppercase; }
.vs-files .vs-fn { min-width: 0; }
.vs-files .vs-fn b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.vs-files .vs-fn small { color: var(--text-soft); }
.vs-files .vs-bar { height: 6px; background: var(--paper-2); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.vs-files .vs-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.vs-files .ok small { color: #0a7a3b; font-weight: 700; }
.vs-files .ko small { color: #b3261e; font-weight: 700; }
.vs-files button { font: inherit; font-size: .95rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; color: var(--text); min-height: 40px; }
.vs-files button:hover { border-color: var(--text); }
.vs-side { display: grid; gap: 18px; position: sticky; top: 100px; }
.vs-sum .vs-price b { font-size: 2.4rem; }
.vs-secure p { margin: 0 0 10px; font-size: 1rem; color: var(--text-soft); }
.vs-secure p:last-child { margin: 0; }
.vs-secure a { color: var(--text); font-weight: 700; }
.vs-done { text-align: center; }
.vs-done h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.vs-done h3 { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.vs-done p { margin: 12px auto 0; max-width: 52ch; }
.vs-done .vs-price-big { margin: 18px 0; }
.vs-done .btn { min-width: 260px; font-size: 1.1rem; min-height: 58px; }
.vs-done .vs-small a { color: var(--text); font-weight: 700; }
.vs-okmark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e6f2ea; color: #0a7a3b; margin: 0 auto 12px !important; }
.vs-okmark .vs-ck { width: 34px; height: 34px; margin: 0; color: #0a7a3b; }
.vs-ok { text-align: center; padding: 20px 0; }
.vs-ok p { color: var(--text-soft); }

/* ---------- Adaptación a móvil y tableta ---------- */
@media (max-width: 1000px) {
  .vs-tiers { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 30px; }
  .vs-feat { transform: none; }
  .vs-pro-grid, .vs-exp-grid, .vs-buzon-grid { grid-template-columns: 1fr; }
  .vs-steps { grid-template-columns: 1fr 1fr; }
  .vs-side { position: static; }
}
@media (max-width: 640px) {
  .vs-form .vs-grid { grid-template-columns: 1fr; }
  .vs-steps { grid-template-columns: 1fr; }
  .vs-stepper { grid-template-columns: 1fr; gap: 6px; }
  .vs-stepper li { border-top: 0; border-left: 4px solid var(--line); padding: 4px 0 4px 12px; }
  .vs-stepper .on { border-left-color: var(--gold); }
  .vs-stepper .done { border-left-color: var(--gold-text); }
  .vs-tier { padding: 30px 22px 24px; }
  .vs-ctas .btn { width: 100%; }
  .vs-done .btn { min-width: 0; width: 100%; }
  .vs-files li { grid-template-columns: auto 1fr; }
  .vs-files button { grid-column: 1 / -1; }
}

/* Comparativa en móvil: una ficha por concepto en lugar de tabla con desplazamiento */
@media (max-width: 700px) {
  .vs-table-wrap { overflow: visible; border: 0; background: none; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; min-width: 0; width: auto; }
  .vs-table thead { display: none; }
  .vs-table tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .vs-table tbody th { width: auto; background: var(--paper); font-family: var(--serif); font-size: 1.2rem; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .vs-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .vs-table tbody tr td:last-child { border-bottom: 0; }
  .vs-table td::before { content: attr(data-l); display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--text-soft); margin-bottom: 2px; }
  .vs-table td.vs-col-feat::before { color: var(--gold-text); }
}
