/* --- ORGANIC EDITORIAL THEME --- */

:root {
    /* Paleta de Colores "Nature/Editorial" */
    --bg-page: #f4f1de;      /* Crema suave (Papel antiguo) */
    --bg-card: #ffffff;      /* Blanco */
    --text-main: #3d405b;    /* Azul acero oscuro (Casi negro) */
    --text-light: #8187a2;   /* Gris suave */
    --accent: #e07a5f;       /* Terracota suave */
    --secondary: #81b29a;    /* Verde Salvia */
    --border: #dcd9c6;       /* Color borde sutil */
    
    /* Tipografía */
    --font-head: 'DM Serif Display', serif;
    --font-body: 'Jost', sans-serif;
    
    /* Espaciado */
    --container-width: 1000px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d405b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- HEADER --- */
.organic-header {
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    color: var(--accent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }

.game-logo {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.game-logo .thin { font-weight: 300; color: var(--secondary); }

/* Navegación */
.organic-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link.active, .nav-link:hover {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.menu-toggle {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- GAME AREA --- */
.game-wrapper {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.paper-container {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 800px;
    border-radius: 2px;
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.05), 
        0 10px 30px rgba(0,0,0,0.05); /* Sombra suave de papel */
    padding: 30px;
    position: relative;
    border: 1px solid white;
}

.game-header-decoration {
    border-bottom: 2px solid var(--bg-page);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-head);
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Contenedor del juego React */
.game-canvas {
    min-height: 600px;
    /* Ajustes para asegurar que el juego React se vea bien dentro */
    display: flex;
    justify-content: center;
    align-items: center;
}

#root { width: 100%; }

/* --- CONTENT SECTIONS --- */
.main-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-text {
    text-align: center;
    padding: 60px 0;
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-subtitle {
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-main);
    text-align: center;
    position: relative;
    display: inline-block;
}

/* Botones Estilo Orgánico */
.btn-organic {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--text-main);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(61, 64, 91, 0.2);
}

.btn-organic:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.3);
}

.btn-organic.outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    box-shadow: none;
    margin-left: 15px;
}

.btn-organic.outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Tarjetas (How to Play) */
.section-cards {
    padding: 60px 0;
    background-color: rgba(255,255,255,0.5); /* Fondo sutil */
    border-radius: 20px;
    margin-bottom: 60px;
    text-align: center;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: var(--bg-page);
    padding: 30px 20px;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.card:hover {
    border-color: var(--secondary);
    background: white;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h4 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* FAQ Acordeón Simple */
.section-faq {
    padding-bottom: 80px;
}

.text-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 15px 20px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.faq-item summary {
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 20px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--secondary);
}

.faq-item[open] summary::after { content: '-'; color: var(--accent); }

.faq-item p {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
    border-top: 1px solid var(--bg-page);
    padding-top: 15px;
}

/* --- FOOTER --- */
.organic-footer {
    background-color: var(--text-main);
    color: var(--bg-page);
    padding: 60px 20px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.footer-col.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col.links a {
    color: var(--bg-page);
    opacity: 0.7;
}

.footer-col.links a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .organic-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-page);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        border-bottom: 2px solid var(--accent);
    }

    .organic-nav.active { display: flex; }

    .section-title { font-size: 2.2rem; }
    
    .game-wrapper { padding: 20px 10px; }
    
    .footer-inner { flex-direction: column; text-align: center; }
}