@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #8B5A2B; /* Marrón dorado para estilo bíblico */
    --secondary-color: #D4B483; /* Dorado claro */
    --accent-color: #A67C52; /* Marrón medio */
    --text-color: #4A4238; /* Marrón oscuro para texto */
    --bg-color: #F5F0E6; /* Beige claro para fondo */
    --paper-color: #FFF8E8; /* Color papel antiguo */
    --shadow-color: rgba(139, 90, 43, 0.2); /* Sombra suave */
    --success-color: #4CAF50; /* Verde para decisiones correctas */
    --warning-color: #FFC107; /* Amarillo para decisiones neutras */
    --danger-color: #F44336; /* Rojo para decisiones incorrectas */
}

body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('../background/fondo.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 240, 230, 0.85);
    z-index: -1;
}

header {
    background-color: var(--paper-color);
    color: var(--primary-color);
    text-align: center;
    padding: 2em 0;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    border-bottom: 2px solid var(--secondary-color);
}

header h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin: 0.5rem 0;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px var(--shadow-color);
}

header p {
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--accent-color);
}

header img {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

main {
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
    background-color: var(--paper-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-top: 0;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    text-align: center;
}

h3 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h4 {
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Estilos para la aventura interactiva */
.adventure-container {
    background: linear-gradient(135deg, var(--paper-color), #fff, var(--paper-color));
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.adventure-screen {
    display: none;
}

.adventure-screen.active {
    display: block;
}

.adventure-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.adventure-intro p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.adventure-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-button {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--paper-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: var(--secondary-color);
    color: var(--paper-color);
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.button-icon {
    width: 20px;
    height: 20px;
}

/* Estilos para el contenido de la escena */
.scene-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    margin-bottom: 2rem;
    position: relative;
    min-height: 200px;
}

.scene-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.scene-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.scene-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Estilos para las opciones de decisión */
.decision-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.decision-option {
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.decision-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-color);
    border-color: var(--primary-color);
}

.option-letter {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.option-content {
    padding-left: 40px;
}

.option-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.option-description {
    color: var(--text-color);
}

.verse-reference {
    font-style: italic;
    color: var(--accent-color);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Estilos para la pantalla de resultados */
.wisdom-score {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 2px solid var(--secondary-color);
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.verses-collected {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--secondary-color);
}

.verse-list {
    list-style-type: none;
    padding: 0;
}

.verse-list li {
    padding: 0.8rem;
    border-bottom: 1px solid var(--secondary-color);
    font-style: italic;
}

.verse-list li:last-child {
    border-bottom: none;
}

.final-reflection {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--secondary-color);
}

/* Estilos para el loader */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.rueda {
    border: 5px solid var(--secondary-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.cargando {
    color: var(--primary-color);
    font-style: italic;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos responsivos */
@media (max-width: 768px) {
    main {
        padding: 1rem;
        margin: 1rem;
    }
    
    .adventure-container {
        padding: 1rem;
    }
    
    .adventure-actions {
        flex-direction: column;
    }
    
    .primary-button, .secondary-button, .share-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}