/* =========================================================
   INFO CABA - Portal de noticias
   Hoja de estilos compartida (Home / Categoría / Individual)
   ========================================================= */

:root{
  --rojo: #e5202b;
  --negro: #111111;
  --text-dark: #171717;
  --text-gray: #6b6b6b;
  --text-light-gray: #9a9a9a;
  --divider: #e8e8e8;
  --bg-page: #ffffff;
  --bg-soft: #f7f7f8;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --maxw: 1300px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

a{ text-decoration: none; color: inherit; }
img{ max-width: 100%; display: block; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero destacado (4 tiles, home y categoría) ---------- */
.caba-hero{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
  margin: 26px 0;
}
.hero-tile{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.hero-tile img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #cfcfcf;
}
.hero-tile .overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 60%);
}
.hero-tile .info{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
}
.hero-tile .tag{ margin-bottom: 8px; }
.hero-tile h2, .hero-tile h3{
  color: var(--white);
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}
.hero-tile h2{ font-size: clamp(16px, 1.6vw, 21px); }
.hero-tile h3{ font-size: 14px; }
.hero-tile .mini-play{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-main-tile{ aspect-ratio: 1.3; }
.hero-side-col{ display: flex; flex-direction: column; gap: 8px; }
.hero-side-wide{ aspect-ratio: 2.3; }
.hero-side-bottom{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-side-bottom .hero-tile{ aspect-ratio: 1.5; }

/* ---------- Header ---------- */
.site-header{
  background: var(--white);
  border-bottom: 3px solid var(--negro);
  position: relative;
}
.header-top{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 24px 18px;
}
.header-top .logo-link img{
  height: 140px;
  width: auto;
}
/* El checkbox y el botón son hijos directos de .site-header (hermanos de .header-nav)
   para que el selector ":checked ~ .header-nav" funcione sin importar qué haya en el medio. */
.nav-toggle-checkbox{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle-btn{
  display: none;
  position: absolute;
  right: 20px;
  top: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  z-index: 2;
}
.nav-toggle-btn span{
  display: block;
  height: 2px;
  background: var(--negro);
  border-radius: 2px;
}
.header-nav{
  border-top: 1px solid var(--divider);
}
.nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-nav ul{
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li{
  padding: 15px 0;
  border-bottom: 3px solid transparent;
}
.main-nav li.activo{ border-bottom-color: var(--negro); }
.main-nav a{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--text-dark);
  text-transform: uppercase;
}
.main-nav a:hover{ color: var(--rojo); }

/* ---------- Tag / categoría ---------- */
.tag{
  display: inline-block;
  background: var(--rojo);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 2px;
}

/* ---------- Fecha ---------- */
.meta-date{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-light-gray);
  font-weight: 500;
}
.meta-date svg{ flex-shrink: 0; }

/* ---------- HOME: grid de 3 columnas ---------- */
.home-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 40px;
  margin: 34px auto;
}
.post-major{ display: flex; flex-direction: column; }
.post-major .thumb{
  width: 100%;
  aspect-ratio: 16/10.5;
  object-fit: cover;
  background: #d8d8d8;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.post-major .tag{ margin-bottom: 8px; align-self: flex-start; }
.post-major h2{
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(17px * 1.35 * 2);
}
.post-major h2 a:hover{ color: var(--rojo); }
.post-major .meta-date{ margin-bottom: 8px; }
.post-major p{
  font-size: 13.5px;
  color: var(--text-gray);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-minor-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-minor{
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: start;
}
.post-minor .thumb{
  width: 78px;
  height: 62px;
  object-fit: cover;
  background: #d8d8d8;
  border-radius: var(--radius);
}
.post-minor h3{
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-minor h3 a:hover{ color: var(--rojo); }

/* ---------- Sección con título grande (categoría) ---------- */
.section-title-big{
  font-size: 34px;
  font-weight: 800;
  margin: 30px 0 22px;
}

/* ---------- Layout de categoría / individual (contenido + sidebar sticky) ---------- */
.layout{
  max-width: var(--maxw);
  margin: 0 auto 50px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
  align-items: start;
}
.sidebar{
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ---------- Item grande de categoría (thumb + video + texto + botón) ---------- */
.cat-item{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-bottom: 34px;
}
.cat-item .thumb-wrap{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.cat-item .thumb-wrap img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #cfcfcf;
}
.play-btn{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn span{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.play-btn svg{ margin-left: 3px; }
.cat-item .tag{ margin-bottom: 10px; }
.cat-item h2{
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
}
.cat-item h2 a:hover{ color: var(--rojo); }
.cat-item p{
  font-size: 14.5px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0 0 14px;
}
.btn-outline{
  display: inline-block;
  border: 1.5px solid var(--negro);
  color: var(--negro);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 2px;
}
.btn-outline:hover{ background: var(--negro); color: var(--white); }

/* ---------- Card de sidebar (trending / sticky) ---------- */
.side-card{
  padding-bottom: 22px;
  border-bottom: 1px solid var(--divider);
}
.side-card:last-child{ border-bottom: none; padding-bottom: 0; }
.side-card .thumb{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #d8d8d8;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.side-card .tag{ margin-bottom: 8px; }
.side-card h3{
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 8px;
}
.side-card h3 a:hover{ color: var(--rojo); }
.side-card .meta-date{ margin-bottom: 8px; }
.side-card p{
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Single (noticia individual) ---------- */
.layout.layout-noticia{ margin-top: 36px; }
.single-content h1{
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
}
.single-content .bajada{
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.55;
  margin: 0 0 18px;
}
.single-byline{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-gray);
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--divider);
}
.single-byline strong{ color: var(--text-dark); }
.single-byline .sep{ color: var(--divider); }

.single-content .featured-img{
  width: 100%;
  aspect-ratio: 16/9.2;
  object-fit: cover;
  border-radius: var(--radius);
  background: #cfcfcf;
  margin-bottom: 22px;
}
.share-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.share-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 3px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.share-btn.facebook{ background: #1877f2; }
.share-btn.twitter{ background: #3ba9ee; }
.share-btn.whatsapp{ background: #25d366; }
.share-btn.telegram{ background: #29a9eb; }
.share-btn:hover{ opacity: .88; }

.single-content p{
  font-size: 16px;
  line-height: 1.75;
  color: #2b2b2b;
  margin: 0 0 18px;
}
.single-video{
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  margin-bottom: 22px;
}
.single-video-yt{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.single-video-yt iframe{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}
.gallery-extra{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.gallery-extra img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #cfcfcf;
}

/* ---------- Nota anterior / siguiente ---------- */
.nav-noticias{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--divider);
}
.nav-noticias .lado{ display: flex; flex-direction: column; }
.nav-noticias .lado.siguiente{ text-align: right; align-items: flex-end; }
.nav-noticias .etiqueta{
  font-size: 12px;
  font-weight: 800;
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--rojo);
}
.nav-noticias .lado.siguiente .etiqueta{
  border-left: none;
  border-right: 3px solid var(--rojo);
  padding-left: 0;
  padding-right: 12px;
}
.nav-noticias .titulo-nota{
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
}
.nav-noticias .titulo-nota:hover{ color: var(--rojo); }

/* ---------- Pagination ---------- */
.pagination{
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.pagination a, .pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.pagination a.active{ background: var(--negro); border-color: var(--negro); color: var(--white); }
.pagination a:hover{ border-color: var(--negro); }

/* ---------- Ad banners ---------- */
.ads-block{
  max-width: var(--maxw);
  margin: 34px auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.ads-block img{ border-radius: var(--radius); max-width: 100%; }
.ad-widget{ text-align: center; }
.ad-widget img{ width: 100%; border-radius: var(--radius); }
.ad-widget.empty{
  border: 1px dashed var(--divider);
  border-radius: var(--radius);
  padding: 28px 14px;
  color: var(--text-light-gray);
  font-size: 13px;
  background: var(--bg-soft);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb{
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-gray);
}
.breadcrumb a{ color: var(--text-gray); }
.breadcrumb a:hover{ color: var(--rojo); }
.breadcrumb .sep{ margin: 0 6px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--bg-soft);
  border-top: 1px solid var(--divider);
  padding: 24px;
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-gray);
}
.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--negro);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position: static; grid-template-columns: repeat(2, 1fr); display: grid; }
}
@media (max-width: 860px){
  .home-grid{ grid-template-columns: 1fr; }
  .cat-item{ grid-template-columns: 1fr; }
  .sidebar{ grid-template-columns: 1fr; }
  .caba-hero{ grid-template-columns: 1fr; }
  .hero-main-tile{ aspect-ratio: 16/10; }
}
@media (max-width: 700px){
  .header-top{ padding: 18px 60px; }
  .header-top .logo-link img{ height: 84px; }
  .nav-toggle-btn{ display: flex; top: 22px; }

  .header-nav{
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-toggle-checkbox:checked ~ .header-nav{
    max-height: 400px;
    border-top: 1px solid var(--divider);
  }
  .nav-inner{ padding: 0; }
  .main-nav{ width: 100%; }
  .main-nav ul{
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
  }
  .main-nav li{
    padding: 0;
    border-bottom: 1px solid var(--divider);
    border-left: 3px solid transparent;
  }
  .main-nav li:last-child{ border-bottom: none; }
  .main-nav li.activo{ border-bottom-color: var(--divider); border-left-color: var(--rojo); background: var(--bg-soft); }
  .main-nav a{ display: block; padding: 13px 20px; }

  .container, .breadcrumb, .layout, .ads-block{ padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px){
  .header-top{ padding: 14px 56px; }
  .header-top .logo-link img{ height: 60px; }
  .section-title-big{ font-size: 26px; }
  .cat-item .thumb-wrap img{ aspect-ratio: 16/10; }
  .hero-side-bottom{ grid-template-columns: 1fr; }
  .nav-noticias{ grid-template-columns: 1fr; }
  .nav-noticias .lado.siguiente{ text-align: left; align-items: flex-start; }
  .nav-noticias .lado.siguiente .etiqueta{ border-right: none; border-left: 3px solid var(--rojo); padding-right: 0; padding-left: 12px; }
  .share-row{ gap: 8px; }
  .share-btn{ flex: 1 1 calc(50% - 8px); justify-content: center; }
  .back-to-top{ right: 14px; bottom: 14px; width: 38px; height: 38px; }
}