:root {
    --bg: #0a0a0b;
    --bg-elev: #111113;
    --bg-soft: #17171a;
    --ink: #f3efe6;
    --muted: #9b958a;
    --line: rgba(243, 239, 230, 0.12);
    --accent: #c45c26;
    --accent-soft: rgba(196, 92, 38, 0.18);
    --font-display: "Syne", sans-serif;
    --font-body: "Figtree", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --space: clamp(1.2rem, 3.4vw, 2.6rem);
    --wide: 1240px;
    --header: 4.5rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); }
.page-home h1 { font-size: clamp(3.2rem, 10vw, 7.2rem); }
h2 { font-size: clamp(2.1rem, 5.4vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: -0.03em; }

p { margin: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wrap {
    width: min(var(--wide), calc(100% - var(--space) * 2));
    margin-inline: auto;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--accent);
}

.ph {
    color: var(--muted);
}

.ph-tag {
    display: inline-block;
    margin-right: 0.45rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid var(--accent);
    color: var(--ink);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease);
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent);
    color: var(--bg);
}

.btn:active { transform: translateY(1px); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header);
    padding: 0.7rem var(--space);
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 11, 0.88);
    backdrop-filter: blur(16px);
}

.logo {
    display: grid;
    line-height: 1;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.logo span:first-child {
    font-size: 1.15rem;
}

.logo span:last-child {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-toggle {
    position: relative;
    z-index: 50;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
}

.nav-toggle span:first-child,
.nav-toggle::before,
.nav-toggle::after {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    height: 1px;
    background: var(--ink);
    transition: transform 0.28s var(--ease), opacity 0.2s;
}

.nav-toggle span:first-child { top: 50%; }
.nav-toggle::before { content: ""; top: 0.9rem; }
.nav-toggle::after { content: ""; bottom: 0.9rem; }

body.nav-open .nav-toggle span:first-child { opacity: 0; }
body.nav-open .nav-toggle::before { transform: translateY(0.38rem) rotate(45deg); }
body.nav-open .nav-toggle::after { transform: translateY(-0.38rem) rotate(-45deg); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.site-nav ul {
    display: flex;
    gap: 1.35rem;
}

.site-nav a {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.22s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
}

.nav-contact {
    color: var(--ink) !important;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.15rem;
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - var(--header));
    padding: clamp(2rem, 6vh, 5rem) 0 var(--space);
}

.hero-home.hero-slide,
.hero-linea.hero-slide {
    display: grid;
    align-items: end;
    overflow: hidden;
    min-height: calc(100vh - var(--header));
    padding: 0;
    isolation: isolate;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.06);
    filter: saturate(0.72) contrast(1.05) brightness(0.78);
    transition: opacity 1.4s var(--ease), transform 8s linear;
}

.hero-slide-img.is-on {
    opacity: 1;
    transform: scale(1);
}

.hero-slide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(10, 10, 11, 0.88) 0%, rgba(10, 10, 11, 0.55) 42%, rgba(10, 10, 11, 0.28) 100%),
        linear-gradient(180deg, rgba(10, 10, 11, 0.35) 0%, rgba(10, 10, 11, 0.72) 100%);
}

.hero-home.hero-slide .hero-copy,
.hero-linea.hero-slide .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 40rem;
    min-height: calc(100vh - var(--header));
    padding: clamp(2.4rem, 8vh, 5.5rem) var(--space);
}

.hero-home.hero-slide .hero-claim,
.hero-linea.hero-slide .hero-claim {
    color: rgba(243, 239, 230, 0.82);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1.4rem;
    min-width: 0;
}

.hero-visual {
    min-width: 0;
    width: 100%;
}

.hero h1 span {
    display: block;
    color: var(--muted);
    font-size: 0.28em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-claim {
    max-width: 28rem;
}

.media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 20%, rgba(196, 92, 38, 0.16), transparent 42%),
        radial-gradient(ellipse at 88% 80%, rgba(243, 239, 230, 0.05), transparent 36%),
        linear-gradient(160deg, #171410 0%, #0c0c0d 48%, #141214 100%);
}

.media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(243, 239, 230, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 239, 230, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent 55%);
}

.media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s var(--ease), transform 0.7s var(--ease);
}

.media img.is-loaded {
    opacity: 1;
}

.media:hover img.is-loaded {
    transform: scale(1.035);
}

