/* ==========================================================================
   Sims Abogados — hoja de estilos principal
   Diseño editorial contemporáneo. CSS moderno (oklch, container queries,
   :has, subgrid, text-wrap) con degradación progresiva.
   ========================================================================== */

@font-face {
    font-family: 'Newsreader';
    src: url('/assets/fonts/newsreader-static.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Newsreader';
    src: url('/assets/fonts/newsreader-italic-static.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope-latin-sub.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@layer reset, tokens, base, layout, components, pages, utilities;

@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    * { margin: 0; }
    html { -webkit-text-size-adjust: 100%; }
    body { min-height: 100svh; }
    img, picture, svg, video { display: block; max-width: 100%; height: auto; }
    input, button, textarea, select { font: inherit; color: inherit; }
    button { cursor: pointer; background: none; border: 0; padding: 0; }
    a { color: inherit; text-decoration: none; }
    ul, ol { padding: 0; list-style: none; }
    summary { cursor: pointer; list-style: none; }
    summary::-webkit-details-marker { display: none; }
    dialog { color: inherit; }
    :target { scroll-margin-top: 7rem; }
}

@layer tokens {
    :root {
        --navy-950: oklch(0.18 0.045 258);
        --navy-900: oklch(0.235 0.058 258);
        --navy-800: oklch(0.29 0.065 258);
        --navy-700: oklch(0.37 0.07 258);
        --navy-600: oklch(0.46 0.07 258);

        --gold-600: oklch(0.66 0.105 78);
        --gold-500: oklch(0.755 0.105 80);
        --gold-400: oklch(0.82 0.085 82);
        --gold-300: oklch(0.875 0.065 84);
        --gold-ink: oklch(0.44 0.09 72);

        --ivory: oklch(0.962 0.012 84);
        --ivory-deep: oklch(0.935 0.018 84);
        --paper: oklch(0.987 0.007 85);
        --ink: oklch(0.235 0.022 260);
        --ink-soft: oklch(0.37 0.018 260);
        --muted: oklch(0.43 0.018 260);
        --line: oklch(0.865 0.014 84);
        --line-strong: oklch(0.775 0.02 84);
        --white: #fff;

        --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
        --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

        --maxw: 1240px;
        --gutter: clamp(1.25rem, 4vw, 4rem);
        --section-y: clamp(4.5rem, 9vw, 8.5rem);
        --header-h: 88px;
        --radius: 6px;
        --radius-lg: 12px;
        --shadow: 0 24px 60px -30px oklch(0.2 0.05 258 / 0.35);
        --ease: cubic-bezier(0.22, 1, 0.36, 1);

        color-scheme: light;
        scrollbar-color: var(--gold-500) var(--ivory-deep);
    }
}

@layer base {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: calc(var(--header-h) + 1rem);
    }
    body {
        background: var(--ivory);
        color: var(--ink);
        font-family: var(--font-sans);
        font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
        line-height: 1.65;
        font-weight: 420;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        overflow-x: clip;
    }
    h1, h2, h3, h4, h5 {
        font-family: var(--font-display);
        font-weight: 420;
        line-height: 1.02;
        letter-spacing: -0.018em;
        text-wrap: balance;
    }
    p { text-wrap: pretty; }
    strong, b { font-weight: 650; }
    ::selection { background: var(--gold-400); color: var(--navy-950); }
    :focus-visible {
        outline: 2px solid var(--gold-600);
        outline-offset: 3px;
        border-radius: 2px;
    }
    .page-head :focus-visible,
    .site-footer :focus-visible,
    .mobile-menu :focus-visible,
    .process :focus-visible,
    .cta-band :focus-visible,
    .aside-card :focus-visible,
    .hero :focus-visible {
        outline-color: var(--gold-400);
    }
    .icon { width: 1.15em; height: 1.15em; flex: none; }
}

@layer layout {
    .shell {
        width: min(100% - (var(--gutter) * 2), var(--maxw));
        margin-inline: auto;
    }
    .section { padding-block: var(--section-y); }
    .section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
    .section-muted {
        background:
            radial-gradient(60rem 30rem at 85% 0%, oklch(0.99 0.01 85 / 0.9), transparent 70%),
            var(--ivory-deep);
    }
    .section-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 2rem 4rem;
        margin-bottom: clamp(2.5rem, 5vw, 4rem);
    }
    .section-head > div { max-width: 46rem; }
    .section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
    .section-lead {
        max-width: 34rem;
        color: var(--muted);
        font-size: 0.98rem;
        padding-bottom: 0.5rem;
    }
    .section-head-light { color: var(--ivory); }
    .section-head-light .section-lead { color: oklch(0.86 0.02 85 / 0.8); }
    .section-head-slim { margin-bottom: 2rem; }

    .display {
        font-family: var(--font-display);
        font-size: clamp(2.1rem, 4.4vw, 3.7rem);
        line-height: 1.03;
        letter-spacing: -0.022em;
    }
    .display em {
        font-style: italic;
        color: var(--gold-ink);
        font-weight: 380;
    }
    .section-head-light .display em,
    .process .display em { color: var(--gold-300); }

    .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.69rem;
        font-weight: 650;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--ink-soft);
        margin-bottom: 1.1rem;
    }
    .eyebrow-rule {
        width: 2.4rem;
        height: 1px;
        background: var(--gold-600);
        flex: none;
    }
    .eyebrow-light { color: oklch(0.92 0.015 85 / 0.85); }
    .eyebrow-light .eyebrow-rule { background: var(--gold-400); }

    .prose { color: var(--ink-soft); line-height: 1.75; }
    .prose > * + * { margin-top: 1.1em; }
    .prose h2 {
        font-size: clamp(1.55rem, 2.6vw, 2.1rem);
        color: var(--ink);
        margin-top: 2.2em;
        text-wrap: balance;
    }
    .prose h3 {
        font-size: 1.3rem;
        color: var(--ink);
        margin-top: 1.8em;
    }
    .prose p { max-width: 70ch; }
    .prose a {
        color: var(--ink);
        text-decoration: underline;
        text-decoration-color: var(--gold-500);
        text-decoration-thickness: 1px;
        text-underline-offset: 0.22em;
        transition: color 0.2s;
    }
    .prose a:hover { color: var(--gold-ink); }
    .prose ul, .prose ol { padding-left: 0; display: grid; gap: 0.6rem; }
    .prose ul li, .prose ol li {
        position: relative;
        padding-left: 1.6rem;
        max-width: 66ch;
    }
    .prose ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.72em;
        width: 0.5rem;
        height: 1px;
        background: var(--gold-600);
    }
    .prose ol { counter-reset: item; }
    .prose ol li { counter-increment: item; }
    .prose ol li::before {
        content: counter(item) '.';
        position: absolute;
        left: 0;
        color: var(--gold-ink);
        font-family: var(--font-display);
        font-size: 0.95em;
    }
    .prose blockquote {
        border-left: 2px solid var(--gold-500);
        padding-left: 1.5rem;
        font-family: var(--font-display);
        font-size: 1.35rem;
        line-height: 1.45;
        color: var(--ink);
    }
    .prose-lead { font-size: 1.08rem; }
    .prose-lead > p:first-child {
        font-family: var(--font-display);
        font-size: clamp(1.35rem, 2.2vw, 1.75rem);
        line-height: 1.45;
        color: var(--ink);
    }
    .prose-article { font-size: 1.035rem; }
    .prose-article > p:first-of-type::first-letter {
        float: left;
        font-family: var(--font-display);
        font-size: 3.6em;
        line-height: 0.82;
        padding: 0.08em 0.12em 0 0;
        color: var(--navy-900);
    }
}

