/* RESET Y CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: #0a0612; /* Negro con tono violeta muy oscuro */
    color: #e6d4ff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* FONDO CON OVERLAY VIOLETA */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(88, 28, 135, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(106, 13, 173, 0.1) 0%, transparent 50%),
        linear-gradient(to bottom, #0a0612, #160c25);
    z-index: -1;
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* HEADER */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #c77dff;
    text-shadow: 0 0 15px rgba(199, 125, 255, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: #b8a1d9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.separator {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9d4edd, transparent);
    margin: 20px auto;
}

/* GALERÍA */
.galeria h2 {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #d8b4fe;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.instruccion {
    text-align: center;
    color: #a78bfa;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* GRID DE PERSONAJES */
.personajes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* TARJETA DE PERSONAJE */
.personaje-card {
    background: rgba(30, 20, 45, 0.7);
    border: 1px solid rgba(156, 89, 209, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.personaje-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #9d4edd, transparent);
}

.personaje-card:hover {
    transform: translateY(-10px);
    border-color: #c77dff;
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.3);
}

/* CONTENEDOR DE SILUETA */
.silueta-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.silueta-normal, .silueta-hover {
    width: 200px;
    height: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
    position: absolute;
}

.silueta-hover {
    opacity: 0;
}

.personaje-card:hover .silueta-normal {
    opacity: 0;
    transform: scale(0.95);
}

.personaje-card:hover .silueta-hover {
    opacity: 1;
    transform: scale(1.05);
}

/* TÍTULO Y DESCRIPCIÓN */
.personaje-titulo {
    font-family: 'Cinzel', serif;
    color: #e0aaff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.personaje-desc {
    color: #b8a1d9;
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 40px;
}

/* PREGUNTA HOVER */
.pregunta-hover {
    background: rgba(45, 25, 65, 0.8);
    border-left: 3px solid #9d4edd;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.personaje-card:hover .pregunta-hover {
    opacity: 1;
    transform: translateY(0);
}

.pregunta-hover i {
    color: #c77dff;
    font-size: 0.8rem;
}

.pregunta-hover p {
    font-style: italic;
    color: #e6d4ff;
    margin: 8px 0;
}

/* BOTÓN EXPLORAR */
.btn-explorar {
    background: linear-gradient(135deg, #7b2cbf, #9d4edd);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-explorar:hover {
    background: linear-gradient(135deg, #9d4edd, #c77dff);
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

/* PERSONAJES PRÓXIMOS */
.coming-soon {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.silueta-placeholder {
    width: 200px;
    height: 300px;
    background: rgba(70, 40, 100, 0.5);
    border: 2px dashed #7b2cbf;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #9d4edd;
    font-family: 'Cinzel', serif;
}

/* CUESTIONARIO */
.cuestionario {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-volver {
    background: rgba(45, 25, 65, 0.8);
    color: #d8b4fe;
    border: 1px solid #7b2cbf;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: rgba(106, 13, 173, 0.3);
    border-color: #c77dff;
}

/* CONTENIDO CUESTIONARIO */
.cuestionario-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: rgba(20, 10, 35, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(156, 89, 209, 0.2);
    position: relative;
    min-height: 500px;
}

.personaje-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/full/june_fondo.JPG') center/cover;
    opacity: 0.15;
    border-radius: 15px;
    z-index: -1;
}

/* PREGUNTA */
.personaje-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(157, 78, 221, 0.3);
}

.personaje-header h2 {
    font-family: 'Cinzel', serif;
    color: #e0aaff;
    font-size: 1.8rem;
}

.personaje-nombre {
    color: #c77dff;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.5);
}

.personaje-icono {
    font-size: 2rem;
    color: #9d4edd;
}

.pregunta-box {
    background: rgba(30, 15, 50, 0.9);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(199, 125, 255, 0.2);
}

.pregunta-texto {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.pregunta-icono {
    font-size: 1.5rem;
    color: #c77dff;
    margin-top: 5px;
}

.pregunta-texto p {
    font-size: 1.4rem;
    font-style: italic;
    color: #f5f3ff;
    line-height: 1.5;
}

/* OPCIONES */
.opciones-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.opcion-btn {
    background: rgba(45, 25, 70, 0.8);
    border: 1px solid rgba(156, 89, 209, 0.4);
    color: #e6d4ff;
    padding: 18px 20px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.opcion-btn:hover {
    background: rgba(106, 13, 173, 0.3);
    border-color: #c77dff;
    transform: translateX(5px);
}

.opcion-btn.seleccionada {
    background: rgba(157, 78, 221, 0.2);
    border-color: #c77dff;
    box-shadow: 0 0 15px rgba(199, 125, 255, 0.3);
}

.opcion-letra {
    background: #7b2cbf;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

/* IMAGEN DEL PERSONAJE */
.personaje-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.personaje-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(199, 125, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* RESULTADO */
.resultado-container {
    margin-top: 40px;
    animation: fadeIn 0.8s ease;
}

.revelacion-box {
    background: rgba(20, 10, 35, 0.9);
    border-radius: 15px;
    padding: 35px;
    border: 1px solid rgba(199, 125, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.revelacion-box h3 {
    font-family: 'Cinzel', serif;
    color: #d8b4fe;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.revelacion-texto {
    background: rgba(30, 15, 50, 0.7);
    border-left: 4px solid #9d4edd;
    padding: 25px;
    border-radius: 8px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #f5f3ff;
    margin-bottom: 30px;
    white-space: pre-line;
}

/* LLAMADA A LA ACCIÓN */
.llamada-accion {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(156, 89, 209, 0.3);
}

.llamada-texto {
    font-size: 1.1rem;
    color: #b8a1d9;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.llamada-texto i {
    color: #c77dff;
    margin-right: 10px;
}

.btn-juego {
    display: inline-block;
    background: linear-gradient(135deg, #7b2cbf, #5a189a);
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-juego:hover {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    transform: scale(1.05);
    border-color: #e0aaff;
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.5);
}

.btn-juego small {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
    font-family: 'Crimson Text', serif;
}

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    color: #a78bfa;
    font-size: 0.95rem;
}

.footer strong {
    color: #d8b4fe;
}

.leyenda {
    font-style: italic;
    margin-top: 10px;
    color: #9d8bc7;
}

.footer-separator {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9d4edd, transparent);
    margin: 20px auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .cuestionario-content {
        grid-template-columns: 1fr;
    }
    
    .personaje-imagen {
        order: -1;
        margin-bottom: 30px;
    }
    
    .personaje-img {
        max-width: 250px;
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .personajes-grid {
        grid-template-columns: 1fr;
    }
    
    .pregunta-texto p {
        font-size: 1.2rem;
    }
    
    .btn-juego {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}