:root {
    --ink: #2c211f;
    --muted: #786b67;
    --cream: #fff8f3;
    --paper: #fffdfb;
    --rose: #c76f79;
    --rose-deep: #9f4f5c;
    --rose-soft: #f4dfe2;
    --sage: #879d87;
    --cocoa: #6b4b3e;
    --line: rgba(44, 33, 31, .11);
    --shadow: 0 24px 70px rgba(94, 59, 52, .14);
    --radius-lg: 32px;
    --radius-md: 22px;
    --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 0%, rgba(244, 223, 226, .75), transparent 31rem),
        radial-gradient(circle at 88% 18%, rgba(224, 233, 218, .72), transparent 26rem),
        var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.lightbox-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1000;
    background: var(--ink);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 110;
    height: 3px;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--rose), var(--cocoa));
}

.section-shell { width: var(--shell); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    padding: 10px 0;
    background: rgba(255, 248, 243, .84);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(44, 33, 31, .08);
}
.nav-shell {
    width: var(--shell);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(145deg, var(--rose), var(--cocoa));
    font-family: Georgia, serif;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(159,79,92,.24);
}
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1; }
.brand small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions a, .share-button {
    border: 0;
    background: transparent;
    text-decoration: none;
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
}
.nav-actions a:hover, .share-button:hover { background: rgba(255,255,255,.7); }
.share-button { border: 1px solid var(--line); background: rgba(255,255,255,.42); }

.hero {
    min-height: 720px;
    padding: 90px 0 80px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(50px, 7vw, 100px);
    align-items: center;
}
.eyebrow {
    display: inline-block;
    color: var(--rose-deep);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 12px;
    font-weight: 800;
}
.hero h1 {
    margin: 18px 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 6.8vw, 96px);
    line-height: .91;
    letter-spacing: -.055em;
    font-weight: 500;
}
.hero h1 em { color: var(--rose-deep); font-weight: 400; }
.hero-copy > p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 16px 32px rgba(44,33,31,.18); }
.button-secondary { border: 1px solid rgba(255,255,255,.32); color: white; background: rgba(255,255,255,.08); }
.portfolio-count { color: var(--muted); font-size: 14px; }
.portfolio-count strong { color: var(--ink); font-size: 22px; margin-right: 5px; font-family: Georgia, serif; }

.hero-collage {
    position: relative;
    min-height: 590px;
    isolation: isolate;
}
.hero-photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: 34px;
    border: 8px solid rgba(255,255,255,.75);
    box-shadow: var(--shadow);
    background: #eee;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-1 { width: 68%; aspect-ratio: 1 / 1.08; right: 0; top: 30px; transform: rotate(3deg); z-index: 2; }
.hero-photo-2 { width: 50%; aspect-ratio: .88; left: 0; bottom: 26px; transform: rotate(-5deg); z-index: 3; }
.hero-photo-3 { width: 42%; aspect-ratio: 1.05; right: 8%; bottom: 0; transform: rotate(5deg); z-index: 4; }
.hero-stamp {
    position: absolute;
    left: 7%;
    top: 13%;
    z-index: 6;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    color: white;
    background: var(--rose-deep);
    border: 1px solid rgba(255,255,255,.4);
    box-shadow: 0 15px 35px rgba(159,79,92,.28);
    transform: rotate(-10deg);
}
.hero-stamp span { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.hero-stamp strong { font-family: Georgia, serif; font-size: 18px; }

.intro-band { border-block: 1px solid var(--line); background: rgba(255,255,255,.45); }
.intro-grid {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-weight: 750;
}
.intro-grid p { margin: 0; }
.intro-grid span { color: var(--rose); }

.gallery-section { padding: 120px 0 80px; }
.section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 480px);
    gap: 40px;
    align-items: end;
}
.section-heading h2, .closing-card h2 {
    margin: 10px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.035em;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
}
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 44px 0 34px; }
.filter-chip {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.62);
    color: var(--ink);
    min-height: 44px;
    border-radius: 999px;
    padding: 0 16px;
    cursor: pointer;
    transition: .2s ease;
}
.filter-chip span { opacity: .55; font-size: 12px; margin-left: 5px; }
.filter-chip:hover { transform: translateY(-1px); border-color: rgba(159,79,92,.3); }
.filter-chip.is-active { color: white; background: var(--ink); border-color: var(--ink); }

.gallery-grid { columns: 4 240px; column-gap: 18px; }
.gallery-card {
    position: relative;
    break-inside: avoid;
    margin: 0 0 18px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #eee;
    box-shadow: 0 8px 24px rgba(71,45,39,.08);
}
.gallery-card[hidden] { display: none !important; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; position: relative; }
.gallery-card img { width: 100%; height: auto; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 56px 18px 18px;
    color: white;
    text-align: left;
    background: linear-gradient(transparent, rgba(32,20,18,.78));
    opacity: 0;
    transform: translateY(8px);
    transition: .28s ease;
}
.gallery-overlay span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.gallery-overlay strong { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 18px; }
.gallery-open:hover img { transform: scale(1.035); filter: saturate(1.04) contrast(1.02); }
.gallery-open:hover .gallery-overlay, .gallery-open:focus-visible .gallery-overlay { opacity: 1; transform: none; }
.gallery-open:focus-visible { outline: 3px solid var(--rose); outline-offset: -3px; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; }

