/* =========================================================
   We Love Medellín - News Page
   public/css/news.css
   ========================================================= */

.news-page {
    padding: 34px 0 0;
}

.news-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
    gap: 48px;
    align-items: end;
    padding: 54px 0 34px;
}

.news-hero-copy {
    max-width: 860px;
}

.news-hero-copy .title-lg {
    max-width: 830px;
}

.news-hero-copy .lead {
    max-width: 790px;
}

.news-search {
    width: min(100%, 860px);
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
    padding: 8px 8px 8px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.news-search i {
    color: var(--brand);
    font-size: 15px;
}

.news-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.news-search input::placeholder {
    color: #8f96a3;
}

.news-search button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.news-search button:hover {
    background: var(--brand);
}

.news-hero-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 248, 243, 0.94), rgba(255, 255, 255, 1)), #fff;
    box-shadow: var(--shadow-md);
}

.news-hero-card > span,
.news-editorial-card > span,
.news-business-card > span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-hero-card h2,
.news-editorial-card h3,
.news-business-card h3 {
    margin: 9px 0 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.03;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.news-hero-card p,
.news-editorial-card p,
.news-business-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.news-hero-card a,
.news-business-card a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}

.news-hero-card a:hover,
.news-business-card a:hover {
    background: var(--brand);
}

.news-featured-wrap {
    padding: 8px 0 32px;
}

.news-card {
    min-width: 0;
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 28px;
    background: #f2f2f2;
    box-shadow: var(--shadow-xs);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.045);
}

.news-card-type,
.news-card-breaking,
.news-card-sponsored {
    position: absolute;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}

.news-card-type {
    left: 12px;
    top: 12px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.news-card-breaking {
    right: 12px;
    top: 12px;
    padding: 0 12px;
    background: var(--brand);
    color: #fff;
}

.news-card-sponsored {
    left: 12px;
    bottom: 12px;
    padding: 0 12px;
    background: #111;
    color: #fff;
}

.news-card-body {
    padding: 14px 2px 0;
}

.news-card-kicker {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-card h3 {
    margin: 8px 0 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-weight: 850;
}

.news-card h3 a {
    color: inherit;
}

.news-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.48;
    font-weight: 550;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card-meta i {
    color: var(--brand);
}

.news-card-large {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
    gap: 28px;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 42px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.news-card-large .news-card-media {
    min-height: 500px;
    border-radius: 34px;
    box-shadow: none;
}

.news-card-large .news-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 46px);
}

.news-card-large h3 {
    max-width: 780px;
    margin-top: 18px;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.news-card-large p {
    max-width: 660px;
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.62;
    letter-spacing: -0.015em;
}

.news-card-large .news-card-meta {
    margin-top: 24px;
}

.news-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
    padding-top: 18px;
}

.news-left-rail,
.news-right-rail {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.news-main {
    min-width: 0;
}

.news-rail-card,
.news-business-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.news-rail-title {
    display: block;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-rail-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.news-rail-card-head .news-rail-title {
    margin-bottom: 0;
}

.news-rail-card-head a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
}

.news-filter-list {
    display: grid;
    gap: 8px;
}

.news-filter-chip {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
}

.news-filter-chip i {
    width: 18px;
    color: var(--soft);
}

.news-filter-chip:hover {
    background: var(--paper-soft);
    color: var(--ink);
}

.news-filter-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.news-filter-chip.is-active i {
    color: #fff;
}

.news-editorial-card {
    background: linear-gradient(180deg, var(--paper-warm), #fff);
}

.news-feed-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    padding: 8px 0 18px;
}

.news-feed-head h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 850;
}

.news-feed-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.news-trend-list {
    display: grid;
    gap: 8px;
}

.news-trend-item {
    min-height: 60px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: var(--paper-soft);
}

.news-trend-item > strong {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 13px;
    font-weight: 950;
}

.news-trend-item span {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 850;
}

.news-trend-item em {
    display: block;
    margin-bottom: 3px;
    color: var(--brand);
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-business-card {
    background: linear-gradient(180deg, rgba(255, 240, 243, 0.96), rgba(255, 255, 255, 1)), #fff;
}

.news-empty-state {
    margin-top: 16px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--paper-warm);
    color: var(--ink);
}

.news-empty-state strong {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: -0.04em;
}

.news-empty-state p {
    margin: 8px 0 0;
    color: var(--muted);
}

.news-empty-state .btn {
    margin-top: 16px;
}

@media (max-width: 1240px) {
    .news-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .news-right-rail {
        display: none;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1060px) {
    .news-card-large {
        grid-template-columns: 1fr;
    }

    .news-card-large .news-card-media {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }
}

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

    .news-left-rail {
        position: relative;
        top: auto;
        display: block;
    }

    .news-left-rail .news-rail-card:not(:first-child) {
        display: none;
    }

    .news-filter-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .news-filter-list::-webkit-scrollbar {
        display: none;
    }

    .news-filter-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 860px) {
    .news-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 44px;
    }

    .news-hero-card {
        max-width: 560px;
    }
}

