/* LOTRE Investments — página principal pública */
:root {
    --navy: #0b3a53;
    --navy-deep: #08293b;
    --night: #061d2a;
    --navy-ink: #0e1a24;
    --orange: #ff5a1f;
    --orange-press: #e64a12;
    /* Variantes accesibles: botones con texto blanco (4.8:1) y texto naranja sobre fondo claro (5.2:1) */
    --orange-btn: #cf400d;
    --orange-btn-hover: #b83a0a;
    --orange-ink: #c2410c;
    --orange-tint: #fff0e9;
    --teal: #1f7a8c;
    --tint: #eef3f6;
    --line: #d5e0e7;
    --muted: #3d4d59;
    --on-navy: #d6e6ee;
    --on-navy-2: #a9c2d0;
    --gutter: max(5vw, 16px);
    --topbar-h: 40px;
    --header-h: 72px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --display: Archivo, "Helvetica Neue", sans-serif;
    --body: Inter, system-ui, sans-serif;
    --shadow: 0 18px 40px -24px rgba(8, 41, 59, .35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font: 16px/1.55 var(--body);
    color: var(--navy-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--orange); color: #fff; }
img, svg { display: block; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.skip {
    position: fixed; left: 16px; top: -60px; z-index: 60;
    background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 999px;
    font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; color: #fff; }

.ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 14px 26px; border-radius: 999px;
    font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
    border: 1px solid transparent; background: transparent; color: inherit;
    transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease-out), box-shadow .25s;
}
.btn .ico { transition: transform .3s var(--ease-out); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--orange-btn); color: #fff; box-shadow: 0 12px 24px -14px rgba(207, 64, 13, .9); }
.btn-accent:hover { background: var(--orange-btn-hover); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { color: var(--navy); background: #fff; border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--night); color: var(--on-navy-2); font-size: 13px; height: var(--topbar-h); display: flex; align-items: center; padding: 0 var(--gutter); }
.topbar-row { width: 100%; display: flex; align-items: center; gap: 28px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; color: var(--on-navy-2); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .ico { width: 15px; height: 15px; color: var(--orange); }
.topbar-place { margin-left: auto; }
@media (max-width: 760px) { .topbar { display: none; } :root { --topbar-h: 0px; } }

/* ---------- Header flotante y fijo ---------- */
.site-header {
    position: fixed; left: 0; right: 0; z-index: 40;
    top: calc(var(--topbar-h) + 14px);
    padding: 0 var(--gutter);
    transition: top .4s var(--ease-out);
}
.site-header.is-solid { top: 12px; }
.nav {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 16px 28px;
    min-height: var(--header-h); padding: 10px 10px 10px 24px;
    border-radius: 999px;
    /* Sobre el hero: cristal oscuro con texto blanco */
    background: rgba(8, 41, 59, .38);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    transition: background-color .35s, border-color .35s, box-shadow .35s, color .35s;
}
@supports (backdrop-filter: blur(8px)) { .nav { backdrop-filter: blur(14px) saturate(1.3); } }
/* Al fijarse: blanco sólido con texto azul para contrastar */
.site-header.is-solid .nav, .site-header.menu-open .nav {
    /* Se mantiene oscuro para que el texto blanco del logo siga visible */
    background: var(--night); border-color: rgba(255,255,255,.12); color: #fff;
    box-shadow: 0 16px 40px -18px rgba(8, 41, 59, .45);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: inherit; }
/* Logo original sin editar: se encuadra con CSS el área visible (554,234)-(1337,841) del PNG de 1920×1080 */
.brand-logo { display: block; position: relative; overflow: hidden; flex-shrink: 0; height: 60px; aspect-ratio: 783 / 607; }
.brand-logo img { position: absolute; max-width: none; width: 245.21%; height: auto; left: -70.75%; top: -38.55%; }
.footer-brand-col .brand-logo { height: 110px; }
.brand-name { font: 800 20px/1.1 var(--display); letter-spacing: -0.01em; }
.brand-name span { display: block; font-weight: 500; font-size: 13px; opacity: .8; }

.nav-links { display: flex; align-items: center; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: inherit; text-decoration: none; padding: 10px 0; position: relative; }
.nav-links a:not(.btn):not(.nav-login)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-links a:not(.btn):not(.nav-login):hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-links .nav-login {
    padding: 10px 18px !important; border: 1px solid currentColor; border-radius: 999px; font-weight: 600; opacity: .9;
}
.nav-links .nav-login:hover { background: var(--navy); border-color: var(--navy); color: #fff; opacity: 1; }
.nav-cta { min-height: 48px; padding: 12px 22px; }

.menu-btn {
    display: none; width: 48px; height: 48px; place-items: center; cursor: pointer;
    border: 0; border-radius: 50%; background: var(--orange-btn); color: #fff;
}
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; overflow: visible; }
.menu-btn path { transition: transform .3s var(--ease-out), opacity .2s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
    :root { --header-h: 64px; }
    .nav { padding: 8px 8px 8px 18px; position: relative; }
    .menu-btn { display: grid; }
    .nav-links {
        position: absolute; top: calc(100% + 10px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; color: var(--navy); padding: 8px 20px 20px; border-radius: var(--r-lg);
        box-shadow: 0 28px 48px -20px rgba(8,41,59,.5);
        font-size: 17px;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .25s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
    }
    .site-header.menu-open .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .nav-links a:not(.btn)::after { display: none; }
    .nav-links .nav-login { margin-top: 16px; text-align: center; border-color: var(--line); }
    .nav-cta { margin-top: 10px; }
}

/* ---------- Selector de idioma ---------- */
.lang { position: relative; flex-shrink: 0; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 12px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(255,255,255,.08);
    color: inherit; font: 700 14px/1 var(--display); letter-spacing: .04em;
    transition: background-color .25s, border-color .25s, color .25s;
}
.lang-btn:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.lang .flag { width: 22px; height: 15px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(8,41,59,.15); }
.lang-btn .chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 12px); z-index: 5; min-width: 200px;
    padding: 6px; background: #fff; border-radius: var(--r-md);
    box-shadow: 0 24px 48px -18px rgba(8,41,59,.5), 0 0 0 1px rgba(8,41,59,.06);
    animation: lang-in .25s var(--ease-out);
}
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm);
    color: var(--navy-ink); text-decoration: none; font-weight: 500; font-size: 15px;
    transition: background-color .2s, color .2s;
}
.lang-menu a:hover { background: var(--tint); color: var(--navy); }
.lang-menu a[aria-current="true"] { background: var(--orange-tint); color: var(--orange-ink); font-weight: 600; }
.lang-menu .check { margin-left: auto; width: 18px; height: 18px; }
@media (max-width: 1080px) {
    .lang { order: 2; margin-left: auto; }
    .menu-btn { order: 3; }
    .lang-btn { height: 44px; padding: 0 10px; gap: 6px; }
}
@media (max-width: 480px) {
    .nav { gap: 10px; padding-left: 14px; }
    .brand { gap: 10px; }
    .brand-logo { height: 50px; }
    .brand-name { font-size: 18px; }
    .brand-name span { font-size: 12px; }
    .lang-btn .chev { display: none; }
    .lang-btn { padding: 0 12px; }
    .menu-btn { width: 44px; height: 44px; }
}

/* ---------- Hero / carrusel ---------- */
.hero { background: var(--navy); color: #fff; }
.carousel {
    --interval: 7000ms;
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(calc(100svh - var(--topbar-h)), 900px);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.slides { position: absolute; inset: 0; z-index: -3; }
.slide {
    position: absolute; inset: 0; margin: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 1.4s var(--ease-out), visibility 0s linear 1.4s;
}
.slide img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.12); filter: blur(6px) saturate(.9);
    transition: transform 1.6s var(--ease-out), filter 1.4s var(--ease-out);
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease-out), visibility 0s; }
.slide.is-active img {
    transform: scale(1.04); filter: none;
    animation: drift calc(var(--interval) + 2000ms) linear 1.4s both;
}
.carousel.is-paused .slide.is-active img { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-1%); } }

