:root {
    --bg: #0B0B0D;
    --panel: #111114;
    --panel2: rgba(17, 17, 20, .72);
    --text: #EDEDED;
    --muted: #B8B8B8;
    --gold: #C8A25E;
    --border: rgba(255, 255, 255, .10);
    --shadow: 0 20px 80px rgba(0, 0, 0, .55);
    --radius: 14px;

    --serif: "DM Serif Display", serif;
    --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --rail-w: 92px;
}

/* Reset */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(1200px 800px at 20% -8%, rgba(200, 162, 94, .08), transparent 55%),
        radial-gradient(900px 700px at 80% 12%, rgba(255, 255, 255, .05), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--sans);
    letter-spacing: .2px;
    overflow-x: hidden;
    top: 0 !important;
    /* google translate banner fix */
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: rgba(200, 162, 94, .25);
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* Cursor glow */
.cursorGlow {
    position: fixed;
    width: 520px;
    height: 520px;
    margin-left: -260px;
    margin-top: -260px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    background: radial-gradient(circle at center,
            rgba(200, 162, 94, .14),
            rgba(200, 162, 94, .06) 35%,
            rgba(255, 255, 255, .03) 55%,
            transparent 70%);
    filter: blur(2px);
    transition: opacity .25s ease;
}

/* Layout */
.page {
    margin-left: var(--rail-w);
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* Rail */
.rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail-w);
    border-right: 1px solid var(--border);
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 10px;
    z-index: 50;
}

.rail__logo {
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    position: relative;
    overflow: hidden;
}

.rail__logo::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, transparent, rgba(200, 162, 94, .25), transparent);
    transform: translateX(-120%);
    animation: sheen 3.8s ease-in-out infinite;
    opacity: .7;
}

@keyframes sheen {
    0% {
        transform: translateX(-120%);
    }

    50% {
        transform: translateX(120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.rail__mark {
    color: var(--gold);
    font-family: var(--mono);
    font-weight: 700;
    transform: translateY(-1px);
}

.rail__nav {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
}

.rail__link {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .72);
    padding: 8px 10px;
    border-radius: 10px;
    transition: .2s ease;
}

.rail__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.rail__link.is-active {
    color: var(--gold);
}

.rail__social {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iconbtn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: rgba(237, 237, 237, .82);
    background: rgba(255, 255, 255, .03);
    transition: .2s ease;
}

.iconbtn:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 162, 94, .45);
    color: var(--text);
}

/* Topbar */
.topbar {
    position: fixed;
    left: var(--rail-w);
    right: 0;
    top: 0;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    z-index: 45;
}

.brand__name {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: .04em;
}

.topbar__nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.toplink {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .70);
    padding: 8px 10px;
    border-radius: 10px;
    transition: .2s ease;
}

.toplink:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.toplink.is-active {
    color: var(--gold);
}

.pillbtn {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 14px;
    border: 1px solid rgba(200, 162, 94, .55);
    color: var(--text);
    border-radius: 999px;
    background: rgba(200, 162, 94, .08);
    transition: .2s ease;
}

.pillbtn:hover {
    transform: translateY(-1px);
    background: rgba(200, 162, 94, .14);
}

/* =========================
   TOPBAR SOCIAL ICONS
========================= */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar__iconbtn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f5efe6;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.topbar__iconbtn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.24);
}

.topbar__iconbtn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Desktop: ocultar iconos arriba porque ya existen en el rail */
@media (min-width: 1024px) {
    .topbar__social {
        display: none;
    }
}

/* Mobile/tablet: mostrar iconos al lado de la hamburguesa */
@media (max-width: 1023px) {
    .topbar__right {
        gap: 10px;
    }

    .topbar__social {
        display: flex;
    }

    .topbar__iconbtn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 14px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .topbar__right {
        gap: 8px;
    }

    .topbar__social {
        gap: 8px;
    }

    .topbar__iconbtn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }

    .topbar__iconbtn svg {
        width: 17px;
        height: 17px;
    }
}




