/* =========================================================
   Agencia Aduanal de Occidente · Sistema visual del sitio
   Minimal institucional. Paleta del logo: azul marino #1F2D6C de base,
   turquesa #027E94 como único acento. Íconos propios (assets/icons.svg).
   Radios: 8px controles · 12px paneles y medios.
   ========================================================= */
:root {
  /* Tema claro (base) */
  --bg: #FFFFFF;
  --bg-2: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --line: rgb(21 31 78 / .09);
  --line-2: rgb(21 31 78 / .16);
  --hover-line: rgb(21 31 78 / .32);
  --text: #141C40;
  --text-2: #2E3858;
  --muted: #4E5876;
  --faint: #6A7390;
  --accent: #027E94;
  --accent-text: #016A7C;
  --accent-ink: #FFFFFF;
  --accent-soft: rgb(2 126 148 / .10);
  --btn-bg: #1F2D6C;
  --btn-ink: #FFFFFF;
  --btn-hover: #2A3B88;
  --sk-hi: #E4E9F1;
  --shadow: 0 1px 2px rgb(21 31 78 / .04), 0 14px 32px -16px rgb(21 31 78 / .14);
  --danger: #C0392B;
  --navy: #151F4E;
  --r: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  --gutter: 32px;
  --section: 136px;
  color-scheme: light;
}

/* Zonas oscuras sobre video (portada, banda, pie y menú transparente sobre la portada) */
.hero, .band, .footer, .nav:not(.is-solid):not(.is-open) {
  --bg: #151F4E;
  --bg-2: #131C47;
  --surface: #1B2760;
  --surface-2: #22306E;
  --line: rgb(255 255 255 / .1);
  --line-2: rgb(255 255 255 / .16);
  --hover-line: rgb(255 255 255 / .34);
  --text: #F1F4FA;
  --text-2: rgb(241 244 250 / .82);
  --muted: #B3BCD6;
  --faint: #8E98B8;
  --accent: #33B6CB;
  --accent-text: #5CC8D9;
  --btn-bg: #027E94;
  --btn-ink: #FFFFFF;
  --btn-hover: #0794AC;
  --shadow: none;
  color: var(--text);
}
@media (max-width: 900px) { :root { --gutter: 20px; --section: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(30px, 3.4vw, 48px); text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 54ch; margin-top: 18px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); color: var(--accent-text); font-weight: 500; }
.hint { font-size: 13px; color: var(--faint); }
.form-error { color: var(--danger); font-size: 14px; }

/* ---------- Íconos propios ---------- */
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ico--lg { width: 28px; height: 28px; }
.ico--xl { width: 40px; height: 40px; }

/* ---------- Marcador de sección: los tres puntos del logo ---------- */
.marker { display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); letter-spacing: .01em; margin-bottom: 22px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--primary, .btn--accent { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover, .btn--accent:hover { background: var(--btn-hover); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--hover-line); }
.btn--light { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn--light:hover { border-color: var(--hover-line); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--text); padding: 6px 0; }
.link-arrow .ico { color: var(--accent); width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Campos ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field select, .select-flag select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A1B0C6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid--3 { grid-template-columns: 1fr 1fr; }
  .form-grid--3 .field:last-child { grid-column: 1 / -1; }
}

/* Selector segmentado */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); }
.seg button {
  height: 38px; padding: 0 16px; border-radius: 6px; border: 0; background: transparent; color: var(--muted);
  cursor: pointer; font-weight: 500; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -2px 0 var(--accent); }
.seg button .ico { width: 18px; height: 18px; color: var(--accent); }
.seg--full { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg--full button { height: 44px; }

/* Panel plano */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .panel { padding: 20px; } }

/* Listas con guion fino */
.list, .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li, .ticks li { position: relative; padding-left: 24px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.list li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--accent); }