.hero-shade {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8,41,59,.75) 0%, rgba(8,41,59,0) 28%),
        linear-gradient(0deg, rgba(8,41,59,.92) 0%, rgba(8,41,59,.35) 30%, rgba(8,41,59,0) 50%),
        linear-gradient(90deg, rgba(11,58,83,.92) 0%, rgba(11,58,83,.7) 36%, rgba(11,58,83,.1) 74%, rgba(11,58,83,0) 100%);
}
.hero-ghost {
    position: absolute; z-index: -1; left: 50%; top: calc(var(--header-h) + 40px); transform: translateX(-50%);
    font: 900 clamp(90px, 17vw, 280px)/.8 var(--display); letter-spacing: -0.03em; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.16);
    pointer-events: none; user-select: none;
}

.hero-body {
    width: 100%;
    padding: calc(var(--header-h) + 110px) var(--gutter) 36px;
    max-width: calc(1240px + 2 * var(--gutter));
    display: flex; flex-direction: column; gap: clamp(40px, 8vh, 96px);
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 660px; }
.hero h1 {
    font-weight: 800; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.03em;
    text-shadow: 0 2px 24px rgba(8,41,59,.35);
}
.hero-copy p { font-size: 18px; line-height: 1.6; max-width: 34em; color: var(--on-navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-controls {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
    padding: 20px 260px 0 0; border-top: 1px solid rgba(255,255,255,.22);
}
.caption { display: flex; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 500; color: #fff; min-height: 1.55em; }
.caption-count { font: 700 14px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--orange); letter-spacing: .04em; white-space: nowrap; }
.caption [data-caption-text] { transition: opacity .35s, transform .5s var(--ease-out); }
.caption.is-swapping [data-caption-text] { opacity: 0; transform: translateY(6px); }

.dots { display: flex; gap: 4px; }
.dot { width: 40px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot span { position: relative; width: 32px; height: 3px; background: rgba(255,255,255,.3); overflow: hidden; border-radius: 2px; transition: background-color .2s; }
.dot:hover span { background: rgba(255,255,255,.55); }
.dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.dot[aria-current="true"] span::after { background: var(--orange); transform: scaleX(1); }
.carousel.is-playing .dot[aria-current="true"] span::after { animation: fill var(--interval) linear both; }
.carousel.is-paused .dot[aria-current="true"] span::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Bloque naranja en la esquina */
.hero-corner {
    position: absolute; right: 0; bottom: 0;
    display: flex; gap: 10px; padding: 22px var(--gutter) 22px 28px;
    background: var(--orange); border-top-left-radius: var(--r-lg);
}
.hero-corner::before, .hero-corner::after {
    /* esquinas cóncavas que unen el bloque con la foto */
    content: ""; position: absolute; width: var(--r-lg); height: var(--r-lg);
    background: radial-gradient(circle at 0 0, transparent calc(var(--r-lg) - .5px), var(--orange) var(--r-lg));
}
.hero-corner::before { right: 0; bottom: 100%; }
.hero-corner::after { right: 100%; bottom: 0; }
.round-btn {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    border: 0; background: #fff; color: var(--navy);
    transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.round-btn:hover { background: var(--navy-deep); color: #fff; }
.round-btn:active { transform: scale(.95); }
.round-btn[data-toggle] { background: var(--navy-deep); color: #fff; }
.round-btn[data-toggle]:hover { background: #fff; color: var(--navy); }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn .i-play { fill: currentColor; stroke: none; display: none; }
.carousel.is-paused .round-btn .i-play, .carousel:not(.is-playing) .round-btn .i-play { display: block; }
.carousel.is-paused .round-btn .i-pause, .carousel:not(.is-playing) .round-btn .i-pause { display: none; }

@media (max-width: 760px) {
    .carousel { min-height: max(680px, 100svh); }
    .hero-body { padding-top: calc(var(--header-h) + 70px); padding-bottom: 110px; gap: 36px; }
    .hero-shade { background: linear-gradient(180deg, rgba(8,41,59,.8) 0%, rgba(8,41,59,.5) 30%, rgba(8,41,59,.72) 60%, rgba(8,41,59,.95) 100%); }
    .hero-controls { padding-right: 0; }
    .caption { font-size: 14px; }
    .dots { gap: 2px; }
    .dot { width: 26px; }
    .dot span { width: 20px; }
    .hero-corner { padding: 16px var(--gutter) 16px 20px; }
    .round-btn { width: 46px; height: 46px; }
    .hero-ghost { display: none; }
}
@media (max-width: 360px) { .brand-name span { display: none; } }

/* ---------- Línea de rutas ---------- */
.routes { background: var(--navy-deep); color: #fff; padding: 28px var(--gutter); }
.routes-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 56px; }
.routes-title { font: 700 15px/1.3 var(--display); color: var(--on-navy-2); }
.route-line { position: relative; display: flex; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--teal) transparent; padding: 4px 2px 6px; }
.route-line li {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 22px 28px 0 0; flex: 1 0 auto; min-width: max-content;
}
.route-line li:last-child { flex: 0 0 auto; padding-right: 0; }
.route-line li::before { content: ""; position: absolute; top: 6px; left: 14px; right: 4px; border-top: 2px dashed rgba(255,255,255,.28); }
.route-line li:last-child::before { display: none; }
.route-line li::after {
    content: ""; position: absolute; top: 1px; left: 0; width: 8px; height: 8px; border-radius: 50%;
    background: var(--navy-deep); border: 2px solid #fff;
}
.route-line li.origin::after { width: 10px; height: 10px; top: 0; background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,31,.25); }
.route-line li.origin::before { border-top: 2px solid var(--orange); }
.route-line .code { font: 800 22px/1 var(--display); letter-spacing: .02em; }
.route-line .origin .code { color: var(--orange); }
.route-line .city { font-size: 13px; color: var(--on-navy-2); }
@media (max-width: 760px) {
    .routes-inner { grid-template-columns: 1fr; gap: 16px; }
    .routes-title br { display: none; }
    .route-line { scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; }
    .route-line li { scroll-snap-align: start; min-width: 92px; }
}

/* ---------- Secciones ---------- */
.section { padding: 104px var(--gutter); }
.section-tint { background: var(--tint); }
.section h2, .backing h2, .footer-cta h2 { font-weight: 800; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }
.lead { font-size: 17px; color: var(--muted); }
.stack-40 { display: flex; flex-direction: column; gap: 56px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.badge-ico {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: var(--orange-btn); color: #fff;
}
.badge-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Servicios */
.services-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.services-intro { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 40px); }
.intro-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-top: 8px; }
.intro-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.intro-photo figcaption {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); font-size: 14px; color: var(--muted);
}
.intro-photo figcaption strong { display: block; color: var(--navy-ink); font: 700 16px/1.25 var(--display); }
.manifest { display: flex; flex-direction: column; gap: 12px; }
.manifest li {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; row-gap: 6px;
    padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
    transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.manifest li:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-ico {
    grid-row: span 2; width: 56px; height: 56px; border-radius: var(--r-sm); display: grid; place-items: center;
    background: var(--orange-tint); color: var(--orange-ink); transition: background-color .3s, color .3s;
}
.manifest li:hover .svc-ico { background: var(--orange-btn); color: #fff; }
.svc-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.manifest h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; align-self: end; }
.manifest p { color: var(--muted); max-width: 58ch; }
@media (max-width: 900px) {
    .services-layout { grid-template-columns: 1fr; }
    .services-intro { position: static; }
}
@media (max-width: 480px) {
    .manifest li { grid-template-columns: 1fr; padding: 22px; }
    .svc-ico { grid-row: auto; margin-bottom: 8px; }
}

/* Banda en movimiento */
.marquee { overflow: hidden; padding: 30px 0; border-block: 1px solid var(--line); background: #fff; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 900 clamp(40px, 6vw, 84px)/1 var(--display); letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.marquee i svg { width: clamp(26px, 3vw, 40px); height: auto; fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Commodities: mosaico fotográfico */
.goods-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px 64px; align-items: end; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 16px; }
.tile { grid-column: span 4; }
.tile:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.tile:nth-child(2), .tile:nth-child(3) { grid-column: span 5; }
.tile a {
    position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--r-lg);
    color: #fff; text-decoration: none; background: var(--navy); isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.tile a::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(8,41,59,.95) 0%, rgba(8,41,59,.8) 34%, rgba(8,41,59,.25) 64%, rgba(8,41,59,0) 85%);
}
.tile a:hover img { transform: scale(1.06); }
.tile a:focus-visible { outline-offset: 4px; }
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.tile-title { font: 800 24px/1.15 var(--display); letter-spacing: -0.01em; }
.tile:nth-child(1) .tile-title { font-size: clamp(28px, 2.8vw, 40px); }
.tile-desc { font-size: 15px; color: var(--on-navy); max-width: 40ch; }
.tile-go {
    position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: var(--navy);
    transition: background-color .3s, color .3s, transform .4s var(--ease-out);
}
.tile a:hover .tile-go { background: var(--orange-btn); color: #fff; transform: rotate(45deg); }
@media (max-width: 900px) {
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 250px; }
    .tile, .tile:nth-child(2), .tile:nth-child(3) { grid-column: span 1; }
    .tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) { .mosaic { grid-template-columns: 1fr; } .tile, .tile:nth-child(1) { grid-column: span 1; } }

/* Proceso */
.steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px;
    border-top: 3px solid var(--navy); padding-top: 28px;
}
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps li::before {
    content: ""; order: -2; width: 18px; height: 18px; border-radius: 50%; background: var(--navy);
    margin-top: -38px; border: 3px solid #fff; box-sizing: content-box;
}
.steps li.hot::before { background: var(--orange); }
.step-n { order: -1; margin-top: 10px; font: 800 14px/1 var(--display); color: var(--orange-ink); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Respaldo */
.backing { background: var(--navy-deep); color: #fff; padding: 104px var(--gutter); }
.backing-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px 72px; align-items: stretch; }
.backing-body { display: flex; flex-direction: column; gap: 36px; justify-content: center; }
.backing-list { display: flex; flex-direction: column; gap: 14px; }
.backing-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 24px 26px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md);
    transition: border-color .3s, background-color .3s;
}
.backing-list li.is-lead, .backing-list li:hover { border-color: var(--orange); background: rgba(255,90,31,.07); }
.backing-list h3 { font-size: 20px; margin-bottom: 6px; }
.backing-list p { color: var(--on-navy); font-size: 15px; }
.backing-ico {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.3); color: #fff; transition: background-color .3s, border-color .3s;
}
.backing-list li.is-lead .backing-ico, .backing-list li:hover .backing-ico { background: var(--orange); border-color: var(--orange); }
.backing-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; }
.backing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card {
    position: absolute; left: 20px; bottom: 20px; max-width: 280px;
    display: flex; flex-direction: column; gap: 6px; padding: 22px;
    background: #fff; color: var(--muted); border-radius: var(--r-md); box-shadow: var(--shadow); font-size: 14px;
}
.photo-card strong { color: var(--navy-ink); font: 700 18px/1.2 var(--display); }
.photo-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
    .backing-grid { grid-template-columns: 1fr; }
    .backing-photo { min-height: 360px; }
}