.burger {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    cursor: pointer;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(237, 237, 237, .82);
    margin: 6px auto;
    border-radius: 99px;
}

/* Drawer */
.drawer {
    display: none;
}

.drawer.is-open {
    display: block;
}

.drawer__panel {
    position: fixed;
    right: 14px;
    top: 84px;
    width: min(360px, calc(100% - 28px));
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 10, 12, .92);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    z-index: 80;
    overflow: hidden;
    transform: translateY(-6px);
    animation: pop .22s ease both;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(-6px) scale(1);
    }
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.drawer__title {
    font-family: var(--mono);
    letter-spacing: .12em;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .75);
}

.drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    cursor: pointer;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 6px;
}

.drawer__link {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: rgba(237, 237, 237, .8);
    font-family: var(--mono);
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 12px;
}

.drawer__link:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .08);
}

.drawer__cta {
    padding: 12px 10px 14px;
}

.pillbtn--wide {
    display: block;
    text-align: center;
}

.drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    z-index: 70;
}

/* Sections */
.section {
    padding: 92px 0;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section__title {
    font-family: var(--serif);
    font-size: 44px;
    letter-spacing: .02em;
    margin: 0;
}

.section__hint {
    margin: 0;
    color: rgba(237, 237, 237, .68);
    font-size: 13px;
}

/* Buttons */
.btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font-family: var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12px;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 162, 94, .38);
}

.btn--primary {
    background: rgba(200, 162, 94, .14);
    border-color: rgba(200, 162, 94, .55);
}

.btn--ghost {
    background: rgba(255, 255, 255, .03);
}

.btn--small {
    padding: 10px 14px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    padding-top: 74px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 700px at 30% 20%, rgba(200, 162, 94, .18), transparent 60%),
        linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .20)),
        url("./assets/artista/artist.jpg");
    background-size: cover;
    background-position: center;
    filter: saturate(.95) contrast(1.05);
    transform: scale(1.02);
    will-change: transform;
}

.hero__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 700px at 30% 30%, transparent 45%, rgba(0, 0, 0, .65) 80%),
        radial-gradient(900px 600px at 80% 20%, rgba(200, 162, 94, .10), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 74px 0 0;
}

.eyebrow {
    font-family: var(--mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(237, 237, 237, .72);
    margin: 18px 0 10px;
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(46px, 6vw, 78px);
    line-height: .96;
    margin: 0 0 14px;
    text-shadow: 0 10px 60px rgba(0, 0, 0, .55);
}

.hero__sub {
    margin: 0 0 22px;
    color: rgba(237, 237, 237, .78);
    font-size: 15px;
    line-height: 1.55;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* previews */
.hero__previews {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.preview {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: .2s ease;
}

.preview:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(200, 162, 94, .45);
}

.preview__img {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: saturate(.95) contrast(1.05);
}

.preview__img--realismo {
    background-image: url("./assets/work1.jpg");
}

.preview__img--animal {
    background-image: url("./assets/work3.jpg");
}

.preview__img--featured {
    background-image: url("./assets/work5.jpg");
}

/* Scroll hint */
.hero__scrollHint {
    position: absolute;
    right: 6px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: .85;
    user-select: none;
}

.hero__scrollHint .dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(200, 162, 94, .85);
    box-shadow: 0 0 0 6px rgba(200, 162, 94, .10);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .9;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

.hero__scrollHint .line {
    width: 72px;
    height: 1px;
    background: rgba(255, 255, 255, .20);
}

.hero__scrollHint .txt {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .72);
}

.hero__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 3;
}

/* About */
.about {
    border-bottom: 1px solid var(--border);
}

.about__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 26px;
    align-items: stretch;
}

.lead {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(237, 237, 237, .86);
    margin: 0 0 10px;
}

.muted {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(237, 237, 237, .62);
    margin: 0 0 18px;
}

.about__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: rgba(237, 237, 237, .80);
    font-family: var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 11px;
}

.chip--soft {
    background: rgba(200, 162, 94, .10);
    border-color: rgba(200, 162, 94, .35);
    color: rgba(237, 237, 237, .86);
}

