/* --- Reseteo Básico y Variables --- */
:root {
    --rojo-vino: #8B0000;
    --verde-esmeralda: #009B77;
    --texto-claro: #f0f0f0;
    --texto-oscuro: #1a1a1a;
    --fondo-oscuro: #050505;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--fondo-oscuro);
    color: var(--texto-claro);
    overflow: hidden; /* Evita el scroll en la página de inicio */
}

/* --- Estructura Principal y Héroe --- */
.hero-section {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* CAMBIO IMPORTANTE AQUÍ ABAJO */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/portada-gabinete-secreto.png');
    background-size: contain;
    background-position: center center;
	background-repeat: no-repeat;
    animation: fadeIn 2s ease-in-out;
	background-color: #000000; /* Añade un color de fondo */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* --- Header, Nav y Footer (posicionados sobre el héroe) --- */
.site-header, .site-nav, .site-footer {
    position: absolute;
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

.site-header {
    top: 0;
    left: 0;
}

.monogram {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.site-nav {
    top: 0;
    right: 0;
    text-align: right;
}

.site-nav ul {
    list-style: none;
}

.site-nav ul li {
    display: inline-block;
    margin-left: 1.5rem;
}

.site-nav ul li a {
    color: var(--texto-claro);
    text-decoration: none;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.site-nav ul li a:hover {
    border-bottom-color: var(--rojo-vino); /* Acento rojo para la navegación */
}

.site-footer {
    bottom: 0;
    left: 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Adaptación para Móviles --- */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .site-header, .site-nav, .site-footer {
        padding: 1.5rem;
    }

    .site-nav {
        width: auto;
    }
    
    .site-nav ul li {
        display: block;
        margin: 0 0 1rem 0;
        text-align: right;
    }
}

/* --- Estilos para Páginas Interiores --- */

body.page-inside {
    overflow: auto;
    color: var(--texto-oscuro);
    /* --- Aquí está la magia --- */
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('images/fondo-encuentros.png');
    background-size: contain;
    background-position: center center;
	background-repeat: no-repeat;
    background-attachment: fixed; /* Esto crea el efecto parallax */
	background-color: #000000; /* Añade un color de fondo */
}

.site-header-inside {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background-color: var(--texto-oscuro); /* Cambiado a negro */
    /* Eliminamos el borde inferior que ya no es necesario */
}

.site-header-inside .monogram a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--texto-claro); /* Cambiado a blanco */
    text-decoration: none;
}

.site-nav-inside ul {
    list-style: none;
}

.site-nav-inside ul li {
    display: inline-block;
    margin-left: 2rem;
}

.site-nav-inside ul li a {
    color: var(--texto-claro); /* Cambiado a blanco */
    text-decoration: none;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.site-nav-inside ul li a:hover {
    color: var(--rojo-vino);
}

.site-nav-inside ul li a.active {
    font-weight: bold;
    border-bottom-color: var(--rojo-vino);
}


.content-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
    font-weight: 400;
}

.site-footer-inside {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #888;
    margin-top: 4rem;
}


/* --- Estilos para la Cuadrícula de Encuentros --- */

.encuentros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.story-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.story-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 1.5rem;
    position: relative;
}

.card-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

/* --- Página de Lectura del Cuento --- */

.story-wrapper {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.story-header {
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
}

.story-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.story-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    color: #666;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.story-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-image {
    width: 100%;
    margin: 3rem 0;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- Estilos para Notas y Llamados a la Acción --- */
.story-note {
    background-color: #f9f9f9;
    border-left: 4px solid var(--rojo-vino);
    padding: 1rem 1.5rem;
    margin: 3rem 0;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

.story-note a {
    color: var(--rojo-vino);
    font-weight: bold;
    text-decoration: none;
}

.story-note a:hover {
    text-decoration: underline;
}

.final-cta {
    text-align: center;
    margin: 4rem 0 2rem 0;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.final-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.final-cta p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--rojo-vino);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #6a0000;
}

