/* =============================================
   EFEMÉRIDES - Banner del día + próximas + hero de noticia (HOME)
   ============================================= */

/* =====================
   CARRUSEL (destacadas / efemérides del día)
   ===================== */

.carrusel {
    position: relative;
}

.carrusel-slides {
    position: relative;
}

.carrusel-slide {
    display: none;
}

.carrusel-slide.active {
    display: block;
    animation: carrusel-fade 0.35s ease;
}

@keyframes carrusel-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carrusel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    color: #333;
    font-size: 13px;
    z-index: 3;
}

.carrusel-arrow:hover {
    background: #fff;
    color: #0B5C21;
}

.carrusel-arrow.prev { left: 12px; }
.carrusel-arrow.next { right: 12px; }

.carrusel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.carrusel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carrusel-dot:hover {
    background: #bbb;
}

.carrusel-dot.active {
    background: #0B5C21;
    transform: scale(1.2);
}

.efeme-carrusel {
    flex: 1;
    min-width: 0;
}

.efeme-dots {
    justify-content: flex-start;
    margin-top: 6px;
    margin-left: 4px;
}

.efeme-dots .carrusel-dot {
    background: #ecdca8;
}

.efeme-dots .carrusel-dot.active {
    background: #8a6d1d;
}

/* =====================
   BANNER EFEMÉRIDE DEL DÍA (franja compacta)
   ===================== */

.efeme-banner {
    padding-top: 4px;
    padding-bottom: 20px;
}

.efeme-banner-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.efeme-banner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fdf8ec;
    border: 1px solid #ecdca8;
    border-radius: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.efeme-banner-card:hover {
    box-shadow: 0 4px 14px rgba(138,109,29,0.15);
    border-color: #c8a84e;
    color: inherit;
}

.efeme-banner-img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #c8a84e 0%, #8a6d1d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.efeme-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.efeme-banner-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.efeme-banner-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #8a6d1d;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.efeme-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #4a3a10;
    line-height: 1.3;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.efeme-banner-link {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: #8a6d1d;
    white-space: nowrap;
}

.efeme-banner-link i {
    margin-left: 4px;
}

.efeme-ver-todas {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #8a6d1d;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ecdca8;
    border-radius: 10px;
    padding: 0 16px;
    white-space: nowrap;
}

.efeme-ver-todas:hover {
    border-color: #c8a84e;
    color: #6b551c;
}

/* Próximas efemérides */
.efeme-proximas {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.efeme-proximas-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    white-space: nowrap;
}

.efeme-proximas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.efeme-proxima-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
}

.efeme-proxima-item:hover {
    border-color: #c8a84e;
    background: #fdf8ec;
    color: #4a3a10;
}

.efeme-proxima-fecha {
    font-weight: 700;
    color: #8a6d1d;
}

/* =====================
   HERO DE NOTICIA DESTACADA
   ===================== */

.hero-noticia {
    padding-bottom: 24px;
}

.hero-noticia-card {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-noticia-card:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: inherit;
}

/* Imagen vertical 500x625 (4:5) - el ancho manda, el alto se calcula solo */
.hero-noticia-img {
    position: relative;
    flex: 0 0 256px;
    width: 256px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f0f0f0;
    align-self: stretch;
}

.hero-noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-noticia-img.no-image {
    background: linear-gradient(135deg, #0B5C21 0%, #1a8a3e 100%);
}

.hero-noticia-body {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.hero-noticia-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #c8a84e;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-noticia-eyebrow i {
    margin-right: 6px;
}

.hero-noticia-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 8px 0;
    font-family: 'Lato', sans-serif;
}

.hero-noticia-subtitle {
    font-size: 15px;
    color: #0B5C21;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.hero-noticia-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.hero-noticia-link {
    font-size: 14px;
    font-weight: 700;
    color: #0B5C21;
}

.hero-noticia-link i {
    margin-left: 4px;
}

/* =====================
   BUSCADOR DE NOTICIAS
   ===================== */

.pub-buscador {
    margin-bottom: 20px;
}

.pub-buscador-form {
    position: relative;
    max-width: 420px;
}

.pub-buscador-form i.fa-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.pub-buscador-form input {
    width: 100%;
    padding: 11px 40px 11px 42px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.pub-buscador-form input:focus {
    border-color: #0B5C21;
}

.pub-buscador-limpiar {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.pub-buscador-limpiar:hover {
    color: #c0392b;
}

.pub-buscador-resultado {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.pub-sin-resultados {
    font-size: 14px;
    color: #888;
    padding: 30px 0;
    text-align: center;
}

/* =====================
   ACCESOS RÁPIDOS
   ===================== */

.accesos-rapidos {
    padding-bottom: 30px;
}

.accesos-rapidos-titulo {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.accesos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.acceso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 8px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.2s ease;
}

.acceso-item:hover {
    border-color: #0B5C21;
    background: #f5fbf6;
    color: #0B5C21;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.acceso-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0faf2;
    color: #0B5C21;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.acceso-item:hover .acceso-icon {
    background: #0B5C21;
    color: #fff;
}

.acceso-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
    .hero-noticia-card {
        flex-direction: column;
    }

    .hero-noticia-img {
        flex: none;
        width: 100%;
        max-width: 260px;
        aspect-ratio: 4 / 5;
        margin: 0 auto;
    }

    .hero-noticia-img img {
        object-position: center top;
    }

    .hero-noticia-body {
        padding: 18px 20px;
    }

    .hero-noticia-title {
        font-size: 20px;
    }

    .efeme-banner-row {
        flex-wrap: wrap;
    }

    .efeme-banner-card {
        min-width: 100%;
    }

    .efeme-ver-todas {
        padding: 8px 16px;
    }

    .efeme-banner-link {
        display: none;
    }

    .accesos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .accesos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
