:root {
    /* MODO CLARO / PERGAMINO */
    --bg-color: #f2ebd9;
    --text-color: #111111;
    --burgundy: #6b0f1a;
    --burgundy-glow: rgba(107, 15, 26, 0.25);
    --border-color: #26231f;
    --card-bg: #e8e0cc;
}

body.dark-mode {
    /* MODO OSCURO / OSCURANTISMO */
    --bg-color: #090909;
    --text-color: #e3dac9;
    --burgundy: #9e1b2b;
    --burgundy-glow: rgba(158, 27, 43, 0.4);
    --border-color: #e3dac9;
    --card-bg: #121212;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Ocupar la pantalla completa sin scroll */
html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier Prime', Georgia, serif;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Grano sutil de película en el fondo */
.grain-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 0);
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
}

.splash-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.splash-title {
    font-family: 'Cormorant Garamond', cursive;
    font-size: 3.2rem;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 4px;
    animation: fadeInDown 1.2s ease-out;
}

.splash-subtitle {
    font-family: 'Lora', serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    opacity: 0.8;
    margin-bottom: 25px;
    animation: fadeIn 1.5s ease-out;
}

/* Marco Ornamental con el grabado del cordero */
.frame-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleUp 1.2s ease-out;
}

.ornate-frame {
    position: relative;
    width: 210px;
    height: 250px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.ornate-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px var(--burgundy-glow);
}

.corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--burgundy);
}

.top-left { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.top-right { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.bottom-right { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.lamb-artwork {
    width: 100%;
    height: 100%;
}

.lamb-svg {
    width: 100%;
    height: 100%;
    color: var(--text-color);
    transition: color 0.6s ease;
}

.quote-text {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--burgundy);
    margin-top: 18px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    animation: fadeIn 2s ease-out;
}

/* Botón interactivo para entrar */
.enter-section {
    animation: fadeInUp 1.4s ease-out;
}

.enter-btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.enter-btn:hover {
    background-color: var(--burgundy);
    color: #ffffff;
    border-color: var(--burgundy);
    box-shadow: 0 0 20px var(--burgundy-glow);
    letter-spacing: 5px;
}

.enter-hint {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 8px;
    font-style: italic;
}

.mode-seal {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.mode-seal:hover {
    background-color: var(--burgundy);
    color: #fff;
    border-color: var(--burgundy);
    transform: rotate(45deg);
}

/* Animaciones */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}