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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: #43523f;
    position: relative;
    min-height: 100vh;
}

body.theme-dark {
    background-color: #43523f;
}

body.theme-cream {
    background-color: #faf8f5;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

body.theme-dark::-webkit-scrollbar-track {
    background: #43523f;
}

body.theme-dark::-webkit-scrollbar-thumb {
    background: #fac670;
}

body.theme-cream::-webkit-scrollbar-track {
    background: #faf8f5;
}

body.theme-cream::-webkit-scrollbar-thumb {
    background: #43523f;
}

body {
    scrollbar-width: thin;
}

body.theme-dark {
    scrollbar-color: #fac670 #43523f;
}

body.theme-cream {
    scrollbar-color: #43523f #faf8f5;
}

@keyframes slideUpBlur {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px)
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0)
    }
}

.animate-up {
    animation: slideUpBlur 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

@keyframes drawLine {
    0% {
        width: 0
    }

    100% {
        width: 80px
    }
}

.animate-line {
    animation: drawLine 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes floatGentle {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.float-gentle {
    animation: floatGentle 5s ease-in-out infinite;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.7)
    }

    100% {
        opacity: 1;
        transform: scale(1)
    }
}

.animate-fade-in-scale {
    animation: fadeInScale 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#navbar {
    background: rgba(67, 82, 63, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    will-change: transform;
}

#navbar.nav-hidden {
    transform: translateY(-100%);
}

#navbar.nav-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.menu-tab {
    transition: all 0.3s ease;
}

.menu-tab.active {
    background: #43523f;
    color: #fac670;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .galeria-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.galeria-foto {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.toast {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #fac670;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide.active img {
    animation: kenBurns 20s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1)
    }

    100% {
        transform: scale(1.06)
    }
}

.hero-image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #faf8f5 0%, rgba(250, 248, 245, 0.3) 20%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

.menu-item-card {
    position: relative;
}

.menu-item-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fac670;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}

.menu-item-card:hover::after {
    width: 60%;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(250, 198, 112, 0))
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(250, 198, 112, 0.3))
    }
}

.logo-glow:hover {
    animation: logoPulse 2s ease-in-out infinite;
}

select option {
    background-color: #43523f;
    color: #e8e1d8;
}

.bg-monogram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
    filter: brightness(0) invert(1);
    opacity: 0.12;
    animation: fadeInScaleMonogram 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInScaleMonogram {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.12;
        transform: translate(-50%, -50%) scale(1);
    }
}

.h-13 {
    height: 3.25rem;
}

.w-13 {
    width: 3.25rem;
}

.gift-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 3px 6px rgba(67, 82, 63, 0.14);
    border-color: #fac670;
}

.gift-card.hidden-card {
    display: none;
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #43523f;
    color: #fac670;
}

.alias-box {
    border: 1px dashed rgba(67, 82, 63, 0.25);
}

.copy-btn {
    transition: all 0.3s ease;
}

.info-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(67, 82, 63, 0.1);
    border-color: rgba(250, 198, 112, 0.4);
}

@keyframes discoSpin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.disco-spin {
    animation: discoSpin 14s linear infinite;
}

/* ══════════════════════════════════════════════════════════════════
   ACCESO POR TOKEN · pantalla privada (ver gate.js)
   ══════════════════════════════════════════════════════════════════ */

/* Oculta el contenido mientras el sitio está bloqueado → sin parpadeo */
html.bloqueado body > *:not(#pantalla-bloqueo) {
    display: none !important;
}

html.bloqueado,
html.bloqueado body {
    overflow: hidden;
}

#pantalla-bloqueo {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: #faf8f5;
    background-image: radial-gradient(circle at 50% -10%, rgba(250, 198, 112, 0.16), transparent 55%);
    color: #43523f;
    font-family: 'Manrope', sans-serif;
}

#pantalla-bloqueo .pb-monograma {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #e5a94e;
    margin-bottom: 1.75rem;
    padding-left: 0.42em;
}

