/* TIPOGRAFÍA PROFESIONAL */
body {
  font-family: 'Inter', sans-serif;
  color: #1e272e;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .section-title, .articulo-titulo-grande {
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.editorial {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* ================= HERO ================= */
.hero-editorial {
  text-align: center;
  position: relative;
  padding: 7rem 2rem 5rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -2rem;
  margin-bottom: 2rem;
  background-image: url('../images/ui/fondo.png');
  background-size: 120% 160%;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,61,98,0.7), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero-editorial .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-editorial h1 {
  font-size: 3.5rem;
  color: #fff;
}

.hero-editorial p {
  color: #fff;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1.5rem auto 2.5rem;
}

.hero-editorial .btn-magazine {
  border: 2px solid #fff;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 40px;
  text-decoration: none;
  transition: 0.3s;
}

.hero-editorial .btn-magazine:hover {
  background: #fff;
  color: #1e272e;
}

/* ================= ENCABEZADOS DE SECCIÓN ================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #eef2f6;
  padding-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1e272e;
  margin: 0;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0a3d62, #4a90e2);
  border-radius: 3px;
}

.section-time {
  font-size: 0.85rem;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.section-code {
  font-family: monospace;
  font-size: 0.9rem;
  color: #0a3d62;
  background: #f0f7ff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ================= LO MÁS RECIENTE ================= */
.recientes-section,
.section-feed,
.section-popular,
.capsulas-publicitarias {
  margin-top: 5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.recientes-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
}

/* ARTÍCULO DESTACADO */
.articulo-destacado {
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 1.5rem;
}

.articulo-autor {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a3d62;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.75rem;
}

.articulo-titulo-grande {
  font-size: 1.8rem;
  line-height: 1.3;
  color: #1e272e;
  margin: 0 0 1rem 0;
}

/* VIDEO */
.video-contenedor {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border: 1px solid #eef2f6;
}

.video-contenedor iframe {
  width: 100%;
  height: 100%;
}

.articulo-resumen {
  color: #5f6b7a;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.articulo-meta {
  display: flex;
  gap: 1.5rem;
  color: #7f8c8d;
  font-size: 0.85rem;
}

/* LISTA SECUNDARIA */
.lista-secundarios {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lista-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef2f6;
  transition: background-color 0.2s ease;
  padding: 0.75rem;
  border-radius: 8px;
}

.lista-item:hover {
  background-color: #f8fafd;
}

.item-numero {
  font-size: 1.2rem;
  font-weight: 600;
  color: #b0c4d9;
  min-width: 28px;
}

.item-contenido {
  flex: 1;
}

.item-titulo {
  font-size: 1rem;
  margin: 0 0 0.3rem 0;
  color: #1e272e;
  font-weight: 500;
}

.item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #7f8c8d;
}

.item-autor {
  color: #0a3d62;
  font-weight: 500;
}

.item-comentarios {
  font-size: 0.9rem;
  color: #0a3d62;
  font-weight: 600;
  min-width: 35px;
  text-align: right;
}

/* ================= FEED ================= */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feed-item {
  padding: 1rem;
  border-radius: 12px;
  border-left: 3px solid #00b894;
  background: #f9f9f9;
  transition: transform 0.2s ease;
}

.feed-item:hover {
  transform: translateX(5px);
  background: #f0f7ff;
}

.feed-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.feed-autor {
  font-weight: 600;
  color: #0a3d62;
}

.feed-tiempo {
  color: #7f8c8d;
}

.feed-contenido {
  margin: 0;
  color: #2c3e50;
}

/* ================= POPULAR ================= */
.popular-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.popular-item:hover {
  background: #f8fafd;
  transform: translateY(-2px);
}

.popular-numero {
  font-size: 1.2rem;
  font-weight: 600;
  color: #b0c4d9;
  min-width: 30px;
}

.popular-contenido {
  flex: 1;
}

.popular-titulo {
  font-size: 0.95rem;
  margin: 0 0 0.3rem 0;
  color: #1e272e;
  font-weight: 500;
}

.popular-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #7f8c8d;
}

.popular-autor {
  color: #0a3d62;
  font-weight: 500;
}

.popular-comentarios {
  font-size: 0.9rem;
  color: #0a3d62;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

/* ================= CÁPSULAS PUBLICITARIAS ================= */
/* ================= CÁPSULAS PUBLICITARIAS CON IMAGEN ================= */
/* ================= CÁPSULAS PUBLICITARIAS CON PROTAGONISMO DE IMAGEN ================= */
.capsulas-publicitarias {
  margin-top: 5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.capsulas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.capsula-ads {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
}

.capsula-ads:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* CONTENEDOR DE LA IMAGEN */
.ads-imagen {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Overlay sutil en la imagen (opcional) */
.ads-imagen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}

/* CONTENIDO DE LA TARJETA */
.ads-contenido {
  padding: 1.5rem 1.2rem 1.2rem;
  background: white;
}

.ads-tag {
  display: inline-block;
  background: #f0f7ff;
  color: #0a3d62;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.ads-contenido h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: #1e272e;
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.4;
}

.ads-contenido p {
  font-size: 0.85rem;
  color: #5f6b7a;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.ads-link {
  color: #0a3d62;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.ads-link:hover {
  gap: 0.8rem;
  border-bottom-color: #0a3d62;
}

/* ===== DIFERENTES ALTURAS DE IMAGEN OPCIONALES ===== */
/* Si quieres que algunas imágenes sean más grandes */
.capsula-ads.featured .ads-imagen {
  height: 220px;
}

/* Responsive */
@media (max-width: 768px) {
  .capsulas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .ads-imagen {
    height: 200px;
  }
}




/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .recientes-grid {
    gap: 2rem;
  }
  .capsulas-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-editorial h1 {
    font-size: 2.5rem;
  }
  .recientes-grid,
  .capsulas-grid {
    grid-template-columns: 1fr;
  }
  .video-contenedor {
    height: 200px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-editorial h1 {
    font-size: 2rem;
  }
  .lista-item {
    flex-wrap: wrap;
  }
}