@layer components {
    /* ---------- Botones y enlaces ---------- */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        padding: 0.95rem 1.6rem;
        border-radius: 999px;
        border: 1px solid transparent;
        font-size: 0.78rem;
        font-weight: 650;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        line-height: 1;
        transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
        white-space: nowrap;
    }
    .btn .icon { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
    .btn:hover .icon { transform: translateX(3px); }
    .btn:active { transform: translateY(1px); }
    .btn-sm { padding: 0.75rem 1.2rem; font-size: 0.7rem; }
    .btn-primary { background: var(--navy-900); color: var(--ivory); }
    .btn-primary:hover { background: var(--navy-800); }
    .btn-gold { background: var(--gold-500); color: var(--navy-950); }
    .btn-gold:hover { background: var(--gold-400); }
    .btn-ghost {
        border-color: oklch(0.95 0.01 85 / 0.28);
        color: var(--ivory);
        background: oklch(0.98 0.01 85 / 0.04);
        backdrop-filter: blur(4px);
    }
    .btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }
    .btn-outline { border-color: var(--line-strong); color: var(--ink); }
    .btn-outline:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--ivory); }
    .btn-outline-light { border-color: oklch(0.9 0.02 85 / 0.3); color: var(--ivory); }
    .btn-outline-light:hover { border-color: var(--gold-400); color: var(--gold-300); }

    .link-arrow {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.76rem;
        font-weight: 650;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        border-bottom: 1px solid var(--line-strong);
        padding-bottom: 0.35rem;
        transition: color 0.2s, border-color 0.2s;
        white-space: nowrap;
    }
    .link-arrow .icon { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
    .link-arrow:hover { color: var(--gold-ink); border-color: var(--gold-500); }
    .link-arrow:hover .icon { transform: translateX(3px); }
    .text-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.75rem;
        font-weight: 650;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ink-soft);
    }
    .text-link .icon { width: 0.95rem; height: 0.95rem; }
    .text-link:hover { color: var(--gold-ink); }

    .skip-link {
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        z-index: 200;
        background: var(--navy-950);
        color: var(--ivory);
        padding: 0.8rem 1.2rem;
        border-radius: 4px;
        transform: translateY(-200%);
        transition: transform 0.2s;
    }
    .skip-link:focus { transform: translateY(0) scale(1); }

    /* ---------- Header ---------- */
    .site-header {
        position: fixed;
        inset: 0 0 auto;
        z-index: 100;
        height: var(--header-h);
        color: var(--ivory);
        transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
    }
    .site-header::after {
        content: '';
        position: absolute;
        inset: auto var(--gutter) 0;
        height: 1px;
        background: oklch(0.95 0.01 85 / 0.16);
        transition: opacity 0.3s;
    }
    .js .site-header.is-scrolled,
    .js body:not(.page-home) .site-header {
        background: oklch(0.975 0.008 85 / 0.94);
        color: var(--ink);
        backdrop-filter: blur(14px) saturate(1.1);
        box-shadow: 0 10px 40px -30px oklch(0.2 0.04 258 / 0.5);
    }
    .js .site-header.is-scrolled::after,
    .js body:not(.page-home) .site-header::after { background: var(--line); }
    .no-js .site-header { background: var(--ivory); color: var(--ink); }
    .no-js .site-header::after { background: var(--line); }

    .header-inner {
        width: min(100% - (var(--gutter) * 2), var(--maxw));
        margin-inline: auto;
        height: 100%;
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .brand {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
        line-height: 1;
        flex: none;
    }
    .brand-mark {
        font-family: var(--font-display);
        font-size: 2.15rem;
        letter-spacing: -0.09em;
        font-weight: 400;
        line-height: 0.9;
    }
    .brand-word {
        font-size: 0.52rem;
        letter-spacing: 0.34em;
        font-weight: 650;
        padding-left: 0.12em;
    }
    .brand-light { color: var(--ivory); }

    .primary-nav {
        display: flex;
        align-items: center;
        gap: clamp(1rem, 1.8vw, 1.9rem);
        margin-left: auto;
    }
    .nav-link {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.11em;
        text-transform: uppercase;
        position: relative;
        padding-block: 0.3rem;
        opacity: 0.88;
        transition: opacity 0.2s, color 0.2s;
        white-space: nowrap;
    }
    .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: var(--gold-500);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s var(--ease);
    }
    .nav-link:hover, .nav-link.is-active { opacity: 1; }
    .nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

    .nav-has-panel { position: relative; }
    .nav-panel {
        position: absolute;
        top: calc(100% + 1.4rem);
        left: 50%;
        width: min(44rem, calc(100vw - 3rem));
        background: var(--paper);
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        padding: 1.6rem;
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 8px);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
        z-index: 10;
    }
    .nav-has-panel:hover .nav-panel,
    .nav-has-panel:focus-within .nav-panel {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
    .nav-panel-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--line);
        margin-bottom: 0.9rem;
    }
    .nav-panel-head .eyebrow { margin: 0; }
    .nav-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1rem; }
    .nav-panel-link {
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 0.7rem;
        border-radius: 6px;
        transition: background 0.2s;
    }
    .nav-panel-link:hover { background: var(--ivory-deep); }
    .nav-panel-icon { color: var(--gold-ink); margin-top: 0.15rem; }
    .nav-panel-icon .icon { width: 1.15rem; height: 1.15rem; }
    .nav-panel-link strong { display: block; font-size: 0.83rem; font-weight: 650; }
    .nav-panel-link small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.4; margin-top: 0.1rem; }

    .header-actions { display: flex; align-items: center; gap: 1rem; flex: none; }
    .js .site-header:not(.is-scrolled) .header-cta {
        background: var(--gold-500);
        color: var(--navy-950);
    }
    .js .site-header:not(.is-scrolled) .header-cta:hover { background: var(--gold-400); }
    .header-search { opacity: 0.8; transition: opacity 0.2s; }
    .header-search:hover { opacity: 1; color: var(--gold-300); }
    .header-search .icon { width: 1.1rem; height: 1.1rem; }
    .header-phone {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        font-size: 0.76rem;
        font-weight: 550;
        letter-spacing: 0.02em;
        opacity: 0.9;
    }
    .header-phone:hover { opacity: 1; }
    .header-phone .icon { width: 0.95rem; height: 0.95rem; }
    .menu-toggle {
        display: none;
        width: 44px;
        height: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid currentColor;
        border-radius: 50%;
        opacity: 0.85;
    }
    .menu-toggle span { display: block; width: 17px; height: 1px; background: currentColor; }

    /* ---------- Menú móvil ---------- */
    .mobile-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        margin: 0;
        border: 0;
        padding: 1.4rem var(--gutter) 2rem;
        background: var(--navy-950);
        color: var(--ivory);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .mobile-menu[open] { display: flex; flex-direction: column; gap: 1.5rem; }
    .mobile-menu::backdrop { background: oklch(0.12 0.03 258 / 0.6); backdrop-filter: blur(4px); }
    .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
    .mobile-close {
        width: 44px;
        height: 44px;
        border: 1px solid oklch(0.95 0.01 85 / 0.3);
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: inherit;
    }
    .mobile-nav { display: flex; flex-direction: column; margin-top: 1rem; }
    .mobile-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        line-height: 1.1;
        padding: 0.55rem 0;
        border-bottom: 1px solid oklch(0.95 0.01 85 / 0.12);
    }
    .mobile-nav .icon { width: 1.1rem; height: 1.1rem; color: var(--gold-400); }
    .mobile-areas summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0;
        font-size: 0.74rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--gold-300);
    }
    .mobile-areas-list { display: grid; gap: 0.15rem; padding-bottom: 1rem; }
    .mobile-areas-list a {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.6rem 0;
        font-size: 0.95rem;
        color: oklch(0.92 0.015 85 / 0.85);
        border-bottom: 1px solid oklch(0.95 0.01 85 / 0.08);
    }
    .mobile-areas-list .icon { width: 1rem; height: 1rem; color: var(--gold-500); }
    .mobile-menu-foot { margin-top: auto; display: grid; gap: 0.9rem; padding-top: 1.5rem; }
    .mobile-menu-foot .btn { width: 100%; }
    .mobile-contact { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: oklch(0.9 0.02 85 / 0.9); }
    .mobile-contact .icon { width: 1rem; height: 1rem; color: var(--gold-400); }
    .mobile-menu-foot p { font-size: 0.8rem; color: oklch(0.8 0.02 85 / 0.65); line-height: 1.6; }

    /* ---------- Pie ---------- */
    .site-footer { background: var(--navy-950); color: var(--ivory); padding-top: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
    .footer-top {
        width: min(100% - (var(--gutter) * 2), var(--maxw));
        margin-inline: auto;
        display: grid;
        grid-template-columns: 1.6fr 1fr 0.8fr 1.2fr;
        gap: 3rem;
    }
    .footer-brand p { color: oklch(0.85 0.02 85 / 0.7); font-size: 0.9rem; max-width: 24rem; margin-top: 1.2rem; }
    .footer-brand .brand { margin-bottom: 0.3rem; }
    .footer-social { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
    .footer-social a { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-300); }
    .footer-social .icon { width: 0.85rem; height: 0.85rem; }
    .footer-title {
        font-family: var(--font-sans);
        font-size: 0.68rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--gold-400);
        margin-bottom: 1.2rem;
    }
    .footer-col ul { display: grid; gap: 0.6rem; }
    .footer-col a { font-size: 0.86rem; color: oklch(0.9 0.015 85 / 0.78); transition: color 0.2s; }
    .footer-col a:hover { color: var(--gold-300); }
    .footer-contact address, .footer-contact > a, .footer-hours {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        font-style: normal;
        font-size: 0.86rem;
        color: oklch(0.9 0.015 85 / 0.78);
        margin-bottom: 0.85rem;
        line-height: 1.5;
    }
    .footer-contact .icon, .footer-hours .icon { width: 0.95rem; height: 0.95rem; margin-top: 0.15rem; color: var(--gold-400); }
    .footer-contact a:hover { color: var(--gold-300); }
    .footer-bottom {
        width: min(100% - (var(--gutter) * 2), var(--maxw));
        margin: 2rem auto 0;
        padding: 1.5rem 0;
        border-top: 1px solid oklch(0.95 0.01 85 / 0.1);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem 2rem;
        font-size: 0.72rem;
        color: oklch(0.82 0.02 85 / 0.6);
    }
    .footer-note { max-width: 34rem; }
    .footer-legal { display: flex; gap: 1.2rem; }
    .footer-legal a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: oklch(0.7 0.02 85 / 0.4); }
    .footer-legal a:hover { color: var(--gold-300); }

    /* ---------- Cabecera de página ---------- */
    .page-head {
        background:
            radial-gradient(70rem 40rem at 85% -20%, oklch(0.32 0.07 258 / 0.9), transparent 65%),
            linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
        color: var(--ivory);
        padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
        padding-bottom: clamp(2.8rem, 6vw, 5rem);
        position: relative;
        overflow: hidden;
    }
    .page-head::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(oklch(1 0 0 / 0.025) 1px, transparent 1px);
        background-size: 100% 4.5rem;
        pointer-events: none;
        mask-image: linear-gradient(to bottom, #000, transparent 85%);
    }
    .page-head .shell { position: relative; z-index: 1; }
    .page-head-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
        gap: 2rem 4rem;
        align-items: end;
        margin-top: clamp(1.5rem, 4vw, 3rem);
    }
    .page-head h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); }
    .page-head h1 em { color: var(--gold-300); font-style: italic; }
    .page-head-lead {
        color: oklch(0.9 0.015 85 / 0.78);
        font-size: 1rem;
        line-height: 1.7;
        max-width: 34rem;
        padding-bottom: 0.6rem;
    }
    .page-head-compact { padding-bottom: clamp(2.2rem, 4vw, 3.5rem); }
    .page-head-compact h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }

    .breadcrumbs { font-size: 0.7rem; letter-spacing: 0.04em; color: oklch(0.85 0.02 85 / 0.55); }
    .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
    .breadcrumbs li:not(:last-child)::after { content: '/'; color: oklch(0.8 0.02 85 / 0.3); }
    .breadcrumbs a { color: inherit; transition: color 0.2s; }
    .breadcrumbs a:hover { color: var(--gold-300); }
    .breadcrumbs [aria-current] { color: oklch(0.9 0.015 85 / 0.8); }

    /* ---------- Tarjetas de servicio ---------- */
    .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
    .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid-2 .service-card { min-height: 13.5rem; }
    .area-detail { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
    .area-big-icon { display: block; color: var(--gold-ink); margin-bottom: 1.2rem; }
    .area-big-icon .icon { width: 2.6rem; height: 2.6rem; }
    .area-intro { max-width: 60rem; }
    .area-services { margin-top: 1rem; }
    .service-card {
        position: relative;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1.9rem 1.7rem 4.2rem;
        min-height: 17rem;
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    }
    .service-card:hover {
        background: var(--navy-900);
        border-color: var(--navy-900);
        color: var(--ivory);
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }
    .card-kicker {
        font-size: 0.67rem;
        font-weight: 650;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--gold-ink);
        transition: color 0.35s;
    }
    .service-card:hover .card-kicker { color: var(--gold-300); }
    .card-title { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.12; letter-spacing: -0.015em; }
    .card-title a::after { content: ''; position: absolute; inset: 0; }
    .card-text { font-size: 0.86rem; line-height: 1.6; color: var(--muted); transition: color 0.35s; }
    .service-card:hover .card-text { color: oklch(0.87 0.015 85 / 0.75); }
    .card-arrow {
        position: absolute;
        right: 1.5rem;
        bottom: 1.4rem;
        width: 2.3rem;
        height: 2.3rem;
        border: 1px solid var(--line-strong);
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--ink-soft);
        transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
    }
    .card-arrow .icon { width: 1rem; height: 1rem; }
    .service-card:hover .card-arrow { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); transform: rotate(45deg); }
    .service-card:hover .card-arrow .icon { transform: rotate(-45deg); }

    .area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
    .area-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .area-card {
        position: relative;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1.6rem 1.6rem 3.8rem;
        transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
    }
    .area-card:hover { border-color: var(--gold-500); transform: translateY(-3px); box-shadow: var(--shadow); }
    .area-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
    .area-card-icon { color: var(--gold-ink); }
    .area-card-icon .icon { width: 1.7rem; height: 1.7rem; }
    .area-card-count { font-size: 0.67rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
    .area-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .area-card h3 a::after { content: ''; position: absolute; inset: 0; }
    .area-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
    .area-card .card-arrow { right: 1.3rem; bottom: 1.1rem; width: 2rem; height: 2rem; }
    .area-card:hover .card-arrow { border-color: var(--gold-500); color: var(--gold-ink); }

    /* ---------- Lista de áreas (home) ---------- */
    .area-list { border-top: 1px solid var(--line-strong); }
    .area-list li { border-bottom: 1px solid var(--line); }
    .area-list a {
        display: grid;
        grid-template-columns: 3.2rem minmax(9rem, 1fr) minmax(12rem, 1.2fr) auto 2.6rem;
        align-items: center;
        gap: 1.5rem;
        padding: 1.45rem 1rem;
        border-radius: 4px;
        transition: background 0.35s var(--ease), color 0.35s var(--ease), padding 0.35s var(--ease);
    }
    .area-num { font-family: var(--font-display); font-size: 0.98rem; color: var(--gold-ink); }
    .area-name { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.1; letter-spacing: -0.01em; }
    .area-desc { font-size: 0.82rem; color: var(--muted); transition: color 0.35s; }
    .area-meta { font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.35s; white-space: nowrap; }
    .area-arrow { display: grid; place-items: center; color: var(--line-strong); transition: color 0.35s, transform 0.35s var(--ease); }
    .area-arrow .icon { width: 1.15rem; height: 1.15rem; }
    .area-list a:hover { background: var(--navy-900); color: var(--ivory); padding-inline: 1.5rem; }
    .area-list a:hover .area-desc,
    .area-list a:hover .area-meta { color: oklch(0.87 0.015 85 / 0.7); }
    .area-list a:hover .area-num,
    .area-list a:hover .area-arrow { color: var(--gold-400); }
    .area-list a:hover .area-arrow { transform: translate(2px, -2px); }

    /* ---------- Proceso ---------- */
    .process {
        background:
            radial-gradient(55rem 30rem at 10% 0%, oklch(0.3 0.075 258 / 0.75), transparent 70%),
            var(--navy-950);
        color: var(--ivory);
    }
    .process-list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2.5rem;
        counter-reset: step;
    }
    .process-step { border-top: 1px solid oklch(0.9 0.03 85 / 0.25); padding-top: 1.4rem; }
    .process-num { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold-400); }
    .process-step h3 { font-size: 1.65rem; margin: 0.8rem 0 0.7rem; }
    .process-step p { font-size: 0.87rem; line-height: 1.65; color: oklch(0.88 0.015 85 / 0.68); }

    /* ---------- Equipo ---------- */
    .team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
    .team-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
    .team-card {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1.6rem;
        display: flex;
        gap: 1.4rem;
        align-items: flex-start;
        transition: border-color 0.3s, transform 0.3s var(--ease);
    }
    .team-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
    .team-monogram {
        width: 5.2rem;
        height: 6.4rem;
        flex: none;
        background: var(--navy-900);
        color: var(--gold-300);
        font-family: var(--font-display);
        font-size: 2rem;
        letter-spacing: -0.04em;
        display: grid;
        place-items: center;
        position: relative;
        border-radius: 2px;
    }
    .team-monogram::after {
        content: '';
        position: absolute;
        left: 0.55rem;
        right: 0.55rem;
        bottom: 0.55rem;
        height: 1px;
        background: var(--gold-600);
        opacity: 0.6;
    }
    .team-card:nth-child(even) .team-monogram { background: var(--ivory-deep); color: var(--navy-900); }
    .team-card:nth-child(3n) .team-monogram { background: var(--navy-800); color: var(--gold-300); }
    .team-card-lg .team-monogram { width: 7rem; height: 8.6rem; font-size: 2.7rem; }
    .team-info h2, .team-info h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
    .team-role { font-size: 0.67rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.7rem; }
    .team-bio { font-size: 0.83rem; line-height: 1.6; color: var(--muted); }
    .team-links { display: flex; gap: 1rem; margin-top: 0.9rem; }
    .team-links a { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.73rem; font-weight: 600; color: var(--ink-soft); }
    .team-links .icon { width: 0.9rem; height: 0.9rem; }
    .team-links a:hover { color: var(--gold-ink); }

    /* ---------- FAQ ---------- */
    .faq-section { background: var(--ivory); }
    .faq-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
    .faq-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
    .faq-intro h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
    .faq-intro p { color: var(--muted); max-width: 30rem; margin-bottom: 1.6rem; }
    .faq-list { border-top: 1px solid var(--line-strong); }
    .faq-item { border-bottom: 1px solid var(--line); }
    .faq-item summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.35rem 0;
        font-family: var(--font-display);
        font-size: 1.18rem;
        line-height: 1.3;
        color: var(--ink);
        transition: color 0.2s;
    }
    .faq-item summary:hover { color: var(--gold-ink); }
    .faq-toggle { position: relative; width: 1.1rem; height: 1.1rem; flex: none; }
    .faq-toggle::before, .faq-toggle::after {
        content: '';
        position: absolute;
        inset: 50% 0 auto;
        height: 1px;
        background: var(--gold-ink);
        transition: transform 0.3s var(--ease);
    }
    .faq-toggle::after { transform: rotate(90deg); }
    .faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
    .faq-item[open] summary { color: var(--ink); }
    .faq-answer { padding: 0 2.5rem 1.5rem 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
    .faq-answer p { max-width: 50rem; }

    /* ---------- CTA ---------- */
    .cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); }
    .cta-band-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -2;
        filter: saturate(0.55) brightness(0.8);
    }
    .cta-band::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(100deg, oklch(0.16 0.045 258 / 0.92) 10%, oklch(0.18 0.05 258 / 0.68) 60%, oklch(0.16 0.04 258 / 0.4));
        z-index: -1;
    }
    .cta-band-inner {
        width: min(100% - (var(--gutter) * 2), var(--maxw));
        margin-inline: auto;
        padding-block: clamp(4.5rem, 10vw, 8rem);
        max-width: var(--maxw);
    }
    .cta-band h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 18ch; margin-bottom: 1.3rem; }
    .cta-band h2 em { color: var(--gold-300); font-style: italic; }
    .cta-band-lead { max-width: 38rem; color: oklch(0.9 0.015 85 / 0.78); margin-bottom: 2rem; }
    .cta-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
    .cta-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ivory); border-bottom: 1px solid oklch(0.9 0.02 85 / 0.4); padding-bottom: 0.25rem; }
    .cta-phone .icon { width: 1rem; height: 1rem; color: var(--gold-300); }
    .cta-phone:hover { color: var(--gold-300); }

    /* ---------- Formularios ---------- */
    .contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.8rem); }
    .form-head { margin-bottom: 1.6rem; }
    .form-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.5rem; }
    .form-help { font-size: 0.8rem; color: var(--muted); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .field { margin-bottom: 1rem; }
    .field label { display: block; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.45rem; }
    .field label span[aria-hidden] { color: var(--gold-ink); }
    .field input, .field select, .field textarea {
        width: 100%;
        background: var(--ivory);
        border: 1px solid var(--line-strong);
        border-radius: 4px;
        padding: 0.82rem 0.9rem;
        font-size: 0.92rem;
        color: var(--ink);
        transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    }
    .field select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555b66' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.85rem center;
        padding-right: 2.2rem;
    }
    .field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
    .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
    .field input:focus, .field select:focus, .field textarea:focus {
        outline: none;
        border-color: var(--navy-800);
        background: var(--white);
        box-shadow: 0 0 0 3px oklch(0.45 0.06 258 / 0.12);
    }
    .field input:user-invalid, .field textarea:user-invalid {
        border-color: oklch(0.55 0.18 27);
        background: oklch(0.97 0.02 27);
    }
    .field-check { display: flex; align-items: flex-start; gap: 0.7rem; margin-top: 0.4rem; }
    .field-check input { width: 1.05rem; height: 1.05rem; margin-top: 0.22rem; flex: none; accent-color: var(--navy-800); }
    .field-check label { text-transform: none; letter-spacing: 0; font-weight: 450; font-size: 0.78rem; line-height: 1.5; color: var(--muted); margin: 0; }
    .field-check label a { text-decoration: underline; text-underline-offset: 0.18em; color: var(--ink-soft); }
    .field-error { color: oklch(0.5 0.18 27); font-size: 0.75rem; margin-top: 0.35rem; }
    .form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
    .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.6rem; }
    .form-privacy { font-size: 0.72rem; color: var(--muted); max-width: 22rem; line-height: 1.5; }
    .form-alert { padding: 0.85rem 1rem; border-radius: 4px; background: oklch(0.95 0.03 27); color: oklch(0.42 0.16 27); font-size: 0.82rem; margin-bottom: 1rem; }
    .form-alert[hidden] { display: none; }
    .form-alert.is-success { background: oklch(0.94 0.04 150); color: oklch(0.35 0.09 150); }

    /* ---------- Búsqueda y filtros ---------- */
    .catalog-toolbar { display: grid; gap: 1.4rem; margin-bottom: 2.5rem; }
    .search-form {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        background: var(--paper);
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        padding: 0.35rem 0.35rem 0.35rem 1rem;
        max-width: 44rem;
        width: 100%;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .search-form:focus-within { border-color: var(--navy-800); box-shadow: 0 0 0 3px oklch(0.45 0.06 258 / 0.1); }
    .search-icon { color: var(--muted); display: grid; place-items: center; }
    .search-icon .icon { width: 1.05rem; height: 1.05rem; }
    .search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.65rem 0.3rem; font-size: 0.9rem; }
    .search-form input:focus { outline: none; }
    .search-form-lg { max-width: 52rem; margin-bottom: 2rem; }
    .filter-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
    .chip {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 0.95rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        font-size: 0.74rem;
        font-weight: 550;
        color: var(--ink-soft);
        transition: all 0.2s;
    }
    .chip:hover { border-color: var(--navy-800); color: var(--ink); }
    .chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory); }
    .catalog-count { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.5rem; }
    .catalog-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
    .catalog-group-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.9rem; margin-bottom: 1.4rem; }
    .catalog-group-title { display: flex; align-items: center; gap: 0.8rem; }
    .catalog-group-icon { color: var(--gold-ink); }
    .catalog-group-icon .icon { width: 1.4rem; height: 1.4rem; }
    .catalog-group h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
    .results-head { margin-bottom: 1.8rem; }
    .results-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.5rem; }
    .empty-state { background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 2.5rem; text-align: center; display: grid; gap: 1.2rem; justify-items: center; color: var(--muted); }
    .empty-state p { max-width: 36rem; }

    /* ---------- Tarjetas laterales ---------- */
    .aside-card { background: var(--navy-900); color: var(--ivory); border-radius: var(--radius); padding: 1.7rem; }
    .aside-card h2 { font-size: 1.5rem; margin-bottom: 0.7rem; }
    .aside-card p { font-size: 0.85rem; color: oklch(0.88 0.015 85 / 0.72); margin-bottom: 1.2rem; }
    .aside-card .btn { width: 100%; }
    .aside-contact { display: grid; gap: 0.6rem; margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid oklch(0.9 0.02 85 / 0.15); }
    .aside-contact li, .aside-contact a { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: oklch(0.9 0.015 85 / 0.8); }
    .aside-contact .icon { width: 0.95rem; height: 0.95rem; color: var(--gold-400); }
    .aside-related { margin-top: 2rem; }
    .aside-title { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
    .aside-related ul { display: grid; }
    .aside-related li { border-bottom: 1px solid var(--line); }
    .aside-related a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; transition: color 0.2s; }
    .aside-related a .icon { width: 0.9rem; height: 0.9rem; color: var(--line-strong); flex: none; }
    .aside-related a:hover { color: var(--gold-ink); }
    .aside-card-light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
    .aside-card-light p { color: var(--muted); }
    .aside-card-light .eyebrow { color: var(--muted); }

    /* ---------- Callout ---------- */
    .callout {
        display: grid;
        grid-template-columns: 1.2fr 0.9fr;
        gap: 2rem 4rem;
        align-items: end;
        border-top: 1px solid var(--line-strong);
        padding-top: 2.5rem;
    }
    .callout h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
    .callout-actions { display: grid; gap: 1.2rem; justify-items: start; }
    .callout-actions p { color: var(--muted); font-size: 0.9rem; max-width: 28rem; }

    .visually-hidden {
        position: absolute !important;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0);
        white-space: nowrap; border: 0;
    }
}

