/* Grúas El Fénix — hoja de estilos v2
   Concepto: bandas alternas acero y concreto; la línea ámbar funciona como el cable de izaje que
   abre cada sección, y los datos clave se muestran como placas de carga del equipo.
   Tema día/noche: tokens en :root (día) y redefinidos para noche. */

:root {
  /* marca (fijos) */
  --acero: #1E3442;
  --acero-hondo: #152733;
  --ambar: #E8A400;
  --ambar-hondo: #B98000;
  --sobre-acero: #EEF3F5;
  --sobre-acero-2: #A9BCC6;
  --linea-acero: #2F4B5C;

  /* superficies y texto (cambian con el tema) */
  --fondo: #E6EBEC;        /* concreto */
  --papel: #F5F7F7;
  --tarjeta: #FFFFFF;
  --tinta: #13222B;
  --tinta-2: #4A5C67;
  --linea: #C6D0D4;
  --banda-acero: #1E3442;
  --banda-noche: #101C23;
  --banda-ambar: #E8A400;
  --sobre-ambar: #1A1406;
  --enfoque: #0B6FB8;
  --sombra: 0 10px 30px -18px rgba(19, 34, 43, 0.45);

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texto: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radio: 6px;
  --ancho: 1180px;
  color-scheme: light;
}

/* Sin JavaScript: sigue el modo del sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0F1A20; --papel: #142229; --tarjeta: #1A2B34; --tinta: #E3EAEE; --tinta-2: #9DB0BA;
    --linea: #2A3E4A; --banda-acero: #172A35; --banda-noche: #0A1318; --banda-ambar: #1A2B34;
    --sobre-ambar: #E3EAEE; --enfoque: #6CB6F0; --sombra: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #0F1A20; --papel: #142229; --tarjeta: #1A2B34; --tinta: #E3EAEE; --tinta-2: #9DB0BA;
  --linea: #2A3E4A; --banda-acero: #172A35; --banda-noche: #0A1318; --banda-ambar: #1A2B34;
  --sobre-ambar: #E3EAEE; --enfoque: #6CB6F0; --sombra: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--texto); font-size: 17px; line-height: 1.55; color: var(--tinta); background: var(--fondo); transition: background-color .25s ease, color .25s ease; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--acero); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--enfoque); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ambar); color: #1A1406; padding: 8px 14px; border-radius: var(--radio); font-weight: 700; }
.skip:focus { left: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--ancho); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

/* ---------- tipografía ---------- */
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.02; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.lead { font-size: 18.5px; color: var(--tinta-2); max-width: 46ch; }
.lead-light { color: var(--sobre-acero-2); }
.fine { font-size: 14px; color: var(--tinta-2); }
.fine-light { color: var(--sobre-acero-2); }
.fine a, .fine-light a { color: inherit; }
.muted { color: var(--tinta-2); }
.small { font-size: 15px; }
.align-start { align-self: flex-start; }

/* eyebrow: la línea ámbar es el "cable" que abre la sección */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ambar-hondo); }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--ambar); border-radius: 2px; }
:root[data-theme="dark"] .eyebrow { color: var(--ambar); }
.eyebrow-light { color: var(--ambar); }
.eyebrow-ink { color: var(--sobre-ambar); }
.eyebrow-ink::before { background: var(--sobre-ambar); }
:root[data-theme="dark"] .eyebrow-ink { color: var(--ambar); }
:root[data-theme="dark"] .eyebrow-ink::before { background: var(--ambar); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--radio); border: 2px solid transparent; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 16px; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 20px; }
.btn-amber { background: var(--ambar); color: #1A1406; }
.btn-amber:hover { background: #F5B51C; }
.btn-outline-light { border-color: rgba(238, 243, 245, .7); color: var(--sobre-acero); background: transparent; }
.btn-outline-light:hover { background: var(--sobre-acero); color: var(--acero); }
.btn-outline-dark { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn-outline-dark:hover { background: var(--tinta); color: var(--fondo); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--acero); color: var(--sobre-acero); border-bottom: 1px solid var(--linea-acero); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .03em; white-space: nowrap; }
.brand-tag { font-size: 12px; letter-spacing: .08em; color: var(--sobre-acero-2); margin-top: 4px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--sobre-acero); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--ambar); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linea-acero); background: var(--acero-hondo); color: var(--sobre-acero); cursor: pointer; font-size: 14px; font-weight: 600; }
.theme-toggle:hover { border-color: var(--ambar); color: var(--ambar); }
.theme-toggle .ico-sol { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sol { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-luna { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radio); border: 1px solid var(--linea-acero); background: transparent; cursor: pointer; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--sobre-acero); content: ""; }
.menu-bars { top: 21px; }
.menu-bars::before { top: -7px; left: 0; }
.menu-bars::after { top: 7px; left: 0; }
@media (max-width: 940px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--acero); border-bottom: 1px solid var(--linea-acero); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--linea-acero); }
  .nav-cta { margin-top: 14px; }
}
@media (max-width: 480px) { .theme-label { display: none; } .brand-tag { display: none; } .brand-name { font-size: 21px; } .brand-mark { width: 38px; height: 38px; } }

