:root {
    --blue: #0a3268;
    --blue-deep: #061f42;
    --blue-mid: #123f7a;
    --gold: #d4a017;
    --gold-soft: #f0d58a;
    --berry: #c62828;
    --ink: #1a2332;
    --muted: #5b6573;
    --nav: #5f6772;
    --line: #e3e7ee;
    --page: #f3f5f9;
    --card: #ffffff;
    --shadow: 0 14px 34px rgba(10, 50, 104, 0.08);
    --header-h: 72px;
    --max: 1120px;
    --focus: #c9a227;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(212, 160, 23, 0.35);
    color: var(--blue-deep);
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

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

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
    transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(10, 50, 104, 0.08);
}

.header-inner,
.docs-inner,
.footer-inner {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    height: 52px;
    width: auto;
    display: block;
    transition: transform 0.35s var(--ease-out);
}

.header.is-scrolled .brand img {
    transform: scale(0.92);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    position: relative;
    color: var(--nav);
    font-size: 0.98rem;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--blue);
}

.nav a:hover::after,
.nav a:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle span::before {
    top: -6px;
}

.menu-toggle span::after {
    top: 6px;
}

/* Hero estilo campaña navideña: azul municipal + Santa real */
.hero {
    position: relative;
    overflow: hidden;
    min-height: min(88vh, 720px);
    color: #fff;
    isolation: isolate;
    background: var(--blue);
}

.hero-sky,
.hero-glow,
.hero-snow {
    position: absolute;
    inset: -8% 0 -6%;
    pointer-events: none;
    will-change: transform;
}

.hero-sky {
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 85% 0%, rgba(255, 196, 120, 0.28), transparent 55%),
        linear-gradient(160deg, #0d3a78 0%, var(--blue) 45%, var(--blue-deep) 100%);
}

.hero-glow {
    z-index: 1;
    background:
        radial-gradient(circle at 12% 78%, rgba(212, 160, 23, 0.18), transparent 28%),
        radial-gradient(ellipse 90% 40% at 50% 100%, rgba(6, 31, 66, 0.55), transparent 60%);
    animation: glow-pulse 7s ease-in-out infinite alternate;
}

.hero-snow {
    z-index: 2;
    inset: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translate3d(0, -4vh, 0);
        opacity: 0;
    }
    12% { opacity: 0.85; }
    100% {
        transform: translate3d(18px, 105vh, 0);
        opacity: 0.15;
    }
}

.hero-baubles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
}

.bauble {
    position: absolute;
    top: -8px;
    width: clamp(56px, 8vw, 110px);
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
    animation: bauble-sway 4.6s ease-in-out infinite alternate;
    transform-origin: top center;
}

.bauble--1 { left: 8%; width: clamp(64px, 9vw, 120px); animation-delay: 0s; }
.bauble--2 { left: 22%; top: -18px; width: clamp(48px, 7vw, 92px); animation-delay: 0.4s; }
.bauble--3 { right: 28%; left: auto; top: -10px; width: clamp(44px, 6.5vw, 86px); animation-delay: 0.9s; }
.bauble--4 { right: 10%; left: auto; top: -22px; width: clamp(58px, 8vw, 108px); animation-delay: 1.3s; }

@keyframes bauble-sway {
    from { transform: rotate(-7deg) translateY(0); }
    to { transform: rotate(7deg) translateY(10px); }
}

@keyframes glow-pulse {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

.hero-stage {
    position: relative;
    z-index: 4;
    width: 100%;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px 80px;
}

.hero-figure {
    position: absolute;
    left: 0;
    bottom: -12px;
    z-index: 4;
    width: min(38vw, 420px);
    animation: rise-in 1s var(--ease-out) both;
    pointer-events: none;
}

.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
}

.hero-inner {
    position: relative;
    z-index: 5;
    width: min(40rem, 100%);
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5.8vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin: 0 auto;
    max-width: 12ch;
    text-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    animation: rise-in 1s var(--ease-out) 0.08s both;
}

