/* ADPrensa — Components */

/* ══════════════════════════════════
   SITE HEADER — minimal, logo + live
   ══════════════════════════════════ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.site-header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.site-header__logo-name {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1;
}

.site-header__logo-since {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #aaa;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-header__logo-year {
  color: #007d5c;
  font-weight: 500;
}

.site-header__status {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ══════════════════════════════════
   LIVE BADGE
   ══════════════════════════════════ */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ink);
}

.live-badge__dot {
    width: 7px;
    height: 7px;
    background: var(--color-status-success);
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 155, 114, 0.4);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 0 5px rgba(0, 155, 114, 0);
    }
}

/* ══════════════════════════════════
   TIMESTAMP / CLOCK / DATE
   ══════════════════════════════════ */
.timestamp {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--color-ink-faint);
    letter-spacing: 0.02em;
}

.timestamp--clock {
    font-size: var(--text-sm);
    color: var(--color-ink-muted);
    font-variant-numeric: tabular-nums;
}

.date-display {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    color: var(--color-ink-faint);
    text-transform: capitalize;
}

/* ══════════════════════════════════
   HERO — Titular + imagen lado a lado
   ══════════════════════════════════ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-sm);
}

.hero__title {
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: #1a1a1a;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.hero__image {
    overflow: hidden;
    border-radius: 4px;
    min-height: 280px;
    max-height: 360px;
}

.hero__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero__lead {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    color: var(--color-ink-light);
    line-height: 1.55;
}

/* ══════════════════════════════════
   EDITORIAL BOX — Caja Pauta en Vivo
   ══════════════════════════════════ */
.editorial-box {
  background: #f9f8f5;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editorial-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.editorial-box__live {
  display: flex;
  align-items: center;
  gap: 7px;
}

.editorial-box__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #007d5c;
  animation: eb-live 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes eb-live { 0%,100%{opacity:1} 50%{opacity:.25} }

.editorial-box__live-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
}

.editorial-box__date {
  font-size: 11px;
  color: #aaa;
}

.editorial-box__items {
  padding: 6px 18px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.editorial-box__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.editorial-box__item:last-child { border-bottom: none; }

.editorial-box__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #007d5c;
  flex-shrink: 0;
  min-width: 36px;
}

.editorial-box__text {
  font-size: 12.5px;
  color: #222;
  line-height: 1.45;
}

.editorial-box__footer {
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editorial-box__cta {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  padding: 8px 0;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  transition: border-color .15s, color .15s;
}

.editorial-box__cta:hover {
  border-color: #007d5c;
  color: #007d5c;
}

.editorial-box__updated {
  font-size: 10.5px;
  color: #ccc;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

/* ══════════════════════════════════
   NEWS ROW — 3 noticias inferiores
   ══════════════════════════════════ */
.news-card {
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-surface-white);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.news-card__image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-card__source {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-ink-muted);
}

.news-card__title {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-ink);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* ══════════════════════════════════
   TITULARES DEL DÍA — Sistema Editorial (v2)
   ══════════════════════════════════ */
.wire-feed {
    border-top: 2px solid var(--color-green-adprensa);
    padding-top: var(--space-lg);
    margin-top: 48px;
}

.wire-feed__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.wire-feed__label {
    font-family: var(--font-sans);
    font-size: 30px;
    font-weight: var(--weight-bold);
    color: #111;
    letter-spacing: -0.03em;
    line-height: 1.12;
    white-space: nowrap;
    margin: 0 0 10px;
}

.wire-feed__label span {
    font-weight: 300;
    color: #555;
}

.wire-feed__list {
    display: flex;
    flex-direction: column;
}

.headline-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px 6px;
    border-bottom: 1px solid #ECECEC;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.headline-item:last-child {
    border-bottom: none;
}

.headline-item:hover {
    background: #f7f7f7;
}

.headline-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #111;
    min-width: 72px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Titular líder: primer ítem visible */
.headline-item.is-lead {
    padding: 18px 6px 20px;
}

.headline-item.is-lead .headline-title {
    font-size: 20px;
    font-weight: 700;
    width: 100%;
}

.headline-lead-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 2px 0 0;
    width: 100%;
    font-weight: 400;
}

.headline-section {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0.85;

    /* Variables de color por sección */
    color: var(--section-color);
    background-color: color-mix(in srgb, var(--section-color) 12%, white);
}

.hero .headline-section,
.news-card__body .headline-section {
    font-size: 9px;
    padding: 2px 6px;
    letter-spacing: 0.8px;
    border-radius: 2px;
}

/* Paleta por sección (v2) */
.presidencia {
    --section-color: #0F3D2E;
}

.gobierno {
    --section-color: #2F5D50;
}

.politica {
    --section-color: #3B3F46;
}

.economia {
    --section-color: #1F3F5B;
}

.cronica {
    --section-color: #8A2E2E;
}

.cultura {
    --section-color: #6A2C4F;
}

.deportes {
    --section-color: #1E5A3A;
}

.judicial {
    --section-color: #2C3E50;
}

.headline-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}

.headline-title:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #000;
}

.headline-item.is-latest .headline-time {
    color: #C03010;
    font-weight: 600;
}

/* ══════════════════════════════════
   INSTITUTIONAL SECTION (v3 - Card System)
   ══════════════════════════════════ */
.institutional-section {
    background-color: #f5f6f6;
    padding: 80px var(--gutter);
    margin-top: 90px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

.section-header--center {
    text-align: center;
    margin-bottom: 48px;
}

.section-header__tag {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-ink-muted);
    display: block;
    margin-bottom: 8px;
}

.section-header__title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

/* Frase Institucional en Footer */
.site-footer__foundation {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-ink-muted);
    margin-top: 12px;
    line-height: 1.5;
    max-width: 400px;
}

