/* ===================================================================
   Fase 20 · Home vivo — secciones de noticias, eventos y fotos
   Usa los tokens del sitio (wlm.css). Se carga en el home.
   =================================================================== */

/* ===================== NOTICIAS EN EL HOME ===================== */
.home-news-section { padding-top: 60px; }

.home-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Hero de noticia: imagen grande + texto debajo */
.home-news-hero {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-news-hero:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.home-news-hero-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-news-hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.home-news-hero:hover .home-news-hero-media img { transform: scale(1.04); }

.home-news-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(255, 56, 92, 0.4);
}

.home-news-badge.sm { padding: 7px; gap: 0; }
.home-news-badge i { font-size: 11px; }

.home-news-hero-copy { padding: 22px 24px 24px; }

.home-news-cat {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-news-hero-copy h3 {
    margin: 8px 0 10px;
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.home-news-hero-copy p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-meta { color: var(--soft); font-size: 13px; font-weight: 700; }

/* Lista lateral de noticias */
.home-news-list { display: grid; gap: 14px; }

.home-news-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.home-news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.home-news-item-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
}

.home-news-item-media img { width: 100%; height: 100%; object-fit: cover; }
.home-news-item-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.home-news-item-copy h4 {
    margin: 5px 0 6px;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 920px) {
    .home-news-grid { grid-template-columns: 1fr; }
}

/* ===================== EVENTOS EN EL HOME ===================== */
.home-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.home-event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.home-event-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.home-event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.home-event-card:hover .home-event-media img { transform: scale(1.05); }

.home-event-date {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 52px;
    padding: 8px 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    line-height: 1;
}

.home-event-date strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); }
.home-event-date small { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--brand); margin-top: 3px; }

.home-event-copy { display: grid; gap: 4px; padding: 15px 17px 18px; }

.home-event-venue {
    color: var(--brand);
    font-size: 11.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-event-copy h3 {
    margin: 2px 0;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.home-event-copy p { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* ===================== FOTOS EN EL HOME ===================== */
.home-galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.home-gallery-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.home-gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.home-gallery-card:hover img { transform: scale(1.06); }

.home-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    padding: 18px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 62%);
    color: #fff;
}

.home-gallery-overlay strong {
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-gallery-overlay span { font-size: 12.5px; opacity: 0.92; font-weight: 600; }
