/* stilstalers.css - TODOS LOS ESTILOS EN UN SOLO ARCHIVO */

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Pro', serif;
    background-color: #f9f7f2;
    color: #151a13;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== FONDO FIJO ===== */
.page-background-enabled {
    position: relative;
    min-height: 100vh;
}

.page-background-enabled::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('jpg/ziema.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1000;
}

.page-background-enabled::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999;
}

/* Asegurar que el contenido esté sobre el fondo */
.page-background-enabled .navbar,
.page-background-enabled .container,
.page-background-enabled main {
    position: relative;
    z-index: 1;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== UTILIDADES ===== */
.text-center {
    text-align: center;
    display: block;
    width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(185, 172, 142, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #604e28;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 700;
    color: #151a13;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 14px;
    font-style: italic;
    color: #604e28;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #151a13;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
}

.mobile-menu-btn i {
    font-size: 28px;
    color: #a66f11;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.4s ease;
    padding: 100px 30px 40px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    background: rgba(185, 172, 142, 0.08);
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(166, 111, 17, 0.15);
    transform: translateX(10px);
    border-left-color: #a66f11;
}

.mobile-nav-link.active {
    background: rgba(166, 111, 17, 0.2);
    border-left-color: #a66f11;
    color: #a66f11;
}

.mobile-menu-contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(185, 172, 142, 0.2);
    text-align: center;
    color: #604e28;
}

.mobile-menu-contact a {
    color: #a66f11;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

/* ===== HERO SECTION - CORREGIDO ===== */
.hero-section {
    padding: 0 0 20px 0;      /* ← Reducido de 10px 0 40px 0 */
    margin-top: 0;
    min-height: auto;         /* ← Cambiado de calc(100vh - 120px) */
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    padding: 10px 10px;
    margin: 0 auto;
}

.hero-card {
    padding: 25px 40px;       /* ← Reducido de 40px 40px */
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(185, 172, 142, 0.2);
    text-align: center;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: 36px;
    font-weight: 700;
    color: #151a13;
    margin-bottom: 15px;      /* ← Reducido de 20px */
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: #604e28;
    max-width: 800px;
    margin: 0 auto 20px;      /* ← Reducido de 30px */
}

.hero-notice {
    font-size: 18px;
    line-height: 1.4;
    color: #8a5d0e;
    font-weight: 500;
    margin: 15px auto 20px;   /* ← Reducido de 20px auto 30px */
    padding: 12px;           /* ← Reducido de 15px */
    background: rgba(255, 248, 225, 0.5);
    border-radius: 10px;
    border-left: 4px solid #a66f11;
    max-width: 800px;
}

/* ===== CONTENT CARDS - CORREGIDO ===== */
main.container {
    min-height: auto;         /* ← Cambiado de calc(100vh - 70px) */
    padding-top: 0;           /* ← Reducido de 40px */
    padding-bottom: 30px;
}

.content-start-fix {
    padding-top: 0;
    margin-top: 0;
}

/* CONTENT CARD ESPACIADO MEJORADO */
.content-card {
    margin-top: 25px;         /* ← Aumentado de 5px */
    margin-bottom: 25px;      /* ← Aumentado de 10px */
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(185, 172, 142, 0.2);
}

/* ===== SECCIONES ===== */
.section-title {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 700;
    color: #151a13;
    text-align: center;
    margin-bottom: 30px;      /* ← Reducido de 40px */
    padding-top: 10px;
}

.section-footer {
    text-align: center;
    margin-top: 30px;         /* ← Reducido de 40px */
    padding-bottom: 20px;
    width: 100%;
}

/* ===== NEWS GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;                /* ← Reducido de 25px */
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== NOTICIAS ===== */
.news-article {
    background: rgba(255, 248, 225, 0.9);
    padding: 20px;           /* ← Reducido de 25px */
    border-radius: 16px;
    border-left: 4px solid #a66f11;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 180px;       /* ← Reducido de 200px */
    cursor: pointer;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Contenedor interno flexible */
.news-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Encabezado compacto */
.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;     /* ← Reducido de 15px */
    flex-shrink: 0;
}

/* Título con altura fija para consistencia */
.news-title {
    font-family: 'Lora', serif;
    font-size: 20px;         /* ← Reducido de 22px */
    font-weight: 600;
    color: #151a13;
    margin-bottom: 12px;     /* ← Reducido de 15px */
    line-height: 1.3;
    min-height: 45px;        /* ← Reducido de 52px */
    display: flex;
    align-items: center;
}

/* Contenido flexible que se ajusta */
.news-content {
    color: #604e28;
    line-height: 1.2;
    font-size: 16px;
    margin-bottom: 15px;     /* ← Reducido de 20px */
    flex: 1;
}

/* Footer fijo abajo */
.news-footer {
    margin-top: auto;
    padding-top: 12px;       /* ← Reducido de 15px */
    border-top: 1px solid rgba(166, 111, 17, 0.1);
    text-align: right;
    flex-shrink: 0;
}

/* Botón bonito */
.read-more-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #a66f11;
    color: white;
    border: none;
    padding: 8px 16px;       /* ← Reducido de 10px 20px */
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more-news-btn:hover {
    background: #8a5c0e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 111, 17, 0.3);
}

/* Indicador de tipo de contenido */
.content-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(166, 111, 17, 0.1);
    color: #a66f11;
    padding: 4px 10px;       /* ← Reducido de 4px 12px */
    border-radius: 12px;
    font-size: 11px;         /* ← Reducido de 12px */
    font-weight: 500;
    margin-left: 10px;
}

/* Fondo de fecha */
.date-badge {
    background: rgba(166, 111, 17, 0.1);
    color: #a66f11;
    padding: 5px 10px;       /* ← Reducido de 6px 12px */
    border-radius: 20px;
    font-size: 13px;         /* ← Reducido de 14px */
    font-weight: 500;
}

/* ===== MODAL DE NOTICIAS - ESTILOS COMPLETOS ===== */

/* Contenedor del modal */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 26, 19, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.news-modal-overlay.active {
    display: flex;
}

/* Modal principal */
.news-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón de cerrar */
.news-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(166, 111, 17, 0.1);
    border: none;
    color: #a66f11;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: #a66f11;
    color: white;
    transform: rotate(90deg);
}

