/* Estilos compartidos de los tours 360 (vista web) */

:root {
    --primary: #e63946;
    --text-light: #f8fafc;
    --gold: #f1c40f;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    background-color: #0b0f19;
    color: var(--text-light);
}

a-scene {
    width: 100vw;
    height: 100vh;
}

/* Card de vidrio (esquina superior derecha) */
.info-card {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 340px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.info-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.info-card h1 i {
    color: var(--gold);
    font-size: 1.2rem;
}

.info-card .subtitle {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.info-card ul {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-card li {
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.info-card li i {
    color: var(--gold);
    width: 18px;
    text-align: center;
    margin-top: 2px;
}

.info-card li b {
    font-weight: 600;
    color: #fff;
}

.info-cta {
    margin-top: 14px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #fff;
    background: rgba(241, 196, 15, 0.22);
    border: 1px solid rgba(241, 196, 15, 0.55);
    border-radius: 12px;
}

.info-cta i {
    color: var(--gold);
    font-size: 1.1rem;
}

.info-btn {
    margin-top: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: #1a1a1a;
    background: var(--gold);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(241, 196, 15, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
}

.info-toggle {
    display: none;
    margin-top: 12px;
    width: 100%;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-toggle i {
    transition: transform 0.3s ease;
}

.info-card.open .info-toggle i {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .info-card {
        top: 12px;
        right: 12px;
        width: 260px;
        max-width: calc(100vw - 24px);
        padding: 14px 16px;
        border-radius: 16px;
    }

    .info-card h1 {
        font-size: 1.15rem;
    }

    .info-card .subtitle {
        margin-bottom: 0;
        font-size: 0.7rem;
    }

    .info-toggle {
        display: flex;
        margin-top: 10px;
    }

    .info-body {
        display: none;
        margin-top: 12px;
    }

    .info-card.open .info-body {
        display: block;
    }
}
/* Botón de sonido ambiente */
.sound-toggle {
    position: absolute;
    top: 20px;
    left: 88px;
    z-index: 100;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.sound-toggle.on {
    color: var(--gold);
}

@media (max-width: 640px) {
    .sound-toggle { top: 12px; left: 68px; width: 42px; height: 42px; }
}

/* Botón "Entrar a VR" de A-Frame: esquina superior izquierda */
.a-enter-vr {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    z-index: 100;
}
.a-enter-vr .a-enter-vr-button {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block;
}
@media (max-width: 640px) {
    .a-enter-vr { top: 12px !important; left: 12px !important; }
}

/* Footer */
.site-footer {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 100;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.site-footer .logo {
    height: 40px;
    width: auto;
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 2px 6px;
}

.site-footer .credits {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.site-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .site-footer {
        bottom: 8px;
        padding: 6px 12px;
        gap: 10px;
        font-size: 0.62rem;
        border-radius: 16px;
    }

    .site-footer .logo { height: 30px; }
}

/* Aviso cuando falta la foto o se abrió el archivo directo */
.tour-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    width: min(460px, calc(100vw - 32px));
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fafafa;
    background: rgba(23, 23, 23, 0.94);
    border: 1px solid rgba(185, 247, 43, 0.45);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.tour-notice i {
    color: #b9f72b;
    font-size: 1.3rem;
    margin-top: 2px;
}

/* Aviso de consentimiento de cookies (Google Analytics) */
.consent-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 300;
    width: 520px;
    max-width: calc(100vw - 40px);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    line-height: 1.45;
}

.consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.consent-actions button {
    font: inherit;
    padding: 8px 14px;
    color: var(--text-light);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    cursor: pointer;
}

.consent-actions button.accept {
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 480px) {
    .consent-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 12px;
    }
    .consent-actions { justify-content: flex-end; }
}
