@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Cinzel:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    inset: 0;
}

html {
    font-size: 16px !important;
}

body {
    zoom: 1 !important;
    transform: scale(1) !important;
    transform-origin: 0 0 !important;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: #000;
    cursor: default;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

#entrance {
    position: fixed;
    inset: 0;
    z-index: 1000;
    transition: opacity 2s ease;
}

.fachada-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entrance-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 80px 0 100px;
    z-index: 10;
}

.museum-title {
    text-align: center;
}

.museum-title h1 {
    font-family: 'Cinzel', serif;
    font-size: 52px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow:
        0 0 30px rgba(212, 175, 55, 0.8),
        0 0 60px rgba(212, 175, 55, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.9);
    animation: titleGlow 3s ease-in-out infinite;
}

.museum-title p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 300;
    color: rgba(100, 200, 255, 0.95);
    letter-spacing: 6px;
    margin-top: 10px;
    font-style: italic;
    text-shadow: 
        0 0 20px rgba(100, 200, 255, 0.9),
        0 0 40px rgba(100, 200, 255, 0.6);
    animation: subtitleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.4), 0 4px 20px rgba(0, 0, 0, 0.9);
    }
    50% {
        text-shadow: 0 0 50px rgba(212, 175, 55, 1), 0 0 100px rgba(212, 175, 55, 0.6), 0 4px 20px rgba(0, 0, 0, 0.9);
    }
}

@keyframes subtitleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(100, 200, 255, 0.8), 0 0 30px rgba(100, 200, 255, 0.6);
        opacity: 0.9;
    }
    50% {
        text-shadow: 0 0 20px rgba(100, 200, 255, 1), 0 0 60px rgba(100, 200, 255, 0.9);
        opacity: 1;
    }
}

.knock-btn,
.enter-btn {
    padding: 25px 70px;
    font-size: 24px;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #d4af37 100%);
    color: #1a0f08;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.7), inset 0 3px 15px rgba(255,255,255,0.6);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.knock-btn:hover,
.enter-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.9), inset 0 3px 20px rgba(255,255,255,0.8);
}

.museum-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/museum.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.museum-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.45) 100%);
}

#welcome,
#ending {
    position: fixed;
    inset: 0;
    z-index: 900;
    transition: opacity 1.5s ease;
}

#ending.lights-out .museum-bg {
    opacity: 0.05;
    transition: all 3s ease;
}

#ending.lights-out .artie-welcome {
    opacity: 0.1;
    transition: all 3s ease;
}

.artie-welcome-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.particles-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}

.artie-welcome {
    height: 60vh;
    width: auto;
    animation: hologramGlowWelcome 3s ease-in-out infinite;
}

@keyframes hologramGlowWelcome {
    0%, 100% {
        filter: drop-shadow(0 0 80px rgba(100, 200, 255, 0.9)) drop-shadow(0 0 160px rgba(100, 200, 255, 0.6));
        opacity: 0.97;
    }
    50% {
        filter: drop-shadow(0 0 120px rgba(100, 200, 255, 1)) drop-shadow(0 0 220px rgba(100, 200, 255, 0.8));
        opacity: 1;
    }
}

.speech-bubble-welcome {
    position: fixed;
    bottom: calc(60vh + 2vh);
    left: 50%;
    transform: translateX(-50%);
    width: 45vw;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.98) 100%);
    padding: 3vh 3vw;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(100, 200, 255, 0.4);
    z-index: 101;
    transition: opacity 0.5s ease;
    border: 3px solid rgba(100, 200, 255, 0.5);
    text-align: center;
}

.speech-bubble-welcome::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid rgba(255, 255, 255, 0.98);
}

#speechTextWelcome,
#speechTextEnding {
    font-size: 22px;
    line-height: 1.8;
    color: #1a1a1a;
    font-family: 'Cormorant Garamond', serif;
}

.enter-btn {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
}

#museum {
    position: fixed;
    inset: 0;
    transition: opacity 1.5s ease;
    z-index: 800;
}

.artie-container {
    position: fixed;
    bottom: 0;
    right: 60px;
    z-index: 100;
}

.artie {
    height: 65vh;
    width: auto;
    transition: transform 0.15s ease-out;
    animation: hologramGlow 3s ease-in-out infinite;
}

@keyframes hologramGlow {
    0%, 100% {
        filter: drop-shadow(0 0 60px rgba(100, 200, 255, 0.8)) drop-shadow(0 0 120px rgba(100, 200, 255, 0.5));
        opacity: 0.98;
    }
    50% {
        filter: drop-shadow(0 0 90px rgba(100, 200, 255, 1)) drop-shadow(0 0 180px rgba(100, 200, 255, 0.7));
        opacity: 1;
    }
}

.speech-bubble {
    position: fixed;
    bottom: calc(65vh + 2vh);
    right: 6vw;
    width: 35vw;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.98) 100%);
    padding: 3vh 3vw;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(100, 200, 255, 0.3);
    z-index: 101;
    transition: opacity 0.5s ease;
    border: 3px solid rgba(100, 200, 255, 0.4);
    cursor: pointer;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 160px;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid rgba(255, 255, 255, 0.98);
}

#speechText {
    font-size: 20px;
    line-height: 1.8;
    color: #1a1a1a;
    font-family: 'Cormorant Garamond', serif;
}

.artwork-container {
    position: absolute;
    top: 50%;
    left: 37%;
    transform: translate(-50%, -50%);
    width: 660px;
    height: 530px;
    z-index: 50;
}

.frame-decoration {
    position: absolute;
    inset: -50px;
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 15%, #f4e5b8 30%, #d4af37 50%, #f4e5b8 70%, #d4af37 85%, #8b6914 100%);
    border-radius: 8px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9), 0 0 80px rgba(212, 175, 55, 0.5);
    z-index: 1;
}

.frame-decoration::before {
    content: '';
    position: absolute;
    inset: 22px;
    background: linear-gradient(135deg, #6b5510 0%, #a0892a 20%, #c9b037 40%, #e8d99f 50%, #c9b037 60%, #a0892a 80%, #6b5510 100%);
    border-radius: 4px;
}

.frame-decoration::after {
    content: '';
    position: absolute;
    inset: 40px;
    background: #0a0a0a;
    border-radius: 3px;
}

.artwork {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 85px);
    height: calc(100% - 85px);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 1.5s ease;
    z-index: 2;
    border-radius: 3px;
}

.artwork.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.navigation {
    position: fixed;
    bottom: 50px;
    left: 37%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 100;
}

.nav-btn {
    width: 70px;
    height: 70px;
    font-size: 45px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(255, 215, 0, 0.95) 50%, rgba(212, 175, 55, 0.95) 100%);
    color: #1a0f08;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.7), inset 0 3px 20px rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: scale(1.15) translateY(-5px);
}

.nav-btn.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.artwork-info {
    position: fixed;
    top: 50px;
    left: 37%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    transition: opacity 0.6s ease;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 1), 0 0 40px rgba(100, 200, 255, 0.4);
    z-index: 60;
}

.artwork-info h2 {
    font-size: 40px;
    margin-bottom: 12px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 2px;
}

.artwork-info p {
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
}