.media-xl {
    min-height: min(62vh, 34rem);
}

.frame-section {
    padding-top: 0;
    border-top: 0;
}

.media-label {
    position: absolute;
    z-index: 2;
    left: 1rem;
    bottom: 1rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section {
    padding: clamp(4rem, 10vh, 7.5rem) 0;
    border-top: 1px solid var(--line);
}

.section-head {
    display: grid;
    gap: 1rem;
    margin-bottom: clamp(2rem, 5vw, 3.4rem);
}

.areas {
    display: grid;
}

.area {
    display: grid;
    gap: 1.2rem;
    padding: clamp(1.8rem, 4vw, 3rem) 0;
    border-top: 1px solid var(--line);
}

.area-copy {
    display: grid;
    gap: 0.85rem;
    align-content: end;
}

.area-num {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.area-num-libro {
    letter-spacing: 0.14em;
}

.area h3 {
    font-size: clamp(2rem, 6vw, 3.6rem);
}

.area p { max-width: 34rem; }

.area-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.area-link::after {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--accent);
    transition: width 0.28s var(--ease);
}

.area-link:hover::after { width: 2.5rem; }

.area .media {
    width: 25%;
    max-width: 25%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    height: auto;
    align-self: end;
    justify-self: start;
}

.projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.project-card {
    margin: 0;
    min-width: 0;
}

.project-card-btn {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #111;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.project-card-media,
.project-card-shade {
    position: absolute;
    inset: 0;
}

.project-card-media {
    overflow: hidden;
}

.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: brightness(0.72) saturate(0.92);
    transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}

.project-card-shade {
    background: linear-gradient(
        180deg,
        rgba(8, 8, 8, 0.08) 0%,
        rgba(8, 8, 8, 0.28) 42%,
        rgba(8, 8, 8, 0.88) 100%
    );
    pointer-events: none;
}

.project-card-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
    padding: 1.15rem 1.1rem 1.2rem;
    pointer-events: none;
}

.project-card-copy small {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-copy h3 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.project-card-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.project-card-btn:hover .project-card-media img,
.project-card-btn:focus-visible .project-card-media img {
    transform: scale(1.08);
    filter: brightness(0.8) saturate(1);
}

.project-card-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.project-modal[hidden] {
    display: none;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: stretch;
}

.project-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 6, 0.92);
}

.project-modal-stage {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    color: #fff;
}

.project-modal-media {
    position: absolute;
    inset: 0;
}

.project-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) saturate(0.9);
}

.project-modal-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.88) 100%
    );
    pointer-events: none;
}

.project-modal-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.55rem;
    max-width: 42rem;
    padding: clamp(4.5rem, 12vh, 6rem) clamp(1.2rem, 4vw, 3rem) clamp(1.5rem, 5vh, 2.8rem);
}

