/*
 Theme Name: Zox News Child Cinco
 Template:   zox-news
*/

:root {
    --gap: 20px;
  --shadow: 0 10px 24px rgba(0,0,0,.12);
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Cintillos */
.cintillo {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #007bff, #00d46a);
}

.cintillo-azul {
    width: 100%;
    height: 10px;
    background: #061c4d;
}

/* NAV TOP DESKTOP (BASE) */
.nav-top {
    width: 100%;
    padding: 10px 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 20px;
}

/* LOGO IZQUIERDA */
.logo-oficial img.logo-nav {
    margin: 20px 10px;
    height: 70px;
}

/* CENTRO — CAJAS */
.cajas-container {
    display: flex;
    justify-content: center;
    flex-grow: 1; 
}

.cajas {
    display: flex;
    gap: 10px;
}

.cajas > .caja:nth-child(n+5) {
    justify-self: center; 
}

.cajas > .caja {
    width: 110px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cajas > .caja:nth-child(n+5) {
    justify-self: center; /* centra las cajas de la fila de abajo */
}

.caja {
    width: 110px;
    height: 80px;
    margin: 20px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.estacioncaja {
    height: 75px;
    object-fit: contain;
}

/* ICONOS DERECHA */
.icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin: 10px 10px;
}

.icons span {
    color: #061c4d;
    font-weight: bold;
    font-size: 12px;
}

/* Estilo de cada util-item */
.util-item{
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.pin-img.media {
    margin-bottom: 10px;
}

.util-item .circle{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* WhatsApp */
.util-item.whats .circle{
  background: #25D366;
}

.icon-wa {
  width: 26px;
  height: 26px;
  display:block;
  background: url('https://cdn-icons-png.flaticon.com/512/124/124034.png') no-repeat center/contain;
}

/* En vivo */
.util-item.live .circle{
  background: transparent;
  border: 2px solid #ff3b3b;
  position: relative;
}

.live-dot{
  width: 12px; 
  height: 12px;
  border-radius: 50%;
  background:#ff3b3b;
  display:block;
  animation: pulse 1.4s infinite ease-in-out;
}

@keyframes pulse {
  0%   { transform: scale(.9); opacity:.8; }
  50%  { transform: scale(1.25); opacity:1; }
  100% { transform: scale(.9); opacity:.8; }
}

/* Buscar */
.util-item.search .circle{
    background: transparent;
}
.icon-lupa{
  width:14px; 
  height:14px;
  border:2px solid #061c4d;
  border-radius:50%;
  display:block;
  position:relative;
}
.icon-lupa::after{
  content:"";
  width:7px; 
  height:2px;
  background:#061c4d;
  position:absolute;
  bottom:-2px; 
  right:-4px;
  transform:rotate(45deg);
}

.meta-line {
    text-align: center;
    margin: 15px 0px 5px;
}

/* Cintillo menú inferior */
.menu-cintillo {
    width: 100%;
    background: linear-gradient(90deg, #007bff, #00d46a);
}

.menu-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 10px 15px;
    flex-wrap: wrap; /* para que en móvil se bajen a otra línea */
}

.menu-nav a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.menu-nav a:hover {
    background: #8dba58 !important;
    color: #007bff;
    transform: translateY(-1px);
}

/* MINI BAR STICKY */

/* Container para centrar contenido */
.mini-container {
    max-width: 1300px;   
    margin: 0 auto;
    padding: 0 20px;    
}

.mini-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #061c4d; 
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.25s ease-out;
}


.mini-bar.visible {
  transform: translateY(0);
}

.mini-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  gap: 16px;
}

.mini-logo img {
  height: 50px;
}

.mini-logos {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.mini-logos img {
  height: 32px;
  object-fit: contain;
}

.mini-bar .icons {
  margin: 0;
  gap: 10px;
}

.mini-bar .util-item span {
  color: #ffffff;
  font-size: 11px;
}

.mini-icons .icon-lupa{
  width:14px; 
  height:14px;
  border:2px solid #ffff;
  border-radius:50%;
  display:block;
  position:relative;
}
.mini-icons .icon-lupa::after{
  content:"";
  width:7px; 
  height:2px;
  background:#ffff;
  position:absolute;
  bottom:-2px; 
  right:-4px;
  transform:rotate(45deg);
}

/* Oculta cualquier card de publicidad (evita el cuadro blanco) */
.pin.card.ad-card,
.pin.card[data-type="ad"],
.gpt-slot {
  display: none !important;
}


@media (max-width: 768px) {

  /* 1) Oculta logo e iconos (ventas / en vivo / lupa) */
  .mini-logo,
  .mini-icons {
    display: none !important;
  }

  /* 2) El sticky ahora SOLO es una fila de estaciones */
  .mini-bar-inner {
    justify-content: flex-start; /* ya no space-between */
    padding: 6px 10px;
    gap: 12px;
  }

  /* 3) Estaciones ocupan todo el ancho y scrollean horizontal */
  .mini-logos {
    flex: 1;
    width: 100%;
    justify-content: flex-start;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    /* opcional: esconder scroll bar */
    scrollbar-width: none;
  }
  .mini-logos::-webkit-scrollbar { display: none; }

  .mini-logos img {
    height: 28px;
  }

  /* 4) Como ya no hay iconos, esto ya ni aplica, pero lo dejo seguro */
  .mini-bar .util-item span {
    display: none;
  }

  
}

@media (max-width: 768px) {
  #miniBar .mini-logo,
  #miniBar .mini-icons {
    display: none !important;
  }
}



@media (max-width: 768px) {
    .menu-nav {
        gap: 12px;
        padding: 8px 10px;
    }

    .menu-nav a {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* =========================
   RESPONSIVE
   ========================= */

/* TABLET: iPad, laptops chicas (4+3 cajas) */
@media (max-width: 1024px) {
    .logo-oficial img.logo-nav {
        height: 55px;
        margin: 15px 5px;
    }

    .icons {
        margin: 5px;
        gap: 10px;
    }

    /* 4 arriba + 3 abajo */
    .cajas {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        justify-items: center;
        width: 100%;
    }

    .cajas .caja {
        width: 95px;
        height: 70px;
        margin: 10px 0;
    }

    .cajas .caja:nth-child(n+5) {
        justify-self: center; /* centra la fila de abajo */
    }
}
/***************************************************************featured********************************************************/
.main-pinterest {
  padding: 0px 24px 40px; /* <-- antes era 30px 0 40px */
    background: #ffff;
}

.pinterest-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GRID MASONRY */
.pinterest-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
grid-auto-rows: 10px;
  /* matar layout por columnas si existía */
  column-count: unset !important;
  column-gap: unset !important;
  columns: unset !important;
}
.pin {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pin a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pin-img img {
    width: 100%;
    display: block;
    height: auto;
}

.pin-body {
    padding: 12px 14px 14px;
}

.pin-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
    background: rgba(0,123,255,0.1);
    color: #007bff;
}

.pin-title {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #061c4d;
}

.pin-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    margin: 0 0 10px;
}

.pin-meta {
    font-size: 11px;
    color: #777;
    display: flex;
    gap: 4px;
    align-items: center;
}

.pin:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* botón cargar más básico */
.pins-load-more {
    margin: 20px auto 0;
    display: block;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #007bff, #00d46a);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* Cards */
.pin {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.pin a { display:block; text-decoration:none; color:inherit; }
.pin-img img { width:100%; display:block; height:auto; }

.pin-body { padding:12px 14px 14px; }
.pin-tag   { /* igual que antes */ }
.pin-title { /* igual que antes */ }
.pin-excerpt { /* igual que antes */ }
.pin-meta { /* igual que antes */ }

.pin:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.pin.card{
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--gap);
  background: #fff;
  color: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  break-inside: unset !important;
  -webkit-column-break-inside: avoid;
  border: none;
}

.pin.card::before{
  --b: 2px;
  content:"";
  position:absolute;
  inset:0;
  padding: var(--b);
  border-radius: inherit;
  background: linear-gradient(90deg, #25F032, #008CFF);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  z-index: 5;
}

.pin.card > *{ position: relative; z-index: 1; }

/* link sin subrayado */
.pin.card .card-link{
  display:block;
  text-decoration:none;
  color: inherit;
}

/* imagen */
.pin.card .media img{
  display:block;
  width:100%;
  height:auto;
  object-fit: cover;
}

/* body */
.pin.card .pin-body{
  padding: 12px 14px 14px;
}

/* tu tag */
.pin.card .tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:#8bdcff;
  background: rgba(125, 211, 252, .15);
  border: 1px solid rgba(125, 211, 252, .35);
  padding: 6px 10px;
  border-radius:999px;
  margin: 0 0 10px;
}

/* título centrado tipo Oswald */
.pin.card .title {
    margin: 0px 15px 20px;
    font-size: 18px;
    line-height: 1.25;
    text-align: center;
    font-family: 'Roboto';
    font-weight: bold;
}

.pin.card .title-link{
  color: #1d2c62;
}

/* excerpt */
.pin.card .pin-excerpt{
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #222;
}

/* footer con separación */
.pin.card .footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:14px;
  border-top: 1px solid #e6e9ef; /* en tu maqueta era oscuro; aquí se ve mejor en blanco */
  padding-top: 12px;
}

.pin.card .meta{
  font-size: 12px;
  color:#4b5563;
}

.pin.card .sep{ margin: 0 6px; opacity:.7; }

.pin.card .link{
  color:#052c4f;
  font-weight:600;
}

.pin.card:hover{
  transform: translateY(-3px);
  transition: transform .2s ease;
}

.card.card-reportaje{
  background: linear-gradient(90deg, #0fc227, #008cff);
  color:#fff;
}

.card.card-reportaje .meta,
.card.card-reportaje .sep,
.card.card-reportaje .title-link,
.card.card-reportaje .link{
  color:#fff !important;
}


@media (max-width: 1600px){ .pinterest-grid{ grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1400px){ .pinterest-grid{ grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px){ .pinterest-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px){  .pinterest-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px){  .pinterest-grid{ grid-template-columns: repeat(2, 1fr); } }



/* Botón cargar más */
.pins-load-more {
    margin: 20px auto 0;
    display: block;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #007bff, #00d46a);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* ---- POST NORMAL (IMAGEN) ---- */
#pins-grid .pin.card .pin-img.media{
  overflow: hidden;
}

#pins-grid .pin.card .pin-img.media img{
  width: 100%;
  height: auto;
  max-height: 520px;      /* ajusta a tu gusto */
  object-fit: cover;
  display: block;
  background: #f2f2f2;    /* placeholder */
}

#pins-grid .pin.card .pin-img.media:empty{
  height: 220px;
  background: #f2f2f2;
}

/* GUTTER REAL izquierda/derecha para el grid */
#pins-grid.pinterest-grid{
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

/* En móvil un poco menos */
@media (max-width: 768px){
  #pins-grid.pinterest-grid{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Espacio ENTRE cards (todos los lados) */
#pins-grid.pinterest-grid{
  gap: 26px !important; /* sube a 30px si quieres más aire */
}

/*********************mini fila grid**************************************************/

/* ===== FILA FIJA ===== */
.featured-row{
  margin-bottom: 28px;
}

/* 4 chicas de 1 col */
.featured-row .featured-small{
  grid-column: span 1;
}

/* 1 grande de 2 col */
.featured-row .featured-large{
  grid-column: span 2;
}

/* Si quieres que la grande “se sienta grande” */
.featured-row .featured-large .title{
  font-size: 20px;
}

/* ===== FEATURED ROW: imagen fija 368px ===== */
.featured-row .pin-img.media{
  height: 368px;
  overflow: hidden;
}

.featured-row .pin-img.media img{
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.pinterest-grid.featured-row.featured-static{
  gap: 26px !important; /* o 30px */
}

/* Centrar contenido dentro de los artículos featured */
.featured-static .pin-img.media,
.featured-row .pin-img.media{
  display: flex;
  align-items: center;    /* centra vertical */
  justify-content: center;/* centra horizontal */
}

/* Para que imágenes y iframes no se salgan */
.featured-static .pin-img.media img,
.featured-static .pin-img.media iframe{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Centrar banners de Google Ads */
.featured-static .pin-img.media > div[id^="div-gpt-ad"]{
  display: flex;
  align-items: center;
  justify-content: center;
}


.card.featured-banner{
  /* background: linear-gradient(90deg, #0fc227, #008cff); */
  background: #ffff;
  color:#fff;
}

/* ✅ Banner "Envia tus reportes" - NO recortar */
.featured-row .featured-reportes .pin-img.media img{
  object-fit: contain !important;
  background: #fff;        /* para que se vea bien si sobra espacio */
}

/* Opcional: un poquito de padding interno */
.featured-row .featured-reportes .pin-img.media{
  padding: 10px;
  box-sizing: border-box;
}

@media (max-width: 768px){
  .featured-row .featured-reportes .pin-img.media{
    height: 240px; /* prueba 220-280 */
  }
}


/**************************************************************************************************************/

/* ===== FILA FIJA ESTÁTICA ===== */
.featured-static{
  margin-bottom: 28px;
}

/* logo ocupa 1 columna y se centra */
.featured-static .top-logo{
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 14px;
}

.featured-static .top-logo img{
  max-width: 100%;
  max-height: 90px; /* ajusta */
  object-fit: contain;
}

/* cards de banners: sin texto */
.featured-static .featured-banner .content{
  display: none !important;
}

/* altura fija para que no “bailen” */
.featured-static .pin-img.media{
  height: 368px;
  overflow: hidden;
}

.featured-static .pin-img.media img{
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* ===== YOUTUBE EN 1 COLUMNA, MÁS ALTO, ESTABLE ===== */
.pin.card.yt-card{
  grid-column: span 1;
  padding: 0;
}

/* El link debe tener altura real */
.pin.card.yt-card a.card-link{
  display:block;
}

/* Contenedor con altura REAL (no aspect-ratio) */
.pin.card.yt-card .pin-img.media{
  width: 100%;
  height: 420px;   /* 👈 aquí ajustas “más largo” */
  background:#000;
  overflow:hidden;
}

/* iframe normal (NO absolute) */
.pin.card.yt-card iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display:block;
}

.pinterest-grid .pin.card{
  margin: 0 !important;
}

/******************************************************************************************************************/

/* Cards de Google Ads */
.pin.card.ad-card .pin-img.media{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

/* Slot GPT */
.pin.card.ad-card .gpt-slot{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Evita márgenes fantasma */
.pin.card.ad-card{
  margin: 0 !important;
}


/***********************************************************************responsive header************************************/

/* MÓVIL: columna, logo arriba, cajas más chicas, iconos centrados */
@media (max-width: 768px) {
    .nav-top {
        flex-direction: column;
        align-items: center;
        padding: 10px 10px 15px;
        gap: 10px;
    }

    .logo-oficial img.logo-nav {
        margin: 0;
        height: 30px;
    }

    .cajas {
        /* sigue siendo GRID, solo cambiamos tamaños */
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .cajas .caja {
        width: 60px;
        height: 60px;
        margin: 5px 0;
    }

    .icons {
        margin: 5px 0 10px;
        justify-content: center;
    }

    .icons span {
        font-size: 11px;
    }

    .pin.card .title-link {
    color: #1d2c62;
    font-size: 14px;
    line-height: 0 !important;
}
}