/* Banderas */
.flag { position: relative; display: inline-block; flex: none; overflow: hidden; width: 28px; aspect-ratio: 4 / 3; border-radius: 3px; box-shadow: 0 0 0 1px var(--line-2); background: var(--surface-2); }
.flag img { width: 100%; height: 100%; object-fit: cover; }
.flag--sm { width: 22px; border-radius: 2px; }
.select-flag { position: relative; display: block; }
.select-flag .flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.select-flag select { padding-left: 50px; }
.select-flag--lg select { height: 54px; font-size: 16.5px; font-weight: 500; padding-left: 54px; }
.select-flag--lg .flag { width: 26px; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 76px; border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s; }
.nav.is-solid { background: rgb(255 255 255 / .94); border-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { flex: none; }
/* Logo: transparente sobre fondos claros y en negativo (anillo blanco) sobre la portada */
.brand .logo-neg { display: none; }
.nav:not(.is-solid):not(.is-open) .brand .logo-pos { display: none; }
.nav:not(.is-solid):not(.is-open) .brand .logo-neg { display: block; }
.brand__name { max-width: 13ch; font-size: 16px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 32px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav__links a:not(.btn) { transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__menu-cta { display: none !important; }
.nav__burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav__burger .ico { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 76px 0 0 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); padding: 12px var(--gutter) 32px; font-size: 22px; font-weight: 500; color: var(--text);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: .25s var(--ease);
  }
  .nav__links a:not(.btn) { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav__menu-cta { display: inline-flex !important; margin-top: 28px; height: 54px; font-size: 16px; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; transform: none; }
  .nav.is-open { background: var(--bg); }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
}

/* ---------- Medios ---------- */
[data-media] { position: absolute; inset: 0; overflow: hidden; background: var(--surface) center / cover no-repeat; }
[data-media] video, [data-media] img, [data-media] .lottie { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-media] video { opacity: 0; transition: opacity 1s var(--ease); }
[data-media] video.is-ready { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { z-index: -2; background-image: url(/assets/video/hero.webp); background-position: 100% center; }
.hero__media video { object-position: 100% center; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(21 31 78 / .6) 0%, rgb(21 31 78 / 0) 20%),
    linear-gradient(90deg, rgb(21 31 78 / .9) 0%, rgb(21 31 78 / .55) 42%, rgb(21 31 78 / 0) 72%),
    linear-gradient(0deg, var(--navy) 0%, rgb(21 31 78 / 0) 34%);
}
.hero__inner { padding-top: 140px; padding-bottom: 96px; }
.hero__title { font-size: clamp(40px, 5.4vw, 76px); font-weight: 450; letter-spacing: -0.04em; line-height: 1.02; max-width: 15ch; text-wrap: balance; }
.hero__sub { margin-top: 24px; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--text-2); max-width: 46ch; line-height: 1.6; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.hero__ctas .link-arrow { margin-left: 16px; }
.hero .marker { color: var(--text-2); }
.hero__inner > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero__inner > :nth-child(2) { animation-delay: .08s; }
.hero__inner > :nth-child(3) { animation-delay: .16s; }
.hero__inner > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 767px), (orientation: portrait) {
  .hero__media { background-image: url(/assets/video/hero-m.webp); background-position: center; }
  .hero__media video { object-position: center; }
}
@media (max-width: 767px) {
  .hero { min-height: 92svh; }
  .hero__scrim { background: linear-gradient(180deg, rgb(21 31 78 / .55) 0%, rgb(21 31 78 / .15) 26%, rgb(21 31 78 / .7) 50%, rgb(21 31 78 / .9) 72%, var(--navy) 100%); }
  .hero__inner { padding-bottom: 48px; }
  .hero__title { font-size: clamp(36px, 10.5vw, 46px); }
  .hero__ctas { margin-top: 32px; }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas .link-arrow { margin: 8px 0 0; }
}

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.pillar { display: flex; gap: 18px; padding-right: 40px; }
.pillar .ico { color: var(--accent); margin-top: 2px; }
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.pillar strong { display: block; color: var(--text); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 48px; } }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; padding-top: var(--section); align-items: center; }
.about__stat { display: flex; align-items: baseline; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.about__stat strong { font-size: 56px; font-weight: 400; letter-spacing: -0.04em; color: var(--accent-text); line-height: 1; }
.about__stat span { color: var(--muted); font-size: 15px; max-width: 18ch; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__card h3 { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.about__card h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 18px; }
.about__card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } .about__cards { grid-template-columns: 1fr; } }