@layer pages {
    /* ---------- Hero ---------- */
    .hero {
        position: relative;
        min-height: max(38rem, 100svh);
        display: flex;
        align-items: flex-end;
        color: var(--ivory);
        overflow: hidden;
        isolation: isolate;
        padding-top: var(--header-h);
    }
    .hero-media { position: absolute; inset: 0; z-index: -3; }
    .hero-media picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
    .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
    .hero-overlay {
        position: absolute;
        inset: 0;
        z-index: -2;
        background:
            linear-gradient(90deg, oklch(0.13 0.04 258 / 0.96) 0%, oklch(0.15 0.045 258 / 0.82) 42%, oklch(0.15 0.04 258 / 0.38) 100%),
            linear-gradient(0deg, oklch(0.12 0.04 258 / 0.92) 0%, transparent 55%);
    }
    .hero-grain {
        position: absolute;
        inset: 0;
        z-index: -1;
        opacity: 0.5;
        pointer-events: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
        mix-blend-mode: overlay;
    }
    .hero-inner {
        width: min(100% - (var(--gutter) * 2), var(--maxw));
        margin-inline: auto;
        padding-block: clamp(3rem, 7vw, 5rem);
        display: flex;
        flex-direction: column;
        gap: clamp(2.5rem, 6vw, 5rem);
        width: 100%;
    }
    .hero-content { max-width: 56rem; }
    .hero-eyebrow { animation: fade-up 0.9s var(--ease) both 0.1s; }
    .hero-title {
        font-size: clamp(3rem, 7.4vw, 6.9rem);
        line-height: 0.94;
        letter-spacing: -0.028em;
        font-weight: 380;
        margin-bottom: 1.5rem;
        text-wrap: balance;
    }
    .hero-title span { display: block; animation: fade-up 1s var(--ease) both 0.2s; }
    .hero-title em { display: block; font-style: italic; color: var(--gold-300); font-weight: 360; animation: fade-up 1s var(--ease) both 0.32s; }
    .hero-lead {
        max-width: 39rem;
        font-size: clamp(1rem, 1.35vw, 1.15rem);
        line-height: 1.7;
        color: oklch(0.92 0.012 85 / 0.82);
        animation: fade-up 1s var(--ease) both 0.44s;
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; animation: fade-up 1s var(--ease) both 0.56s; }
    .hero-foot {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2rem;
        border-top: 1px solid oklch(0.95 0.01 85 / 0.18);
        padding-top: 1.5rem;
        animation: fade-up 1.1s var(--ease) both 0.7s;
    }
    .hero-facts { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
    .hero-facts dt { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--gold-300); }
    .hero-facts dd { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.9 0.015 85 / 0.6); margin-top: 0.35rem; }
    .hero-scroll {
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        font-size: 0.64rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: oklch(0.9 0.015 85 / 0.65);
    }
    .hero-scroll-line { width: 3rem; height: 1px; background: oklch(0.9 0.015 85 / 0.35); position: relative; overflow: hidden; }
    .hero-scroll-line::after { content: ''; position: absolute; inset: 0; background: var(--gold-300); transform: translateX(-100%); animation: scroll-line 2.4s var(--ease) infinite; }
    .hero-scroll:hover { color: var(--gold-300); }

    /* ---------- Intro ---------- */
    .intro-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
    .intro-figure { position: relative; }
    .intro-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; filter: saturate(0.85); }
    .intro-figure::before {
        content: '';
        position: absolute;
        inset: -0.9rem 0.9rem 0.9rem -0.9rem;
        border: 1px solid var(--gold-500);
        border-radius: 2px;
        z-index: -1;
    }
    .intro-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.67rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.9rem; }
    .intro-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin-bottom: 1.4rem; max-width: 16ch; }
    .intro-text { max-width: 40rem; }
    .intro-text p { font-size: 0.95rem; }
    .pillars { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin: 1.9rem 0 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
    .pillars li { display: flex; align-items: baseline; gap: 0.55rem; font-size: 0.78rem; font-weight: 550; color: var(--ink-soft); }
    .pillars span { font-family: var(--font-display); font-size: 0.8rem; color: var(--gold-ink); }

    /* ---------- Página de servicio ---------- */
    .service-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr); gap: 2rem 4rem; align-items: end; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
    .service-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); margin-bottom: 1.2rem; }
    .service-head .page-head-lead { max-width: 42rem; }
    .service-head-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
    .service-head-aside { border-top: 1px solid oklch(0.95 0.01 85 / 0.2); padding-top: 1.2rem; }
    .service-head-aside dl { display: grid; gap: 0.9rem; }
    .service-head-aside dt { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.85 0.02 85 / 0.55); margin-bottom: 0.15rem; }
    .service-head-aside dd { font-size: 0.86rem; color: oklch(0.92 0.015 85 / 0.85); }
    .service-head-aside a { border-bottom: 1px solid oklch(0.8 0.03 85 / 0.35); }

    .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
    .article-body { min-width: 0; }
    .article-body .prose { color: var(--ink-soft); }
    .article-body .prose p { font-size: 1.02rem; }
    .article-note { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 1.3rem 0; margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
    .article-note p { font-size: 0.8rem; color: var(--muted); max-width: 34rem; }
    .article-faq { margin-top: 3.5rem; }
    .article-faq h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
    .article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.8rem; }

    /* ---------- Nosotros ---------- */
    .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
    .about-body { max-width: 46rem; }
    .about-aside { display: grid; gap: 1.6rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
    .about-figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: saturate(0.8); }
    .about-figure figcaption { font-size: 0.7rem; color: var(--muted); margin-top: 0.6rem; }
    .about-facts { display: grid; gap: 0; margin: 1rem 0 1.4rem; }
    .about-facts li { display: flex; align-items: baseline; gap: 0.7rem; border-bottom: 1px solid var(--line); padding: 0.7rem 0; font-size: 0.8rem; color: var(--muted); }
    .about-facts span { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy-900); line-height: 1; }

    /* ---------- Contacto ---------- */
    .contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
    .contact-aside { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
    .contact-card { background: var(--navy-900); color: var(--ivory); padding: 1.9rem; border-radius: var(--radius); }
    .contact-card h2 { font-size: 1.55rem; margin-bottom: 1.2rem; }
    .contact-card address { display: grid; gap: 0.9rem; margin-bottom: 1.4rem; }
    .contact-line { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.85rem; line-height: 1.5; color: oklch(0.9 0.015 85 / 0.8); font-style: normal; }
    .contact-line .icon { width: 1rem; height: 1rem; color: var(--gold-400); margin-top: 0.15rem; }
    .contact-line:hover { color: var(--gold-300); }
    .contact-note { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; background: var(--paper); }
    .contact-note h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
    .contact-note p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

    /* ---------- Gracias / estados ---------- */
    .thanks-page { min-height: 68svh; display: grid; place-items: center; }
    .thanks-inner { max-width: 44rem; text-align: center; display: grid; justify-items: center; padding-block: 3rem; }
    .thanks-icon {
        width: 5rem;
        height: 5rem;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--navy-900);
        color: var(--gold-300);
        margin-bottom: 1.8rem;
    }
    .thanks-icon .icon { width: 2rem; height: 2rem; }
    .thanks-inner h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1rem; }
    .thanks-lead { color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
    .thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 2rem; }
    .thanks-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: 0.78rem; letter-spacing: 0.04em; }
    .thanks-links a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
    .thanks-links a:hover { color: var(--gold-ink); }

    .status-page { min-height: 75svh; display: grid; place-items: center; padding-top: var(--header-h); }
    .status-inner { max-width: 46rem; text-align: center; display: grid; justify-items: center; padding-block: 4rem; }
    .status-code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 10rem); line-height: 0.8; color: var(--ivory-deep); -webkit-text-stroke: 1px var(--line-strong); margin-bottom: 1rem; }
    .status-inner h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 1rem; }
    .status-lead { color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
    .status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 2rem; }
    .status-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: 0.78rem; color: var(--ink-soft); }
    .status-links a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
    .status-links a:hover { color: var(--gold-ink); }

    /* ---------- Legal ---------- */
    .legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
    .legal-body { max-width: 46rem; }
    .legal-aside { display: grid; gap: 1.6rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }

    .search-suggestions { padding-top: 1rem; border-top: 1px solid var(--line); }
    .search-suggestions .eyebrow { margin-bottom: 1rem; }
}

