/* styles.css — Overlay de bienvenida y UI 2D NEALTA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #06140c;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
}

canvas {
    display: block;
}

/* ---------------- Overlay de bienvenida ---------------- */
#overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(4, 20, 11, 0.82), rgba(4, 20, 11, 0.94)),
        url('../assets/textures/inicio.jpg') center / cover no-repeat;
}

#overlay-card {
    max-width: 560px;
    width: calc(100% - 40px);
    text-align: center;
    padding: 38px 36px 28px;
    border-radius: 22px;
    background: rgba(6, 22, 13, 0.86);
    border: 2px solid #9CCC65;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

#overlay-logo {
    width: 220px;
    max-width: 70%;
}

#overlay-card h1 {
    font-size: 34px;
    letter-spacing: 4px;
    margin: 10px 0 16px;
    color: #ffffff;
}

.tagline {
    font-size: 21px;
    font-style: italic;
    color: #B2FF59;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.desc {
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
}

.desc strong { color: #B2FF59; }

/* ---------------- Carga ---------------- */
#loading p {
    font-size: 14px;
    color: #9CCC65;
    margin-bottom: 8px;
}

#loading-track {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

#loading-bar {
    height: 100%;
    width: 0%;
    border-radius: 6px;
    background: linear-gradient(90deg, #2E7D32, #B2FF59);
    transition: width 0.2s ease;
}

/* ---------------- Botones ---------------- */
#actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: 6px 0 4px;
}

/* El VRButton de three.js se inyecta con estilos inline position:absolute;
   lo forzamos a integrarse a la tarjeta */
#vr-slot { position: relative; width: 100%; height: 54px; }
#vr-slot button {
    position: absolute !important;
    left: 50% !important;
    bottom: auto !important;
    top: 0 !important;
    transform: translateX(-50%);
    width: 260px !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 10px !important;
    border: 2px solid #B2FF59 !important;
    background: #2E7D32 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: pointer;
}

#desktop-btn {
    width: 260px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: bold;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

#desktop-btn:hover {
    background: rgba(178, 255, 89, 0.18);
    border-color: #B2FF59;
}

.hint {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

.hint strong { color: #B2FF59; }

.brand-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(156, 204, 101, 0.3);
    font-size: 13px;
    font-weight: bold;
    color: #9CCC65;
}

.brand-footer span {
    font-weight: normal;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------------- Mira de escritorio ---------------- */
#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-weight: bold;
    color: rgba(178, 255, 89, 0.9);
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
}