/* ---------- Servicios: índice editorial ---------- */
.services { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; padding-top: var(--section); padding-bottom: var(--section); align-items: start; }
.services__aside { position: sticky; top: 120px; }
.services__media { position: relative; margin: 44px 0 0; aspect-ratio: 4 / 5; max-height: 460px; width: 100%; border-radius: var(--r-lg); overflow: hidden; }
.index { border-top: 1px solid var(--line); }
.index__item { border-bottom: 1px solid var(--line); }
.index__item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 20px;
  padding: 28px 0;
}
.index__item summary::-webkit-details-marker { display: none; }
.index__icon { color: var(--accent); }
.index__title { font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; transition: color .2s; }
.index__title small { display: block; font-size: 14.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.index__item summary:hover .index__title { color: var(--accent-text); }
.index__toggle { position: relative; width: 16px; height: 16px; justify-self: end; flex: none; }
.index__toggle::before, .index__toggle::after { content: ""; position: absolute; left: 0; top: 7.25px; width: 16px; height: 1.5px; background: var(--muted); border-radius: 1px; transition: transform .3s var(--ease), background .2s; }
.index__toggle::after { transform: rotate(90deg); }
details[open] > summary .index__toggle::after { transform: rotate(0deg); }
details[open] > summary .index__toggle::before, details[open] > summary .index__toggle::after { background: var(--accent); }
.index__body { padding: 0 0 32px 64px; display: grid; gap: 20px; justify-items: start; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; gap: 40px; }
  .services__aside { position: static; }
  .services__media { aspect-ratio: 16 / 10; margin-top: 32px; }
  .index__item summary { grid-template-columns: 32px 1fr 20px; gap: 16px; padding: 22px 0; }
  .index__icon { width: 26px; height: 26px; }
  .index__body { padding-left: 48px; }
}

/* ---------- Otros servicios y valor agregado ---------- */
.extras { padding-bottom: var(--section); margin-top: calc(var(--section) * -0.4); }
.extras__head { margin-bottom: 28px; }
.extras__head .lead { margin-top: 10px; }
.extras__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.extras__list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.extras__list .ico { color: var(--accent); flex: none; width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 900px) { .extras { margin-top: 0; } .extras__list { grid-template-columns: 1fr; } }

