/* ==========================================================================
   1. CONFIGURACIÓN GLOBAL Y VARIABLES
   ========================================================================== */

:root {
    /* -- Paleta de Colores -- */
    --color-background: #1a2a2a;    		/* Verde bosque muy oscuro */
    --color-surface: #2a4a4a;       		/* Verde oscuro para superficies */
    --color-text: #f0f0f0;             		/* Blanco roto para texto */
    --color-primary: #ffd700;          		/* Dorado para acentos divinos (CTA, títulos) */
    --color-secondary: #cda434;        		/* Dorado más oscuro para hovers */
    --color-text-muted: #b0b0b0;       		/* Color para texto secundario (desventajas) */
	--color-footer-background: #0a1111;		/* Color para el fondo del footer ***/
    
    /* -- Tipografías -- */
    --font-headings: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

/* ==========================================================================
   2. RESETEO BÁSICO Y ESTILOS GENERALES
   ========================================================================== */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: var(--font-body); 
    background-color: var(--color-background); 
    color: var(--color-text); 
    line-height: 1.6; 
}

h1, h2, h3 { 
    font-family: var(--font-headings); 
    color: var(--color-primary); 
    margin-bottom: 1rem; 
    font-weight: 700; 
}

h2 { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 2rem; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

.content-section { 
    padding: 6rem 0; 
}

/* ==========================================================================
   3. HEADER Y NAVEGACIÓN
   ========================================================================== */

header {
    background-color: rgba(26, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-surface);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; 
}

header ul {
    list-style: none;
    display: flex;
    align-items: center;
}

/* -- Área del Logo y Selector de Idioma -- */
.logo-area {
    gap: 1.5rem; 
}

.logo-area a {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
	transition: color 0.3s ease;
}

.logo-area a:hover {
    color: var(--color-text);
}

.language-switcher a {
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    background-color: transparent;
    font-weight: 700;
    color: var(--color-primary); 
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher a:hover {
    background-color: var(--color-primary);
    color: var(--color-background); 
}

/* -- Enlaces de Navegación -- */
.nav-links {
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem; 
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   4. ESTILOS DE SECCIONES PRINCIPALES
   ========================================================================== */

/* -- Sección Hero -- */
#hero { 
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: flex-end;
    text-align: center; 
    position: relative; 
    
    background-image: url('images/idunn_goddess.png');
    background-repeat: no-repeat;

    background-position: center bottom;
    background-size: auto 90%;

    background-color: #0a1111;
    padding-bottom: 10vh; 
    box-sizing: border-box;
}

#hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    
    /* --- GRADIENTE PARA LEGIBILIDAD --- */
	background: linear-gradient(to top, rgba(0, 0, 0, 1.0) 0%, rgba(0, 0, 0, 0.3) 33%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    padding: 0 2rem; 
}

#hero h1 { 
    font-size: 5.5rem; 
    margin-bottom: 1rem; 
    /* Sombra de texto para mejorar el contraste sobre la imagen */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.subtitle { 
    font-size: 2rem; 
    margin-bottom: 2rem; 
    font-style: italic;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}

.cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    background-color: rgba(205, 164, 52, 0.3);
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    /* Al pasar el ratón, el fondo se vuelve el dorado brillante principal */
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* -- Sección Story -- */
#story .story-text { 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: left; 
}

#story h2 { 
    font-style: italic; 
    color: var(--color-text-muted); 
    max-width: 800px; 
    margin-bottom: 3rem; 
    text-align: center; 
}

.story-text p { 
    margin-bottom: 1.5rem; 
}

.story-text p:last-child { 
    margin-bottom: 0; 
}

.keyword { 
    color: var(--color-primary); 
    font-weight: 700; 
}

/* -- Sección Slimes / Mechanics -- */
#slimes, #mechanics { 
    background-color: var(--color-surface); 
}

.section-description { 
    text-align: center; 
    max-width: 700px; 
    margin: -1rem auto 3rem; 
    font-size: 1.1rem; 
}

