/* CONFIGURACIÓN Y TIPOGRAFÍA */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=DM+Serif+Display&family=Inter:wght@300;400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030712; /* Azul noche profundo, casi negro */
    color: #f3f4f6;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Fondo estrellado sutil */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 40px 60px;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* PORTADA EDITORIAL */
header {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-content {
    text-align: center;
    padding: 20px;
}

h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: -1px;
    color: #f9fafb;
    margin-bottom: 15px;
}

header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9ca3af;
}

.scroll-hint {
    margin-top: 100px;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #4b5563;
    animation: pulse 2s infinite ease-in-out;
}

/* ESTRUCTURA DE LOS EDIFICIOS */
.building {
    min-height: 120vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 100px 20px;
}

/* Siluetas de fondos arquitectónicos oscuros */
.skyline-silhouette {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 90%;
    z-index: 1;
    pointer-events: none;
}

/* Identidades visuales únicas por edificio (No genéricas) */
.hotel .skyline-silhouette {
    background: linear-gradient(to top, #090d16 60%, transparent);
    border-top: 2px solid rgba(255, 255, 255, 0.03);
}

.beach .skyline-silhouette {
    background: linear-gradient(to top, #05141c 50%, transparent);
    clip-path: polygon(0 40%, 30% 20%, 60% 45%, 100% 15%, 100% 100%, 0% 100%);
    opacity: 0.7;
}

.neon .skyline-silhouette {
    background: linear-gradient(to top, #11071c 70%, transparent);
    box-shadow: inset 0 200px 150px rgba(147, 51, 234, 0.05);
}

.bakery .skyline-silhouette {
    background: linear-gradient(to top, #140d07 60%, transparent);
}

/* LA VENTANA INTERACTIVA */
.window-frame {
    position: relative;
    z-index: 3;
    width: 280px;
    height: 380px;
    background: #111827;
    border: 12px solid #0b0f19; /* Marco de madera/metal oscuro */
    border-radius: 4px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(0,0,0,0.9);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* El cristal encendido interior */
.window-glass {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 25px;
    transition: all 0.5s ease;
}

/* Ajustes de color de luz específicos por historia */
.hotel .window-glass {
    background: radial-gradient(circle at center, #ffeaa7 0%, #ffb142 100%);
    box-shadow: 0 0 60px rgba(255, 177, 66, 0.2);
}

.beach .window-glass {
    background: radial-gradient(circle at center, #e0f7fa 0%, #80deea 100%);
    box-shadow: 0 0 60px rgba(128, 222, 234, 0.15);
}

.neon .window-glass {
    background: radial-gradient(circle at center, #fae8ff 0%, #f472b6 100%);
    box-shadow: 0 0 60px rgba(244, 114, 182, 0.3);
}

.bakery .window-glass {
    background: radial-gradient(circle at center, #ffedd5 0%, #ea580c 100%);
    box-shadow: 0 0 60px rgba(234, 88, 12, 0.2);
}

/* Textos dentro de la ventana */
.window-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 40px;
    transition: transform 0.5s ease;
}

.window-action {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(17, 24, 39, 0.6);
    text-align: center;
    border-top: 1px solid rgba(17, 24, 39, 0.15);
    padding-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* HOVER: Efecto al asomarse a la ventana */
.window-frame:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #1f2937;
}

.hotel decline:hover .window-glass { box-shadow: 0 0 100px rgba(255, 177, 66, 0.5); }
.beach:hover .window-glass { box-shadow: 0 0 100px rgba(128, 222, 234, 0.4); }
.neon:hover .window-glass { box-shadow: 0 0 100px rgba(244, 114, 182, 0.6); }
.bakery:hover .window-glass { box-shadow: 0 0 100px rgba(234, 88, 12, 0.5); }

.window-frame:hover .window-title {
    transform: translateY(-5px);
}

.window-frame:hover .window-action {
    opacity: 1;
    transform: translateY(0);
    color: rgba(17, 24, 39, 0.9);
}

/* EL CAMINO (HILO DE LUZ DE LA CALLE) */
.street-path {
    height: 150px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ANIMACIONES */
@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(5px); }
}