:root {
    --ink: #24170f;
    --muted: #6b5646;
    --paper: #f4efe6;
    --paper-2: #fffaf3;
    --red: #9d1c1c;
    --red-deep: #6d1212;
    --green: #1c5c3a;
    --gold: #a67c3d;
    --line: rgba(36, 23, 15, 0.12);
    --shadow: 0 18px 40px rgba(36, 23, 15, 0.12);
    --header: 84px;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--red-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 520; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin: 0.2em 0; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0.15em 0 0.35em; }
h3 { margin: 0 0 0.35em; font-size: 1.45rem; }
p { margin: 0 0 0.8em; }
button, input { font: inherit; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 50;
}
.skip:focus { top: 1rem; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow {
    margin: 0;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.lead { font-size: 1.2rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(244, 239, 230, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header::after {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0 46%, var(--gold) 46% 54%, var(--green) 54% 100%);
}
.header-bar {
    min-height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand img { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 0.3rem 1rem; }
.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.nav-mail {
    border: 1px solid var(--red);
    color: var(--red) !important;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}
.nav-toggle { display: none; }

.hero {
    min-height: calc(100vh - var(--header) - 4px);
    display: grid;
    align-items: end;
    color: #fffaf3;
    background:
        linear-gradient(180deg, rgba(20, 10, 6, 0.12) 0%, rgba(20, 10, 6, 0.72) 82%),
        url("../hero.jpg") center 42% / cover no-repeat;
}
.hero__inner { padding: 12vh 0 4.5rem; max-width: 760px; }
.hero .eyebrow { color: #f0d7a2; }
.hero__lead { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-light { background: #fffaf3; color: var(--red-deep); }
.btn-ghost { background: transparent; color: #fffaf3; border-color: rgba(255, 250, 243, 0.7); }
.btn-solid { background: var(--red); color: white; }
.btn:hover { transform: translateY(-1px); }

.section { padding: 4.5rem 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.section-head p:last-child { max-width: 42rem; color: var(--muted); }
.section-head--light, .section-head--light h2 { color: #fffaf3; }
.section-head--light .eyebrow { color: #f0d7a2; }
.section-head--light p { color: rgba(255, 250, 243, 0.86); }
.text-link { font-weight: 700; white-space: nowrap; }
.path { font-family: ui-monospace, monospace; font-size: 0.92em; }

.about { background: var(--paper-2); }
.about__grid {
    display: grid;
    grid-template-columns: 0.7fr 1.4fr 0.7fr;
    gap: 1.5rem;
    align-items: center;
}
.about__photo {
    width: 100%;
    height: 340px;
    object-fit: contain;
    background: white;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.scene { background: var(--paper); }
.scene__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}
.scene__shot {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    background: #ddd;
}
.scene__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.scene__shot:hover img { transform: scale(1.04); }

.services {
    color: #fffaf3;
    background:
        linear-gradient(180deg, rgba(16, 42, 28, 0.86), rgba(16, 32, 22, 0.9)),
        url("../bg-servicios.jpg") center / cover no-repeat;
}
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}
.card {
    background: rgba(255, 250, 243, 0.1);
    border: 1px solid rgba(255, 250, 243, 0.18);
    border-radius: 16px;
    padding: 1.1rem 1rem 0.4rem;
    backdrop-filter: blur(4px);
}
.card h3 { font-size: 1.35rem; }
.card p { color: rgba(255, 250, 243, 0.86); }

.members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
}
.member {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: center;
    background: var(--paper-2);
    border-radius: 18px;
    padding: 0.8rem;
    box-shadow: 0 8px 24px rgba(36, 23, 15, 0.05);
}
.member__open {
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #ddd;
}
.member__open img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.member__open span {
    position: absolute;
    inset: auto 0.5rem 0.5rem;
    background: rgba(36, 23, 15, 0.78);
    color: white;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.member__text p { color: var(--muted); margin: 0; }

.galleries { background: #efe6d8; }
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.chip {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
    font-weight: 700;
}
.chip.is-active, .chip:hover { background: var(--ink); color: var(--paper); }
.albums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.album {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--paper-2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.album img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.album__meta { display: flex; flex-direction: column; padding: 0.85rem 1rem 1rem; }
.album__year { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.album strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 520; }
.album em { color: var(--muted); font-style: normal; font-size: 0.95rem; }
.album[hidden] { display: none; }
.empty-filter { color: var(--muted); }

.audio {
    color: #fffaf3;
    background:
        linear-gradient(180deg, rgba(28, 14, 10, 0.88), rgba(28, 14, 10, 0.92)),
        url("../bg-audio.jpg") center / cover no-repeat;
}
.player {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.4rem;
    background: rgba(255, 250, 243, 0.96);
    color: var(--ink);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: var(--shadow);
}
.player__cover { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; }
.player__body { padding: 0.4rem 0.5rem 0.2rem; min-width: 0; }
.player__now { margin: 0; color: var(--red); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.player__time { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.player__controls { display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0 1rem; }
.player__controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: white;
    cursor: pointer;
}
.player__play { background: var(--red) !important; color: white; border-color: var(--red) !important; width: 54px !important; height: 54px !important; font-size: 1.1rem; }
.player__volume { display: flex; align-items: center; margin-left: auto; width: 110px; }
.playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow: auto;
    border-top: 1px solid var(--line);
}
.playlist button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.2rem;
    display: grid;
    grid-template-columns: 1.6rem 1fr auto;
    gap: 0.45rem;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.playlist button.is-current { color: var(--red-deep); font-weight: 700; }
.playlist button small { color: var(--muted); font-weight: 600; }
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: #e5d8c8;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red);
}

.site-footer { background: #1a110c; color: #f4efe6; padding: 2rem 0 1rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.3rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-links a { color: #f0d7a2; }
.footer-copy { text-align: center; color: rgba(244, 239, 230, 0.55); margin: 1.4rem 0 0; }

.member-dialog, .lightbox { border: 0; padding: 0; background: transparent; color: var(--ink); }
.member-dialog { width: min(720px, calc(100vw - 1.5rem)); }
.member-dialog::backdrop, .lightbox::backdrop { background: rgba(16, 8, 4, 0.82); }
.member-dialog__body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.2rem;
    background: var(--paper-2);
    border-radius: 18px;
    padding: 1rem;
}
.member-dialog__body img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 3 / 4; }
.dialog-close, .lightbox__close {
    position: absolute;
    border: 0;
    background: var(--ink);
    color: white;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}
.member-dialog .dialog-close { top: 1.2rem; right: 1.2rem; }
.lightbox { width: min(1100px, 100vw); max-width: 100vw; max-height: 100vh; }
.lightbox__frame { position: relative; }
.lightbox__close { top: 0.6rem; right: 0.6rem; z-index: 2; }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100vh - 4.5rem); object-fit: contain; background: #120c09; }
.lightbox figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #fffaf3;
    padding: 0.55rem 0.2rem 0;
}
.lightbox__nav {
    position: absolute;
    top: 42%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 250, 243, 0.92);
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox__nav--prev { left: 0.6rem; }
.lightbox__nav--next { right: 0.6rem; }

.crumb { margin-bottom: 0.4rem; }
.crumb a { font-weight: 700; text-decoration: none; }
.photo-grid { columns: 3 240px; column-gap: 0.7rem; }
.photo-grid .photo { display: block; margin: 0 0 0.7rem; break-inside: avoid; }
.photo-grid img { width: 100%; border-radius: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 980px) {
    .about__grid, .cards, .player, .albums { grid-template-columns: 1fr 1fr; }
    .about__grid { grid-template-columns: 1fr; }
    .about__photo { height: 220px; }
    .player { grid-template-columns: 1fr; }
    .player__cover { max-height: 280px; }
}
@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: transparent;
    }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--ink);
        position: relative;
        content: "";
    }
    .nav-toggle__bars::before { position: absolute; top: -6px; }
    .nav-toggle__bars::after { position: absolute; top: 6px; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(var(--header) + 4px);
        background: var(--paper-2);
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 1rem 1rem;
        border-bottom: 1px solid var(--line);
    }
    .site-nav.is-open { display: flex; }
    .cards, .members, .scene__grid, .albums, .member-dialog__body { grid-template-columns: 1fr; }
    .member { grid-template-columns: 110px 1fr; }
    .section-head, .footer-grid { flex-direction: column; align-items: start; }
    .photo-grid { columns: 2 140px; }
    .hero { min-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scene__shot img, .btn { transition: none; }
}
