/* ============================================================
   TEMPLATES BASE — Interior de nota (1440 · banner 728)
   Figma APROBADO: 1110:16629. Carga tras tokens.css + components.css.
   Header/footer globales van acá por ahora; se moverán a
   components.css al reusarlos en la 2ª página.
   ============================================================ */

/* ============================================================
   HEADER (responsive: max-w 1440 / min-w 900, flex-wrap)
   ============================================================ */
/* Header canónico (idéntico a home-nota.css: layout absoluto). */
.icon-24 { width: 24px; height: 24px; flex: 0 0 24px; }
.icon-20 { width: 20px; height: 20px; flex: 0 0 20px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--light-gray); }

.temas-bar { background: var(--light-gray); display: flex; align-items: center; gap: 10px; padding: 8px 60px; }
.temas-bar .links { flex: 1 0 0; display: flex; align-items: center; gap: 25px; font-size: 14px; white-space: nowrap; }
.temas-bar .links .label { font-weight: 700; color: var(--blue); text-transform: uppercase; }
.temas-bar .links a { color: var(--black); }
.social-row { display: flex; align-items: center; gap: 16px; }

.nucleo { position: relative; height: 110px; background: var(--white); border-bottom: 1px solid var(--divider-gray); }
.nucleo .logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 200px; }
.hora-clima { position: absolute; left: 60px; top: 34px; display: flex; flex-direction: column; gap: 6px; }
.hora-clima .row { display: flex; align-items: center; gap: 8px; height: 20px; }
.hora-clima .strong { font-weight: 700; color: var(--dark-gray); font-size: 14px; text-transform: uppercase; white-space: nowrap; }
.hora-clima .date { font-size: 14px; color: var(--dark-gray); }
.hora-clima .chip { display: flex; align-items: center; gap: 8px; }
.header-actions { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); display: flex; gap: 14px; align-items: center; }
.btn-header { height: 43px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--blue); border-radius: var(--radius-m); font-size: 14px; white-space: nowrap; cursor: pointer; background: var(--white); color: var(--blue); }
.btn-header--solid { background: var(--blue); color: var(--white); }

.menu-bar { position: relative; height: 50px; background: var(--white); border-top: 1px solid var(--divider-gray); border-bottom: 1px solid var(--divider-gray); }
.menu-bar .menu-icon { position: absolute; top: 13px; }
.menu-bar .menu-icon.hamburger { left: 60px; }
.menu-bar .menu-icon.search { left: 108px; }
.menu-bar .menu-nav { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; font-size: 14px; white-space: nowrap; }
.menu-bar .menu-nav a { color: var(--black); white-space: nowrap; }
.menu-bar .menu-nav .sep { width: 6px; height: 6px; }
.menu-bar .menu-nav .special { color: var(--blue); }