/* Contenido del modal */
.news-modal-content {
    padding: 40px;
}

@media (max-width: 768px) {
    .news-modal-content {
        padding: 25px;
    }
}

/* Encabezado del modal */
.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.news-modal-date {
    color: #a66f11;
    font-weight: 600;
    font-size: 16px;
}

.news-modal-type {
    margin-top: 0;
}

/* Badge de tipo */
.type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Título del modal */
.news-modal-title {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 700;
    color: #151a13;
    margin-bottom: 20px;
    line-height: 1.3;
    padding-right: 40px; /* Espacio para el botón de cerrar */
}

@media (max-width: 768px) {
    .news-modal-title {
        font-size: 24px;
        padding-right: 35px;
    }
}

/* Cuerpo del modal */
.news-modal-body {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

.news-modal-body p {
    margin-bottom: 15px;
}

.news-modal-body ul,
.news-modal-body ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.news-modal-body li {
    margin-bottom: 8px;
}

.news-modal-body a {
    color: #4a6741;
    text-decoration: none;
    font-weight: 600;
}

.news-modal-body a:hover {
    text-decoration: underline;
}

/* ===== CONTENIDO MULTIMEDIA EN MODAL ===== */

/* Imágenes */
.modal-media {
    margin: 20px 0;
    text-align: center;
}

.modal-media img {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-media p {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Contenedor de video */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Contenedor de Facebook */
.fb-post-container {
    margin: 25px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.fb-post-header {
    background: #f5f5f5;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-post-icon {
    color: #1877f2;
    font-size: 20px;
}

.fb-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.fb-post-embed {
    padding: 15px;
    min-height: 200px;
    background: #fff;
    text-align: center;
}

/* Asegurar que los iframes de Facebook sean responsivos */
.fb-post-embed iframe {
    max-width: 100% !important;
    min-height: 400px !important;
    border: none !important;
}

/* Controles de Facebook embed */
.fb-embed-controls {
    background: #f9f9f9;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.fb-view-full-btn {
    background: #1877f2;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.fb-view-full-btn:hover {
    background-color: #166fe5;
    color: white;
}

/* Contenedor de audio */
.audio-container {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
}

.audio-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.audio {
    width: 100%;
    max-width: 500px;
    height: 40px;
}

/* Nota para embeds */
.embed-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== RESPONSIVE PARA MODAL ===== */
@media (max-width: 768px) {
    .news-modal-overlay {
        padding: 10px;
    }
    
    .news-modal {
        max-height: 95vh;
        margin: 10px;
    }
    
    .news-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .fb-post-embed iframe {
        width: 100% !important;
        min-height: 300px !important;
    }
    
    .fb-embed-controls {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ===== ARCHIVO - ESTILOS ESPECÍFICOS PARA ARHIVS ===== */
.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(185, 172, 142, 0.1);
    border-radius: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: #b9ac8e;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Crimson Pro', serif;
    font-size: 14px;
}

.filter-btn:hover {
    background: #9c8f73;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #4a6741;
}

.archive-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(185, 172, 142, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #4a6741;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.archive-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.archive-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.archive-date {
    font-size: 14px;
    color: #666;
}

.archive-type {
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.archive-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.archive-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.archive-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-archive-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #b9ac8e;
    color: #b9ac8e;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.view-archive-btn:hover {
    background: #b9ac8e;
    color: white;
}

.year-filter {
    margin: 20px 0;
    padding: 15px;
    background: rgba(185, 172, 142, 0.1);
    border-radius: 10px;
}

.year-filter h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.year-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.year-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.year-btn:hover {
    background: #f5f5f5;
}

.year-btn.active {
    background: #4a6741;
    color: white;
    border-color: #4a6741;
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-filters {
        justify-content: center;
    }
    
    .archive-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== BOOKS GRID ===== */
.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;             /* ← Reducido de 30px */
}

@media (min-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.book-preview {
    text-align: center;
    padding: 20px;         /* ← Reducido de 25px */
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(185, 172, 142, 0.1);
    transition: all 0.3s ease;
}

.book-preview:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.book-cover {
    width: 160px;
    height: 220px;
    margin: 0 auto 15px;   /* ← Reducido de 20px */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-cover:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.book-cover:hover img {
    transform: scale(1.05);
}

.book-title {
    font-family: 'Lora', serif;
    font-size: 18px;
    font-weight: 600;
    color: #151a13;
    margin-bottom: 6px;    /* ← Reducido de 8px */
}

.book-info {
    color: #604e28;
    font-size: 14px;
    margin-bottom: 12px;   /* ← Reducido de 15px */
}

/* ===== BUTTONS ===== */
.read-more-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #a66f11;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Crimson Pro', serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 auto;
}

.read-more-btn:hover {
    background: #8a5d0e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 111, 17, 0.3);
}

.view-all-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #a66f11;
    border: 2px solid #a66f11;
    border-radius: 25px;
    font-family: 'Crimson Pro', serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 auto;
}

.view-all-btn:hover {
    background: #a66f11;
    color: white;
    transform: translateY(-2px);
}

/* ===== ARCHIVO ===== */
.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(185, 172, 142, 0.1);
    border-radius: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: #b9ac8e;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Crimson Pro', serif;
    font-size: 14px;
}

.filter-btn:hover {
    background: #9c8f73;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #4a6741;
}

.filter-btn i {
    margin-right: 5px;
}

.archive-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(185, 172, 142, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #4a6741;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.archive-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.archive-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.archive-date {
    font-size: 14px;
    color: #666;
}

.archive-type {
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.archive-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.archive-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.archive-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-archive-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #b9ac8e;
    color: #b9ac8e;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.view-archive-btn:hover {
    background: #b9ac8e;
    color: white;
}

.year-filter {
    margin: 20px 0;
    padding: 15px;
    background: rgba(185, 172, 142, 0.1);
    border-radius: 10px;
}

.year-filter h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.year-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.year-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.year-btn:hover {
    background: #f5f5f5;
}

.year-btn.active {
    background: #4a6741;
    color: white;
    border-color: #4a6741;
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-filters {
        justify-content: center;
    }
    
    .archive-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== FOOTER ===== */
.footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
}

.footer-collapsed {
    background: linear-gradient(135deg, rgba(21, 26, 19, 0.95) 0%, rgba(96, 78, 40, 0.9) 100%);
    height: 8px;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.footer-collapsed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #a66f11 20%, #ffd700 50%, #a66f11 80%, transparent 100%);
    animation: slideGradient 3s linear infinite;
}

@keyframes slideGradient {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.footer-tooltip {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    color: #151a13;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.footer-collapsed:hover .footer-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.footer-expanded {
    background: linear-gradient(135deg, rgba(21, 26, 19, 0.98) 0%, rgba(96, 78, 40, 0.95) 100%);
    color: white;
    padding: 20px 0 15px;  /* ← Reducido de 25px 0 20px */
    width: 100%;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #a66f11;
    display: none;
    transition: all 0.3s ease;
}

.footer-expanded.active {
    display: block;
}

.footer-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-close-btn:hover {
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;            /* ← Reducido de 20px */
}

.social-links {
    display: flex;
    gap: 12px;            /* ← Reducido de 15px */
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #a66f11;
    transform: translateY(-3px);
}

.footer-contact {
    text-align: center;
    font-size: 14px;
}

.footer-contact p {
    margin: 4px 0;        /* ← Reducido de 5px 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ffd700;
}

.copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #a66f11;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s ease;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(166, 111, 17, 0.3);
}

.back-to-top:hover {
    background: #8a5d0e;
    transform: translateY(-3px) scale(1.05);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .content-card {
        padding: 20px;
    }

    .mobile-menu {
        width: 85%;
        max-width: 300px;
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;         /* ← Reducido de 15px */
    }

    .social-links {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-text {
        display: none;
    }
}