/* Preguntas frecuentes */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.faq-contact { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.faq-contact a { display: block; font: 800 24px/1.2 var(--display); color: var(--navy-ink); text-decoration: none; }
.faq-contact a:hover { color: var(--orange-ink); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 24px; cursor: pointer; list-style: none;
    font: 700 18px/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--orange-ink); }
.faq-ico { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--tint); transition: background-color .3s; }
.faq-ico::before, .faq-ico::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
    background: var(--navy); border-radius: 1px; transition: transform .3s var(--ease-out), background-color .3s;
}
.faq-ico::after { transform: rotate(90deg); }
.faq details[open] .faq-ico { background: var(--orange); }
.faq details[open] .faq-ico::before, .faq details[open] .faq-ico::after { background: #fff; }
.faq details[open] .faq-ico::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); max-width: 62ch; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }

/* Contacto */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.info-cards li {
    display: flex; gap: 18px; padding: 28px; background: #fff; border-radius: var(--r-md);
    box-shadow: 0 1px 0 var(--line); font-size: 15px; color: var(--muted);
}
.info-cards li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info-cards strong { color: var(--navy-ink); }
.info-cards a { overflow-wrap: anywhere; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--navy); }
.card-link .ico { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.card-link:hover .ico { transform: translateX(3px); }

.office-tabs { display: flex; border-block: 1px solid var(--line); }
.office-tabs button {
    flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 22px 24px; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer;
    font: 700 18px/1.2 var(--display); color: var(--navy-ink); text-align: left;
    box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .3s;
}
.office-tabs button:last-child { border-right: 0; }
.office-tabs button:hover { color: var(--orange-ink); }
.office-tabs button[aria-selected="true"] { color: var(--orange-ink); box-shadow: inset 0 -3px 0 var(--orange); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 560px; background: var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 560px; border: 0; display: block; }
.form-panel {
    border-radius: var(--r-lg); overflow: hidden; padding: 40px;
    background:
        linear-gradient(90deg, rgba(8,41,59,.98) 0%, rgba(8,41,59,.96) 52%, rgba(8,41,59,.55) 78%, rgba(8,41,59,.25) 100%),
        url('../images/hero/gruas-1000.webp') 70% center / cover;
}
.form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.form h3 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.field { position: relative; display: block; }
.field .ico { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--orange); pointer-events: none; }
.field-area .ico { top: 22px; transform: none; }
.form input, .form select, .form textarea {
    width: 100%; font: 15px/1.4 var(--body); color: var(--navy-ink);
    padding: 15px 52px 15px 22px; border: 1px solid transparent; border-radius: 999px; background: #fff;
    caret-color: var(--orange); transition: border-color .2s, box-shadow .2s;
    appearance: none;
}
.form select { cursor: pointer; }
.form textarea { border-radius: 22px; resize: vertical; min-height: 140px; }
.form ::placeholder { color: #5c6f7c; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,31,.3); }
.form [aria-invalid="true"] { border-color: #ff8a65; box-shadow: 0 0 0 3px rgba(255,138,101,.35); }
.form-error { color: #ffb49c; font-size: 14px; font-weight: 500; }
.form .btn { margin-top: 6px; }
.form-note { font-size: 13px; color: var(--on-navy-2); text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn.is-loading { pointer-events: none; opacity: .85; }
.form .btn.is-loading .ico { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success {
    max-width: 480px; min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
    color: var(--on-navy);
}
.form-success:focus { outline: none; }
.form-success[hidden] { display: none; }
.form-success h3 { color: #fff; font-size: 28px; }
.form-success .badge-ico { width: 60px; height: 60px; }
.form-success .badge-ico svg { stroke-width: 2.4; }
.form-success .btn { margin-top: 10px; }
.form-panel.is-highlight { animation: flash 1.2s var(--ease-out); }
@keyframes flash { from { box-shadow: 0 0 0 5px rgba(255,90,31,.7); } to { box-shadow: 0 0 0 5px rgba(255,90,31,0); } }
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .map, .map iframe { min-height: 340px; }
    .form-panel { padding: 28px 20px; background: var(--navy-deep); }
    .office-tabs button { padding: 18px 14px; font-size: 16px; }
}

/* Footer */
.site-footer { background: var(--night); color: var(--on-navy-2); padding: 88px var(--gutter) 28px; font-size: 15px; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-bottom: 48px; }
.footer-cta h2 { color: #fff; max-width: 16em; }
.footer-card { padding: 48px; border: 1px solid rgba(255,255,255,.1); border-radius: 28px; background: rgba(255,255,255,.025); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand-col { display: flex; flex-direction: column; gap: 18px; max-width: 34ch; }
.footer-brand-col .brand { color: #fff; }
.footer-h { position: relative; font: 700 18px/1.2 var(--display); color: #fff; margin-bottom: 26px; padding-bottom: 12px; }
.footer-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--orange); }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:not(.brand) { color: var(--on-navy-2); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:not(.brand):hover { color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
    padding-top: 28px; font-size: 13px;
}
.footer-bottom strong { color: var(--orange); font-weight: 600; }
@media (max-width: 900px) {
    .footer-card { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Volver arriba con progreso */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .4s var(--ease-out), visibility 0s linear .4s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { color: var(--orange); }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.to-top .ring circle { stroke: var(--line); }
.to-top .ring .ring-fill { stroke: var(--orange); stroke-dasharray: 138.23; stroke-dashoffset: 138.23; stroke-linecap: round; }
.to-top .up { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .slide img, .slide.is-active img { transform: none; filter: none; animation: none !important; }
    .marquee-track { animation: none !important; }
    .tile a:hover img { transform: none; }
}

/* ---------- Páginas de error ---------- */
.err-body { background: var(--night); min-height: 100svh; display: flex; flex-direction: column; }
.err-header { top: 14px; }
.err-cta { display: inline-flex !important; margin: 0 !important; }
.err {
    position: relative; isolation: isolate; overflow: hidden; flex: 1;
    min-height: max(620px, calc(100svh - 72px));
    display: flex; align-items: center; color: #fff;
    padding: calc(var(--header-h) + 72px) var(--gutter) 72px;
}
.err-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; z-index: -3; filter: saturate(.85); }
.err-shade {
    position: absolute; inset: 0; z-index: -2;
    background:
        linear-gradient(90deg, rgba(6,29,42,.96) 0%, rgba(8,41,59,.88) 45%, rgba(8,41,59,.55) 100%),
        linear-gradient(0deg, rgba(6,29,42,.9) 0%, rgba(6,29,42,0) 40%);
}
.err-ghost {
    position: absolute; z-index: -1; right: -2vw; bottom: -4vw;
    font: 900 clamp(200px, 38vw, 560px)/.8 var(--display); letter-spacing: -0.04em;
    color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.14);
    pointer-events: none; user-select: none;
}
.err-body-inner { width: 100%; display: flex; flex-direction: column; gap: 22px; }
.err-code span {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
    background: rgba(255,90,31,.14); border: 1px solid rgba(255,90,31,.5);
    font: 700 14px/1 var(--display); color: #ffb49c; letter-spacing: .04em;
}
.err h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -0.03em; max-width: 14em; }
.err-text { font-size: 18px; line-height: 1.6; color: var(--on-navy); max-width: 36em; }
.err .actions { margin-top: 6px; }
.err-links {
    display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.16); font-size: 15px;
}
.err-links a { color: var(--on-navy-2); text-decoration: none; }
.err-links a:hover { color: #fff; text-decoration: underline; }
.err-footer { background: var(--night); color: var(--on-navy-2); padding: 0 var(--gutter) 24px; }
.err-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.err-footer a { color: var(--on-navy-2); }
.err-footer a:hover { color: #fff; }
@media (max-width: 760px) { .err-ghost { font-size: 52vw; bottom: 0; right: -6vw; } .err-cta { padding: 10px 16px; min-height: 44px; } }