@layer utilities {
    .reveal { will-change: auto; }

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

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scroll-line {
    0% { transform: translateX(-100%); }
    55%, 100% { transform: translateX(100%); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .primary-nav { gap: 1.1rem; }
    .header-phone { display: none; }
    .nav-panel { width: 42rem; }
    .footer-top { grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr; gap: 2rem; }
}

@media (max-width: 1024px) {
    :root { --header-h: 76px; }
    .primary-nav { display: none; }
    .header-actions { margin-left: auto; }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .brand-mark { font-size: 1.95rem; }
    .hero-facts { gap: 2rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .footer-contact .footer-title { grid-column: 1 / -1; margin-bottom: 0; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 18rem; }
    .about-grid { grid-template-columns: minmax(0, 1fr) 16rem; }
    .contact-grid { grid-template-columns: minmax(0, 1fr) 18rem; }
}

@media (max-width: 820px) {
    .section { padding-block: clamp(3.5rem, 9vw, 5.5rem); }
    .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .section-head .link-arrow { align-self: flex-start; }
    .page-head-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .page-head-lead { max-width: 100%; }
    .hero { min-height: 100svh; }
    .hero-inner { padding-block: 2.5rem 2rem; gap: 2.5rem; }
    .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .hero-scroll { display: none; }
    .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .intro-figure { order: 2; }
    .intro-figure::before { inset: -0.6rem 0.6rem 0.6rem -0.6rem; }
    .area-list a { grid-template-columns: 2.5rem 1fr 2rem; gap: 0.9rem; padding: 1.2rem 0.4rem; }
    .area-desc, .area-meta { display: none; }
    .area-name { font-size: 1.35rem; }
    .area-list a:hover { padding-inline: 0.8rem; }
    .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .faq-intro { position: static; }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .article-aside .aside-related { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-aside { position: static; grid-row: 1; grid-template-columns: 1fr 1fr; align-items: start; }
    .about-figure img { aspect-ratio: 16 / 10; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-aside { position: static; grid-template-columns: 1fr 1fr; }
    .contact-card { grid-column: 1 / -1; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-aside { position: static; grid-template-columns: 1fr 1fr; }
    .service-head { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-head-aside { display: none; }
    .callout { grid-template-columns: 1fr; gap: 1.5rem; }
    .catalog-group-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .team-grid-full { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contact { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    :root { --gutter: 1.15rem; }
    body { font-size: 1rem; }
    .hero-title { font-size: clamp(2.4rem, 10.8vw, 3.6rem); }
    .hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1.4rem; }
    .hero-facts dt { font-size: 1.55rem; }
    .hero-facts dd { font-size: 0.56rem; letter-spacing: 0.09em; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .hero-actions .btn { justify-content: center; }
    .hero-inner { padding-block: 2rem 1.5rem; gap: 1.8rem; }
    .card-grid, .card-grid-2, .area-grid, .area-grid-2, .team-grid, .process-list { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 1.2rem; }
    .team-card { padding: 1.2rem; gap: 1rem; }
    .team-monogram { width: 4.4rem; height: 5.4rem; font-size: 1.65rem; }
    .team-card-lg .team-monogram { width: 5rem; height: 6.4rem; font-size: 2rem; }
    .about-aside, .contact-aside, .legal-aside { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .cta-band-actions { flex-direction: column; align-items: flex-start; }
    .tenant .btn { width: 100%; }
    .breadcrumbs { font-size: 0.65rem; }
    .page-head h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .article-body .prose-article > p:first-of-type::first-letter { font-size: 3em; }
    .search-form { flex-wrap: nowrap; }
    .search-form .btn { padding-inline: 1rem; }
    .thanks-actions .btn, .status-actions .btn { width: 100%; justify-content: center; }
}

/* Transiciones de vista (mejora progresiva) */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: vt-out 0.38s cubic-bezier(0.4, 0, 0.2, 1) both; }
    ::view-transition-new(root) { animation: vt-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both; }

}

@keyframes vt-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes vt-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.menu-open { overflow: hidden; }


/* Fotografías del equipo */
.team-photo { width: 5.2rem; height: 6.4rem; flex: none; overflow: hidden; border-radius: 2px; background: var(--ivory-deep); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.team-card-lg .team-photo { width: 7rem; height: 8.6rem; }
@media (max-width: 620px) {
    .team-photo { width: 4.4rem; height: 5.4rem; }
    .team-card-lg .team-photo { width: 5rem; height: 6.4rem; }
}


/* ==========================================================================
   V2 — fotografía editorial, blog, equipo y microinteracciones
   ========================================================================== */

/* Tarjetas de servicio con imagen */
.service-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.service-card .card-body { display: flex; flex-direction: column; gap: 0.65rem; flex: 1; padding: 1.7rem 1.7rem 4.2rem; }
.service-card.has-media { min-height: 0; }
.service-card.has-media .card-body { min-height: 12.5rem; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.03); transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }
.card-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 52%, oklch(0.12 0.04 258 / 0.34)); }
.service-card:hover .card-media img { transform: scale(1.04); filter: grayscale(0) contrast(1.03); }
.service-card:hover .card-body { background: var(--navy-900); }

/* Equipo con retratos reales */
.team-card { flex-direction: column; gap: 1.15rem; padding: 0; border: 0; background: transparent; }
.team-card:hover { transform: none; border-color: transparent; }
.team-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--navy-900); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(1) contrast(1.03); transition: filter 0.5s var(--ease), transform 0.8s var(--ease); }
.team-card:hover .team-photo img { filter: grayscale(0.25) contrast(1.03); transform: scale(1.015); }
.team-info { padding: 0 0.1rem; }
.team-info h2, .team-info h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.team-role { margin-bottom: 0.55rem; }
.team-bio { font-size: 0.84rem; }
.team-monogram { width: 100%; height: auto; aspect-ratio: 4 / 5; font-size: clamp(2.5rem, 5vw, 4rem); }
.team-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Imagen de cabecera del servicio */
.service-media { position: relative; margin: 0; overflow: hidden; background: var(--navy-950); max-height: 520px; }
.service-media img { width: 100%; height: 100%; aspect-ratio: 21 / 9; object-fit: cover; filter: grayscale(0.25) contrast(1.02); }
.service-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(0.12 0.04 258 / 0.55), transparent 46%); pointer-events: none; }
.service-media figcaption { position: absolute; right: clamp(1rem, 4vw, 4rem); bottom: 1.25rem; z-index: 1; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.94 0.012 85 / 0.8); }

/* Blog / noticias */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-500); }
.post-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-900); }
.post-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.45) contrast(1.02); transition: transform 0.7s var(--ease), filter 0.7s; }
.post-card:hover .post-media img { transform: scale(1.035); filter: grayscale(0.1); }
.post-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.35rem 1.4rem 3.8rem; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.post-meta .post-area { color: var(--gold-ink); font-weight: 650; }
.post-title { font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.14; }
.post-title a::after { content: ''; position: absolute; inset: 0; }
.post-excerpt { font-size: 0.84rem; line-height: 1.6; color: var(--muted); }
.post-card .card-arrow { right: 1.2rem; bottom: 1.2rem; width: 2.1rem; height: 2.1rem; }

