/* portada.css — HI809 editorial theme */

/* --- Título y Buscador --- */
.portada-header-container {
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.portada-title {
    border-left: 5px solid #01a982 !important;
    padding-left: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.search-pill {
    border-radius: 50px !important;
    border: 1px solid #ddd !important;
    padding-left: 20px !important;
    background-color: #fcfcfc !important;
}

.search-btn-pill {
    border-radius: 50px !important;
    padding: 6px 20px !important;
    margin-left: -40px !important;
    z-index: 10 !important;
    background-color: #01a982 !important;
    border-color: #01a982 !important;
    color: #fff !important;
}

.search-btn-pill:hover {
    background-color: #007f63 !important;
    border-color: #007f63 !important;
    color: #fff !important;
}

/* --- Widgets (Sidebar) --- */
.widget-card {
    background: #fff !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.08) !important;
    margin-bottom: 20px !important;
    border: 1px solid #e8e8e8 !important;
    overflow: hidden !important;
}

.widget-header {
    background-color: #111 !important;
    padding: 10px 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: .06em !important;
    border-bottom: 2px solid #01a982 !important;
}

/* Menú Áreas */
.menu-area-link {
    position: relative !important;
    display: block !important;
    padding: 10px 15px !important;
    color: #444 !important;
    border-bottom: 1px solid #f3f3f3 !important;
    text-decoration: none !important;
    font-size: .88rem !important;
    transition: background-color 0.15s, color 0.15s !important;
}

    .menu-area-link::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 3px !important;
        background-color: transparent !important;
        transition: background-color 0.15s !important;
    }

    .menu-area-link:hover {
        background-color: #f5f5f5 !important;
        color: #01a982 !important;
    }

        .menu-area-link:hover::before {
            background-color: #01a982 !important;
        }

/* --- Cumpleaños --- */
.cumple-row {
    display: flex !important;
    align-items: center !important;
    padding: 9px 15px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

    .cumple-row:hover {
        background: #fafafa !important;
    }

.cumple-img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-right: 12px !important;
    border: 2px solid #eee !important;
}

.cumple-info h6 {
    margin: 0 !important;
    font-size: 0.87rem !important;
    font-weight: 600 !important;
    color: #222 !important;
}

.cumple-info small {
    color: #888 !important;
    font-size: 0.78rem !important;
}

.cumple-date {
    margin-left: auto !important;
    color: #01a982 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
}

/* --- Artículos (Grid) --- */
.art-card {
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.07) !important;
    border: 1px solid #e8e8e8 !important;
    transition: box-shadow .2s, transform .2s !important;
}

.art-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.13) !important;
    transform: translateY(-2px) !important;
}

/* Contenedor de la imagen */
.art-img-wrap {
    width: 100% !important;
    overflow: hidden !important;
    background-color: #f0f0f0 !important;
}

.art-img-wrap > a {
    display: block !important;
    width: 100% !important;
}

.art-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: unset !important;
}

.art-body {
    padding: 14px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.art-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

    .art-title a {
        color: #111 !important;
        text-decoration: none !important;
        transition: color .15s !important;
    }

    .art-title a:hover {
        color: #01a982 !important;
    }

.art-desc {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-bottom: 12px !important;
    flex-grow: 1 !important;
}

.art-btn {
    margin-top: auto !important;
    align-self: flex-start !important;
    background-color: #01a982 !important;
    border-color: #01a982 !important;
    color: #fff !important;
    font-size: .8rem !important;
    padding: 4px 14px !important;
}

.art-btn:hover {
    background-color: #007f63 !important;
    border-color: #007f63 !important;
    color: #fff !important;
}

/* Paginación */
.pagination .page-link {
    color: #444 !important;
    border-radius: 4px !important;
    margin: 0 2px !important;
    border-color: #ddd !important;
}

.pagination .page-link:hover {
    color: #01a982 !important;
    border-color: #01a982 !important;
}

.pagination .page-item.active .page-link {
    background: #01a982 !important;
    border-color: #01a982 !important;
    color: #fff !important;
}

/* --- Sección enlaces --- */
#enlaces .widget-card {
    border-radius: 8px;
    overflow: hidden;
}

/* Grid responsive */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

/* Tarjeta link */
.quick-link {
    position: relative;
    display: block;
    padding: 14px 14px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: #111;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .quick-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.09);
        border-color: #01a982;
        color: #01a982;
    }

.ql-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    margin-right: 22px;
}

.ql-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ql-arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: .5;
    font-size: 18px;
    color: #01a982;
    transition: transform .15s ease, opacity .15s ease;
}

.quick-link:hover .ql-arrow {
    transform: translateX(4px);
    opacity: 1;
}