#pantalla-bloqueo .pb-icono {
    width: 44px;
    height: 44px;
    color: #e5a94e;
    margin-bottom: 1.25rem;
}

#pantalla-bloqueo h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.1;
    margin: 0;
}

#pantalla-bloqueo .pb-divisor {
    width: 52px;
    height: 1px;
    margin: 1.6rem 0;
    background: linear-gradient(90deg, transparent, #e5a94e, transparent);
}

#pantalla-bloqueo p {
    max-width: 30rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #5a6e55;
}

#pantalla-bloqueo .pb-nota {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #9a9488;
}

@media (prefers-reduced-motion: no-preference) {
    #pantalla-bloqueo > * {
        animation: pb-aparecer 0.7s ease both;
    }
    #pantalla-bloqueo .pb-icono   { animation-delay: 0.05s; }
    #pantalla-bloqueo h1          { animation-delay: 0.10s; }
    #pantalla-bloqueo .pb-divisor { animation-delay: 0.15s; }
    #pantalla-bloqueo p           { animation-delay: 0.20s; }
    #pantalla-bloqueo .pb-nota    { animation-delay: 0.28s; }
}

@keyframes pb-aparecer {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   SIGUE RECORRIENDO · tres arcos al final de cada página
   ══════════════════════════════════════════════════════════════════ */

.banners {
    position: relative;
    padding: 72px 24px 88px;
    text-align: center;
    background: #eadfca url('images/banners/fondo-banners.jpg') center / cover no-repeat;
}

.banners-cejilla {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #43523f;
}

.banners-cejilla::before,
.banners-cejilla::after {
    content: '';
    width: 32px;
    height: 1px;
    background: currentColor;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Páginas internas: solo los otros dos arcos, centrados */
.banners-grid--dos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 660px;
}

.arco-marco {
    display: block;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    padding: 9px;
    border: 1px solid rgba(229, 169, 78, 0.85);
    border-radius: 999px 999px 0 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

a.arco-marco:hover {
    transform: translateY(-4px);
}

.arco {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 0 0;
    overflow: hidden;
    background: #f7f6f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px 28px;
}

/* La imagen se funde en crema abajo, donde va el título */
.arco::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54%;
    background: linear-gradient(to bottom, rgba(250, 248, 245, 0) 0%, rgba(250, 248, 245, 0.9) 46%, #faf8f5 72%);
    z-index: 1;
}

.arco-capa {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
}

.arco-historia {
    background-image: url('images/Lais_y_Charly.png');
    background-size: 340.8% auto;
    background-position: 49.8% 19.6%;
}

.arco-dia {
    background-image: url('images/hero-photos-acuarela-bodega.jpg');
    background-size: 200% auto;
    background-position: 36.7% 56.25%;
}

.arco-regalos {
    background-image: url('images/banners/regalo-pintura.jpg');
    background-size: cover;
    background-position: center;
}

.arco-pareja {
    position: absolute;
    left: 16.6%;
    top: 18%;
    width: 55.4%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 78%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 78%);
}

.arco-texto {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #43523f;
}

.arco-texto h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(15px, 2.3vw, 33px);
    line-height: 1.05;
}

.arco-linea {
    display: block;
    width: 28px;
    height: 1px;
    background: #e5a94e;
    margin: 14px auto 12px;
}

.arco-ver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(67, 82, 63, 0.78);
}

@media (max-width: 640px) {
    .banners {
        padding: 40px 14px 44px;
    }

    .banners-cejilla {
        margin-bottom: 22px;
        font-size: 9.5px;
        gap: 8px;
    }

    .banners-cejilla::before,
    .banners-cejilla::after {
        width: 20px;
    }

    .banners-grid {
        gap: 8px;
    }

    .arco-marco {
        padding: 4px;
    }

    .arco {
        padding: 0 4px 12px;
    }

    .arco-linea {
        width: 14px;
        margin: 6px auto 0;
    }

    .arco-ver {
        display: none;
    }
}
