/* --- CONFIGURACIÓN BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-kraft: #dcd6ce;
    --text-dark: #4a4a4a;
    --accent: #b08d85;
    --transition-curve: cubic-bezier(0.77, 0, 0.175, 1);
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #fffbf7;
    color: var(--text-dark);
    overflow-x: hidden;
}

.body-no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Tipografía */
h1, h2, .font-serif, .monogram {
    font-family: 'Cormorant Garamond', serif;
}

/* --- INTRO / TELÓN --- */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.panel {
    position: absolute;
    width: 100%;
    height: 50.5%;
    background-color: var(--bg-kraft);
    transition: transform 1.5s var(--transition-curve);
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
}

.panel-top {
    top: 0;
    transform-origin: top;
}

.panel-bottom {
    bottom: 0;
    transform-origin: bottom;
}

/* --- CONTENIDO CENTRAL --- */
.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    transition: opacity 0.8s ease, transform 0.8s ease;
}

.monogram {
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.monogram .amp {
    font-style: italic;
    color: var(--accent);
    font-size: 4rem;
}

.date-preview {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

/* --- SELLO DE CERA --- */
.wax-seal-container {
    width: 120px;
    height: 120px;
    margin-top: 1.25rem;
    cursor: pointer;
    user-select: none;

    display: flex;
    align-items: center;
    justify-content: center;
}

.wax-seal-body {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #8c2f2f;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        inset 0 4px 6px rgba(255,255,255,0.25),
        inset 0 -6px 8px rgba(0,0,0,0.25),
        0 12px 25px rgba(0,0,0,0.25);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* Hover (desktop) */
.wax-seal-container:hover .wax-seal-body {
    transform: scale(1.05);
    box-shadow:
        inset 0 5px 7px rgba(255,255,255,0.3),
        inset 0 -7px 10px rgba(0,0,0,0.3),
        0 18px 35px rgba(0,0,0,0.3);
}

/* Click / presión */
.wax-seal-container:active .wax-seal-body {
    transform: scale(0.97);
    box-shadow:
        inset 0 6px 10px rgba(0,0,0,0.35),
        0 6px 12px rgba(0,0,0,0.2);
}

/* SVG grabado */
.weimaraner-icon {
    width: 55%;
    max-width: 60px;
    height: auto;
    display: block;

    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}

/* --- ANIMACIONES --- */
body.is-open .intro-content {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

body.is-open .panel-top {
    transform: translateY(-100%);
}

body.is-open .panel-bottom {
    transform: translateY(100%);
}

body.is-open #intro-overlay {
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 1.5s;
}

/* --- CONTENIDO PRINCIPAL --- */
.names-title {
    font-size: 3.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .names-title {
        font-size: 5rem;
    }
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

body.content-visible .animate-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- AJUSTES FINOS MOBILE --- */
@media (max-width: 360px) {

    .monogram {
        font-size: 4.2rem;
    }

    .monogram .amp {
        font-size: 3.4rem;
    }

    .date-preview {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .wax-seal-container {
        width: 100px;
        height: 100px;
        margin-top: 1rem;
    }

    .weimaraner-icon {
        max-width: 48px;
    }
}

.wax-seal-container {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.8s ease 0.6s,
        transform 0.8s ease 0.6s;
}

body:not(.is-open) .wax-seal-container {
    opacity: 1;
    transform: translateY(0);
}