/* ---------- portada ---------- */
.hero { position: relative; color: var(--sobre-acero); background: var(--acero-hondo); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16, 30, 39, .94) 0%, rgba(21, 39, 51, .84) 42%, rgba(21, 39, 51, .35) 100%); }
.hero-inner { display: flex; flex-direction: column; gap: 20px; padding-block: clamp(48px, 9vw, 104px) clamp(36px, 6vw, 64px); }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 7vw, 82px); line-height: .95; text-transform: uppercase; max-width: 13ch; text-wrap: balance; }
.hero-sub { font-size: clamp(18px, 2vw, 21px); color: var(--sobre-acero-2); max-width: 44ch; }
.plates { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; max-width: 860px; }
.plate { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid rgba(232, 164, 0, .55); border-left: 4px solid var(--ambar); border-radius: 4px; background: rgba(13, 25, 32, .62); }
.plate-k { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--sobre-acero-2); }
.plate-v { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.05; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- bandas ---------- */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-concreto { background: var(--fondo); }
.band-papel { background: var(--papel); }
.band-acero { background: var(--banda-acero); color: var(--sobre-acero); }
.band-noche { background: var(--banda-noche); color: var(--sobre-acero); }
.band-ambar { background: var(--banda-ambar); color: var(--sobre-ambar); }
:root[data-theme="dark"] .band-ambar { border-block: 3px solid var(--ambar); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 4vw, 40px); }
.section-head-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-note { color: var(--sobre-acero-2); max-width: 40ch; font-size: 16px; }
.section-note a { color: var(--ambar); }