.maker-section { padding: 65px 0 95px; }
.maker-layout {
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
    gap: clamp(42px, 8vw, 110px);
    align-items: center;
}
.maker-art {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    color: white;
    background:
        radial-gradient(circle at 75% 18%, rgba(236, 204, 173, .22), transparent 13rem),
        radial-gradient(circle at 15% 90%, rgba(199, 111, 121, .25), transparent 16rem),
        linear-gradient(145deg, #765448, #302321);
    box-shadow: var(--shadow);
}
.maker-art::before, .maker-art::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 50%;
}
.maker-art::before { width: 72%; aspect-ratio: 1; }
.maker-art::after { width: 58%; aspect-ratio: 1; border-style: dashed; transform: rotate(18deg); }
.maker-art-ring { position: absolute; inset: 13%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.maker-initials {
    color: rgba(255,255,255,.9);
    font: 500 clamp(110px, 15vw, 190px)/.9 Georgia, "Times New Roman", serif;
    letter-spacing: -.08em;
    transform: translate(-5px, -18px);
}
.maker-years {
    position: absolute;
    right: clamp(18px, 4vw, 42px);
    bottom: clamp(22px, 4vw, 42px);
    width: 145px;
    height: 145px;
    display: grid;
    place-content: center;
    text-align: center;
    color: var(--ink);
    background: #f4dfd3;
    border: 7px solid rgba(255,255,255,.25);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    transform: rotate(7deg);
}
.maker-years strong { font: 500 55px/.9 Georgia, "Times New Roman", serif; }
.maker-years sup { font: 500 23px Georgia, serif; vertical-align: top; }
.maker-years span { max-width: 100px; margin: 7px auto 0; font-size: 10px; line-height: 1.25; letter-spacing: .11em; text-transform: uppercase; }
.maker-art-note { position: absolute; left: 30px; bottom: 35px; color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.maker-art { min-height: 0; aspect-ratio: 1.32; display: block; background: #d6c8bd; }
.maker-art::before, .maker-art::after { display: none; }
.maker-photo { position: absolute; z-index: 0; overflow: hidden; margin: 0; background: #eadfd6; }
.maker-photo-primary { inset: 0; }
.maker-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.maker-photo-primary img { object-position: 55% center; }
.maker-photo-secondary {
    z-index: 2;
    left: 22px;
    bottom: 22px;
    width: 44%;
    height: 31%;
    border: 6px solid #fffaf6;
    border-radius: 15px;
    box-shadow: 0 12px 32px rgba(0,0,0,.24);
    transform: rotate(-3deg);
}
.maker-photo-secondary img { object-position: 64% center; }
.maker-years { z-index: 3; top: 22px; right: 22px; bottom: auto; color: var(--ink); background: rgba(255,250,246,.96); border-color: rgba(255,255,255,.92); }
.maker-art-note { z-index: 3; left: auto; right: 22px; bottom: 22px; padding: 9px 12px; border-radius: 999px; color: #fff; background: rgba(38,28,24,.72); font-size: 9px; letter-spacing: .12em; }
.maker-copy { max-width: 600px; }
.maker-copy h2 { margin: 13px 0 10px; font: 500 clamp(46px, 5.2vw, 72px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.maker-subtitle { margin: 0 0 24px !important; color: var(--rose-deep) !important; font: 500 clamp(19px, 2vw, 24px)/1.3 Georgia, "Times New Roman", serif !important; }
.maker-copy p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 11px; margin-top: 10px; color: var(--ink); text-decoration: none; font-weight: 750; }
.text-link span { color: var(--rose-deep); transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.text-link:focus-visible { outline: 3px solid var(--rose); outline-offset: 5px; border-radius: 3px; }

.closing-section { padding: 30px 0 120px; }
.closing-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(36px, 7vw, 78px);
    color: white;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.11), transparent 24rem),
        linear-gradient(135deg, #5e4138, #2e2220);
    box-shadow: var(--shadow);
}
.closing-card .eyebrow { color: #f2cfd5; }
.closing-card h2 { max-width: 750px; }
.closing-card p { max-width: 720px; line-height: 1.75; color: rgba(255,255,255,.72); margin: 24px 0 30px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 24px; }
.contact-actions .button { min-height: 54px; padding-inline: 24px; }
.button-email { color: var(--ink); background: #fff8f3; border: 1px solid #fff8f3; }
.button-whatsapp { color: #fff; background: #146c43; border: 1px solid #146c43; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.contact-details { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.contact-details p { margin: 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.55; }
.contact-details p span { color: #fff; font-weight: 700; }
.contact-details a { color: #fff; text-underline-offset: 4px; }
.contact-actions .button:focus-visible, .contact-details a:focus-visible { outline: 3px solid #f2cfd5; outline-offset: 4px; }
.footer-links a:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 4px; border-radius: 2px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.34); }
.footer-grid { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-grid strong { font-family: Georgia, serif; font-size: 22px; }
.footer-grid p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--ink); }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(20,14,13,.91); backdrop-filter: blur(10px); }
.lightbox-panel { position: relative; z-index: 1; width: min(1180px, 100%); height: min(86vh, 900px); display: grid; place-items: center; }
.lightbox-figure { margin: 0; max-width: calc(100% - 130px); max-height: 100%; display: grid; place-items: center; position: relative; }
.lightbox-figure img { max-height: calc(86vh - 95px); max-width: 100%; object-fit: contain; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.lightbox-figure figcaption { width: 100%; color: white; padding: 13px 4px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.lightbox-figure figcaption span { grid-column: 1 / -1; color: rgba(255,255,255,.6); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.lightbox-figure figcaption strong { font-family: Georgia, serif; font-size: 19px; }
.lightbox-figure figcaption small { color: rgba(255,255,255,.55); align-self: end; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.18); color: white; background: rgba(255,255,255,.09); cursor: pointer; backdrop-filter: blur(10px); }
.lightbox-close { right: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 66px; border-radius: 18px; font-size: 34px; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.17); }
.lightbox-loader { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.2); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; }
.lightbox.is-loading .lightbox-loader { opacity: 1; }
.lightbox.is-loading img { opacity: .2; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    z-index: 700;
    background: var(--ink);
    color: white;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
    :root { --shell: min(100% - 28px, 760px); }
    .hero { min-height: 0; grid-template-columns: 1fr; padding: 54px 0 90px; }
    .hero-copy { max-width: 720px; }
    .hero-collage { min-height: 590px; max-width: 650px; width: 100%; margin-inline: auto; }
    .section-heading { grid-template-columns: 1fr; align-items: start; }
    .gallery-grid { columns: 3 210px; }
    .maker-layout { grid-template-columns: 1fr; gap: 34px; }
    .maker-art { min-height: 380px; }
}

@media (max-width: 640px) {
    .site-header { padding: 12px 0; }
    .brand small { display: none; }
    .nav-actions { gap: 0; }
    .nav-actions a { display: inline-flex; padding: 9px 8px; font-size: 12px; }
    .share-button { display: none; }
    .hero { padding-top: 42px; gap: 22px; }
    .hero h1 { font-size: clamp(48px, 15vw, 72px); }
    .hero-collage { min-height: 455px; }
    .hero-photo { border-width: 5px; border-radius: 24px; }
    .hero-stamp { width: 92px; height: 92px; left: 2%; top: 8%; }
    .intro-grid { min-height: 78px; gap: 10px 14px; font-size: 11px; }
    .intro-grid span { display: none; }
    .gallery-section { padding-top: 84px; }
    .filter-bar { margin-top: 32px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-chip { white-space: nowrap; }
    .gallery-grid { columns: 2; column-gap: 10px; }
    .gallery-card { margin-bottom: 10px; border-radius: 16px; }
    .gallery-overlay { display: none; }
    .lightbox { padding: 10px; }
    .lightbox-panel { height: 92vh; }
    .lightbox-figure { max-width: 100%; width: 100%; }
    .lightbox-figure img { max-height: calc(92vh - 115px); border-radius: 12px; }
    .lightbox-nav { top: auto; bottom: 56px; width: 46px; height: 46px; border-radius: 50%; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    .lightbox-close { right: 10px; top: 10px; }
    .closing-section { padding-bottom: 70px; }
    .contact-actions { flex-direction: column; align-items: stretch; }
    .contact-actions .button { width: 100%; min-height: 56px; justify-content: center; }
    .contact-details { flex-direction: column; gap: 9px; }
    .maker-section { padding: 36px 0 65px; }
    .maker-art { min-height: 330px; border-radius: 24px; }
    .maker-photo-secondary { left: 16px; bottom: 18px; width: 46%; height: 31%; border-width: 4px; border-radius: 12px; }
    .maker-years { top: 16px; width: 118px; height: 118px; right: 16px; bottom: auto; border-width: 5px; }
    .maker-years strong { font-size: 45px; }
    .maker-art-note { left: auto; right: 16px; bottom: 18px; max-width: none; font-size: 8px; }
    .maker-copy p { font-size: 15px; }
    .footer-grid { align-items: flex-start; flex-direction: column; justify-content: center; padding: 34px 0; }
}

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

/* Páginas legales */
.legal-page .legal-content {
    max-width: 900px;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.legal-content h1 {
    margin: 1.5rem 0 2rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
    line-height: 1.75;
}

.legal-content ul {
    padding-left: 1.5rem;
}
