/* Portada · alvaroromog.com
   Identidad original: fondo analógico oscuro, espectro retro (ladrillo → ámbar → oro → teal),
   Syne + Plus Jakarta Sans + Space Grotesk, retrato en arco y partículas en órbita. */
:root {
    --bg: #0b0c0a;
    --bg-2: #10110e;
    --card: #121310;
    --ink: #eeeae0;
    --ink-2: #aaa99e;
    --muted: #8f9283;
    --line: #34362e;
    --line-2: #4b503e;
    --brick: #a43727;
    --rust: #bd5b32;
    --amber: #cf8e43;
    --gold: #deb074;
    --sand: #e7c293;
    --teal: #598f86;
    --f-display: "Syne", sans-serif;
    --f-body: "Plus Jakarta Sans", sans-serif;
    --f-mono: "Space Grotesk", sans-serif;
    --wrap: 1240px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.7 var(--f-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: #d89545; color: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; position: relative; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } }
main, .topbar, .footer { position: relative; z-index: 1; }

.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10000; background: var(--ink); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { top: 20px; }
:focus-visible { outline: 2px solid #dfad6b; outline-offset: 5px; }

/* ---------- Fondo: blobs, franja espectral y partículas ---------- */
.reading-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #b54a32, #de9943, #5d9891); z-index: 1001; }
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .07; }
.blob-1 { width: 520px; height: 520px; background: var(--rust); top: -160px; right: -120px; }
.blob-2 { width: 460px; height: 460px; background: var(--teal); bottom: -180px; left: -160px; }
.spectrum-stripe { position: absolute; top: 0; bottom: 0; left: 0; width: 8px; opacity: .75;
    background: linear-gradient(to right, var(--brick) 0 20%, var(--rust) 20% 40%, var(--amber) 40% 60%, #d8b266 60% 80%, var(--teal) 80%); }
#currents-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .4; }
@media (max-width: 760px) { .spectrum-stripe { width: 5px; } }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11,12,10,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font: 700 21px/1 var(--f-display); letter-spacing: -1px; text-decoration: none; }
.brand span { color: #d99444; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font: 500 13px var(--f-mono); color: #bbbbae; }
.nav a:hover { color: #efbf7d; }
.nav .nav-cta { border: 1px solid #626356; padding: 10px 18px; color: var(--ink); }
.nav .nav-cta:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none; }
    .nav.open { display: flex; }
    .nav a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
    .nav .nav-cta { margin-top: 14px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 0; overflow: hidden; }
html { overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; align-items: center; }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font: 500 11px/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #e0dccf; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #cf9b5a; box-shadow: 0 0 12px #cf9b5a88; flex: none; }
.hero h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.kicker-loc { margin-left: auto; color: var(--muted); font-size: 10px; }
.tagline { margin-top: 26px; max-width: 560px; font: 600 clamp(20px, 1.9vw, 26px)/1.3 var(--f-display); letter-spacing: -.035em; color: var(--sand); }
.side-note { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 14px; border: 1px dashed var(--line-2); text-decoration: none; transition: border-color .2s; }
.side-note:hover { border-color: var(--amber); }
.side-note img { width: 96px; height: 64px; object-fit: cover; flex: none; filter: saturate(.8); }
.side-note span { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.side-note b { color: var(--ink); font-weight: 600; }
.news-meta time { white-space: nowrap; }
@media (max-width: 480px) {
    .side-note { flex-direction: column; align-items: flex-start; }
    .side-note img { width: 100%; height: 120px; }
}
.lead { max-width: 520px; margin-top: 28px; font-size: 16px; line-height: 1.85; color: #adafa1; }
.lead a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 20px; min-height: 48px; padding: 0 22px; text-decoration: none; font: 500 13px var(--f-mono); transition: background .2s, color .2s, transform .2s, border-color .2s; }
.btn-solid { background: var(--sand); color: #141611; border: 1px solid var(--sand); }
.btn-solid::after { content: "↘"; }
.btn-solid:hover { background: #efddbf; transform: translateY(-2px); }
.btn-line { padding: 8px 0; min-height: 0; color: #d6d6c9; border-bottom: 1px solid #555849; }
.btn-line::after { content: "→"; }
.btn-line:hover { color: var(--gold); border-color: var(--gold); }

.hero-portrait { position: relative; isolation: isolate; margin: 0; width: 100%; max-width: 410px; justify-self: end; padding: 20px 0 32px; }
.portrait-frame { height: 440px; width: 86%; overflow: hidden; border-radius: 46% 46% 3px 3px; background: #292c20; border: 1px solid #65664b; position: relative; z-index: 1; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 30%; filter: saturate(.7) contrast(1.03); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #12181066); }
.portrait-orbits { position: absolute; inset: 0 -25px 0 -40px; border: 1px solid #585b3866; border-radius: 50%; transform: rotate(-23deg); z-index: -1; }
.portrait-orbits::before, .portrait-orbits::after { content: ""; position: absolute; inset: 22px -18px; border: 1px solid #585b3855; border-radius: 50%; }
.portrait-orbits::after { inset: 42px -36px; }
.portrait-index { position: absolute; top: 42px; right: 6px; font: 400 10px var(--f-mono); writing-mode: vertical-rl; letter-spacing: .2em; color: #a8a88b; }
.portrait-caption { position: absolute; bottom: 64px; right: 0; z-index: 2; background: #171b14; padding: 18px 24px; border: 1px solid #515542; transform: rotate(-3deg); }
.portrait-caption span { font: 500 9px var(--f-mono); letter-spacing: .15em; color: #adae99; }
.portrait-caption p { font: 700 22px/1.2 var(--f-display); letter-spacing: -.04em; margin-top: 8px; }
.retro-spectrum { height: 9px; display: flex; width: 86%; margin-top: 14px; gap: 3px; }
.retro-spectrum i { flex: 1; background: var(--brick); }
.retro-spectrum i:nth-child(2) { background: var(--rust); }
.retro-spectrum i:nth-child(3) { background: var(--amber); }
.retro-spectrum i:nth-child(4) { background: #d8b266; }
.retro-spectrum i:nth-child(5) { background: var(--teal); }
@media (max-width: 900px) {
    .hero { padding-top: 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-portrait { justify-self: center; max-width: 340px; }
    .portrait-frame { height: 360px; }
    .portrait-caption { bottom: 50px; padding: 14px 18px; }
    .portrait-caption p { font-size: 18px; }
}

/* Cifras */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 80px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics > div { padding: 26px 24px 26px 0; position: relative; }
.metrics > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.metrics > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 3px; background: var(--brick); }
.metrics > div + div::before { left: 24px; }
.metrics > div:nth-child(2)::before { background: var(--amber); }
.metrics > div:nth-child(3)::before { background: #d8b266; }
.metrics > div:nth-child(4)::before { background: var(--teal); }
.metrics dt { font: 700 clamp(32px, 3.6vw, 48px)/1 var(--f-display); letter-spacing: -.05em; color: var(--ink); }
.metrics dd { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 900px) {
    .metrics { grid-template-columns: 1fr 1fr; }
    .metrics > div { padding: 22px 12px 22px 0; }
    .metrics > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .metrics > div:nth-child(3)::before { left: 0; }
    .metrics > div:nth-child(4) { border-top: 1px solid var(--line); }
    .metrics > div + div { padding-left: 14px; }
    .metrics > div:nth-child(2)::before, .metrics > div:nth-child(4)::before { left: 14px; }
}
.trust { padding: 22px 0 26px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.trust span { font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-right: 10px; }
.trust .trust-sep { margin-left: 14px; }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; scroll-margin-top: 90px; }
.section-alt { background: rgba(16,17,14,.72); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 80px; align-items: end; margin-bottom: 56px; }
.section-head .label { grid-column: 1 / -1; }
.label { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #a8aa9c; }
.section-head h2, .contact h2 { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.06; letter-spacing: -.055em; }
.section-head h2 em, .contact h2 em { font-style: normal; color: var(--gold); }
.section-head > p:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.8; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.stack { font: 400 12px/1.6 var(--f-mono); color: var(--muted); margin-top: 18px; letter-spacing: .02em; }

/* Servicios: lista editorial, no tarjetas */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 90px 1fr 1.25fr; gap: 12px 40px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-num { font: 800 44px/1 var(--f-display); letter-spacing: -.02em; color: var(--brick); }
.service:nth-child(2) .service-num { color: var(--amber); }
.service:nth-child(3) .service-num { color: #d8b266; }
.service:nth-child(4) .service-num { color: var(--teal); }
.service h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.04em; }
.service p { color: var(--ink-2); font-size: 15px; }
.service-for { grid-column: 3; font-size: 13px !important; color: var(--muted) !important; }
.service-for b { font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-right: 8px; }
.service:hover h3 { color: var(--sand); }
@media (max-width: 900px) {
    .service { grid-template-columns: 56px 1fr; gap: 10px 18px; padding: 26px 0; }
    .service-num { font-size: 32px; grid-row: span 3; }
    .service p, .service-for { grid-column: 2; }
}

/* Casos */
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-flip .case-media { order: 2; }
.case-media { position: relative; }
.case-media img { width: 100%; border: 1px solid var(--line-2); background: var(--card); }
.case-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 4px; background: linear-gradient(90deg, var(--brick) 0 20%, var(--rust) 20% 40%, var(--amber) 40% 60%, #d8b266 60% 80%, var(--teal) 80%); opacity: .85; }
.case-client { font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 14px; }
.case h3 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -.05em; }
.case-steps { margin: 26px 0 0; display: grid; gap: 18px; }
.case-steps div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; }
.case-steps dt { font: 500 10px/2.3 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.case-steps dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.case-steps div:last-child dd { color: var(--ink); }
.case-steps div:last-child dt { color: var(--gold); }
.case-link { display: inline-flex; margin-top: 22px; font: 500 13px var(--f-mono); color: #d6d6c9; text-decoration: none; border-bottom: 1px solid #555849; padding-bottom: 6px; }
.case-link:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 900px) {
    .case { grid-template-columns: 1fr; gap: 30px; }
    .case-flip .case-media { order: 0; }
    .case-steps div { grid-template-columns: 1fr; gap: 2px; }
}
.case-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.mini-case { padding: 30px 28px 6px 0; display: flex; flex-direction: column; }
.mini-case + .mini-case { padding-left: 28px; border-left: 1px solid var(--line); }
.mini-case h3 { font-size: 21px; letter-spacing: -.04em; margin-bottom: 12px; }
.mini-case p:not(.case-client):not(.stack) { color: var(--ink-2); font-size: 14px; }
.mini-case .stack, .mini-case .case-link { margin-top: auto; padding-top: 16px; }
.mini-case .case-link { align-self: flex-start; }
@media (max-width: 900px) {
    .case-row { grid-template-columns: 1fr; }
    .mini-case, .mini-case + .mini-case { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Novedades */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); align-items: start; }
.news-item { background: var(--bg); display: grid; grid-template-columns: 1fr; align-content: start; height: 100%; }
.news-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; filter: saturate(.8); }
.news-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.news-meta { display: flex; gap: 12px; align-items: center; font: 400 11px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.news-tag { color: var(--gold); }
.news-tag::before { content: "● "; color: var(--brick); }
.news-item h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.035em; }
.news-item p { font-size: 14px; color: var(--ink-2); }
.news-item a { align-self: flex-start; font: 500 13px var(--f-mono); color: #d6d6c9; text-decoration: none; border-bottom: 1px solid #555849; padding-bottom: 4px; margin-top: 6px; }
.news-item a:hover { color: var(--gold); border-color: var(--gold); }
.news-item:first-of-type { grid-column: 1 / -1; }
.news-item:first-of-type.has-img { grid-template-columns: 1fr 1.15fr; }
.news-item:first-of-type img { aspect-ratio: auto; height: 100%; min-height: 400px; max-height: 470px; object-position: center 35%; }
.news-item:first-of-type h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; }
.news-item:first-of-type .news-body { padding: 40px; justify-content: center; }
.news-item:first-of-type p { font-size: 15px; }
@media (max-width: 760px) {
    .news { grid-template-columns: 1fr; }
    .news-item:first-of-type.has-img { grid-template-columns: 1fr; }
    .news-item:first-of-type img { aspect-ratio: 4 / 3; height: auto; min-height: 0; max-height: none; }
    .news-item:first-of-type .news-body { padding: 24px 22px 28px; }
}

/* Escenarios */
.talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.talks li { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.talks li:hover { background: rgba(222,176,116,.04); }
.talk-role { font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--teal); }
.talks h3 { font-size: 21px; letter-spacing: -.035em; }
.talks p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.talks time { font: 400 12px var(--f-mono); color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
    .talks li { grid-template-columns: 1fr auto; gap: 4px 12px; }
    .talks li > div { grid-column: 1 / -1; grid-row: 2; }
}
.talk-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-top: 36px; }
.talk-photos img { width: 100%; height: 260px; object-fit: cover; filter: saturate(.75) contrast(1.03); border: 1px solid var(--line); }
@media (max-width: 760px) { .talk-photos { grid-template-columns: 1fr 1fr; } .talk-photos img:first-child { grid-column: 1 / -1; } .talk-photos img { height: 170px; } }

/* Trayectoria */
.trayectoria { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.trayectoria .section-head { display: block; margin-bottom: 0; }
.trayectoria .section-head h2 { margin: 18px 0 18px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline time { font: 400 12px/2 var(--f-mono); color: var(--muted); }
.timeline h3 { font-size: 18px; letter-spacing: -.03em; }
.timeline p { color: var(--ink-2); font-size: 14px; }
.more-links { grid-column: 2; }
.more-links a { font: 500 13px var(--f-mono); color: #d6d6c9; text-decoration: none; border-bottom: 1px solid #555849; padding-bottom: 6px; }
.more-links a:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 900px) {
    .trayectoria { grid-template-columns: 1fr; gap: 32px; }
    .more-links { grid-column: 1; }
    .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* Contacto */
.contact { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(164,55,39,.08), transparent 60%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { margin-top: 18px; }
.contact .lead { margin-top: 22px; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.contact-direct a { font: 500 14px var(--f-mono); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 4px; overflow-wrap: anywhere; }
.contact-direct a:hover { color: var(--gold); }
.contact-options { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-options a { display: flex; flex-direction: column; gap: 2px; padding: 22px 52px 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: padding .2s; }
.contact-options a::after { content: "↗"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 20px; }
.contact-options a:hover { padding-left: 12px; }
.contact-options a:hover b { color: var(--sand); }
.contact-options b { font: 700 20px var(--f-display); letter-spacing: -.035em; }
.contact-options span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Enlaces SEO generados por el build */
.seo-article-links { position: relative; z-index: 1; border-top-color: var(--line) !important; }
.seo-article-links a { color: var(--ink-2); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font: 400 12px var(--f-mono); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