.about__photo {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .03);
    overflow: hidden;
    box-shadow: 0 18px 70px rgba(0, 0, 0, .35);
}

.about__img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .10)),
        url("./assets/artista/artist.jpg");
    background-size: cover;
    background-position: center;
    filter: contrast(1.02) saturate(.95);
}

/* Work */
.work {
    border-bottom: 1px solid var(--border);
}

/* Marquee */
.marquee {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    overflow: hidden;
    padding: 16px 0 10px;
    box-shadow: 0 20px 90px rgba(0, 0, 0, .30);
    margin-bottom: 18px;
}

.marquee__edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 110px;
    pointer-events: none;
    z-index: 3;
}

.marquee__edge--left {
    left: 0;
    background: linear-gradient(to right, rgba(11, 11, 13, 1), rgba(11, 11, 13, 0));
}

.marquee__edge--right {
    right: 0;
    background: linear-gradient(to left, rgba(11, 11, 13, 1), rgba(11, 11, 13, 0));
}

.marquee__track {
    flex-wrap: nowrap;
    display: flex;
    width: max-content;
    gap: 14px;
    padding: 10px 18px;
    will-change: transform;
    animation: marquee var(--dur, 40s) linear infinite;
}

.marquee__track--b {
    animation-name: marqueeReverse;
    padding-top: 0;
    padding-bottom: 12px;
    opacity: .98;
    filter: saturate(1.02);
}

.marquee__group {
    flex-wrap: nowrap;
    width: max-content;
    display: flex;
    gap: 14px;
    align-items: center;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marqueeReverse {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.shot {
    flex: 0 0 auto;
    width: clamp(190px, 24vw, 300px);
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .35);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: .22s ease;
    position: relative;
}

.shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(300px 160px at 20% 0%, rgba(200, 162, 94, .14), transparent 60%);
    opacity: 0;
    transition: .25s ease;
}

.shot:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(200, 162, 94, .45);
}

.shot:hover::after {
    opacity: 1;
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.98) contrast(1.05);
}

.marquee__note {
    margin: 4px 18px 0;
    font-size: 12px;
    color: rgba(237, 237, 237, .58);
}

/* ===========================
   ✅ WORK GRID (ÚNICO / REAL)
=========================== */
#work .work__grid {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

#work .work__card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: transform .2s ease, border-color .2s ease;
    aspect-ratio: 4 / 5;
    box-shadow: 0 18px 70px rgba(0, 0, 0, .28);
}

#work .work__card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 162, 94, .45);
}

#work .work__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #0f0f12;
    filter: saturate(.98) contrast(1.06);
    transform: scale(1.02);
    transition: transform .25s ease;
}

#work .work__card:hover .work__thumb {
    transform: scale(1.08);
}

#work .work__tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .40);
    color: rgba(237, 237, 237, .92);
    backdrop-filter: blur(8px);
}

/* Book */
.book {
    padding-top: 78px;
}

.book__title {
    font-family: var(--serif);
    font-size: clamp(46px, 6vw, 88px);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 28px;
    text-align: center;
    color: rgba(237, 237, 237, .92);
}

.book__grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 16px;
    align-items: start;
}

.form {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    padding: 18px;
    box-shadow: 0 20px 90px rgba(0, 0, 0, .35);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .72);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .35);
    color: var(--text);
    outline: none;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(200, 162, 94, .55);
    box-shadow: 0 0 0 3px rgba(200, 162, 94, .12);
}

textarea {
    resize: vertical;
}

.form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.form__note {
    margin: 0;
    font-size: 12px;
    color: rgba(237, 237, 237, .62);
}

.book__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    padding: 16px;
}

.card h3 {
    margin: 0 0 10px;
    font-family: var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(237, 237, 237, .86);
}

.card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(237, 237, 237, .70);
    line-height: 1.75;
    font-size: 13px;
}