/* ---------- Banda con declaración ---------- */
.band { position: relative; isolation: isolate; min-height: 72svh; display: flex; align-items: center; overflow: hidden; }
.band__media { z-index: -2; }
.band__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(21 31 78 / .9) 0%, rgb(21 31 78 / .55) 60%, rgb(21 31 78 / .4) 100%); }
.band__text { font-size: clamp(28px, 3.8vw, 54px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.12; text-wrap: balance; }
.band__text em { font-style: normal; color: var(--accent-text); }
@media (min-width: 901px) { .band__text { padding-right: 34%; } }
@media (max-width: 767px) { .band { min-height: 64svh; } .band__scrim { background: linear-gradient(0deg, rgb(21 31 78 / .9) 0%, rgb(21 31 78 / .7) 45%, rgb(21 31 78 / .55) 100%); } }

/* ---------- Proceso ---------- */
.process { padding-top: var(--section); padding-bottom: 40px; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 28px 28px 0 0; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--accent); }
.steps__n { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.steps .ico { color: var(--accent); margin: 22px 0 16px; }
.steps h3 { font-size: 17.5px; letter-spacing: -0.015em; }
.steps p { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; margin-top: 36px; border-top: 0; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
  .steps li::before { display: none; }
  .steps__n { grid-row: 1 / span 3; padding-top: 4px; }
  .steps .ico { display: none; }
  .steps p { margin-top: 4px; }
}

/* ---------- Clientes ---------- */
.clients { padding-top: var(--section); }
.clients h2 { font-size: 15px; font-weight: 500; color: var(--muted); text-align: center; letter-spacing: 0; }
.clients__grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.clients__grid li { display: grid; place-items: center; height: 120px; padding: 20px 28px; background: var(--bg); }
.clients__grid img { max-width: 100%; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.clients__grid li:hover img { filter: none; opacity: 1; }
@media (max-width: 767px) { .clients__grid li { height: 84px; padding: 12px; } .clients__grid img { max-height: 40px; } }

/* ---------- Consultas TICA ---------- */
.tica { padding-top: var(--section); }
.tica__head { max-width: 720px; margin-bottom: 40px; }
.tica__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tica__card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.tica__card:hover { border-color: var(--hover-line); transform: translateY(-2px); }
.tica__card > .ico { color: var(--accent); margin-bottom: 6px; }
.tica__card strong { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.tica__card span { color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.tica__card em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 14px; font-weight: 500; color: var(--accent-text); margin-top: 8px; }
.tica__card em .ico { width: 16px; height: 16px; }
.tica__note { margin-top: 16px; }
@media (max-width: 900px) { .tica__grid { grid-template-columns: 1fr; } .tica__card { padding: 22px; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: var(--section); padding-bottom: 40px; }
.done-mark { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); }
/* Botones de contacto directo */
.cbtns { display: grid; gap: 12px; }
.cbtn {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s;
}
.cbtn:hover { border-color: var(--hover-line); }
.cbtn:active { transform: translateY(1px); }
.cbtn > .ico:first-child { color: var(--accent); }
.cbtn strong { display: block; font-size: 17px; font-weight: 500; }
.cbtn small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.cbtn > .ico:last-child { color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.cbtn:hover > .ico:last-child { transform: translateX(4px); color: var(--text); }
.cbtn--primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.cbtn--primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.cbtn--primary > .ico:first-child { color: var(--accent); }
.cbtn--primary small, .cbtn--primary > .ico:last-child { color: var(--btn-ink); }
.cbtn--primary small { opacity: .75; }
.contact__addr { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.contact__addr .ico { color: var(--accent); width: 18px; height: 18px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 28px; } .cbtn { padding: 16px 18px; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; padding-top: var(--section); padding-bottom: var(--section); align-items: start; }
.faq__aside { position: sticky; top: 112px; }
.faq__aside .lead { max-width: 36ch; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 64ch; animation: fade .3s var(--ease); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 28px; } .faq__aside { position: static; } .faq summary { font-size: 16px; } }

/* ---------- Pie ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg-2); }
.footer::before {
  content: ""; position: absolute; z-index: -1; right: -160px; top: -120px; width: 560px; aspect-ratio: 1;
  background: url(/assets/brand/ring-white.svg) center / contain no-repeat; opacity: .06; pointer-events: none;
}
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px 56px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { flex: none; }
.footer__name { font-weight: 500; font-size: 18.5px; }
.footer__tag { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; color: var(--muted); }
.footer__col a:hover { color: var(--text); }
.footer__head { color: var(--text); font-weight: 500; margin-bottom: 4px; }
.footer__copy { grid-column: 1 / -1; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; }
.footer__copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer__sign { display: inline-flex; align-items: center; gap: 16px; color: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.footer__sign img { height: 22px; width: auto; opacity: .85; transition: opacity .2s; }
.footer__sign:hover img { opacity: 1; }
.footer--slim { padding: 28px 0; }
.footer--slim::before { display: none; }
.footer--slim .footer__copy { border: 0; padding: 0; margin: 0; }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* =========================================================
   Página de solicitud de cotización (/cotizar)
   ========================================================= */
.qpage { padding-top: 120px; padding-bottom: 72px; }
.qhead { margin-bottom: 36px; max-width: 720px; }
.qhead h1 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 450; letter-spacing: -0.035em; }
.qhead .lead { margin-top: 12px; font-size: 16px; }
.rq { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rq__fields { display: grid; gap: 28px; }
.rq__group { display: grid; gap: 16px; }
.rq__group h2 { font-size: 15px; font-weight: 500; color: var(--text); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.req { color: var(--accent-text); }
.rq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq__aside { display: grid; gap: 16px; position: sticky; top: 96px; }
.rq__aside h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.rq__steps { display: grid; gap: 14px; counter-reset: s; }
.rq__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.5; counter-increment: s; }
.rq__steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-text); font: 500 12.5px var(--mono); }
.rq__info { display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.rq__info p { display: flex; gap: 10px; align-items: flex-start; }
.rq__info .ico { color: var(--accent); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.rq__info a:hover { color: var(--text); }
.rq__or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; margin: -12px 0; }
.rq__or::before, .rq__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn--wa { background: #1FAF54; color: #fff; border-color: transparent; }
.btn--wa:hover { background: #179446; }
.rq__wa-num { font-weight: 400; opacity: .85; }
.rq__wa-num:not(:empty)::before { content: "· "; }
@media (max-width: 640px) {
  .btn--wa { flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; row-gap: 2px; white-space: normal; }
  .rq__wa-num { flex-basis: 100%; text-align: center; font-size: 14px; }
  .rq__wa-num:not(:empty)::before { content: none; }
}
.rq__done { text-align: center; padding: 48px 8px; }
.rq__done h2 { font-size: 26px; margin: 18px 0 4px; }
.rq__done .lead { margin-left: auto; margin-right: auto; margin-bottom: 24px; }
@media (max-width: 1023px) { .rq { grid-template-columns: 1fr; } .rq__aside { position: static; } }
@media (max-width: 767px) { .qpage { padding-top: 96px; } .rq .form-grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab {
  position: fixed; z-index: 40; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: #1FAF54; color: #fff; font-weight: 500; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 30px -8px rgb(21 31 78 / .45); transition: transform .2s var(--ease), background .2s;
}
.wa-fab:hover { background: #179446; transform: translateY(-2px); }
.wa-fab .ico { width: 24px; height: 24px; }
@media (max-width: 640px) { .wa-fab { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); } .wa-fab span { display: none; } }

/* ---------- Utilidades ---------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: var(--r); font-size: 14.5px; font-weight: 500; }
.sk { border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2) 0%, var(--sk-hi) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .hero__inner > * { opacity: 1; transform: none; }
}