.blog-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 0; background: var(--navy-900); color: var(--ivory); border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }
.blog-featured-media { position: relative; min-height: 22rem; overflow: hidden; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) brightness(0.86); }
.blog-featured-body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; }
.blog-featured-body .post-meta { color: oklch(0.9 0.015 85 / 0.65); }
.blog-featured-body .post-meta .post-area { color: var(--gold-300); }
.blog-featured h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.blog-featured p { color: oklch(0.9 0.015 85 / 0.75); max-width: 40rem; }

.news-section { background: var(--ivory-deep); }
.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }

/* WhatsApp flotante */
.whatsapp-float { position: fixed; right: clamp(1rem, 2.5vw, 1.8rem); bottom: clamp(1rem, 2.5vw, 1.8rem); z-index: 90; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--navy-950); box-shadow: 0 12px 30px -10px oklch(0.2 0.04 258 / 0.55); transition: transform 0.3s var(--ease), background 0.3s; }
.whatsapp-float:hover { transform: translateY(-3px); background: var(--gold-400); }
.whatsapp-float svg { width: 1.55rem; height: 1.55rem; }
.whatsapp-float::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid oklch(0.75 0.1 80 / 0.55); animation: wa-pulse 3s var(--ease) infinite; }
@keyframes wa-pulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 0; } }

