:root {
    --primary: #2d3e2d; /* Verde bosque */
    --accent: #c29545;  /* Dorado/Trigo */
    --white: #ffffff;
    --text: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Inter', sans-serif; color: var(--text); background: #fdfdfd; overflow-x: hidden; }
.topo-header {
    background: #e9e5de;
    padding: 80px 30px 30px 30px;
    text-align: center;
    border-bottom: 1px solid #dcd9d4;
}

.topo-header h1 { font-family: 'Playfair Display', serif;color: var(--primary); }

		/* Estilo para el botón de volver */
.btn-volver {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 25px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
/* NAV */
.main-nav { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 5%; position: absolute; width: 100%; z-index: 300; color: white;
}
.nav-links.active {
    display: flex !important;
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; }
.logo span { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: white; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }


/* HERO */
.hero { 
    height: 100vh; background: url('../imagenes/portada.jpg') center/cover no-repeat; 
    display: flex; align-items: center; justify-content: center; position: relative;
    color: white; text-align: center; padding: 0 20px;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.hero-content { position: relative; max-width: 800px;margin-top: 30px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1.1; margin: 20px 0; }
.tagline { text-transform: uppercase; letter-spacing: 4px; font-size: 1rem; color: var(--accent); }

.btn-main, .btn-alt { 
    display: inline-block; padding: 15px 40px; border-radius: 50px; font-weight: bold; 
    text-decoration: none; transition: 0.3s; margin: 10px;
}
.btn-main { background: var(--accent); color: white; }
.btn-main:hover { background: #b08435; }
.btn-alt { border: 2px solid white; color: white; }
.btn-alt:hover { background: white; color: var(--text); }

/* QUICK INFO */
/* Sección de información rápida en una sola línea */
.quick-info {
    background: #fdfcf9; /* Un tono crema muy suave */
    padding: 15px 10px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: flex;
    justify-content: space-around; /* Reparte el espacio equitativamente */
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.info-item {
    text-align: center;
    flex: 1; /* Cada item ocupa el mismo ancho */
}

.info-item strong {
    display: block;
    font-size: 1.1rem; /* Un poco más pequeño para que quepa bien */
    color: #2d3e2d;
    font-family: 'Inter', sans-serif;
}

.info-item p {
    font-size: 0.65rem; /* Texto secundario pequeño y elegante */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0;
}

/* Ajuste específico para pantallas muy pequeñas */
@media (max-width: 400px) {
    .info-item strong {
        font-size: 0.9rem;
    }
    .info-item p {
        font-size: 0.55rem;
    }
}
/* NEWS */
.news-preview { padding: 30px 5%; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.post { display: flex; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.post-img { width: 40%; background-size: cover; background-position: center; min-height: 200px; }
.post-data { padding: 30px; width: 60%; }
.post-data h3 { font-family: 'Playfair Display', serif; margin: 10px 0; font-size: 1.4rem; }
/* Estilo para el enlace 'Leer más' - Opción A (Minimalista) */
.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    text-transform: uppercase; /* Le da un toque más profesional */
    letter-spacing: 1.2px;      /* Espaciado sutil para legibilidad */
    position: relative;
    padding-bottom: 4px;       /* Espacio para la línea */
    transition: color 0.3s ease;
}

/* La línea decorativa inferior */
.read-more::after {
    content: '';
    position: absolute;
    width: 40px;               /* Longitud inicial de la línea */
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Movimiento suave */
}

/* Efecto al pasar el ratón (Hover) */
.read-more:hover {
    color: #1a2a1a;            /* Un tono un poco más oscuro al activar */
}

.read-more:hover::after {
    width: 100%;               /* La línea se expande a todo el texto */
}

/* ETNO TEASER */
.etno-teaser { 
    padding: 50px 5%; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../imagenes/madera.jpg');
    background-attachment: fixed; background-size: cover; color: white; text-align: center;
}
.etno-content h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 20px; }
.etno-content p { max-width: 600px; margin: 0 auto; }
.btn-etno { display: inline-block; margin-top: 30px; padding: 15px 40px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-etno:hover { background: var(--accent); color: white; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Aquí podrías añadir un menú desplegable luego */
    .menu-toggle { display: block; }
    .post { flex-direction: column; }
    .post-img, .post-data { width: 100%; }
    .hero-btns { display: flex; flex-direction: column; align-items: center; }
    .btn-main, .btn-alt { width: 100%; max-width: 300px; }
}

@media (max-width: 768px) {

    /* --- NAV GENERAL --- */
    .main-nav {
        justify-content: center;   /* Centra el logo */
        position: absolute;
        width: 100%;
        padding: 20px 5%;
    }

    /* --- LOGO CENTRADO --- */
    .logo {
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

    .logo img {
        height: 70px;
    }

    /* --- BOTÓN MENÚ (☰) --- */
    .menu-toggle { 
        display: block; 
        position: absolute;
        right: 20px;
        top: 25px;
        font-size: 2rem;
        z-index: 1001;
        cursor: pointer;
    }

    /* --- MENÚ DESPLEGABLE --- */
    .nav-links { 
        display: none; /* Oculto por defecto */
        flex-direction: column; 
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary); /* Fondo sólido */
        justify-content: center;
        align-items: center;
        gap: 40px;
        text-align: center;
        z-index: 1000;
        padding: 0;
        margin: 0;
    }

    /* Activado por JS */
    .nav-links.active { 
        display: flex; 
        animation: fadeIn 0.3s ease-in-out;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* --- POSTS (si los usas) --- */
    .post { flex-direction: column; }
    .post-img, 
    .post-data { width: 100%; }
}






/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toponimia-section {
    background-color: #f4f1ea;
    padding: 30px 5%;
}

.toponimia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.topo-card {
    background: white;
    padding: 30px;
    border-radius: 4px;
    border-bottom: 3px solid var(--accent);
    transition: transform 0.3s ease;
}

.topo-card:hover {
    transform: translateY(-10px);
}

.topo-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.topo-desc {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.topo-list-compact {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #dcd9d4;
    padding-top: 40px;
}

.topo-list-compact h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 15px;
}

.topo-list-compact p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #888;
}

/* Responsive para toponimia */
@media (max-width: 600px) {
    .topo-card { padding: 20px; }
}


.site-footer {
    background-color: #1a1a1a;
    color: #f4f4f4;
    padding: 80px 0 40px 0;
    border-top: 5px solid #2d5a27;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-branding {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    width: 120px; /* Tamaño del escudo, puedes ajustarlo */
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.colaborador-principal {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em; /* Grande y elegante */
    margin: 0;
    letter-spacing: 1px;
}

.colaborador-secundario {
    font-family: 'Inter', sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
    opacity: 0.9;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background-color: #2d5a27;
    margin: 30px 0;
}

.footer-info {
    text-align: center;
    opacity: 0.7;
    font-size: 0.95em;
    line-height: 1.6;
}

.footer-nav {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav a {
    color: #f4f4f4;
    text-decoration: none;
    opacity: 0.5;
}

.footer-nav a:hover {
    opacity: 1;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
    .colaborador-principal { font-size: 1.6em; }
    .colaborador-secundario { font-size: 0.9em; }
    .footer-logo { width: 90px; }
}

/* 1. Quitamos el azul y subrayado de TODOS los enlaces del nav */
.main-nav a {
    text-decoration: none !important;
    color: inherit; /* Hereda el blanco del nav-dark o el negro del index */
    display: inline-block;
}

/* 2. Estilo específico para el logo dentro del nav */
.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 3. Aseguramos que en nav-dark todo sea blanco */
.nav-dark {
    background-color: #1a1a1a; /* Fondo pizarra */
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-dark .nav-links a {
    color: #ffffff !important; /* Forzamos el blanco en los links */
}

.nav-dark .logo a {
    color: #ffffff !important; /* Forzamos el blanco en el nombre del pueblo */
}

/* 4. Si el menú móvil (hamburguesa) no se ve, es porque es negro sobre fondo oscuro */
.nav-dark .menu-toggle {
    color: #ffffff;
}

/* botonera*/
@media (max-width: 768px) {
    .sanfiz-app-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #2d3e2dc9;
        /* Línea superior fina y elegante */
        border-top: 1px solid rgba(0, 0, 0, 0.08); 
        justify-content: space-around;
        align-items: center;
        z-index: 10000;
        /* Soporte para iPhone con "Home Indicator" */
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-btn {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #999; /* Color neutro para inactivos */
        flex: 1;
        height: 100%;
        transition: all 0.2s ease;
        position: relative;
    }

    /* El "indicador" de sección activa: una línea justo en el borde superior */
    .nav-btn.active::before {
        content: '';
        position: absolute;
        top: -1px; /* Se apoya justo encima del borde de la barra */
        width: 40%;
        height: 3px;
        background: #2d3e2d; /* Verde oscuro de San Fiz */
        border-radius: 0 0 4px 4px;
    }

    .nav-btn.active {
        color: #2d3e2d;
        background: #f9f9f7; /* Un cambio de fondo casi imperceptible */
    }

    .icon-wrapper {
        margin-bottom: 2px;
    }

    /* Tamaño de los iconos Lucide */
    .nav-btn i {
        width: 22px;
        height: 22px;
        stroke-width: 2px;
    }

    .nav-btn span {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Ajuste de página para no ocultar contenido */
    body {
        padding-bottom: 70px !important;
    }
}

/* Ocultar en versión escritorio */
@media (min-width: 769px) {
    .sanfiz-app-nav { display: none; }
}
.launch-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15); /* Fondo traslúcido */
    backdrop-filter: blur(8px); /* Efecto cristal */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 20px; /* Separación del eslogan */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.launch-notice i {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}