.contact__mini {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.link {
    font-family: var(--mono);
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(237, 237, 237, .78);
}

.link:hover {
    color: var(--gold);
}

/* Sponsors */
.sponsors {
    border-bottom: 1px solid var(--border);
}

.sponsors__row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: center;
}

.sponsor {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    padding: 14px;
    display: grid;
    place-items: center;
    min-height: 86px;
    transition: .2s ease;
}

.sponsor:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 162, 94, .35);
}

.sponsor img {
    max-width: 100%;
    max-height: 36px;
    opacity: .78;
    filter: grayscale(1) contrast(1.1);
}

.sponsors__note {
    margin: 12px 0 0;
    color: rgba(237, 237, 237, .55);
    font-size: 12px;
}

/* Map */
.map {
    border-top: 1px solid rgba(255, 255, 255, 0);
}

.map__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 14px;
    align-items: stretch;
}

.map__frame {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
    box-shadow: 0 20px 90px rgba(0, 0, 0, .35);
    min-height: 360px;
}

.map__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    min-height: 360px;
}

.map__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 34px 0;
    margin-top: 60px;
    background: rgba(0, 0, 0, .18);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 18px;
    align-items: start;
}

.footer__brand {
    font-family: var(--serif);
    font-size: 20px;
}

.footer__muted {
    color: rgba(237, 237, 237, .62);
    font-size: 13px;
    margin-top: 6px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--mono);
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(237, 237, 237, .75);
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__small {
    text-align: right;
    font-size: 12px;
    color: rgba(237, 237, 237, .72);
}

.footer__credit {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .55);
    transition: .2s ease;
}

.footer__credit:hover {
    color: var(--gold);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 90;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(4px);
}

.modal__panel {
    position: relative;
    width: min(980px, calc(100% - 28px));
    margin: 90px auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: rgba(10, 10, 12, .92);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: modalIn .22s ease both;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    cursor: pointer;
    z-index: 2;
}

.modal__tag {
    position: absolute;
    left: 12px;
    top: 12px;
    font-family: var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 11px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .35);
    color: rgba(237, 237, 237, .9);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.modal__img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #0f0f12;
}

.modal__actions {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    justify-content: flex-end;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease;
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive base
=========================== */
@media (max-width: 980px) {
    .topbar__nav {
        display: none;
    }

    .burger {
        display: inline-block;
    }

    .section__title {
        font-size: 38px;
    }

    .about__grid {
        grid-template-columns: 1fr;
    }

    .book__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__small {
        text-align: left;
    }

    .sponsors__row {
        grid-template-columns: repeat(3, 1fr);
    }

    .map__grid {
        grid-template-columns: 1fr;
    }
}



@media (max-width: 720px) {
    :root {
        --rail-w: 0px;
    }

    .rail {
        display: none;
    }

    .page {
        margin-left: 0;
    }

    .topbar {
        left: 0;
    }

    .hero {
        min-height: 70vh;
    }

    .hero__content {
        padding-top: 62px;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }
    .about.section {
    padding-top: 18px !important;
}



    .about .section__title {
        margin-top: 0;
        margin-bottom: 12px;
    }
    


    .about__text {
        margin-top: 0;
        padding-top: 0;
    }

    .modal__panel {
        margin: 84px auto;
    }

    .hero__scrollHint {
        display: none;
    }

    #work .work__card {
        aspect-ratio: 1 / 1.25;
        aspect-ratio: 1 / 1.25 !important;
        border-radius: 16px !important;
    }
}


/* ✅ SOLO en pantallas MUY chicas baja a 1 columna 
@media (max-width: 420px) {
    #work .work__grid {
        grid-template-columns: 2fr !important;
    }
}
*/

/* ===========================
   ✅ SPONSORS MARQUEE (AUTO)
=========================== */
.sponsorsMarquee {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    overflow: hidden;
    padding: 14px 0;
    box-shadow: 0 20px 90px rgba(0, 0, 0, .25);
}

.sponsorsMarquee__edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 110px;
    pointer-events: none;
    z-index: 3;
}

.sponsorsMarquee__edge--left {
    left: 0;
    background: linear-gradient(to right, rgba(11, 11, 13, 1), rgba(11, 11, 13, 0));
}