/* Zoom lento del hero */
@media (prefers-reduced-motion: no-preference) {
    .hero-media img { animation: hero-zoom 18s var(--ease) both; transform-origin: center 45%; }
}
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Entrada/salida del menú móvil en la capa superior */
.mobile-menu {
    opacity: 0;
    transform: translateY(14px) scale(0.996);
    transition-property: opacity, transform, display, overlay;
    transition-duration: 0.42s;
    transition-timing-function: var(--ease);
    transition-behavior: allow-discrete;
}
.mobile-menu[open] { opacity: 1; transform: translateY(0) scale(1); }
.mobile-menu::backdrop {
    background-color: transparent;
    transition-property: background-color, display, overlay;
    transition-duration: 0.42s;
    transition-behavior: allow-discrete;
}
.mobile-menu[open]::backdrop { background-color: oklch(0.12 0.03 258 / 0.6); }
@starting-style {
    .mobile-menu[open] { opacity: 0; transform: translateY(14px) scale(0.996); }
    .mobile-menu[open]::backdrop { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-menu, .mobile-menu::backdrop { transition-duration: 0.1s; }
}

/* Revelado sutil al entrar en el scrollport */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        .reveal {
            animation: reveal-v2 linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 65%;
        }
    }
}
@keyframes reveal-v2 {
    from { transform: translateY(10px); }
    to { transform: translateY(0) scale(1); }
}

