/* =========================
   RESET / BASE
========================= */
main, section, header, ul, ol, li, article, h1, h2, h3, p {
  margin: 0;
  padding: 0;
	font-family: var(--font-base);
}

main {
  display: block;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --soft-2: #f8f8f8;
  --line: #e5e7eb;
  --accent: #cc3658;
  --accent-dark: #a91f45;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-soft: 0 6px 18px rgba(0,0,0,.05);
  --max: 1280px;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
main {
  max-width: var(--max);
  margin: 42px auto 80px;
  padding: 0 24px;
  color: var(--text);
}

/* =========================================================
   CABECERA HOME · LVD MAGAZINE (VERSIÓN PREMIUM AJUSTADA)
   ========================================================= */

.cabecera-home.premium {
  --accent: #6aaeff;
  --accent-rgb: 106, 174, 255;
  --plus-url: url("http://localhost:8888/lvdmagazine/templates/default/img/simbolo-plus-lvd.png");

  position: relative;
  overflow: hidden;
  width: min(1280px, 100%);
  margin: 1.4rem auto 2rem;
  border-radius: 34px;

  background:
    linear-gradient(135deg,
      rgba(var(--accent-rgb), 0.16) 0%,
      rgba(var(--accent-rgb), 0.07) 34%,
      rgba(255,255,255,0.96) 66%,
      #ffffff 100%);

  border: 1px solid rgba(var(--accent-rgb), 0.16);

  box-shadow:
    0 20px 60px rgba(16, 24, 40, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.88);

  isolation: isolate;
}

.cabecera-home.premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(var(--accent-rgb), 0.20), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(var(--accent-rgb), 0.10), transparent 24%);
  z-index: 0;
}

.cabecera-home.premium::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 18vw, 280px);
  height: clamp(180px, 18vw, 280px);
  background-image: var(--plus-url);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.11;
  z-index: 0;
}

.cabecera-home.premium .cabecera-home-inner::after {
  content: "";
  position: absolute;
  left: -36px;
  bottom: -26px;
  width: 120px;
  height: 120px;
  background-image: var(--plus-url);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.06;
  transform: rotate(-8deg);
  pointer-events: none;
}

.cabecera-home-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3vw, 2.7rem) clamp(1.4rem, 3.6vw, 3.2rem);
  max-width: 760px;
}

.cabecera-home .home-h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cabecera-home .h1-main {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 3.25rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0f172a;
  max-width: 11ch;
  text-wrap: balance;
}

.cabecera-home .h1-sub {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.45;
  font-weight: 600;
  color: #2563eb;
  max-width: 52ch;
}

.cabecera-home .home-h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin-top: 0.25rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(var(--accent-rgb), 0.95) 0%,
      rgba(var(--accent-rgb), 0.45) 55%,
      rgba(var(--accent-rgb), 0.08) 100%);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .cabecera-home.premium {
    width: 95%;
    margin: 1rem auto 1.4rem;
    border-radius: 24px;
  }

  .cabecera-home-inner {
    padding: 1.2rem 1rem 1.25rem;
    max-width: 100%;
  }

  .cabecera-home.premium::after {
    width: 130px;
    height: 130px;
    right: -18px;
    bottom: -10px;
    top: auto;
    transform: none;
    opacity: 0.10;
  }

  .cabecera-home-inner::after {
    display: none;
  }

  .cabecera-home .h1-main {
    font-size: clamp(1.7rem, 6vw, 2.25rem);
    max-width: 100%;
  }

  .cabecera-home .h1-sub {
    font-size: 0.94rem;
    max-width: 100%;
  }

  .cabecera-home .home-h1::after {
    width: 68px;
    height: 4px;
  }
}

@media (max-width: 560px) {
  .cabecera-home-inner {
    padding: 1rem 0.95rem 1.1rem;
  }

  .cabecera-home .h1-main {
    font-size: 1.6rem;
  }

  .cabecera-home .h1-sub {
    font-size: 0.92rem;
    line-height: 1.4;
  }
}

/* =========================
   TIPOGRAFÍA DE PORTADA
========================= */
.home-h1 {
  margin-bottom: 34px;
  padding-bottom: 0px;
  border-bottom: 1px solid var(--line);
}

.h1-main {
  display: block;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.h1-sub {
  display: block;
  margin-top: 12px;
  max-width: 780px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}

/* =========================
   SECCIONES
========================= */
section {
  margin-bottom: 72px;
}

.bloque-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.bloque-header h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bloque-header p,
.bloque-header .subtitulo {
  max-width: 720px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.55;
}

/* =========================
   GRID BASE DE NOTICIAS
========================= */
section > ul {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

/* =========================
   CARD BASE
========================= */
.noticia {
  min-width: 0;
}

.noticia article {
  height: 100%;
}

.imagenCont {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow-soft);
}

.imagenCont::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.12), rgba(0,0,0,0) 42%);
  pointer-events: none;
}

