:root {
    color-scheme: light;
    --cream: #f2eee6;
    --paper: #FBF9F4;
    --accent: #33465A;
    --accent-deep: #29394A;
    --ink: #232B33;
    --muted: #5C6975;
    --line: #DCD6C9;
    --display: "Instrument Serif", Georgia, serif;
    --sans: "Public Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

.detail-header,
.detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px clamp(22px, 6vw, 92px);
}

.detail-header {
    min-height: 78px;
    border-bottom: 1px solid rgba(35, 43, 51, 0.09);
}

.nova-mark {
    color: var(--ink);
    font-family: "Space Grotesk", var(--sans);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -1px;
}

.nova-mark span {
    margin-left: 3px;
    color: var(--accent);
    font-size: 10px;
    vertical-align: top;
}

.back-link,
.text-link,
.inline-link {
    font-size: 10px;
    font-weight: 700;
}

.back-link {
    color: var(--muted);
}

.back-link span {
    margin-right: 8px;
    color: var(--accent);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
}

/* Portada tipográfica: nameplate de documento jurídico */
.hero-nameplate {
    position: relative;
    z-index: 1;
    padding: clamp(42px, 6vh, 66px) clamp(22px, 6vw, 92px) 0;
}

.plate-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px 26px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.plate-head .overline {
    margin: 0;
    text-align: right;
}

.plate-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(16px, 2.6vh, 30px) 0 clamp(20px, 3vh, 36px);
    border-bottom: 4px double var(--ink);
}

.plate-ornament {
    color: var(--accent);
    font-family: var(--display);
    font-size: clamp(58px, 8vw, 116px);
    line-height: 1;
    opacity: 0.85;
}

/* Franja editorial: descripción · acciones · nota */
.hero-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    padding: clamp(26px, 3.6vh, 40px) clamp(22px, 6vw, 92px) 0;
}

.hero-strip > * + * {
    min-height: 108px;
    margin-left: clamp(22px, 2.8vw, 42px);
    padding-left: clamp(22px, 2.8vw, 42px);
    border-left: 1px solid var(--line);
}

.hero-strip .hero-description {
    max-width: 460px;
    margin: 0;
}

.hero-strip .hero-actions {
    margin-top: 3px;
}

.hero-strip .concept-note {
    max-width: none;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.preview-composition {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 1420px;
    margin: clamp(40px, 5.5vh, 60px) 0 74px clamp(22px, 6vw, 92px);
}

.eyebrow,
.overline,
.section-label,
.preview-bar,
.preview-caption,
.preview-side-note,
.concept-note > span,
.principle-strip,
.practice-number,
.practice-symbol,
.practice-disclaimer,
.process-steps article > span,
.detail-footer > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--accent);
}

.eyebrow > span {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 400;
}

.overline {
    margin: 54px 0 10px;
    color: var(--muted);
    font-size: 10px;
}

.hero h1 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(118px, 18.5vw, 268px);
    font-weight: 400;
    letter-spacing: -6px;
    line-height: 0.82;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 430px;
    margin: 23px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.hero-actions,
.closing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px 24px;
    margin-top: 29px;
}

.button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 18px;
    font-size: 10px;
    font-weight: 800;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-wine {
    background: var(--accent);
    color: var(--paper);
}

.button-wine:hover {
    background: var(--accent-deep);
}

.button-light {
    background: var(--cream);
    color: var(--ink);
}

.button-light:hover {
    background: var(--paper);
}

.text-link {
    color: var(--ink);
}

.text-link span,
.inline-link span {
    margin-left: 5px;
    color: var(--accent);
}

.concept-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 440px;
    margin-top: 34px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.concept-note > span {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0;
}

.concept-note p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.preview-composition {
    padding: 18px 0 22px 18px;
}

.preview-composition::before {
    position: absolute;
    z-index: -1;
    inset: 0 22px 0 0;
    border: 1px solid rgba(51, 70, 90, 0.24);
    content: "";
}

.preview-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 65px rgba(39, 37, 34, 0.14);
}

.preview-bar {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 13px;
    background: var(--cream);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b28b8d;
}

.window-dots i:nth-child(2) {
    background: #c4b59c;
}

.window-dots i:nth-child(3) {
    background: #938e7f;
}

.preview-state {
    color: var(--accent);
}

.preview-viewport {
    position: relative;
    width: 100%;
    height: min(940px, calc(66vw - 41px));
    overflow: hidden;
    background: var(--paper);
}

.preview-viewport iframe {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    border: 0;
    transform-origin: top left;
}

.preview-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    background: var(--accent-deep);
    color: var(--paper);
    font-size: 10px;
    letter-spacing: 1px;
}

.preview-caption b {
    color: #d6b8ae;
    font-family: var(--display);
    font-size: 14px;
}

.preview-side-note {
    position: absolute;
    top: auto;
    bottom: 62px;
    left: -40px;
    color: var(--accent);
    font-size: 10px;
    writing-mode: vertical-rl;
}

.approach-section,
.practice-section,
.process-section {
    padding: 72px clamp(22px, 8vw, 120px) 82px;
}

.approach-section {
    background: var(--cream);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--accent);
    font-size: 10px;
}

.section-label span:first-child {
    color: var(--muted);
    font-family: var(--display);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    align-items: end;
    gap: 48px;
    padding: 34px 0 42px;
}

.approach-grid h2,
.practice-heading h2,
.process-heading h2,
.closing-section h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.08;
}

.approach-grid h2 em,
.practice-heading h2 em,
.process-heading h2 em,
.closing-section h2 em {
    color: var(--accent);
    font-weight: 400;
}

.approach-copy p,
.practice-heading > p,
.process-steps p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.inline-link {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(51, 70, 90, 0.35);
}