.project-modal-copy small {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-modal-copy h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.project-modal-copy p {
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.45;
}

.project-modal-count {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-modal-copy small:empty,
.project-modal-copy p:empty {
    display: none;
}

.project-modal-close,
.project-modal-nav {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.project-modal-close {
    top: max(0.85rem, env(safe-area-inset-top));
    right: max(0.85rem, env(safe-area-inset-right));
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.7rem;
    line-height: 1;
}

.project-modal-nav {
    top: 50%;
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.85rem;
    line-height: 1;
    transform: translateY(-50%);
}

.project-modal-nav[hidden] {
    display: none !important;
}

.project-modal-prev {
    left: max(0.7rem, env(safe-area-inset-left));
}

.project-modal-next {
    right: max(0.7rem, env(safe-area-inset-right));
}

.project-modal-close:hover,
.project-modal-nav:hover,
.project-modal-close:focus-visible,
.project-modal-nav:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.project-modal-close:focus-visible,
.project-modal-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.project-modal-open {
    overflow: hidden;
}

.credits {
    display: grid;
    gap: 0;
}

.credits li {
    display: grid;
    gap: 0.35rem 1.5rem;
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
}

.credits strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.credits p {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.credits small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-group {
    margin: 1.7rem 0 0.2rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.service-group:first-child {
    margin-top: 0;
}

.quote-block {
    display: grid;
    gap: 1.6rem;
    max-width: 52rem;
}

.quote-block blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.cta-band {
    display: grid;
    gap: 1.4rem;
    justify-items: start;
}

.cta-band-center {
    justify-items: center;
    text-align: center;
}

.cta-band-center h2 {
    max-width: none;
}

.cta-band > .btn {
    min-height: 3.55rem;
    min-width: min(100%, 14rem);
    padding: 1rem 1.85rem;
    font-size: 0.8rem;
}

@media (min-width: 860px) {
    .cta-band > .btn {
        min-height: 3.75rem;
        min-width: 16rem;
        padding: 1.1rem 2.2rem;
        font-size: 0.84rem;
    }
}

.portfolio-band {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
}

.portfolio-head {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.portfolio-head > div {
    text-align: center;
}

.icon-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portfolio-mark {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    margin-top: 0.2rem;
    color: var(--accent);
}

.btn-pdf {
    justify-self: center;
    gap: 0.7rem;
    min-height: 3.7rem;
    padding: 1.05rem 2rem;
    font-size: 0.82rem;
}

.btn-pdf .icon-line {
    width: 1.35rem;
    height: 1.35rem;
}

@media (min-width: 860px) {
    .btn-pdf {
        min-width: 18rem;
        min-height: 3.9rem;
        padding: 1.15rem 2.35rem;
        font-size: 0.86rem;
    }
}

.js [data-reveal].portfolio-band,
.js [data-reveal].portfolio-band.is-in {
    opacity: 1;
    transform: none;
}

.js .portfolio-band[data-reveal] .portfolio-head,
.js .portfolio-band[data-reveal] .btn-pdf {
    opacity: 0;
    transform: translateY(18px);
}

.js .portfolio-band.is-in .portfolio-head,
.js .portfolio-band.is-in .btn-pdf {
    animation: portfolio-appear 0.8s var(--ease) both;
}

.js .portfolio-band.is-in .btn-pdf { animation-delay: 0.12s; }

.js .portfolio-band[data-reveal] .icon-line path,
.js .portfolio-band[data-reveal] .icon-line polyline,
.js .portfolio-band[data-reveal] .icon-line line {
    stroke-dasharray: 72;
    stroke-dashoffset: 72;
}

.js .portfolio-band.is-in .icon-line path,
.js .portfolio-band.is-in .icon-line polyline,
.js .portfolio-band.is-in .icon-line line {
    animation: icon-draw 0.95s var(--ease) forwards;
}

.js .portfolio-band.is-in .btn-pdf .icon-line path,
.js .portfolio-band.is-in .btn-pdf .icon-line line {
    animation-delay: 0.2s;
}

@keyframes portfolio-appear {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes icon-draw {
    to { stroke-dashoffset: 0; }
}

.cta-band h2 { max-width: 12ch; }

.site-footer {
    display: grid;
    gap: 2rem;
    padding: 2.4rem var(--space) 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-brand {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.footer-links,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.3rem;
}

.site-footer a:hover { color: var(--ink); }

.intro,
.services,
.gallery {
    display: grid;
    gap: 1.4rem;
}

.service-list {
    display: grid;
    gap: 0;
}

.service-list li {
    display: grid;
    gap: 0.45rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
}

.gallery-grid {
    display: grid;
    gap: 0.7rem;
}

.gallery-grid .media {
    min-height: 14rem;
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

body.page-recording .hero { align-content: end; }
body.page-recording .media { min-height: 42vh; }

body.page-instalaciones .hero-visual .media {
    min-height: 52vh;
}

body.page-producciones .hero h1 {
    max-width: 11ch;
}

body.page-iglesia .hero {
    min-height: 0;
    padding-bottom: 2rem;
}

body.page-iglesia .quote-block blockquote {
    font-size: clamp(1.8rem, 5vw, 3.4rem);
}

@media (min-width: 860px) {
    .nav-toggle { display: none; }

    .hero-home:not(.hero-slide),
    .hero-split {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3rem;
        align-items: end;
    }

    .hero-home:not(.hero-slide) .media,
    .hero-split .media {
        min-height: 68vh;
    }

    .hero-home.hero-slide .hero-copy,
    .hero-linea.hero-slide .hero-copy {
        max-width: 44rem;
    }

    .area {
        grid-template-columns: 4.2rem minmax(0, 1fr) 25%;
        align-items: end;
        gap: 1.5rem 2rem;
    }

    .area .media {
        width: 100%;
        max-width: none;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .projects {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.1rem;
    }

    .credits {
        grid-template-columns: 1fr 1fr;
        gap: 0 2.5rem;
    }

    .project-modal-copy {
        padding-left: clamp(4.5rem, 8vw, 6rem);
        padding-right: clamp(4.5rem, 8vw, 6rem);
    }

    .project-modal-nav {
        width: 3.2rem;
        height: 3.2rem;
    }

    .site-footer {
        grid-template-columns: 1.2fr 1fr 1fr;
        align-items: start;
    }

    .services {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 3rem;
        align-items: start;
    }

    .gallery-grid {
        grid-template-columns: 1.3fr 0.7fr;
    }

    .gallery-grid .media:first-child {
        grid-row: span 2;
        min-height: 28rem;
    }

    body.page-instalaciones .gallery-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    body.page-instalaciones .gallery-grid .media:first-child {
        grid-row: auto;
        min-height: 18rem;
    }

    body.page-producciones .gallery-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }

    body.page-iglesia .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.page-iglesia .gallery-grid .media:first-child {
        grid-row: auto;
        min-height: 20rem;
    }
}

@media (max-width: 859px) {
    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 45;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 2rem;
        padding: 5.5rem var(--space) 2.4rem;
        background: rgba(10, 10, 11, 0.97);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.6rem);
        transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    }

    body.nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 1.1rem;
    }

    .site-nav a {
        color: var(--ink);
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        font-weight: 700;
        letter-spacing: -0.04em;
        text-transform: none;
    }

    .nav-contact {
        align-self: flex-start;
        font-family: var(--font-mono) !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.16em !important;
        text-transform: uppercase !important;
    }

    .hero-home .media,
    .hero-split .media,
    body.page-recording .media {
        min-height: 42vh;
        margin-top: 1.6rem;
    }

    .btn { width: 100%; }

    .book-cover {
        padding: 0;
    }

    .book-cover img {
        width: min(72%, 18rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .js .portfolio-band[data-reveal] .portfolio-head,
    .js .portfolio-band[data-reveal] .btn-pdf {
        opacity: 1;
        transform: none;
    }

    .js .portfolio-band[data-reveal] .icon-line path,
    .js .portfolio-band[data-reveal] .icon-line polyline,
    .js .portfolio-band[data-reveal] .icon-line line {
        stroke-dashoffset: 0;
    }
}

/* El sonido en la iglesia — look del libro */
body.page-iglesia {
    --accent: #c7e600;
    --accent-soft: rgba(199, 230, 0, 0.16);
    --ink: #f4f4ee;
    --muted: #b4b4a8;
    --line: rgba(199, 230, 0, 0.2);
    --font-display: "Barlow Condensed", sans-serif;
    background-color: #0a0a0a;
    background-image: url("../el-sonido-en-la-iglesia/ref/graficos/fondo-oscuro.jpg");
    background-size: 680px;
}

body.page-iglesia h1,
body.page-iglesia h2,
body.page-iglesia h3,
body.page-iglesia .logo,
body.page-iglesia .footer-brand {
    text-transform: uppercase;
}

body.page-iglesia .site-header {
    background: rgba(10, 10, 10, 0.92);
}

body.page-iglesia .book-hero {
    align-items: center;
    overflow: visible;
    padding-top: clamp(2.4rem, 6vh, 4rem);
}

body.page-iglesia .book-hero h1 {
    font-size: clamp(3.2rem, 10vw, 7rem);
    letter-spacing: -0.03em;
}

.book-points {
    display: grid;
    gap: 0.7rem;
    max-width: 28rem;
}

.book-points li {
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
    color: var(--muted);
}

.book-cover {
    display: grid;
    place-items: center;
    overflow: visible;
    padding: 0.5rem 1.2rem 0.5rem 0;
}

.book-cover img {
    width: min(100%, 22rem);
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.iglesia-prose {
    display: grid;
    gap: 1.15rem;
    max-width: 44rem;
}

.iglesia-prose p {
    color: var(--muted);
    font-size: 1.06rem;
}

.author-grid {
    display: grid;
    gap: 2rem;
}

.author-visual .media {
    min-height: 22rem;
}

.ediciones-logo {
    width: 7.5rem;
    height: auto;
    margin-top: 0.6rem;
    opacity: 0.72;
}

@media (min-width: 860px) {
    body.page-iglesia .book-hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 3.5rem;
    }

    .author-grid {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: center;
        gap: 3.2rem;
    }

    body.page-iglesia .iglesia-gallery {
        grid-template-columns: 1fr 1fr 1fr;
    }

    body.page-iglesia .iglesia-gallery .media:first-child {
        grid-row: auto;
        min-height: 16rem;
    }
}

.iglesia-band {
    position: relative;
    isolation: isolate;
}

.iglesia-band-green {
    --ink: #111111;
    --muted: rgba(17, 17, 17, 0.78);
    --line: rgba(17, 17, 17, 0.22);
    --accent: #111111;
    color: #111111;
    background-color: #c7e600;
    background-image: url("../el-sonido-en-la-iglesia/ref/graficos/fondo-verde-texturado.jpg");
    background-size: 520px;
    background-repeat: repeat;
}

.iglesia-band-white {
    --ink: #111111;
    --muted: rgba(17, 17, 17, 0.7);
    --line: rgba(17, 17, 17, 0.14);
    --accent: #c7e600;
    --accent-soft: rgba(199, 230, 0, 0.28);
    color: #111111;
    background-color: #f4f4ee;
}

[data-wash="green-black"] {
    --wash: 0;
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.88);
    --line: rgba(255, 255, 255, 0.28);
    --accent: #ffffff;
    color: #ffffff;
    background-color: #0a0a0a;
}

[data-wash="green-black"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #c7e600;
    background-image: url("../el-sonido-en-la-iglesia/ref/graficos/fondo-verde-texturado.jpg");
    background-size: 520px;
    opacity: calc(1 - var(--wash));
    pointer-events: none;
}

.iglesia-band-green .iglesia-prose p,
.iglesia-band-green .book-points li {
    color: rgba(17, 17, 17, 0.8);
}

.iglesia-band-white .iglesia-prose p {
    color: rgba(17, 17, 17, 0.78);
}

.iglesia-band-white .kicker {
    color: rgba(17, 17, 17, 0.55);
}

.iglesia-band-white .media {
    background:
        radial-gradient(ellipse at 18% 20%, rgba(199, 230, 0, 0.22), transparent 42%),
        linear-gradient(160deg, #ecece4 0%, #e4e4dc 100%);
}

.iglesia-band-white .media-label {
    color: rgba(17, 17, 17, 0.55);
}

.iglesia-band-white .btn {
    border-color: #111111;
    color: #111111;
}

.iglesia-band-white .btn:hover,
.iglesia-band-white .btn:focus-visible {
    background: #111111;
    color: #f4f4ee;
}

[data-wash="green-black"] .iglesia-prose p {
    color: rgba(255, 255, 255, 0.9);
}

.iglesia-band-green .btn {
    border-color: #111111;
    color: #111111;
}

.iglesia-band-green .btn:hover,
.iglesia-band-green .btn:focus-visible {
    background: #111111;
    color: #c7e600;
}

[data-wash="green-black"] .btn {
    border-color: #ffffff;
    color: #ffffff;
}

[data-wash="green-black"] .btn:hover {
    background: #ffffff;
    color: #1a2000;
}

.iglesia-band-green .ediciones-logo {
    filter: none;
    opacity: 0.88;
}

.iglesia-cta .ediciones-logo {
    opacity: 0.8;
}

.iglesia-band-green .contact-highlights li,
.iglesia-band-green .contact-highlights li:last-child {
    border-color: rgba(17, 17, 17, 0.25);
}

.iglesia-band-green .contact-highlights .icon-line {
    color: #111111;
}

@media (min-width: 860px) {
    body.page-iglesia,
    body.page-iglesia .iglesia-band-parallax,
    body.page-iglesia [data-wash="green-black"]::before {
        background-attachment: fixed;
    }
}

.parallax-el {
    display: grid;
    place-items: center;
    width: 100%;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
}

.author-visual .media img[data-parallax] {
    height: 122%;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
    transition: opacity 0.4s var(--ease);
}

.author-visual .media:hover img[data-parallax].is-loaded {
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.03);
}

.js .book-hero-band .hero-copy,
.js .book-hero-band .book-cover {
    opacity: 0;
    transform: translateY(32px);
}

.book-hero-band.is-in .hero-copy {
    animation: iglesia-appear 0.9s var(--ease) forwards;
}

.book-hero-band.is-in .book-cover {
    animation: iglesia-appear 1s 0.12s var(--ease) forwards;
}

.book-hero-band.is-in .book-cover img {
    animation: iglesia-book 1.15s 0.16s var(--ease) both;
}

@keyframes iglesia-appear {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes iglesia-book {
    from {
        opacity: 0.4;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

body.page-iglesia.js [data-reveal] {
    opacity: 0;
    transform: translateY(36px);
}

body.page-iglesia.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

body.page-iglesia.js [data-reveal].is-in > * {
    animation: iglesia-appear 0.75s var(--ease) both;
}

body.page-iglesia.js [data-reveal].is-in > *:nth-child(2) { animation-delay: 0.08s; }
body.page-iglesia.js [data-reveal].is-in > *:nth-child(3) { animation-delay: 0.14s; }
body.page-iglesia.js [data-reveal].is-in > *:nth-child(4) { animation-delay: 0.2s; }

.contact-highlights {
    display: grid;
    width: min(40rem, 100%);
    margin: 0.4rem 0 0.6rem;
}

.contact-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.contact-highlights li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-highlights .icon-line {
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
    margin-top: 0.38em;
    color: currentColor;
}

.iglesia-cta {
    justify-items: stretch;
}

.iglesia-cta-grid {
    display: grid;
    gap: 1.6rem;
    width: 100%;
}

.iglesia-cta-copy h2 {
    max-width: 14ch;
}

.iglesia-cta .contact-highlights {
    width: 100%;
    margin: 0;
}

.iglesia-cta-btn {
    justify-self: center;
    min-width: min(100%, 18rem);
    min-height: 3.9rem;
    padding: 1.15rem 2.4rem;
    font-size: 0.9rem;
}

.iglesia-cta .ediciones-logo {
    justify-self: center;
    width: 5.4rem;
    margin-top: 0.15rem;
    opacity: 0.82;
}

@media (min-width: 860px) {
    .iglesia-cta-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
        gap: 3.2rem 4rem;
        align-items: center;
    }

    .iglesia-cta-btn {
        min-width: 21rem;
        min-height: 4.2rem;
        padding: 1.25rem 2.8rem;
        font-size: 0.95rem;
        margin-top: 0.6rem;
    }

    .iglesia-cta .ediciones-logo {
        width: 5rem;
    }
}

.js .iglesia-cta .contact-highlights li {
    opacity: 0;
    transform: translateY(18px);
}

.js .iglesia-cta.is-in .contact-highlights li {
    animation: iglesia-appear 0.75s var(--ease) both;
}

.js .iglesia-cta.is-in .contact-highlights li:nth-child(1) { animation-delay: 0.12s; }
.js .iglesia-cta.is-in .contact-highlights li:nth-child(2) { animation-delay: 0.22s; }
.js .iglesia-cta.is-in .contact-highlights li:nth-child(3) { animation-delay: 0.32s; }

.js .iglesia-cta .contact-highlights .icon-line {
    opacity: 0;
    transform: scale(0.7);
}

.js .iglesia-cta.is-in .contact-highlights .icon-line {
    animation: iglesia-icon-in 0.55s var(--ease) both;
}

.js .iglesia-cta.is-in .contact-highlights li:nth-child(1) .icon-line { animation-delay: 0.22s; }
.js .iglesia-cta.is-in .contact-highlights li:nth-child(2) .icon-line { animation-delay: 0.32s; }
.js .iglesia-cta.is-in .contact-highlights li:nth-child(3) .icon-line { animation-delay: 0.42s; }

@keyframes iglesia-icon-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .book-hero-band .hero-copy,
    .book-hero-band .book-cover,
    body.page-iglesia.js [data-reveal],
    body.page-iglesia.js [data-reveal].is-in > *,
    .parallax-el,
    .author-visual .media img[data-parallax],
    .author-visual .media:hover img[data-parallax].is-loaded,
    .js .iglesia-cta .contact-highlights li,
    .js .iglesia-cta .contact-highlights .icon-line,
    .hero-slide-img {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
        will-change: auto;
        filter: saturate(0.72) contrast(1.05) brightness(0.78);
    }

    .hero-slide-img:not(.is-on) {
        opacity: 0;
    }

    body.page-iglesia,
    body.page-iglesia .iglesia-band-parallax,
    body.page-iglesia [data-wash="green-black"]::before {
        background-attachment: scroll;
    }
}
