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

body {
    font-family: 'Courier New', 'Times New Roman', monospace;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Pantalla de booteo */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.terminal {
    background: #0a0a0a;
    border: 3px solid #00ffcc;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 30px rgba(0,255,204,0.3);
    border-radius: 20px;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    color: #00ffcc;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.code-input {
    background: rgba(255,255,255,0.9);
    border: 2px solid #00ffcc;
    color: #000000;
    padding: 1rem;
    width: 100%;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1.2rem;
    border-radius: 15px;
    text-align: center;
}

.code-input::placeholder {
    color: #666;
}

.dream-btn {
    background: #ffcc00;
    border: none;
    color: #000000;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Comic Neue', 'Courier New', monospace;
    width: 100%;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 60px;
    margin: 0.5rem 0;
}

.dream-btn:hover {
    background: #ffdd44;
    transform: scale(0.98);
}

.dream-btn:active {
    transform: scale(0.95);
}

/* Estancias (salas) */
.room {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.salon {
    background: linear-gradient(135deg, #1a0a2e 0%, #0f0f1a 100%);
}

.inventario {
    background: linear-gradient(225deg, #0f172a 0%, #1e1b4b 100%);
}

.confirmacion {
    background: linear-gradient(315deg, #2d1b36 0%, #1a0f2a 100%;
}

.room h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 3px 3px 0 #00ffcc;
    background: rgba(0,0,0,0.5);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.info-card {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border: 3px solid #ffcc00;
    margin: 2rem 0;
    border-radius: 25px;
    max-width: 95%;
}

.info-card p {
    margin: 1rem 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.8);
}

.fecha-destacada {
    font-size: 1.6rem;
    color: #ffcc00;
    font-weight: bold;
    text-shadow: 2px 2px 2px #000000;
}

.ubicacion-link {
    color: #00ffcc;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.6);
    padding: 0.3rem 0.6rem;
    display: inline-block;
    border-radius: 15px;
    text-decoration: none;
}

.ubicacion-link:active {
    background: rgba(0,255,204,0.3);
}

.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { text-shadow: -2px 0 red, 2px 0 blue; }
    50% { text-shadow: 2px 0 red, -2px 0 blue; }
    100% { text-shadow: -2px 0 red, 2px 0 blue; }
}

/* Mapa interactivo */
.mapa-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    border: 3px solid #ff66cc;
    border-radius: 25px;
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.mapa-container:active {
    transform: scale(0.98);
}

.mapa-interactivo {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 15px;
}

.mapa-simbolo {
    font-size: 4rem;
}

/* Lista de inventario */
.lista-inventario {
    text-align: left;
    max-width: 95%;
    margin: 1rem auto;
    background: rgba(0, 0, 0, 0.85);
    padding: 1.5rem;
    border-radius: 25px;
    border: 3px solid #ff66cc;
}

.lista-inventario h3 {
    color: #ff66cc;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.lista-inventario li {
    margin: 0.8rem 0;
    font-size: 1.1rem;
    color: white;
    list-style: none;
    padding: 0.8rem;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    text-align: left;
    font-weight: bold;
}

/* Formulario */
.formulario-sueno {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    max-width: 95%;
    margin: 1rem auto;
    border-radius: 25px;
    border: 3px solid #00ffcc;
}

.formulario-sueno input, 
.formulario-sueno select {
    width: 100%;
    padding: 1rem;
    margin: 0.8rem 0;
    font-size: 1.1rem;
    border-radius: 20px;
    border: 2px solid #00ffcc;
    background: rgba(255,255,255,0.95);
    color: #000000;
    font-family: monospace;
}

.formulario-sueno input::placeholder {
    color: #666;
}

.mensaje-confirmacion {
    display: none;
    background: rgba(0,255,100,0.2);
    padding: 1rem;
    margin-top: 1rem;
    border: 2px solid #00ff66;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
}

/* Pantalla de bienvenida (acceso.html) */
.bienvenida-personalizada {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    max-width: 90%;
    margin: 1rem;
    border: 3px solid #00ffcc;
}

.glitch-titulo {
    font-size: 1.8rem;
    color: #00ffcc;
    text-shadow: 3px 3px 0 #000000;
    margin-bottom: 1rem;
}

#mensajeBienvenida {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 2px 2px 3px #000000;
    font-weight: bold;
}

#emojiPersonal {
    font-size: 4rem;
    filter: drop-shadow(2px 2px 2px #000000);
}

/* Botón regresar */
.btn-regresar {
    background: rgba(255,255,255,0.2);
    border: 2px solid #888;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: monospace;
    margin-top: 1rem;
    border-radius: 50px;
    font-size: 1rem;
}

.btn-regresar:active {
    background: rgba(255,255,255,0.3);
}

/* Responsive para celular (niños de 8 años) */
@media (max-width: 768px) {
    .room h1 { 
        font-size: 1.5rem; 
    }
    
    .info-card p { 
        font-size: 1.1rem;
    }
    
    .dream-btn {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
    
    .info-card {
        padding: 1rem;
        margin: 1rem;
    }
    
    .fecha-destacada {
        font-size: 1.3rem;
    }
    
    .lista-inventario li {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
    
    .glitch-titulo {
        font-size: 1.4rem;
    }
    
    #mensajeBienvenida {
        font-size: 1rem;
    }
    
    .terminal {
        padding: 1.5rem;
    }
    
    .code-input {
        font-size: 1rem;
        padding: 0.8rem;
    }
}
/* Mobile-first readability and low-end phone polish */
:root {
    --touch-size: 56px;
    --mobile-text: 1.18rem;
    --mobile-title: clamp(2rem, 9vw, 3.1rem);
    --mobile-panel-bg: rgba(0, 0, 0, 0.86);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
iframe,
video {
    max-width: 100%;
}

iframe {
    width: 100%;
    min-height: 320px;
    border: 3px solid #00ffcc;
    border-radius: 22px;
    background: #0f172a;
}

a,
button,
input,
select,
textarea {
    font: inherit;
}

button,
.btn,
.boton,
.dream-button,
.dreamcore-button,
a.button,
a.btn,
input[type="submit"] {
    min-height: var(--touch-size);
    padding: 1rem 1.35rem;
    border-radius: 999px;
    font-size: clamp(1.05rem, 4.6vw, 1.35rem);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
}

input,
select,
textarea {
    min-height: 52px;
    font-size: 1.15rem;
    border-radius: 18px;
}

.map-link,
.maps-link,
.whatsapp-link,
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 420px);
    min-height: 58px;
    margin: 1rem auto;
    padding: 1rem 1.25rem;
    border: 3px solid #ffcc00;
    border-radius: 999px;
    background: #ffcc00;
    color: #1a0a2e;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.35);
}

.whatsapp-link,
.whatsapp-button {
    border-color: #00ffcc;
    background: #00ffcc;
}

.whatsapp-confirmation-box {
    margin: 1.4rem auto 0;
    text-align: center;
}

.whatsapp-confirmation-box p {
    margin: 0 0 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.35);
}

form {
    width: min(100%, 620px);
    margin-left: auto;
    margin-right: auto;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 3px solid #00ffcc;
    background: rgba(0, 0, 0, 0.82);
    color: #ffffff;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.22);
}

@media (max-width: 760px) {
    body {
        font-size: var(--mobile-text);
        line-height: 1.55;
    }

    h1,
    .glitch,
    .titulo,
    .title {
        font-size: var(--mobile-title);
        line-height: 1.05;
        text-wrap: balance;
    }

    h2 {
        font-size: clamp(1.55rem, 7vw, 2.25rem);
        line-height: 1.15;
    }

    p,
    li,
    label,
    .mensaje,
    .message,
    .contenido,
    .content {
        font-size: clamp(1.08rem, 4.8vw, 1.35rem);
    }

    .card,
    .tarjeta,
    .panel,
    .dream-card,
    .container,
    main,
    section {
        max-width: calc(100vw - 24px);
    }

    .card,
    .tarjeta,
    .panel,
    .dream-card {
        padding: 1.2rem;
        border-width: 3px;
        border-radius: 25px;
        background: var(--mobile-panel-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    iframe {
        min-height: 360px;
        border-radius: 20px;
    }

    .scanlines,
    .scanline,
    .floating,
    .float,
    .dream-particle,
    .particle {
        animation-duration: 18s;
    }
}

@media (max-width: 480px) {
    body {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    button,
    .btn,
    .boton,
    .dream-button,
    .dreamcore-button,
    a.button,
    a.btn,
    input[type="submit"],
    .map-link,
    .maps-link,
    .whatsapp-link,
    .whatsapp-button {
        width: 100%;
        min-height: 60px;
    }

    iframe {
        min-height: 400px;
    }
}

@media (prefers-reduced-motion: reduce), (max-width: 760px) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