.imagenCont img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.noticia:hover .imagenCont img {
  transform: scale(1.04);
}

.tema {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: .78rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--accent);
}

.tema span {
  color: var(--muted);
  font-weight: 600;
}

.noticia h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.noticia h3 a {
  transition: color .25s ease;
}

.noticia h3 a:hover {
  color: var(--accent);
}

.avance {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   HERO PREMIUM HORIZONTAL
========================= */

section:first-of-type > ul {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
  align-items: start;
}

/* Noticia principal */
section:first-of-type > ul > li:first-child {
  grid-column: 1 / -1;
}

section:first-of-type > ul > li:first-child article {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 30px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

section:first-of-type > ul > li:first-child .imagenCont {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  min-height: 100%;
}

section:first-of-type > ul > li:first-child article > :not(.imagenCont) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section:first-of-type > ul > li:first-child .tema {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: .82rem;
}

section:first-of-type > ul > li:first-child h3 {
  font-size: clamp(2rem, 2.8vw, 3.1rem);
  line-height: 1.02;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

section:first-of-type > ul > li:first-child .avance {
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

/* Noticias secundarias */
section:first-of-type > ul > li:nth-child(n+2) {
  grid-column: span 4;
  padding-top: 6px;
}

section:first-of-type > ul > li:nth-child(n+2) .imagenCont {
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
}

section:first-of-type > ul > li:nth-child(n+2) h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

section:first-of-type > ul > li:nth-child(n+2) .avance {
  font-size: .94rem;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero-principal article {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-principal .imagenCont {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  height: 100%;
}

.hero-principal .imagenCont a {
  display: block;
  height: 100%;
}

.hero-principal .imagenCont img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 24px;
}

.rightPortada{}

.hero-principal .tema,
.hero-principal h2,
.hero-principal h3,
.hero-principal .avance,
.hero-principal p {
  grid-column: 2;
}

.hero-principal .tema {
  align-self: start;
  margin: 0 0 10px;
}

.hero-principal h3 {
  margin: 0 0 14px;
}

.hero-principal .avance,
.hero-principal p {
  margin: 0;
}


/* Responsive */
@media (max-width: 900px) {
  section:first-of-type > ul {
    grid-template-columns: 1fr;
  }

  section:first-of-type > ul > li:first-child,
  section:first-of-type > ul > li:nth-child(n+2) {
    grid-column: auto;
  }

  section:first-of-type > ul > li:first-child article {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }

  section:first-of-type > ul > li:first-child .imagenCont {
    aspect-ratio: 16 / 10;
  }

  section:first-of-type > ul > li:first-child h3 {
    font-size: 1.8rem;
  }
}



/* =========================
   MÁS LEÍDO PREMIUM
========================= */
section:nth-of-type(2) {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

section:nth-of-type(2) .bloque-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 22px;
}

section:nth-of-type(2) ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: masleidas;
}

section:nth-of-type(2) ol li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px 18px 18px;
  min-height: 150px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

section:nth-of-type(2) ol li:hover {
  transform: translateY(-4px);
  border-color: #d8d8d8;
  box-shadow: var(--shadow);
}

section:nth-of-type(2) ol li::before {
  counter-increment: masleidas;
  content: counter(masleidas, decimal-leading-zero);
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #d1d5db;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

section:nth-of-type(2) ol h3 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}



/* =========================
   ACTUALIDAD / SECCIÓN EDITORIAL
========================= */
section:nth-of-type(3) > ul {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}

section:nth-of-type(3) > ul > li:nth-child(1),
section:nth-of-type(3) > ul > li:nth-child(2) {
  grid-column: span 6;
}

section:nth-of-type(3) > ul > li:nth-child(n+3) {
  grid-column: span 4;
}

section:nth-of-type(3) .imagenCont {
  aspect-ratio: 16 / 10;
}

section:nth-of-type(3) > ul > li:nth-child(1) h3,
section:nth-of-type(3) > ul > li:nth-child(2) h3 {
  font-size: 1.35rem;
}

/* =========================
   SELECCIÓN LVD
========================= */
section:nth-of-type(4) > ul {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}

section:nth-of-type(4) > ul > li {
  grid-column: span 4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 14px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

section:nth-of-type(4) > ul > li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

section:nth-of-type(4) .imagenCont {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

section:nth-of-type(4) .tema {
  margin-top: 14px;
}

section:nth-of-type(4) h3 {
  font-size: 1.08rem;
}

section:nth-of-type(4) .avance {
  -webkit-line-clamp: 4;
  font-size: .94rem;
}

/* =========================
   ESPECIALES Y GUÍAS
========================= */

section.especiales ul,
section:last-of-type ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.especialCard {
  list-style: none;
}

.especialCard article {
  height: 100%;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 34px rgba(0,0,0,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.especialCard article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
}

.especialCard .imagenCont {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.especialCard .imagenCont img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.especialCard:hover .imagenCont img {
  transform: scale(1.04);
}

.especialCard .temaEspecial {
  display: inline-block;
  margin: 16px 18px 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.especialCard h3 {
  margin: 0 18px 18px;
  font-size: 1.28rem;
  line-height: 1.22;
  font-weight: 800;
}

.especialCard h3 a {
  text-decoration: none;
  color: #111;
}

.especialCard h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Variantes temáticas */
.especial-viajes article {
  background: #eef5f7;
  border-top: 4px solid #2f6b7a;
}

.especial-viajes .temaEspecial {
  background: rgba(47, 107, 122, .12);
  color: #2f6b7a;
}

.especial-cultura article {
  background: #f8f1f1;
  border-top: 4px solid #8c4b4b;
}

.especial-cultura .temaEspecial {
  background: rgba(140, 75, 75, .12);
  color: #8c4b4b;
}

.especial-naturaleza article {
  background: #f3f7ee;
  border-top: 4px solid #6b7a46;
}

.especial-naturaleza .temaEspecial {
  background: rgba(107, 122, 70, .12);
  color: #6b7a46;
}

.especial-gastronomia article {
  background: #fbf6ea;
  border-top: 4px solid #a67c2e;
}

.especial-gastronomia .temaEspecial {
  background: rgba(166, 124, 46, .14);
  color: #a67c2e;
}

.especial-historia article {
  background: #f6f2ee;
  border-top: 4px solid #7b624d;
}

.especial-historia .temaEspecial {
  background: rgba(123, 98, 77, .12);
  color: #7b624d;
}

@media (max-width: 900px) {
  section.especiales ul,
  section:last-of-type ul {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .especialCard h3 {
    font-size: 1.12rem;
  }
}
/* CONTENEDOR DEL TEXTO */
.especialCard article {
  position: relative;
  overflow: hidden;
}

/* TITULAR CON FONDO */
.especialCard h3 {
  position: relative;
  margin: 0 18px 22px;
  font-size: 1.28rem;
  line-height: 1.22;
  font-weight: 800;
  z-index: 2;
}

/* BANDA DE COLOR DETRÁS DEL TÍTULO */
.especialCard h3::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -6px;
  height: 60%;
  border-radius: 8px;
  z-index: -1;
  opacity: 0.25;
  transition: opacity .25s ease, transform .25s ease;
}

/* Hover más vivo */
.especialCard:hover h3::before {
  opacity: 0.4;
  transform: scale(1.02);
}


/* =========================
   MEJORAS DE INTERACCIÓN
========================= */
.noticia a:focus-visible,
section ol a:focus-visible {
  outline: 3px solid rgba(204,54,88,.35);
  outline-offset: 4px;
  border-radius: 6px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  section:nth-of-type(2) ol {
    grid-template-columns: repeat(3, 1fr);
  }

  section:nth-of-type(4) > ul > li {
    grid-column: span 6;
  }

  section:nth-of-type(5) > ul {
    grid-template-columns: 1fr 1fr;
  }

  section:nth-of-type(5) > ul > li:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  main {
    margin-top: 26px;
    padding: 0 16px;
  }

  section:first-of-type > ul {
    grid-template-columns: 1fr;
  }

  section:first-of-type > ul > li:first-child {
    grid-row: auto;
  }

  section:first-of-type > ul > li:first-child .avance {
    max-width: 100%;
  }

  section:nth-of-type(2) {
    padding: 20px;
  }

  section:nth-of-type(2) ol {
    grid-template-columns: 1fr 1fr;
  }

  section:nth-of-type(3) > ul > li,
  section:nth-of-type(4) > ul > li {
    grid-column: span 6 !important;
  }

  section:nth-of-type(5) > ul {
    grid-template-columns: 1fr;
  }

  section:nth-of-type(5) > ul > li:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .home-h1 {
    margin-bottom: 26px;
    padding-bottom: 18px;
  }

  .bloque-header {
    display: block;
  }

  .bloque-header h2 {
    margin-bottom: 8px;
  }

  section:nth-of-type(2) ol {
    grid-template-columns: 1fr;
  }

  section:nth-of-type(3) > ul,
  section:nth-of-type(4) > ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  section:nth-of-type(3) > ul > li,
  section:nth-of-type(4) > ul > li {
    grid-column: auto !important;
  }

  section:nth-of-type(5) h3 {
    font-size: 1.2rem;
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .noticia h3 {
    font-size: 1.05rem;
  }

  section:first-of-type > ul > li:first-child h3 {
    font-size: 1.7rem;
  }

  .avance {
    font-size: .95rem;
  }
}