/* ---------- guía ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-head { display: flex; flex-direction: column; gap: 12px; }
.guide-options { display: grid; gap: 10px; }
.guide-option { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--radio); border: 1px solid var(--linea); background: var(--tarjeta); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.guide-option:hover { border-color: var(--ambar); }
.guide-option[aria-pressed="true"] { border-color: var(--ambar); box-shadow: inset 4px 0 0 var(--ambar), var(--sombra); }
.go-t { font-weight: 700; font-size: 17px; }
.go-s { font-size: 14.5px; color: var(--tinta-2); }
.guide-result { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radio); background: var(--acero); color: var(--sobre-acero); position: sticky; top: 96px; }
.guide-result .eyebrow { color: var(--ambar); }
.guide-eq { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.guide-result p:not(.eyebrow):not(.guide-eq) { color: var(--sobre-acero-2); }
.guide-caps { font-weight: 700; color: var(--sobre-acero) !important; border-top: 1px solid var(--linea-acero); padding-top: 10px; }
.guide-result .btn { margin-top: 6px; align-self: flex-start; }
@media (max-width: 980px) { .guide { grid-template-columns: 1fr; } .guide-result { position: static; } .guide-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); } }

/* ---------- flota ---------- */
.fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fleet-card { display: flex; flex-direction: column; border-radius: var(--radio); overflow: hidden; background: var(--acero-hondo); border: 1px solid var(--linea-acero); }
:root[data-theme="dark"] .fleet-card { background: #10202A; }
.fleet-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fleet-img.pos-crane { object-position: center 70%; }
.fleet-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.fleet-body p:not(.fleet-plate) { color: var(--sobre-acero-2); }
.fleet-body .btn { margin-top: auto; align-self: flex-start; }
.fleet-plate { display: flex; flex-wrap: wrap; gap: 6px; }
.fleet-plate span { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .03em; padding: 3px 10px; border-radius: 3px; background: var(--ambar); color: #1A1406; font-variant-numeric: tabular-nums; }
.fleet-plate span + span { background: transparent; color: var(--ambar); border: 1px solid var(--ambar); }
.fine-light { margin-top: 18px; }
@media (max-width: 900px) { .fleet { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- servicios y proceso ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); }
.split > div { display: flex; flex-direction: column; gap: 12px; }
.services, .steps { list-style: none; padding: 0; display: flex; flex-direction: column; margin-top: 12px; }
.services li, .steps li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--linea); }
.services li:last-child, .steps li:last-child { border-bottom: 1px solid var(--linea); }
.services strong, .steps strong { font-size: 18px; }
.services span, .steps span { color: var(--tinta-2); }
.steps { counter-reset: paso; }
.steps li { counter-increment: paso; padding-left: 52px; position: relative; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; background: var(--acero); color: var(--ambar); }
:root[data-theme="dark"] .steps li::before { background: var(--ambar); color: #1A1406; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- trabajos ---------- */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reel { display: flex; flex-direction: column; gap: 10px; }
.reel-media { position: relative; aspect-ratio: 9 / 14; border-radius: var(--radio); overflow: hidden; background: #000; border: 1px solid var(--linea-acero); cursor: pointer; }
.reel-media video { width: 100%; height: 100%; object-fit: cover; }
.reel-badge { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; opacity: .92; pointer-events: none; }
.reel-media::after { content: ""; position: absolute; left: 12px; top: 12px; width: 0; height: 0; border-left: 14px solid rgba(255, 255, 255, .92); border-top: 9px solid transparent; border-bottom: 9px solid transparent; opacity: 0; transition: opacity .2s; pointer-events: none; }
.reel-media.is-paused::after { opacity: 1; }
.reel figcaption, .work figcaption { font-size: 15.5px; color: var(--sobre-acero-2); }
.reel figcaption strong, .work figcaption strong { color: var(--sobre-acero); }
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.work { display: flex; flex-direction: column; gap: 10px; }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radio); }
.work figcaption { min-height: 4.5em; }
.sectors { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sectors li { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 170px; padding: 20px 22px; border-radius: var(--radio); background: var(--acero); color: var(--sobre-acero); }
.sectors li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 19, 24, .15) 0%, rgba(10, 19, 24, .85) 100%), var(--foto) center / cover no-repeat; }
.sectors .s-construccion { --foto: url("../../fotos/camion-grua-izaje-de-vigas-de-acero.webp"); }
.sectors .s-mineria { --foto: url("../../fotos/camion-grua-articulada-en-zona-minera.webp"); }
.sectors .s-industria { --foto: url("../../fotos/grua-telescopica-montaje-de-estructura-metalica.webp"); }
.sectors .s-energia { --foto: url("../../fotos/grua-telescopica-todo-terreno-izaje-sector-gas.webp"); }
.sectors .s-infraestructura { --foto: url("../../fotos/camion-grua-articulada-maniobra-urbana.webp"); }
.sectors .s-eventos { --foto: url("../../fotos/manlift-articulado-electrico.webp"); }
.sector-name { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; color: #FFFFFF; }
.sector-desc { font-size: 15.5px; color: rgba(238, 243, 245, .9); }
@media (max-width: 760px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sectors { grid-template-columns: 1fr; } }
.cot-section { position: relative; overflow: hidden; isolation: isolate; }
.cot-section > .wrap { position: relative; z-index: 1; }
.cot-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Fondos fotográficos de sección: la foto se ve a través de una capa de color (--velo) que cambia con el modo día/noche */
.cot-bg img { width: 100%; height: 100%; object-fit: cover; }
.cot-bg::after { content: ""; position: absolute; inset: 0; background: var(--velo, rgba(30, 52, 66, .8)); }
.cotizar-section { --velo: rgba(30, 52, 66, .8); }
.faq-section, .guia-section { --velo: rgba(230, 235, 236, .8); }
.servicios-section { --velo: rgba(245, 247, 247, .8); }
:root[data-theme="dark"] .cotizar-section { --velo: rgba(16, 28, 35, .8); }
:root[data-theme="dark"] .faq-section, :root[data-theme="dark"] .guia-section { --velo: rgba(15, 26, 32, .8); }
:root[data-theme="dark"] .servicios-section { --velo: rgba(20, 34, 41, .8); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cotizar-section { --velo: rgba(16, 28, 35, .8); }
  :root:not([data-theme="light"]) .faq-section, :root:not([data-theme="light"]) .guia-section { --velo: rgba(15, 26, 32, .8); }
  :root:not([data-theme="light"]) .servicios-section { --velo: rgba(20, 34, 41, .8); }
}
.sec-photo { margin: 8px 0 0; }
.sec-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radio); }
.work-duo { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radio); overflow: hidden; }
.work-duo img { position: absolute; left: 0; width: 100%; height: calc(50% - 3px); aspect-ratio: auto; border-radius: 0; }
.work-duo img:first-child { top: 0; }
.work-duo img:last-child { top: calc(50% + 3px); }
@media (max-width: 900px) {
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .reel { scroll-snap-align: start; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- seguridad ---------- */
.safety { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: center; }
.safety > div { display: flex; flex-direction: column; gap: 12px; }
.band-ambar .lead { color: var(--sobre-ambar); opacity: .85; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 17.5px; padding: 14px 16px; border-radius: var(--radio); background: var(--acero); color: var(--sobre-acero); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--sobre-acero) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231E3442' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
:root[data-theme="dark"] .checks li { background: rgba(232, 164, 0, .08); box-shadow: inset 0 0 0 1px rgba(232, 164, 0, .25); }
:root[data-theme="dark"] .checks li::before { background-color: var(--ambar); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231A1406' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

/* ---------- preguntas frecuentes ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-head { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.faq-head .btn { align-self: flex-start; margin-top: 6px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--linea); border-radius: var(--radio); background: var(--tarjeta); transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: var(--ambar); box-shadow: var(--sombra); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; font-size: 17.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fondo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 12l5 5 5-5' fill='none' stroke='%23B98000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: var(--tinta-2); max-width: 64ch; }
.faq-a a { color: inherit; font-weight: 600; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* ---------- cotizador ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-head { display: flex; flex-direction: column; gap: 12px; }
.quote-direct { margin-top: 10px; padding: 14px 16px; border-left: 4px solid var(--ambar); background: var(--acero-hondo); border-radius: 4px; }
:root[data-theme="dark"] .quote-direct { background: #10202A; }
.quote-direct strong { font-family: var(--display); font-size: 26px; letter-spacing: .02em; }
.quote-direct span { color: var(--sobre-acero-2); font-size: 15px; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radio); background: var(--acero-hondo); border: 1px solid var(--linea-acero); }
:root[data-theme="dark"] .quote-form { background: #10202A; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--sobre-acero-2); }
.field label.is-disabled { opacity: .55; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border-radius: 4px; border: 1px solid var(--linea-acero); background: #0E1C24; color: var(--sobre-acero); color-scheme: dark; }
.field input::placeholder, .field textarea::placeholder { color: #7D919C; }
.field input:disabled { opacity: .5; }
.preview { display: flex; flex-direction: column; gap: 6px; }
.preview-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ambar); font-weight: 700; }
.preview-text { white-space: pre-wrap; word-break: break-word; font-family: var(--texto); font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: 4px; background: rgba(232, 164, 0, .08); border: 1px dashed rgba(232, 164, 0, .5); color: var(--sobre-acero); max-height: 220px; overflow: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--sobre-acero-2); }
.check input { margin-top: 4px; accent-color: var(--ambar); }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .quote-form { grid-template-columns: 1fr; } }

/* ---------- pie ---------- */
.site-footer { background: var(--banda-noche); color: var(--sobre-acero-2); padding-top: 48px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1fr; gap: 28px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-brand strong { color: var(--sobre-acero); font-family: var(--display); font-size: 22px; letter-spacing: .03em; }
.footer-h { color: var(--sobre-acero); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13.5px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ambar); }
.site-footer .fine { color: var(--sobre-acero-2); }
.book { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--linea-acero); border-radius: var(--radio); text-decoration: none; color: var(--sobre-acero); font-weight: 600; }
.book:hover { border-color: var(--ambar); color: var(--ambar); }
.footer-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--linea-acero); font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* botón flotante de WhatsApp */
.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1F9D55; color: #fff; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.wa-float:hover { background: #18834A; }

/* ---------- páginas legales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding-block: clamp(36px, 6vw, 64px) 80px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 32px; line-height: 1.6; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; text-transform: uppercase; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.2; }
.legal h3 { font-size: 19px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal ul, .legal ol { padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.legal a:not(.btn) { color: var(--ambar-hondo); font-weight: 600; }
:root[data-theme="dark"] .legal a:not(.btn) { color: var(--ambar); }
.legal .btn { color: #1A1406; }
:root[data-theme="dark"] .legal .btn { color: #1A1406; }
.legal .btn-outline-dark, :root[data-theme="dark"] .legal .btn-outline-dark { color: var(--tinta); }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.legal-nav a { color: var(--tinta-2); font-weight: 600; text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--ambar-hondo); text-decoration: underline; }
:root[data-theme="dark"] .legal-nav a[aria-current="page"] { color: var(--ambar); }
.legal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 24px; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px 20px; font-size: 16px; }
.legal-facts dt { color: var(--tinta-2); font-size: 14px; }
.legal-facts dd { font-weight: 600; margin: 0; }
.notice { border: 2px dashed var(--ambar-hondo); background: rgba(232, 164, 0, .12); border-radius: var(--radio); padding: 14px 18px; font-size: 15px; }
.def-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.def-cards > div { background: var(--tarjeta); border: 1px solid var(--linea); border-top: 4px solid var(--ambar); border-radius: var(--radio); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.help-box { background: var(--tarjeta); border: 1px solid var(--linea); border-left: 4px solid var(--ambar); border-radius: var(--radio); padding: clamp(18px, 3vw, 24px); display: flex; flex-direction: column; gap: 12px; }
.big-cta { background: var(--acero); color: var(--sobre-acero); border-radius: var(--radio); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.big-cta p { color: var(--sobre-acero-2); }
/* Libro de reclamaciones: selección de tipo y formulario de atención directa */
.libro-form { display: flex; flex-direction: column; gap: 32px; margin: 0; }
.tipo-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tipo-group legend { font-weight: 700; font-size: 17px; margin-bottom: 4px; padding: 0; }
.def-card { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; background: var(--tarjeta); border: 2px solid var(--linea); border-top: 4px solid var(--ambar); border-radius: var(--radio); padding: 16px 18px; transition: border-color .15s, box-shadow .15s; }
.def-card:hover { border-color: var(--ambar); }
.def-card:has(input:checked) { border-color: var(--ambar); box-shadow: var(--sombra); }
.def-card input { margin-top: 5px; width: 20px; height: 20px; flex: none; accent-color: var(--ambar); }
.def-body { display: flex; flex-direction: column; gap: 6px; }
.def-body strong { font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.def-body .muted { font-size: 15.5px; }
.atencion-panel { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.atencion-panel[hidden] { display: none; }
.atencion-panel .quote-form { border-radius: var(--radio); }
.atencion-panel .field label { color: var(--tinta-2); }
.libro-form .field input, .libro-form .field select, .libro-form .field textarea { color-scheme: inherit; background: var(--tarjeta); color: var(--tinta); border: 1px solid var(--linea); }
.libro-form .field input::placeholder, .libro-form .field textarea::placeholder { color: var(--tinta-2); opacity: .8; }
.atencion-panel .quote-form { background: var(--papel); border: 1px solid var(--linea); }
:root[data-theme="dark"] .atencion-panel .quote-form { background: var(--papel); }
.libro-form .field input:focus-visible, .libro-form .field textarea:focus-visible { outline: 3px solid var(--enfoque); outline-offset: 1px; }
.legal > p, .legal section > p, .legal section li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 420px) { .legal > p, .legal section > p, .legal section li { text-align: left; } }
.mini-footer { background: var(--banda-noche); color: var(--sobre-acero-2); font-size: 15px; }
.mini-footer .wrap { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Libro de reclamaciones: respaldo cuando el correo no se abre (v32) */
.libro-respaldo { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--linea); padding-top: 14px; }
.libro-respaldo[hidden] { display: none; }
.libro-respaldo .preview-text { color: var(--tinta); max-height: 260px; }
#l-detalle-nota { font-size: 13.5px; }
