/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); min-height: 48px; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn--primary { background: var(--orange-grad); color: #1a0f00; box-shadow: 0 6px 20px rgb(245 130 31 / .35); }
.btn--ghost { border-color: rgb(255 255 255 / .35); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--wa { background: #1faa59; color: #fff; }
.btn--sm { padding: 9px 16px; min-height: 40px; font-size: .9rem; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgb(10 10 12 / .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgb(255 255 255 / .08); color: #fff; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 1.35rem; letter-spacing: .02em; color: #fff; }
.logo svg { width: 44px; height: 34px; }
.logo small { font-size: .62em; font-weight: 700; color: #cbd5e1; margin-left: -4px; align-self: flex-end; padding-bottom: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.nav__btn { background: none; border: 0; color: #e5e7eb; text-decoration: none; padding: 10px 12px; font-size: .92rem; font-weight: 500; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.nav a, .nav button.nav__btn { transition: background-color .3s var(--ease); }
.nav a:hover, .nav button.nav__btn:hover { background: rgb(255 255 255 / .08); }
.nav__item { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--carbon-2); border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; padding: 8px; box-shadow: 0 20px 40px rgb(0 0 0 / .5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.nav__item[data-open="true"] .dropdown, .nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; width: 100%; }
.cta-glow { border: 1.5px solid var(--orange); color: #fff !important; box-shadow: 0 0 14px rgb(245 130 31 / .55), inset 0 0 8px rgb(245 130 31 / .25); font-weight: 700 !important; margin-left: 8px; }
.cta-glow { transition: box-shadow .4s var(--ease), transform .35s var(--ease) !important; }
.cta-glow:hover { box-shadow: 0 0 22px rgb(245 130 31 / .85), inset 0 0 12px rgb(245 130 31 / .4); }
.burger { display: none; background: none; border: 1px solid rgb(255 255 255 / .25); color: #fff; width: 46px; height: 46px; border-radius: 10px; }
@media (max-width: 1020px) {
  .burger { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--carbon); flex-direction: column; align-items: stretch; padding: 16px; display: none; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav[data-open="true"] { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding-left: 16px; }
  .cta-glow { margin: 8px 0 0; text-align: center; justify-content: center; }
}

/* ===== Hero ===== */
.hero { position: relative; background: var(--carbon); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 500px at 85% 10%, rgb(245 130 31 / .16), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgb(163 184 24 / .12), transparent 60%),
  repeating-linear-gradient(90deg, transparent 0 79px, rgb(255 255 255 / .03) 79px 80px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.hero__card { background: linear-gradient(160deg, var(--carbon-3), var(--carbon-2)); border: 1px solid rgb(255 255 255 / .1); border-radius: 20px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 60px rgb(0 0 0 / .45); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgb(163 184 24 / .12); border: 1px solid rgb(163 184 24 / .4); color: #d4eb2c; font-size: .8rem; font-weight: 600; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #d4eb2c; box-shadow: 0 0 8px #d4eb2c; }
.hero__card h2 { font-size: 1.25rem; margin: 18px 0 10px; font-weight: 700; }
.hero__card p { color: #aab2c0; }
.hero__ticks li { display: flex; gap: 10px; padding: 6px 0; color: #d5dae3; font-size: .95rem; }
.hero__ticks svg { flex: none; width: 20px; height: 20px; color: var(--lime); margin-top: 3px; }
.hero h1 { font-weight: 800; font-style: italic; font-size: clamp(2rem, 4.6vw, 3.6rem); text-transform: uppercase; letter-spacing: -.01em; background: var(--steel-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { font-style: italic; background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: #b6bdca; font-size: 1.1rem; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pillars { background: var(--carbon-2); border-top: 1px solid rgb(255 255 255 / .08); }
.pillars ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars li { transition: background-color .4s var(--ease); display: flex; align-items: center; gap: 14px; padding: 22px 20px; font-weight: 600; font-size: .95rem; color: #e5e7eb; }
.pillars li + li { border-left: 2px solid var(--orange); }
.pillars li:hover { background: rgb(255 255 255 / .04); }
.pillars li:hover svg { transform: scale(1.12); }
.pillars svg { transition: transform .4s var(--ease); flex: none; width: 30px; height: 30px; color: var(--orange); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { order: -1; }
  .pillars ul { grid-template-columns: 1fr 1fr; }
  .pillars li:nth-child(3) { border-left: 0; }
  .pillars li:nth-child(n+3) { border-top: 2px solid var(--orange); }
}
@media (max-width: 520px) { .pillars ul { grid-template-columns: 1fr; } .pillars li + li { border-left: 0; border-top: 2px solid var(--orange); } }

/* ===== Tarjetas genéricas ===== */
.card { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ===== Tabla comparativa ===== */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
table.compare { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .95rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: #f1f5f9; font-family: var(--font-head); font-size: .85rem; }
.compare thead th.us { background: var(--carbon); color: #fff; border-top: 4px solid var(--orange); }
.compare td.us { background: #fff8f1; font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare td { color: var(--ink-2); }
.compare tr:last-child > * { border-bottom: 0; }

/* ===== Catálogo ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); border: 1.5px solid var(--line); background: var(--card); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--carbon); border-color: var(--carbon); color: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgb(15 23 42 / .06), 0 18px 40px rgb(15 23 42 / .12); }
.form.card:hover { transform: none; }
.svc { animation: rise .6s var(--ease) both; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--c, var(--orange)); }
.svc[hidden] { display: none; }
.svc__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--carbon); color: var(--c, var(--orange)); }
.svc__icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.08rem; margin: 0; }
.svc p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.svc__tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.svc__crit { font-size: .82rem; background: #f1f5f9; border-radius: 8px; padding: 8px 12px; color: var(--ink); }
.svc__actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }

/* ===== Modal (dialog) ===== */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100% - 24px)); max-height: 90vh; background: var(--card); color: var(--ink); }
dialog.modal[open] { animation: pop .45s var(--ease); }
dialog.modal[open]::backdrop { animation: fade .45s var(--ease); }
dialog.modal::backdrop { background: rgb(5 5 8 / .7); backdrop-filter: blur(3px); }
.modal__head { background: var(--carbon); color: #fff; padding: 22px 56px 22px 26px; border-bottom: 4px solid var(--orange); position: relative; }
.modal__head h3 { margin: 0; font-size: 1.2rem; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; font-size: 1.3rem; }
.modal__body { padding: 24px 26px 28px; overflow: auto; }
.modal__body h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #b45309; margin: 20px 0 8px; }
.modal__body h4:first-child { margin-top: 0; }
.modal__body ul { list-style: disc; padding-left: 20px; color: var(--ink-2); }

/* ===== Tabs ===== */
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 28px; }
.tabs [role="tab"] { transition: color .3s var(--ease), border-color .3s var(--ease); background: none; border: 0; padding: 14px 20px; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.tabs [role="tabpanel"] { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tabs [role="tabpanel"]:not([hidden]) { animation: rise .55s var(--ease) both; }
.tabs [role="tabpanel"][hidden] { display: none; }
.tabs ul li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tabs ul li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 12px; border-radius: 3px; background: var(--lime-grad); }
.tabs h3 { font-size: 1.3rem; }
@media (max-width: 760px) { .tabs [role="tabpanel"] { grid-template-columns: 1fr; } }

/* ===== Cobertura y pasos ===== */
.zones { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.zone { padding: 10px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.zone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { counter-increment: step; position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--carbon-2); border: 1px solid rgb(255 255 255 / .08); color: #cbd5e1; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 2.4rem; background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 6px; }
.step h3 { color: #fff; font-size: 1.05rem; }
.step small { color: var(--lime); font-weight: 700; }
.steps--light { margin-top: 8px; }

/* ===== FAQ ===== */
.faq { max-width: 860px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq__q { font-family: var(--font-body); font-style: normal; width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1rem; }
.faq__q::after { content: "+"; font-size: 1.5rem; color: var(--orange); line-height: 1; transition: transform .4s var(--ease); }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; color: var(--ink-2); transition: grid-template-rows .45s var(--ease), visibility .45s; }
.faq__a > div { overflow: hidden; padding: 0 22px; }
.faq__a[data-open="true"] { grid-template-rows: 1fr; visibility: visible; }
.faq__a > div > :last-child { margin-bottom: 20px; }
.faq__item { transition: box-shadow var(--t) var(--ease); }
.faq__item:hover { box-shadow: var(--shadow); }

/* ===== Cotizador ===== */
.quote { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form label.lbl { font-weight: 600; font-size: .92rem; margin-bottom: 8px; display: block; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.form input, .form select, .form textarea { transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgb(245 130 31 / .18); outline: none; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; min-height: 48px; }
.form textarea { min-height: 110px; resize: vertical; }
.form [aria-invalid="true"] { border-color: #dc2626; }
.err { color: #b91c1c; font-size: .82rem; min-height: 1em; }
.radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.radios label { position: relative; }
.radios input { position: absolute; opacity: 0; inset: 0; }
.radios span { transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); display: block; text-align: center; padding: 12px 10px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-weight: 600; font-size: .9rem; background: #fff; }
.radios input:checked + span { border-color: var(--orange); background: #fff4e8; box-shadow: 0 0 0 3px rgb(245 130 31 / .2); }
.radios input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result { background: var(--carbon); color: #e5e7eb; border-radius: 18px; padding: 26px; border-top: 4px solid var(--lime); position: sticky; top: calc(var(--header-h) + 16px); }
.result h3 { color: #fff; font-size: 1.1rem; }
.result__empty { color: #94a3b8; font-size: .95rem; }
.folio { font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 2rem; background: var(--lime-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result pre { white-space: pre-wrap; word-break: break-word; background: var(--carbon-2); border: 1px solid rgb(255 255 255 / .1); border-radius: 10px; padding: 14px; font: .85rem/1.55 var(--font-body); color: #cbd5e1; margin: 14px 0; }
.result__actions { display: grid; gap: 10px; }
.status { font-size: .85rem; color: var(--lime); min-height: 1.2em; margin-top: 10px; }
.note { font-size: .82rem; color: var(--ink-2); }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } .result { position: static; } .row { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer { background: var(--carbon); color: #94a3b8; padding: 64px 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.footer h3 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer li { padding: 4px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__bar { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .82rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Barra móvil fija */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; padding: 10px 12px; background: rgb(10 10 12 / .92); backdrop-filter: blur(10px); }
  body { padding-bottom: 68px; }
}

/* ===== Animaciones ===== */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.hero__card, .hero h1, .hero__lead, .hero__actions { animation: rise .9s var(--ease) both; }
.hero__card { animation-delay: .1s; }
.hero h1 { animation-delay: .2s; }
.hero__lead { animation-delay: .32s; }
.hero__actions { animation-delay: .44s; }
.hero__bg { animation: fade 1.6s var(--ease) both; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