@media (max-width: 720px) {
    .news-page {
        padding-top: 16px;
    }

    .news-hero {
        padding: 34px 0 24px;
    }

    .news-hero-copy .title-lg {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 0.98;
    }

    .news-hero-copy .lead {
        font-size: 16px;
        line-height: 1.58;
    }

    .news-search {
        grid-template-columns: auto minmax(0, 1fr);
        border-radius: 28px;
        padding: 12px 14px;
    }

    .news-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .news-card-large {
        margin-left: -2px;
        margin-right: -2px;
        padding: 8px;
        border-radius: 32px;
    }

    .news-card-large .news-card-media {
        border-radius: 26px;
        aspect-ratio: 1 / 1;
    }

    .news-card-large .news-card-body {
        padding: 18px 8px 14px;
    }

    .news-card-large h3 {
        font-size: clamp(30px, 10vw, 42px);
        line-height: 0.98;
    }

    .news-card-large p {
        font-size: 16px;
        line-height: 1.55;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .news-feed-head {
        display: block;
        padding-top: 4px;
    }

    .news-feed-head .section-link {
        display: inline-flex;
        margin-top: 12px;
    }

    .news-card-media {
        aspect-ratio: 16 / 11;
        border-radius: 24px;
    }

    .news-card h3 {
        font-size: 22px;
    }
}


/* =========================================================
   Fase 18-19 · Noticias destacadas, badge, CTA y eventos relacionados
   Integrado directamente en news.css para no depender de archivos extra.
   ========================================================= */

/* ----- Sección "Noticias destacadas" ----- */
.news-featured-section {
    margin: 8px 0 40px;
    padding: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 56, 92, 0.06), transparent 40%),
        #fff;
    border: 1px solid rgba(255, 56, 92, 0.16);
    border-radius: 32px;
    box-shadow: 0 14px 40px rgba(255, 56, 92, 0.07);
}

.news-featured-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.news-featured-row-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin: 0;
}

.news-featured-row-head h2 i { color: var(--brand); font-size: 19px; }

.news-featured-row-head span {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 7px 14px;
    white-space: nowrap;
}

/* ----- Tarjeta destacada principal: horizontal, NO gigante ----- */
.news-card-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.news-card-featured .news-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
    border-radius: 0;
    box-shadow: none;
}

.news-card-featured .news-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 30px;
}

.news-card-featured h3 { margin: 6px 0 10px; font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; }
.news-card-featured p { margin: 0; font-size: 15.5px; line-height: 1.55; }

/* Badge "Noticia destacada" — solo en la esquina, sin chocar con nada */
.news-card-featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(255, 56, 92, 0.4);
}

.news-card-featured-badge i { font-size: 11px; }

/* En la destacada, la etiqueta blanca "Noticia" se oculta (el badge ya lo dice)
   para que NO se encimen en la misma esquina. */
.news-card-featured .news-card-type { display: none; }
.news-card-featured .news-card-breaking { top: 14px; right: 14px; }
.news-card-featured .news-card-sponsored { left: 14px; bottom: 14px; }

/* Demás destacadas en 2 columnas debajo de la principal */
.news-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 760px) {
    .news-card-featured { grid-template-columns: 1fr; }
    .news-card-featured .news-card-media { min-height: 220px; aspect-ratio: 16 / 9; }
    .news-card-featured .news-card-body { padding: 22px; }
    .news-card-featured h3 { font-size: 23px; }
    .news-featured-grid { grid-template-columns: 1fr; }
}

/* ----- Botón "Ver noticia" en cada tarjeta ----- */
.news-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 14.5px;
    align-self: flex-start;
    box-shadow: 0 10px 24px rgba(255, 56, 92, 0.26);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 56, 92, 0.34); }
.news-card-cta i { font-size: 12px; transition: transform 0.15s ease; }
.news-card-cta:hover i { transform: translateX(3px); }

/* Tarjetas como columna para alinear el CTA abajo (no afecta la destacada,
   que ya define su propio body como flex centrado). */
.news-grid .news-card { display: flex; flex-direction: column; }
.news-grid .news-card-body { display: flex; flex-direction: column; flex: 1; }

/* ----- Eventos relacionados (detalle de noticia) ----- */
.newsd-events h2 { display: inline-flex; align-items: center; gap: 9px; }
.newsd-events h2 i { color: var(--brand); }

.newsd-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 4px;
}

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

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

.newsd-event-media { position: relative; display: block; aspect-ratio: 16 / 10; }
.newsd-event-media img { width: 100%; height: 100%; object-fit: cover; }

.newsd-event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 48px;
    padding: 6px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.newsd-event-date strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); }
.newsd-event-date small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--brand); margin-top: 2px; }

.newsd-event-body { display: flex; flex-direction: column; flex: 1; padding: 13px 15px 15px; }
.newsd-event-cat { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); }
.newsd-event-body h3 { font-family: var(--font-display); font-size: 16.5px; letter-spacing: -0.02em; line-height: 1.2; margin: 5px 0 8px; }
.newsd-event-body h3 a { color: var(--ink); }
.newsd-event-body h3 a:hover { color: var(--brand); }
.newsd-event-when { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.newsd-event-when i { color: var(--soft); margin-right: 4px; }

.newsd-event-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    align-self: flex-start;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 13.5px;
    transition: background 0.15s ease;
}

.newsd-event-cta:hover { background: var(--brand); color: #fff; }
.newsd-event-cta i { font-size: 11px; }
