/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Transparencia total obligatoria para ver la cámara AR en vivo */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent !important;
    background-color: transparent !important;
}

.hidden {
    display: none !important;
}

/* Pantalla de incompatibilidad */
#incompatibility-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0f1015;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    padding: 24px;
}

#incompatibility-screen .message-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 22px;
    border-radius: 12px;
    max-width: 360px;
}

#incompatibility-screen h2 {
    color: #e74c3c;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 500;
}

#incompatibility-screen p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #bdc3c7;
}

#incompatibility-screen ul {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

#incompatibility-screen ul li {
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 0;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #d4af37;
}

/* Loader / Pantalla de Carga Inicial */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 13, 18, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 8000;
    transition: opacity 0.5s ease;
    color: #fff;
    padding: 20px;
}

.loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

#loading-text {
    font-size: 0.92rem;
    font-weight: 400;
    color: #e0e0e0;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}

/* Barra de progreso fina y elegante */
.progress-container {
    width: 100%;
    max-width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 6px 0 10px 0;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #d4af37;
    transition: width 0.3s ease-out;
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 400;
    color: #d4af37;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Botón de Inicio Elegante / Minimalista */
.ui-btn-primary {
    margin-top: 15px;
    padding: 13px 28px;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ui-btn-primary:hover {
    background: #d4af37;
    color: #0c0d12;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.ui-btn-primary:active {
    transform: scale(0.98);
}

/* Indicación sutil y limpia */
.instruction-hint {
    margin-top: 18px;
    color: #a8a8a8;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 260px;
}

/* A-Frame ajustes */
a-scene {
    background: transparent !important;
}

.a-canvas {
    display: block !important;
    background: transparent !important;
}

/* Ocultar botones y avisos de Realidad Virtual (VR) */
.a-enter-vr, 
.a-enter-ar,
.a-enter-vr-button,
.a-orientation-modal,
.a-dialog {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Footer Fino y Elegante */
#ar-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    padding: 10px 16px;
    background: rgba(10, 10, 14, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    pointer-events: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
}

.footer-brand {
    font-weight: 400;
    color: #eaeaea;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 5px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.footer-link:hover {
    background: #d4af37;
    color: #0c0d12;
    border-color: #d4af37;
}

.footer-link:hover .facebook-icon {
    fill: #0c0d12;
}

.facebook-icon {
    width: 13px;
    height: 13px;
    fill: #d4af37;
    transition: fill 0.25s ease;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    #ar-footer {
        padding: 8px 12px;
    }
    
    .footer-brand {
        font-size: 0.76rem;
        letter-spacing: 0.5px;
    }
    
    .footer-divider {
        display: none;
    }

    .footer-link {
        font-size: 0.74rem;
        padding: 4px 10px;
    }
}
