/* ════════════════════════════════════════════════════════════════════
 * AE Laser Consulting — Estilos comunes (páginas internas)
 * Para legales, gracias, 404. Coherente con index.html.
 * ════════════════════════════════════════════════════════════════════ */

:root{
    --paper:        #F2ECE0;
    --paper-deep:   #E8E0D1;
    --ink:          #14160F;
    --ink-soft:     #2B2E26;
    --muted:        #6B7261;
    --rule:         rgba(20,22,15,.18);
    --rule-soft:    rgba(20,22,15,.10);
    --laser:        #B8412A;
    --laser-glow:   rgba(184,65,42,.18);
    --sage:         #5E6E55;
    --cream:        #FAF6EC;

    --font-display: "Fraunces", Georgia, serif;
    --font-body:    "Geist", -apple-system, system-ui, sans-serif;
    --font-mono:    "Geist Mono", ui-monospace, monospace;

    --max:    980px;
    --gutter: clamp(20px, 4vw, 56px);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: radial-gradient(rgba(20,22,15,.025) 1px, transparent 1px);
    background-size: 3px 3px;
}
a{ color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--laser); transition: color .25s ease; }
a:hover{ color: var(--laser); }
::selection{ background: var(--laser); color: var(--cream); }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono{
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-soft);
}

/* ─── Header / nav minimal ─── */
header.nav{
    border-bottom: 1px solid var(--rule-soft);
    background: rgba(242,236,224,.92);
    backdrop-filter: blur(12px) saturate(120%);
    position: sticky; top: 0; z-index: 20;
}
.nav-row{
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
    max-width: 1320px; margin: 0 auto;
    padding: 0 var(--gutter);
}
.brand{
    font-family: var(--font-display);
    font-weight: 400; font-size: 19px;
    letter-spacing: -.01em;
    display: flex; align-items: center; gap: 10px;
    border-bottom: none;
}
.brand .mark{
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--laser);
    box-shadow: 0 0 0 4px var(--laser-glow);
}
.brand em{ color: var(--muted); font-style: italic; font-weight: 400; }
.nav-back{
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: none;
}
.nav-back:hover{ color: var(--laser); }