.principle-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.1px;
}

.principle-strip i {
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
}

.practice-section {
    max-width: 1500px;
    margin: 0 auto;
}

.practice-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr);
    align-items: end;
    gap: 42px;
    margin-bottom: 38px;
}

.practice-heading .section-label {
    margin-bottom: 25px;
}

.practice-heading h2 {
    font-size: clamp(38px, 4.7vw, 60px);
}

.practice-list {
    border-top: 1px solid var(--line);
}

.practice-row {
    display: grid;
    grid-template-columns: 42px 34px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 17px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    transition: padding 180ms ease, color 180ms ease;
}

.practice-row:hover {
    padding-inline: 7px;
    color: var(--accent);
}

.practice-number {
    color: var(--muted);
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 0;
}

.practice-symbol {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--accent);
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: 0;
}

.practice-name {
    font-family: var(--display);
    font-size: 19px;
}

.practice-arrow {
    justify-self: end;
    color: var(--accent);
    font-size: 15px;
}

.practice-disclaimer {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.8;
}

.process-section {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    align-items: end;
    gap: 48px;
    background: var(--accent-deep);
    color: var(--paper);
}

.process-heading .section-label {
    margin-bottom: 25px;
    color: #d6b8ae;
}

.process-heading .section-label span:first-child {
    color: rgba(252, 250, 246, 0.65);
}

.process-heading h2 em {
    color: #d6b8ae;
}

.process-steps article {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 16px;
    padding: 19px 0;
    border-top: 1px solid rgba(252, 250, 246, 0.2);
}

.process-steps article:last-child {
    border-bottom: 1px solid rgba(252, 250, 246, 0.2);
}

.process-steps article > span {
    color: #d6b8ae;
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 0;
}

.process-steps h3 {
    margin: 0 0 5px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 400;
}

.process-steps p {
    margin: 0;
    color: rgba(252, 250, 246, 0.72);
    font-size: 10px;
}

.process-section > .inline-link {
    grid-column: 2;
    justify-self: start;
    margin-top: -25px;
    border-color: #d6b8ae;
    color: var(--paper);
}

.process-section > .inline-link span {
    color: #d6b8ae;
}

.closing-section {
    position: relative;
    overflow: hidden;
    padding: 77px 22px 82px;
    background: var(--cream);
    text-align: center;
}

.closing-section > .eyebrow {
    position: relative;
    z-index: 1;
    justify-content: center;
    color: var(--accent);
}

.closing-section h2 {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    font-size: clamp(42px, 6vw, 73px);
}

.closing-copy {
    position: relative;
    z-index: 1;
    max-width: 475px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.closing-actions {
    position: relative;
    z-index: 1;
    justify-content: center;
}

.closing-section .text-link {
    color: var(--ink);
}

.closing-seal {
    position: absolute;
    right: 5%;
    bottom: -175px;
    color: rgba(51, 70, 90, 0.045);
    font-family: var(--display);
    font-size: 330px;
    font-weight: 400;
    letter-spacing: -3px;
    pointer-events: none;
}

.detail-footer {
    min-height: 77px;
    border-top: 1px solid var(--line);
}

.detail-footer p,
.detail-footer > span {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.detail-footer > span {
    font-size: 10px;
    text-align: right;
}

@media (max-width: 960px) {
    .hero-strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-top: clamp(24px, 3.2vh, 34px);
    }

    .hero-strip > * + *,
    .hero-strip .hero-actions,
    .hero-strip .concept-note {
        min-height: 0;
        margin: 24px 0 0;
        padding: 24px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .preview-composition {
        margin-top: clamp(32px, 4.5vh, 46px);
    }

    .preview-viewport {
        height: min(600px, calc(66vw - 41px));
    }
}

@media (max-width: 640px) {
    .detail-header,
    .detail-footer {
        padding: 17px 20px;
    }

    .detail-header {
        min-height: 66px;
    }

    .back-link {
        font-size: 10px;
    }

    .hero-nameplate {
        padding-top: 38px;
    }

    .plate-head {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .plate-head .overline {
        text-align: left;
    }

    .plate-ornament {
        font-size: clamp(46px, 13vw, 66px);
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .overline {
        margin-top: 40px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: clamp(80px, 21vw, 100px);
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-actions,
    .closing-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .concept-note {
        margin-top: 27px;
    }

    .preview-composition {
        margin-left: 0;
        margin-right: 0;
        padding-left: 10px;
    }

    .preview-composition::before {
        right: 12px;
    }

    .preview-side-note {
        display: none;
    }

    .preview-viewport {
        height: 480px;
    }

    .preview-caption {
        right: 0;
        padding: 10px 12px;
        font-size: 10px;
    }

    .approach-section,
    .practice-section,
    .process-section {
        padding: 58px 22px 64px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 0 29px;
    }

    .approach-grid h2,
    .practice-heading h2,
    .process-heading h2 {
        font-size: clamp(37px, 10.5vw, 51px);
    }

    .principle-strip {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .practice-heading {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-bottom: 27px;
    }

    .practice-heading .section-label {
        margin-bottom: 22px;
    }

    .practice-row {
        grid-template-columns: 25px 30px minmax(0, 1fr) 17px;
        gap: 9px;
        padding: 18px 0;
    }

    .practice-name {
        font-size: 16px;
    }

    .practice-symbol {
        width: 27px;
        height: 27px;
    }

    .process-section {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .process-section > .inline-link {
        grid-column: 1;
        margin-top: -8px;
    }

    .closing-section {
        padding: 64px 22px 68px;
    }

    .closing-actions {
        align-items: center;
    }

    .closing-seal {
        right: -18px;
        bottom: -112px;
        font-size: 230px;
    }

    .detail-footer {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .detail-footer p {
        order: 1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