.forms-container { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem; 
    max-width: 900px; 
    margin-left: auto; 
    margin-right: auto; 
}

.form-card { 
    background-color: var(--color-background); 
    padding: 2rem; 
    border-radius: 10px; 
    text-align: center; 
    border: 1px solid var(--color-surface); 
    display: flex; 
    flex-direction: column; 
}

.form-card img { 
    width: 100px; 
    height: 100px; 
    margin: 0 auto 1rem; 
    image-rendering: pixelated;  
}

.form-card p:first-of-type { 
    margin-bottom: 1rem; 
}

.form-card p:last-of-type { 
    color: var(--color-text-muted); 
    font-style: italic; 
    font-size: 0.9rem; 
}

/* -- Sección Areas (Galería) -- */
.areas-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.area-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.area-image-wrapper {
    border: 1px solid var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

.area-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.area-image-wrapper:hover img {
    transform: scale(1.05);
}

.area-item span {
    text-align: center;
    font-family: var(--font-headings);
    font-size: 1.2rem;
    color: var(--color-primary);
}

/* -- Sección Features -- */
#features { 
    background-color: var(--color-surface); 
}

#features ul { 
    list-style: none; 
}

#features li { 
    background-color: var(--color-background); 
    margin-bottom: 1rem; 
    padding: 1.5rem; 
    border-radius: 5px; 
    border-left: 5px solid var(--color-primary); 
    font-size: 1.1rem; 
}

/* -- Sección Video -- */
#video {
    background-color: var(--color-background);
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%; /* Ratio 16:9 */
    border: 1px solid var(--color-surface);
    border-radius: 10px;
    margin-top: 2rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   5. FOOTER Y COMPONENTES ADICIONALES (LIGHTBOX)
   ========================================================================== */

/* -- Footer -- */
footer { 
    background-color: var(--color-footer-background);
    border-top: 1px solid var(--color-surface); 
    padding: 2.5rem 0; 
    text-align: center; 
    color: var(--color-text-muted); 
    font-size: 1.0rem; 
}

footer a { 
    color: var(--color-primary); 
    font-weight: bold; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

footer a:hover { 
    color: var(--color-secondary); 
}

footer p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}


/* -- Lightbox -- */
#lightbox { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(26, 42, 42, 0.85); 
    z-index: 2000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    display: none; 
    cursor: pointer; 
}

#lightbox-image { 
    max-width: 80%; 
    max-height: 80%; 
    object-fit: contain; 
    border-radius: 10px; 
    box-shadow: 0 0 0 4px var(--color-surface); 
}


/* ==========================================================================
   6. DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */

/* -- Tablets y pantallas medianas -- */
@media (max-width: 768px) {
	
    h2 { 
        font-size: 2rem; 
    }
    #hero h1 { 
        font-size: 4rem; 
    } 
    
    header nav { 
        flex-direction: column;
        height: auto;
        min-height: 120px;
        justify-content: center;
        padding: 1rem 0; 
    }

    .logo-area {
        margin-bottom: 0.75rem;
        justify-content: center; 
        width: 100%;
    }
    
    .nav-links { 
        width: 100%; 
        gap: 0.75rem; 
        flex-wrap: wrap; 
        justify-content: center;
    }
    
    .areas-gallery { 
        grid-template-columns: repeat(2, 1fr); 
    }
	
    footer p {
        row-gap: 1rem;
    }
	
}

/* -- Móviles y pantallas pequeñas -- */
@media (max-width: 600px) {
	
    #hero h1 { 
        font-size: 3rem; 
    } 
    
    .hero-content { 
        padding: 0 1.5rem; 
    }
    
    .cta-replacement-text { 
        padding: 0.75rem 1rem; 
        font-size: 1.1rem; 
    }
    
    .forms-container { 
        grid-template-columns: 1fr; 
    }
    
    .areas-gallery { 
        grid-template-columns: 1fr; 
    }
    
    .nav-links { 
        gap: 0.25rem; 
    }
    
    .nav-links a { 
        padding: 0.4rem 0.6rem; 
        font-size: 0.95rem; 
    }
	
}