/* Responsive de las nuevas piezas */
@media (max-width: 1024px) {
    .team-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-grid, .home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-media { min-height: 16rem; aspect-ratio: 16 / 9; }
    .service-media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
    .team-grid-full, .post-grid, .home-news-grid { grid-template-columns: 1fr; }
    .whatsapp-float { width: 3.15rem; height: 3.15rem; }
    .team-photo { aspect-ratio: 4 / 4.6; }
}

/* Piezas del blog y ajustes de equipo */
.news-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 34rem; }
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.blog-toolbar .catalog-count { margin-bottom: 0; }
.post-media-empty { display: grid; place-items: center; width: 100%; height: 100%; min-height: 12rem; background: var(--navy-900); color: var(--gold-400); }
.post-media-empty .icon { width: 3rem; height: 3rem; opacity: 0.8; }
.pagination-site { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pagination-site a, .pagination-site > span { min-width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.78rem; transition: all 0.2s; }
.pagination-site a:hover { border-color: var(--navy-800); background: var(--paper); }
.pagination-site .is-current { background: var(--navy-900); color: var(--ivory); border-color: var(--navy-900); }
.pagination-site .page-arrow .icon { width: 1rem; height: 1rem; }
.team-card-lg .team-photo, .team-card-lg .team-monogram { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.team-card-lg .team-monogram { font-size: clamp(2.8rem, 5vw, 4rem); }
.mobile-menu[open][data-closing] { opacity: 0; transform: translateY(14px) scale(0.996); }

@media (max-width: 820px) {
    .news-head-side { max-width: 100%; }
}

/* Mapa de contacto */
.contact-map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 1.5rem; }
.contact-map-head h2 { margin: 0; }
.contact-map { position: relative; aspect-ratio: 21 / 9; min-height: 22rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ivory-deep); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.25) contrast(1.02); }
@media (max-width: 720px) {
    .contact-map-head { flex-direction: column; align-items: flex-start; }
    .contact-map { aspect-ratio: 4 / 3; min-height: 18rem; }
}


