:root {
    --primario: #2c5e1a; 
    --oscuro: #1e293b;
    --claro: #fdfbf7; 
    --texto: #334155;
    --blanco: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { line-height: 1.6; color: var(--texto); background-color: var(--claro); scroll-behavior: smooth; }

/* Navegación */
nav { background: var(--blanco); display: flex; justify-content: space-between; align-items: center; padding: 1rem 10%; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primario); }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--oscuro); font-weight: 500; }

/* Sección Hero con Animación Ken Burns */
/* ... resto del código anterior ... */

#inicio { 
    height: 60vh; 
    position: relative;
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

#inicio::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 1. Usamos tu imagen de la mansión. 
       2. Cambiamos 'bottom center/cover' por 'center center/cover' para centrar la imagen y ver la mansión completa.
       3. Mantenemos la opacidad del filtro (0.2). */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('hero-carretera.jpg') center center/cover;
    z-index: -1;
    /* 4. Mantenemos la velocidad de 10 segundos. */
    animation: zoomMansión 10s infinite alternate ease-in-out;
}

/* 5. Zoom del 30% (1.3) para un efecto dinámico. */
@keyframes zoomMansión {
    from { transform: scale(1); transform-origin: center; }
    to { transform: scale(1.3); transform-origin: center; }
}

/* ... resto del código anterior ... */

@keyframes zoomHero {
    /* Ajustamos el transform-origin para que el zoom no desplace la carretera */
    from { transform: scale(1); transform-origin: bottom; }
    to { transform: scale(1.10); transform-origin: bottom; }
}
/* Grilla de Historias */
#historias { padding: 4rem 10%; }
.grid-historias { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.card { background: var(--blanco); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-img { height: 240px; transition: transform 0.3s; cursor: pointer; }
.card-img:hover { transform: scale(1.05); }
.card-content { padding: 20px; }

/* Estilos de Lectura */
.contenido-historia { max-width: 800px; margin: 4rem auto; padding: 0 20px; }
.img-full { width: 100%; max-height: 500px; border-radius: 12px; margin-bottom: 2rem; object-fit: cover; }
.autor-cita { font-style: italic; color: var(--primario); font-weight: bold; border-left: 4px solid var(--primario); padding-left: 15px; margin-bottom: 2rem; }
.texto-completo p { margin-bottom: 1.5rem; font-size: 1.1rem; text-align: justify; }

/* Compartir y Footer */
.share-mini { margin-top: 15px; padding-top: 10px; border-top: 1px solid #eee; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.share-mini a { text-decoration: none; color: white; padding: 2px 8px; border-radius: 3px; font-weight: bold; }
.fb, .s-fb { background-color: #1877f2; }
.tw, .s-tw { background-color: #000; }
.wa, .s-wa { background-color: #25d366; }

#registro { background: #2c3e50; color: white; padding: 4rem 10%; text-align: center; }
.form-registro { max-width: 500px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 15px; }
.btn-submit { background: var(--primario); color: white; border: none; padding: 12px; border-radius: 5px; cursor: pointer; }
footer { text-align: center; padding: 2rem; background: #1a252f; color: #bdc3c7; margin-top: 4rem; }
.divisor { height: 1px; background: #ddd; margin: 2rem 0; }

/* --- Estilos para la sección de la frase de Gandhi y Registro --- */
#registro {
    background-color: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
}

.frase-gandhi {
    font-style: italic;
    font-weight: 300;
    font-size: 1.5rem;
    color: #333;
    max-width: 800px;
    margin: 0 auto 15px auto;
    line-height: 1.4;
}

.autor-gandhi {
    font-size: 1.1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* --- Estilos para el área de Comentarios --- */
.comentarios {
    margin-top: 50px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
    text-align: left;
}

.aviso-registro {
    background: #fdf2f2;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    color: #a94442;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.aviso-registro a {
    color: #2d5a27;
    font-weight: bold;
    text-decoration: underline;
}

.comentario {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #2d5a27; /* El verde de tu identidad visual */
}

.alias {
    font-weight: bold;
    color: #2d5a27;
    display: block;
    margin-bottom: 5px;
}

.fecha {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-top: 10px;
}