/* Header mobile (oculto en desktop) */
.m-header { display: none; position: sticky; top: 0; z-index: 50; height: 64px; background: var(--white); border-bottom: 1px solid var(--light-gray); align-items: center; justify-content: space-between; padding: 12px 15px; }
.m-header .hamb { width: 24px; height: 24px; }
.m-header .logo { flex: 1; display: flex; justify-content: center; }
.m-header .logo img { height: 17px; width: auto; }
.m-header .play-btn { width: 40px; height: 40px; flex: none; background: var(--blue); border: 1px solid var(--blue); border-radius: var(--radius-button); display: flex; align-items: center; justify-content: center; }
.m-header .play-btn img { width: 24px; height: 24px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.layout { max-width: 1440px; margin: 0 auto; display: flex; gap: 84px; align-items: flex-start; padding: 24px 24px 0 30px; }
.content { width: 1002px; flex: 0 0 1002px; }
.rail { flex: 1; display: flex; justify-content: center; align-self: stretch; }
.sticky-ad { position: sticky; top: 130px; align-self: flex-start; }

/* ---------- Top ---------- */
.top { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 25px; }
.breadcrumbs-row { width: 100%; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-roboto); font-size: 14px; }
.breadcrumbs-row .bc { color: var(--gray); }
.breadcrumbs-row .date { color: var(--black); }
.heading { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.heading .volanta { font-weight: 700; color: var(--blue); font-size: var(--seccion); line-height: 1.2; }
.heading h1 { margin: 0; font-weight: 700; font-size: var(--h1-nota); line-height: 1.02; color: var(--black); }
.bajada { font-family: var(--font-roboto); font-size: 20px; line-height: 1.2; color: var(--dark-gray); }
.bajada a, .bajada .link { color: var(--blue); text-decoration: underline; }
.bajada .b { font-weight: 700; }
.bajada-list { list-style: disc; padding-left: 27px; color: var(--blue); font-family: var(--font-roboto); font-size: 20px; line-height: 1.2; }

/* ---------- Autor ---------- */
.autor { width: 100%; max-width: 1002px; min-width: min(343px, 100%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 2px solid var(--divider-gray); padding: 8px 0; }
.autor .who { display: flex; align-items: center; gap: 16px; border-left: 3px solid var(--blue); padding: 8px 0 10px 17px; }
.autor .avatars { display: flex; align-items: center; }
.autor .avatars img { width: 58px; height: 58px; border-radius: var(--radius-avatar); object-fit: cover; }
.autor .avatars img:first-child { margin-right: -16px; }
.autor .avatars img:last-child { border: 5px solid var(--white); }
.autor .by { font-family: var(--font-roboto); font-size: 14px; }
.autor .by b { font-weight: 700; }
/* Var2 (RRSS+Fecha): fecha visible bajo el byline */
.autor .who .name-col { display: flex; flex-direction: column; gap: 4px; }
.autor .who .name-col .by-date { font-family: var(--font-roboto); font-size: 14px; color: var(--dark-gray); }
.autor .rrss { display: flex; align-items: center; gap: 16px; }
.autor .follow-wrap { border-right: 1px solid var(--gray); padding-right: 15px; }
.autor .follow { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border: 1px solid var(--energy); border-radius: 25px; color: var(--energy); font-size: 14px; white-space: nowrap; }
.autor .follow img { width: 20px; height: 20px; }
.autor .share-label { font-size: 14px; white-space: nowrap; }

/* ---------- Body row ---------- */
.body-row { display: flex; gap: 20px; align-items: flex-start; }
.article { width: 728px; flex: 0 0 728px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.aside { width: 314px; flex: 0 0 314px; display: flex; flex-direction: column; align-items: center; gap: 27px; }

.article p.body-text, .article .text-block p { font-size: var(--cuerpo); color: var(--black); width: 100%; line-height: 1.4; }
.article p.body-text .hl { color: var(--blue); }
.article p.body-text mark { background: #ffff6a; }
.text-block { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.text-block h2 { margin: 0; font-weight: 700; font-size: var(--cuerpo-h2); }
.text-block h3 { margin: 0; font-weight: 700; font-size: var(--cuerpo-h3); }
.text-block h4 { margin: 0; font-weight: 700; font-size: var(--cuerpo-h4); }
.text-block ul { list-style: disc; padding-left: 27px; font-size: var(--cuerpo); }

/* Figure */
.figure { width: 100%; position: relative; display: flex; flex-direction: column; }
.figure .photo { width: 100%; aspect-ratio: 728 / 468; object-fit: cover; }
.figure .epigrafe { background: var(--dark-gray); color: var(--white); font-family: var(--font-roboto); font-size: 14px; padding: 6px 8px; }
.figure .epigrafe b { font-weight: 700; }
.figure .gallery-arrows { position: absolute; top: 40%; transform: translateY(-50%); left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; pointer-events: none; }
.figure .gallery-arrows img { width: 27px; height: 54px; }
.figure .play-big { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 90px; height: 90px; }
.figure--plain { width: 100%; }
.figure--plain img { width: 100%; height: 464px; object-fit: cover; }

.ad-pair { display: flex; gap: 24px; justify-content: center; }

/* Bloque audio */
.bloque-audio { width: 100%; border-left: 3px solid var(--blue); }
.bloque-audio .wrap { border-bottom: 2px solid var(--divider-gray); padding: 16px 28px 17px 22px; display: flex; flex-direction: column; gap: 16px; }
.audio-player { display: flex; align-items: center; gap: 17px; background: var(--white); border: 1px solid var(--divider-gray); border-radius: 1400px; padding: 10px 16px; }
.audio-player img { width: 24px; height: 24px; flex: none; }
.audio-player .progress { flex: 1 0 0; height: 4px; background: var(--blue); position: relative; }
.audio-player .progress .rest { position: absolute; left: 10%; right: 0; top: 0; height: 4px; background: #dbdbdb; }
.audio-player .progress .knob { position: absolute; left: 40px; top: -2.5px; width: 9px; height: 9px; }
.audio-player .time { font-family: var(--font-roboto); font-size: 16px; white-space: nowrap; }
.bloque-audio .title { font-weight: 700; font-size: 18px; }

/* Texto destacado */
.destacado { width: 100%; max-width: 100%; min-width: 0; border: 1px solid var(--divider-gray); padding: 24px 30px; display: flex; gap: 16px; align-items: stretch; justify-content: center; }
.destacado p { flex: 1 0 0; font-weight: 700; color: var(--blue); font-size: var(--destacado); line-height: 1.15; }
.destacado .quote { flex: none; display: flex; align-items: flex-start; }
.destacado .quote--end, .destacado .quote:last-child { align-items: flex-end; }
.destacado .quote img { width: 49px; height: 44px; }

/* Lee además */
.lee-ademas { width: 100%; max-width: 649px; min-width: min(343px, 100%); display: flex; flex-direction: column; gap: 8px; }
.lee-ademas > h3 { margin: 0; font-weight: 700; font-size: 20px; }
.lee-ademas .card { background: var(--white); box-shadow: 0 1px 1.5px rgba(0,0,0,0.16); display: flex; flex-direction: column; }
.nota-row { display: flex; padding: 0 8px; }
.nota-row .inner { flex: 1 0 0; display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--divider-gray); }
.nota-row:last-child .inner { border-bottom: 0; }
.nota-row .thumb { width: 116px; height: 65px; flex: none; object-fit: cover; }
.nota-row .txt { flex: 1 0 0; border-left: 3px solid var(--blue); padding: 4px 0 0 8px; font-weight: 700; font-size: 18px; line-height: 1.3; }
.nota-row .txt .cat { color: var(--blue); }

/* Compartí */
.comparti { width: 100%; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--divider-gray); }
.comparti .label { border-left: 3px solid var(--blue); padding: 19px 0 19px 17px; font-family: var(--font-roboto); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Temas de la nota */
.temas-nota { width: 100%; display: flex; align-items: flex-end; gap: 16px; padding: 16px 0; }
.temas-nota > img { width: 19px; height: 19px; }
.temas-nota .tags { display: flex; gap: 16px; font-family: var(--font-roboto); font-size: 16px; }
.temas-nota .tags .h { font-weight: 700; }
.temas-nota .tags .list { display: flex; gap: 8px; }

/* Seguí leyendo */
.segui { width: 100%; background: var(--white); box-shadow: var(--shadow-card); border-radius: 4px; display: flex; flex-direction: column; }
.segui .title { height: 50px; display: flex; align-items: center; padding: 10px 17px; font-weight: 700; color: var(--blue); font-size: 22px; }
.segui .row { border-top: 1px solid var(--light-gray); padding: 15px 16px; font-weight: 700; color: var(--dark-gray); font-size: 16px; line-height: 1.3; }

/* Encuesta */
.encuesta { width: 100%; max-width: 658px; min-width: min(375px, 100%); position: relative; background: var(--celeste); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; align-items: center; gap: 27px; padding: 40px 0 14px; }
.encuesta .q { font-weight: 700; font-size: 21px; text-align: center; width: 422px; max-width: 90%; }
.encuesta .options { display: flex; flex-direction: column; gap: 11px; width: 431px; max-width: 90%; }
.encuesta .options button { background: var(--white); box-shadow: 0 3px 3px rgba(0,0,0,0.16); border: 0; padding: 9px 10px; font-size: 14px; text-align: center; cursor: pointer; }
.encuesta .tag { position: absolute; left: 0; top: 14px; background: var(--blue); color: var(--white); font-family: var(--font-roboto); font-weight: 700; font-size: 14px; padding: 4px 10px 4px 30px; }

/* ============================================================
   ASIDE
   ============================================================ */
.aside > * { width: 100%; }
.lee-ahora { border: 1px solid #e0e0e0; display: flex; flex-direction: column; }
.mas-leidas { display: flex; flex-direction: column; gap: 12px; }
.mas-leidas .list { border: 1px solid var(--divider-gray); display: flex; flex-direction: column; }
.mas-leidas .item { display: flex; padding: 16px 15px 0; }
.mas-leidas .item .inner { flex: 1 0 0; display: flex; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--divider-gray); }
.mas-leidas .item:last-child .inner { border-bottom: 0; }
.mas-leidas .thumb { width: 116px; height: 65px; flex: none; object-fit: cover; }
.mas-leidas .txt { flex: 1 0 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-roboto); font-weight: 700; color: var(--blue); }
.mas-leidas .num { font-size: 22px; }
.mas-leidas .headline { font-size: 14px; line-height: 1.3; }
.mas-leidas .headline .ttl { color: var(--black); }

.newsletter { background: var(--white); border: 1px solid var(--divider-gray); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.newsletter .illus { width: 100%; height: 230px; object-fit: cover; }
.newsletter .nl-wrap { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.newsletter h3 { margin: 0; font-weight: 700; font-size: 20px; }
.newsletter p { font-size: 18px; }
.newsletter .btn-nl { background: var(--blue); color: var(--white); border-radius: var(--radius-m); padding: 12px; text-align: center; font-family: var(--font-roboto); font-size: 15px; }

/* ============================================================
   BOTTOM — Te puede interesar
   ============================================================ */
.bottom { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.te-puede { display: flex; flex-direction: column; gap: 24px; }
.te-puede .grid { display: flex; gap: 32px; align-items: flex-start; }
.apertura { width: 486px; flex: none; background: var(--white); box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; }
.apertura .cover { width: 486px; aspect-ratio: 486 / 273; object-fit: cover; }
.apertura .txt { padding: 13px 20px 16px; }
.apertura .txt p { font-weight: 700; font-size: 24px; line-height: 1.3; color: var(--blue); }
.apertura .txt p .ttl { color: var(--black); }
.half-grid { width: 484px; display: flex; flex-wrap: wrap; gap: 24px 20px; align-content: flex-start; }
.half-grid .card-half { width: calc((100% - 30px) / 2); min-width: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--white); margin-top: 25px; max-width: 1440px; min-width: 900px; margin-left: auto; margin-right: auto; }
.footer-top { border-top: 1px solid var(--divider-gray); display: flex; gap: 65px; align-items: flex-start; padding: 0 31px 0 45px; }
.footer-top .logo { width: 200px; height: 110px; flex: none; display: flex; align-items: flex-start; padding-top: 10px; }
.footer-top .logo img { width: 200px; }
.footer-col { flex: 1 0 0; display: flex; flex-direction: column; }
.footer-sections { display: flex; flex-wrap: wrap; gap: 8px 16px; border-bottom: 1px solid var(--divider-gray); padding: 0px 120px 0px 0; margin-top: 10px; font-family: var(--font-roboto); font-size: 16px; }
.footer-social { display: flex; gap: 24px; align-items: center; padding: 20px 0 24px; }
.footer-social .icons { display: flex; gap: 16px; }
.footer-social .icons img { width: 18px; height: 18px; }
.footer-social .links { display: flex; gap: 24px; font-family: var(--font-open); font-size: 12px; }
.footer-copyright { border-top: 1px solid var(--divider-gray); display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 30px; gap: 24px; }
.footer-copyright .info { font-family: var(--font-open); font-weight: 300; font-size: 12px; line-height: 1.5; }
.footer-copyright .info a { text-decoration: underline; }
.footer-copyright .brand { width: 197px; height: 40px; }
.footer-copyright .brand img { width: 100%; height: 100%; object-fit: contain; }

/* back-menu badge intencionalmente omitido (removido del template) */

/* ---------- Responsive ---------- */
/* El layout 2-col (content 1002 + rail 300) solo entra a 1440; abajo → una columna
   (evita scroll horizontal en 1121-1439; los layouts 1280/1366 fieles son variantes aparte). */
/* 1281–1439: se mantiene el rail, el contenido pasa a fluido */
@media (min-width: 1281px) and (max-width: 1439px) {
  .layout { padding: 24px 24px 0 30px; gap: 40px; }
  .content { width: auto; flex: 1 1 0; min-width: 0; max-width: none; }
  .rail { flex: 0 0 300px; }
}
@media (max-width: 1280.98px) {
  .layout { flex-direction: column; align-items: center; gap: 30px; padding: 24px 16px 0; }
  .content { width: 100%; max-width: 1002px; }
  .rail { display: none; }
  .site-header > *, .site-footer { min-width: 0; }
  .menu-bar { gap: 24px; }
  /* apilar el cuerpo (article + aside) cuando el layout ya es de una columna */
  .body-row { flex-direction: column; align-items: stretch; }
  .article, .aside { width: 100%; max-width: 100%; flex-basis: auto; }
}
/* swap a header mobile bajo 900 (el header desktop necesita ~900px) */
@media (max-width: 768.98px) {
  .site-header { display: none; }
  .m-header { display: flex; position: relative; justify-content: center; }
  .m-header .hamb { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
  .m-header .logo { flex: none; }
  .m-header .play-btn { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 768.98px) {

  .layout { padding: 0; }
  .content { padding: 0 15px; }
  .top { align-items: stretch; gap: 16px; margin-top: 16px; }
  .body-row { flex-direction: column; align-items: stretch; gap: 24px; }
  .article, .aside { width: 100%; max-width: 100%; flex-basis: auto; align-items: stretch; }
  .aside .card-1col { width: 100%; }
  .heading .volanta { font-size: 16px; }
  .heading h1 { font-size: 36px; }
  .bajada, .bajada-list { font-size: 18px; }

  /* autor centrado/apilado */
  .autor { flex-direction: column; align-items: stretch; gap: 16px; }
  .autor .rrss { justify-content: space-between; }

  .figure .photo { aspect-ratio: 375 / 210; }

  /* banners: un solo espacio visible en mobile */
  .ad-pair > :nth-child(2) { display: none; }
  .ad-pair { justify-content: center; }

  /* filas de compartir/redes: envolver para no desbordar */
  .autor .rrss, .comparti, .social-row { flex-wrap: wrap; }
  .comparti { gap: 8px 12px; }

  .te-puede .grid { flex-direction: column; align-items: stretch; }
  .half-grid { flex-wrap: wrap; }
  .apertura, .half-grid { width: 100%; max-width: 100%; }
  .apertura .cover { width: 100%; }

  /* Encuesta: fondo a todo el ancho, botones alineados al contenedor */
  .encuesta { width: 100%; max-width: 100%; min-width: 0; padding: 40px 15px 16px; box-sizing: border-box; }
  .encuesta .q, .encuesta .options { width: 100%; max-width: 100%; }
  .encuesta .options button { width: 100%; box-sizing: border-box; }

  /* footer apilado y centrado */
  .site-footer { min-width: 0; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; padding: 16px; gap: 16px; }
  .footer-top .logo { height: auto; }
  .footer-sections { justify-content: center; padding: 16px 0; border-bottom: 0; }
  .footer-social { flex-direction: column; align-items: center; gap: 16px; }
  .footer-copyright { flex-direction: column-reverse; align-items: center; text-align: center; }
}

/* Las más leídas: número sobre la miniatura, fondo amarillo */
.mas-leidas .item .inner { position: relative; }
.mas-leidas .num {
  position: absolute; left: 0; top: 0; z-index: 2;
  min-width: 28px; padding: 3px 8px;
  background: var(--ac-amarillo, #ffdc00); color: var(--ac-sobre-secundario, #1c1c1c);
  font-size: 18px; line-height: 1.2; text-align: center;
}

/* ---------- ≤834: grillas del cuerpo de la nota apiladas ---------- */
@media (max-width: 834.98px) {
  .te-puede .grid, .half-grid { flex-wrap: wrap; }
  .te-puede .grid > *, .half-grid > * { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .destacado { padding: 20px; }
  .heading h1 { font-size: 40px; }
}
@media (max-width: 600.98px) {
  .te-puede .grid > *, .half-grid > * { flex: 1 1 100%; }
  .heading h1 { font-size: 32px; }
}