/* Cita editorial de Nosotros */
.about-quote-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-quote { max-width: 62rem; margin: 0 auto; text-align: center; padding: 0.5rem 0; }
.about-quote p { font-family: var(--font-display); font-size: clamp(1.7rem, 3.3vw, 2.9rem); line-height: 1.2; color: var(--navy-900); text-wrap: balance; }
.about-quote footer { margin-top: 1.3rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }

.map-note { margin-top: 0.7rem; font-size: 0.68rem; color: var(--muted); }
.map-note a { text-decoration: underline; text-underline-offset: 0.2em; }

/* Alineación del contenido del hero con el resto de la retícula */
.hero-inner { width: min(calc(100% - (var(--gutter) * 2)), var(--maxw)); max-width: var(--maxw); margin-inline: auto; }

@media (max-width: 620px) {
    .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; width: 100%; }
    .hero-facts dd { font-size: 0.52rem; letter-spacing: 0.06em; }
}

@media (max-width: 620px) {
    .hero-foot { padding-bottom: 4.25rem; }
}

/* Logotipo original del estudio */
.brand-logo { display: block; width: auto; height: 3.4rem; max-width: 100%; transition: opacity 0.32s var(--ease); }
.brand { position: relative; }
.brand-logo-dark { position: absolute; top: 0; left: 0; opacity: 0; }
.js .site-header.is-scrolled .brand-logo-light,
.js body:not(.page-home) .site-header .brand-logo-light,
.no-js .site-header .brand-logo-light { opacity: 0; }
.js .site-header.is-scrolled .brand-logo-dark,
.js body:not(.page-home) .site-header .brand-logo-dark,
.no-js .site-header .brand-logo-dark { opacity: 1; }
.footer-logo { height: 4.4rem; }
.mobile-menu .brand-logo { height: 3rem; }

@media (max-width: 1024px) {
    .brand-logo { height: 3rem; }
}
@media (max-width: 620px) {
    .brand-logo { height: 2.7rem; }
    .footer-logo { height: 3.8rem; }
}

/* Dirección tipográfica: todo el texto corrido justificado */
body {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
}

h1, h2, h3, h4, h5, h6,
.eyebrow, .card-kicker, .post-meta, .team-role,
.btn, .nav-link, .brand, .breadcrumbs, .pagination,
.hero-facts, .hero-scroll, .badge, .footer-title,
label, button, input, textarea, select, address,
.hero-video-toggle, .skip-link, .map-note {
    text-align: left;
    text-align-last: left;
    hyphens: manual;
}

.btn, .pagination { text-align: center; }

/* Video original del hero */
.hero-media { overflow: hidden; }
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    opacity: 0;
    transition: opacity 1.1s var(--ease);
    filter: saturate(0.72) contrast(1.06) brightness(0.78);
}
.hero-video.is-ready { opacity: 1; }
.hero-foot-actions { display: flex; align-items: center; gap: 1.2rem; }
.hero-video-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid oklch(0.9 0.015 85 / 0.28);
    border-radius: 999px;
    background: transparent;
    color: oklch(0.9 0.015 85 / 0.72);
    font-family: var(--font-sans);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hero-video-toggle:hover { color: var(--ivory); border-color: oklch(0.9 0.015 85 / 0.65); background: oklch(0.9 0.015 85 / 0.08); }
.hero-video-toggle[hidden] { display: none; }

@media (max-width: 1024px) {
    .hero-foot-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 620px) {
    .hero-foot-actions { justify-content: flex-start; }
    .hero-video-toggle { font-size: 0.54rem; }
}


/* Ajuste de partición de palabras en texto justificado */
body { hyphenate-limit-chars: 7 3 3; }



/* Verificación reCAPTCHA del formulario */
.recaptcha-field { margin: 1.1rem 0 0.4rem; }
.recaptcha-field .field-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.35rem; }
.recaptcha-field .g-recaptcha { margin-top: 0.35rem; }
.recaptcha-note { margin-top: 0.45rem; font-size: 0.64rem; line-height: 1.55; color: var(--muted); max-width: 38rem; }
.recaptcha-note a { text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 400px) {
    .recaptcha-field .g-recaptcha { transform: scale(0.92); transform-origin: left top; }
}

/* Ajustes de tipografía y mapa móvil */
.contact-map { width: 100%; max-width: 100%; }
.contact-map iframe { max-width: 100%; }

@media (max-width: 720px) {
  .contact-map { aspect-ratio: 4 / 3; min-height: 0; }
}

body {
  text-align: left;
  text-align-last: left;
  hyphens: manual;
}

.page-head-lead,
.prose-article p,
.prose-article li,
.faq-answer p,
.intro-copy p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  word-spacing: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}