.hero-lead {
    margin: 22px auto 0;
    max-width: 34rem;
    font-size: 1.16rem;
    line-height: 1.55;
    color: rgba(236, 244, 255, 0.92);
    font-weight: 400;
    animation: rise-in 1s var(--ease-out) 0.16s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    animation: rise-in 1s var(--ease-out) 0.24s both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.btn-xmas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px 0 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-xmas img {
    width: 26px;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-xmas--gold {
    background:
        radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.35), transparent 40%),
        linear-gradient(180deg, #f0c45c 0%, var(--gold) 55%, #b8860b 100%);
    color: var(--blue-deep);
    border: 1px solid rgba(184, 134, 11, 0.45);
    box-shadow:
        0 12px 28px rgba(212, 160, 23, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-xmas--gold:hover,
.btn-xmas--gold:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 16px 34px rgba(212, 160, 23, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-xmas--ghost {
    border: 1.5px solid rgba(240, 213, 138, 0.65);
    color: #fff6e6;
    background:
        linear-gradient(180deg, rgba(198, 40, 40, 0.22), rgba(10, 50, 104, 0.2));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-xmas--ghost img {
    width: 22px;
}

.btn-xmas--ghost:hover,
.btn-xmas--ghost:focus-visible {
    background: linear-gradient(180deg, rgba(198, 40, 40, 0.34), rgba(10, 50, 104, 0.28));
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}

.docs {
    position: relative;
    padding: 88px 0 96px;
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(10, 50, 104, 0.05), transparent 55%),
        linear-gradient(180deg, #eef2f8 0%, var(--page) 45%);
}

.docs-head {
    max-width: 40rem;
    margin-bottom: 32px;
}

.docs-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--blue);
}

.docs-head p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.55;
}

.docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.doc-card {
    background: var(--card);
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px 24px 20px;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(10, 50, 104, 0.12);
    border-color: #d5deea;
}

.doc-card h3 {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.doc-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.45;
}

.doc-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8eef8;
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(198, 40, 40, 0.12);
}

.doc-card-food {
    grid-column: 1 / -1;
    border-color: #d5deea;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.docs-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.docs-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.docs-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.docs-grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.docs-grid .reveal:nth-child(5) { transition-delay: 0.33s; }

.footer {
    position: relative;
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    padding: 64px 0 32px;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--berry), var(--gold), #247a4d, var(--gold), var(--berry));
    opacity: 0.9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1.1fr 0.9fr;
    gap: 32px 40px;
}

.footer h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.footer h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-brand p,
.footer-grid a,
.footer-grid p {
    color: rgba(220, 232, 248, 0.78);
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-grid h2,
.footer-grid h3 {
    margin-bottom: 6px;
}

.footer-grid a {
    transition: color 0.25s ease, transform 0.25s var(--ease-out);
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: var(--gold-soft);
    transform: translateX(2px);
}

.hours {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    padding: 10px 16px;
    border: 1px solid rgba(220, 232, 248, 0.28);
    border-radius: 10px;
    color: rgba(220, 232, 248, 0.9);
    font-size: 0.95rem;
}

.hours span:first-child {
    font-weight: 700;
    color: #fff;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.footer-bottom {
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(220, 232, 248, 0.16);
    text-align: center;
}

.footer-bottom p {
    color: rgba(220, 232, 248, 0.62);
    font-size: 0.86rem;
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow,
    .bauble,
    .snowflake,
    .hero-figure,
    .hero h1,
    .hero-lead,
    .hero-cta,
    .reveal {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-sky,
    .hero-glow,
    .hero-snow,
    .hero-baubles,
    .hero-figure {
        transform: none !important;
    }

    .doc-card:hover,
    .btn-xmas:hover {
        transform: none;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0 12px;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 12px 24px;
    }

    .nav a::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero,
    .hero-stage {
        min-height: auto;
    }

    .hero-stage {
        padding: 88px 20px 200px;
        align-items: flex-start;
    }

    .hero-figure {
        width: min(56vw, 260px);
        left: 0;
        bottom: -8px;
    }

    .hero-inner {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .bauble--2,
    .bauble--3 {
        display: none;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-xmas {
        width: 100%;
    }
}