.sponsorsMarquee__edge--right {
    right: 0;
    background: linear-gradient(to left, rgba(11, 11, 13, 1), rgba(11, 11, 13, 0));
}

.sponsorsMarquee__track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    padding: 8px 18px;
    will-change: transform;
    animation: sponsorsMarquee var(--sDur, 26s) linear infinite;
}

.sponsorsMarquee__group {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 14px;
    align-items: center;
}

/* ✅ loop infinito */
@keyframes sponsorsMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* pausa al hover */
.sponsorsMarquee:hover .sponsorsMarquee__track {
    animation-play-state: paused;
}

/* tarjeta logo */
.sponsorCard {
    flex: 0 0 auto;
    width: clamp(140px, 16vw, 190px);
    height: 78px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .28);
    display: grid;
    place-items: center;
    padding: 12px 16px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.sponsorCard:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 162, 94, .38);
    background: rgba(200, 162, 94, .08);
}

.sponsorCard img {
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
    opacity: .85;
    filter: grayscale(1) contrast(1.08);
    transition: filter .2s ease, opacity .2s ease;
}

.sponsorCard:hover img {
    filter: grayscale(0) contrast(1.05);
    opacity: 1;
}

/* en móvil: logos un poco más chicos */
@media (max-width: 720px) {
    .sponsorsMarquee__edge {
        width: 70px;
    }

    .sponsorCard {
        height: 70px;
        width: clamp(120px, 40vw, 160px);
    }
}

/* ===========================
   ✅ FIX: layout topbar right
=========================== */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lang {
    display: flex;
    align-items: center;
    max-width: 220px;
    min-width: 0;
}

/* En móvil: el translate se va al drawer */
@media (max-width: 980px) {
    #langSlotTopbar {
        display: none;
    }

    /* lo escondemos arriba */
    .drawer__lang {
        padding: 12px 16px 6px;
        border-bottom: 1px solid var(--border);
    }
}

/* ===========================
   ✅ GOOGLE TRANSLATE: limpiar "Powered by", logo, etc
=========================== */

/* Oculta el banner/iframe superior de Google */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

html {
    scroll-padding-top: 74px;
}

/* Widget */
#google_translate_element,
#google_translate_element * {
    font-family: var(--mono) !important;
}

/* El gadget trae textos + logo: los ocultamos */
#google_translate_element .goog-logo-link {
    display: none !important;
}

#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
}

/* mata "Powered by" */
#google_translate_element .goog-te-gadget span {
    display: none !important;
}

/* Estilo del select */
#google_translate_element select.goog-te-combo {
    font-size: 12px !important;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .85);
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 10px 36px 10px 12px;
    outline: none;
    max-width: 220px;
    appearance: none;
    -webkit-appearance: none;
}

/* Flechita custom */
#langSlotTopbar,
#langSlotDrawer {
    position: relative;
}

#langSlotTopbar::after,
#langSlotDrawer::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid rgba(237, 237, 237, .55);
    border-bottom: 2px solid rgba(237, 237, 237, .55);
    pointer-events: none;
}

/* Focus bonito */
#google_translate_element select.goog-te-combo:focus {
    border-color: rgba(200, 162, 94, .55);
    box-shadow: 0 0 0 3px rgba(200, 162, 94, .12);
}

/* Los iframes internos que mete (hover tips) */
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

/* En pantallas muy chicas: evita que empuje al burger */
@media (max-width: 420px) {
    #google_translate_element select.goog-te-combo {
        max-width: 180px;
    }
}

iframe.goog-te-banner-frame {
    display: none !important;
}

/* ===========================
   ✅ FIX Z-INDEX / CLICK MENU
=========================== */
.topbar {
    z-index: 200;
}

.burger {
    position: relative;
    z-index: 210;
    pointer-events: auto;
}

.drawer {
    position: relative;
    z-index: 220;
}

.drawer__backdrop {
    z-index: 219;
}

.drawer__panel {
    z-index: 220;
}