/* ══════════════════════════════════
   DIGITAL PLATFORM SECTION (v4 - Modular Grid)
   ══════════════════════════════════ */
/* ══════════════════════════════════
   DIGITAL PLATFORM SECTION (v5 - Integrated)
   ══════════════════════════════════ */
.institutional-section {
    background-color: #f0f4f3;
    /* Verde agua muy sutil y limpio */
    padding: 70px var(--gutter);
    margin-top: 80px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.platform-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    /* Recuperamos espacio entre módulos al no haber bordes */
    background: transparent;
}

/* Header de Sección alineado con línea de destaque */
.section-header--platform {
    max-width: var(--max-width);
    margin: 0 auto 35px auto;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-header--platform .section-header__title {
    margin-bottom: 0;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.section-header--platform::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    /* Línea sutil de continuidad */
    margin-top: 4px;
}

.platform-item {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.platform-item__icon {
    color: var(--color-status-success);
    margin-bottom: 18px;
    opacity: 0.8;
}

.platform-item__icon svg {
    width: 22px;
    height: 22px;
}

.platform-item__title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-transform: none;
}

.platform-item__content p {
    font-family: var(--font-sans);
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 0;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.platform-list li {
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: #4a4a4a;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.platform-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 10px;
    height: 1.5px;
    background: var(--color-status-success);
    opacity: 0.6;
}

/* Mockup Técnico Integrado sobre Fondo Tonal */
.platform-mockup {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 18px;
    border-radius: 3px;
    overflow: hidden;
    max-width: 280px;
}

.platform-mockup__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.platform-mockup__row:last-child {
    border-bottom: none;
}

.m-time {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #889;
}

.m-tag {
    font-family: var(--font-sans);
    font-size: 7.5px;
    font-weight: 700;
    padding: 1.5px 4px;
    border-radius: 1px;
    opacity: 0.9;
}

.m-eco {
    background: #eef2ff;
    color: #4338ca;
}

.m-pre {
    background: #ecfdf5;
    color: #065f46;
}

.m-pol {
    background: #fef2f2;
    color: #991b1b;
}

.m-text {
    font-family: var(--font-sans);
    font-size: 10.5px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════
   RESPONSIVE - Platform Section
   ══════════════════════════════════ */

@media (max-width: 1024px) {
    .platform-item {
        padding: 30px 20px;
    }
}

@media (max-width: 850px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-item {
        border-right: none;
        border-bottom: 1px solid #e6ecea;
    }

    .platform-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .institutional-section {
        padding: 50px 0;
    }

    .platform-grid {
        border-left: none;
        border-right: none;
    }
}

/* ══════════════════════════════════
   DIVIDER
   ══════════════════════════════════ */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-xl) 0;
}

/* ── Footer ── */
.site-footer {
  font-family: 'Inter', sans-serif;
}

.site-footer__main {
  background: #FFFCF9;
  border-top: 1px solid rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  padding: 52px 48px 48px;
}

.site-footer__watermark {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 140px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #111;
  opacity: 0.025;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.site-footer__brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 4px;
}

.site-footer__brand-tag {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 20px;
}

.site-footer__brand-year {
  font-size: 13px;
  color: #007d5c;
  font-weight: 500;
  line-height: 1.5;
}

.site-footer__brand-desc {
  font-size: 12.5px;
  color: #666;
  line-height: 1.6;
  margin-top: 2px;
}

.site-footer__col-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 14px;
}

.site-footer__contact-item {
  font-size: 12.5px;
  color: #555;
  line-height: 1.7;
}

.site-footer__contact-item a {
  color: #555;
  text-decoration: none;
  transition: color .15s;
}

.site-footer__contact-item a:hover { color: #007d5c; }

.site-footer__contact-item--gap { margin-top: 8px; }

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__nav a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color .15s;
}

.site-footer__nav a:hover { color: #111; }

.site-footer__bottom {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFCF9;
}

.site-footer__copy {
  font-size: 11px;
  color: #bbb;
}

.site-footer__copy-year {
  color: #007d5c;
}

/* ── Emergencias y Clima ── */
.ec-box {
  background: #f7f9fc;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.ec-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.ec-box__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
}

.ec-box__source {
  font-size: 9.5px;
  color: #ccc;
}

.ec-box__meteo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.ec-box__meteo-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-box__meteo-city {
  font-size: 10.5px;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ec-box__meteo-desc {
  font-size: 11.5px;
  color: #666;
}

.ec-box__meteo-temp {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1;
}

.ec-box__meteo-temp span {
  font-size: 14px;
  color: #aaa;
  font-weight: 400;
}

.ec-box__alerts {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.ec-box__alert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ec-box__alert-item:last-child { border-bottom: none; }

.ec-box__alert-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 110px;
  text-align: center;
}

.ec-box__alert-badge--roja     { background: #fde8e8; color: #9b1c1c; }
.ec-box__alert-badge--amarilla { background: #fef3cd; color: #92400e; }
.ec-box__alert-badge--temprana { background: #e8f4fd; color: #1e3a5f; }

.ec-box__alert-text   { font-size: 11.5px; color: #333; line-height: 1.4; }
.ec-box__alert-region { font-size: 10.5px; color: #999; margin-top: 1px; }

/* Sin alertas */
.ec-box__no-alerts {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ec-box__no-alerts-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #007d5c;
  flex-shrink: 0;
}

.ec-box__no-alerts-text {
  font-size: 11.5px;
  color: #aaa;
}

.ec-box__footer {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ec-box__updated {
  font-size: 10px;
  color: #ccc;
  font-family: 'JetBrains Mono', monospace;
}

.ec-box__link {
  font-size: 10.5px;
  color: #007d5c;
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}

.ec-box__link:hover { opacity: 0.7; }