/* ─── Cabecera de página ─── */
.page-head{
    padding: clamp(60px, 9vw, 100px) 0 clamp(40px, 6vw, 64px);
    border-bottom: 1px solid var(--rule);
}
.page-head .crumb{ color: var(--muted); margin-bottom: 28px; display: block; }
.page-head h1{
    font-family: var(--font-display);
    font-weight: 300;
    font-variation-settings: "opsz" 144, "SOFT" 40;
    font-size: clamp(36px, 5.8vw, 72px);
    line-height: 1.0; letter-spacing: -.025em;
    max-width: 18ch;
}
.page-head h1 .it{
    font-style: italic; color: var(--laser);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.page-head .updated{ margin-top: 24px; color: var(--muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ─── Contenido legal/doc ─── */
.doc{ padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px); }
.doc section + section{ margin-top: 52px; }
.doc h2{
    font-family: var(--font-display);
    font-weight: 400;
    font-variation-settings: "opsz" 72;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -.012em;
    margin-bottom: 18px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
    line-height: 1.2;
}
.doc h2 .num{
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--laser);
    display: block; margin-bottom: 8px; font-weight: 400;
}
.doc h3{
    font-family: var(--font-display);
    font-weight: 500; font-size: 18px;
    margin: 28px 0 10px; letter-spacing: -.005em;
}
.doc p, .doc li{
    color: var(--ink-soft);
    font-size: 15.5px; line-height: 1.65;
    margin-bottom: 14px; max-width: 72ch;
}
.doc ul, .doc ol{ padding-left: 22px; margin-bottom: 16px; }
.doc li{ margin-bottom: 8px; }
.doc strong{ color: var(--ink); font-weight: 600; }
.doc table{
    width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px;
}
.doc th, .doc td{
    text-align: left; padding: 12px 16px;
    border-bottom: 1px solid var(--rule); vertical-align: top;
}
.doc th{
    background: var(--cream);
    font-family: var(--font-mono);
    font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 500;
}
.callout{
    background: var(--cream);
    border-left: 2px solid var(--laser);
    padding: 18px 22px; margin: 22px 0;
    font-size: 14.5px;
}
.callout strong{ display: block; margin-bottom: 4px; color: var(--ink); }
.toc{
    background: var(--cream);
    border: 1px solid var(--rule);
    padding: 24px 28px; margin-bottom: 48px;
}
.toc .mono{ display: block; margin-bottom: 14px; color: var(--laser); }
.toc ol{ padding-left: 18px; margin: 0; }
.toc li{ margin-bottom: 4px; font-size: 14.5px; }
.toc a{ border-bottom: none; color: var(--ink); }
.toc a:hover{ border-bottom: 1px solid var(--laser); color: var(--laser); }

/* ─── Footer común ─── */
footer.foot{ border-top: 1px solid var(--rule); padding: 48px 0 32px; background: var(--paper); }
.foot-inner{
    max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
}
.foot-row{
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 24px; flex-wrap: wrap;
}
.foot-brand{ font-family: var(--font-display); font-size: 17px; }
.foot-brand em{ font-style: italic; color: var(--muted); }
.foot-meta{ font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.foot-meta .mono{ color: var(--muted); margin-bottom: 6px; }
.foot-meta a{ color: var(--ink); border-bottom: 1px solid var(--rule); }
.foot-legal{
    display: flex; gap: 22px; flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.foot-legal a{ color: var(--ink-soft); border-bottom: none; }
.foot-legal a:hover{ color: var(--laser); }
.foot-copy{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: center; letter-spacing: .08em; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule-soft); }

/* ─── Banner de cookies ─── */
.cookie-banner{
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    max-width: 600px;
    background: var(--ink);
    color: var(--cream);
    padding: 24px 28px;
    border: 1px solid var(--ink);
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    z-index: 1000;
    font-size: 14px; line-height: 1.5;
    display: none;
}
.cookie-banner.is-visible{ display: block; animation: ckIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes ckIn{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
.cookie-banner .ck-title{
    font-family: var(--font-display);
    font-size: 18px; font-weight: 400;
    margin-bottom: 10px; letter-spacing: -.005em;
}
.cookie-banner p{ margin-bottom: 16px; color: rgba(250,246,236,.85); font-size: 13.5px; }
.cookie-banner a{ color: var(--cream); border-bottom: 1px solid var(--laser); }
.cookie-banner a:hover{ color: var(--laser); }
.cookie-actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button{
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    padding: 12px 18px;
    border: 1px solid var(--cream);
    background: transparent; color: var(--cream);
    cursor: pointer; transition: all .25s ease;
}
.cookie-actions button.primary{
    background: var(--cream); color: var(--ink);
}
.cookie-actions button:hover{ background: var(--laser); border-color: var(--laser); color: var(--cream); }
@media (max-width: 520px){
    .cookie-banner{ left: 10px; right: 10px; bottom: 10px; padding: 18px 20px; }
    .cookie-actions{ flex-direction: column-reverse; }
    .cookie-actions button{ width: 100%; }
}

/* ─── Página estado (gracias/404) ─── */
.state{
    min-height: calc(100vh - 200px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 0;
}
.state-card{
    text-align: center; max-width: 560px;
}
.state-mark{
    font-family: var(--font-display);
    font-weight: 300;
    font-variation-settings: "opsz" 144, "SOFT" 60;
    font-size: clamp(60px, 12vw, 140px);
    line-height: 1; letter-spacing: -.04em;
    color: var(--laser); margin-bottom: 16px;
}
.state-mark.is-404{ color: var(--ink); }
.state-card h1{
    font-family: var(--font-display);
    font-weight: 300;
    font-variation-settings: "opsz" 96, "SOFT" 40;
    font-size: clamp(30px, 4.6vw, 48px);
    line-height: 1.1; letter-spacing: -.02em;
    margin-bottom: 18px;
}
.state-card h1 .it{ font-style: italic; color: var(--laser); font-variation-settings: "opsz" 96, "SOFT" 80; }
.state-card p{ color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin-bottom: 28px; max-width: 50ch; margin-inline: auto; }
.state-actions{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn{
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    padding: 16px 26px;
    border: 1px solid var(--ink); color: var(--ink);
    transition: all .3s ease;
    display: inline-flex; align-items: center; gap: 12px;
    background: transparent; cursor: pointer;
}
.btn:hover{ background: var(--ink); color: var(--cream); border-bottom: 1px solid var(--ink); }
.btn.primary{ background: var(--ink); color: var(--cream); }
.btn.primary:hover{ background: var(--laser); border-color: var(--laser); }
