/* ==============================================
   THE LOOK LAB BLOG — Article Magazine Layout
   Koaj / Permoda 2026
   ============================================== */

/* Contenedor raíz del artículo revista (renderiza en full_width_top, fuera del .container) */
.art-page {
  width: 100%;
  overflow-x: hidden;
}

/* Cada sección ocupa el 100% del ancho disponible */
.art-section {
  width: 100%;
}

/* ============================================
   SECCIÓN 1 — HERO: imagen/video + texto
   La imagen se muestra en su proporción natural, sin recorte.
   ============================================ */
.art-hero {
  position: relative;
  width: 100%;
  line-height: 0;
}

.art-hero img,
.art-hero video {
  width: 100%;
  height: auto;
  display: block;
}

.art-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px 10%;
}

.art-hero__overlay h2 {
  font-size: 3vw;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}

.art-hero__overlay p {
  font-size: 1vw;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 560px;
  font-weight: 400;
}

/* ============================================
   SECCIÓN 2 — SPLIT: Imagen | Texto
   ============================================ */
.art-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  width: 100%;
}

.art-split--reverse {
  grid-template-columns: 7fr 5fr;
}

.art-split__img {
  overflow: hidden;
}

.art-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  min-height: 480px;
}

.art-split__text {
  padding: 7vw 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

/* Variante oscura (fondo navy) */
.art-split--dark .art-split__text {
  background: #0d2340;
}

.art-split--dark .art-split__text h2,
.art-split--dark .art-split__text h3,
.art-split--dark .art-split__text .art-eyebrow {
  color: #fff;
}

.art-split--dark .art-split__text p,
.art-split--dark .art-split__text li {
  color: rgba(255, 255, 255, 0.82);
}

/* Etiqueta eyebrow */
.art-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
  font-weight: 500;
}

.art-split__text h2 {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.art-split__text h3 {
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 28px 0 10px;
  color: #111;
}

.art-split__text p {
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.8;
  color: #444;
  margin: 0 0 16px;
}

.art-split__text ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 24px;
}

.art-split__text ul li {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.75;
  color: #444;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.art-split__text ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #bbb;
}

.art-split--dark .art-split__text ul li {
  color: rgba(255, 255, 255, 0.82);
}

/* ============================================
   SECCIÓN 3 — IMAGEN HORIZONTAL ANCHA
   ============================================ */
.art-img-full {
  width: 100%;
  line-height: 0;
}

.art-img-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SECCIÓN 4 — CTA CENTRADO
   ============================================ */
.art-cta {
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  width: 100%;
}

.art-cta a {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  border: 1px solid #111;
  padding: 14px 32px;
  transition: background 0.2s, color 0.2s;
}

.art-cta a:hover {
  background: #111;
  color: #fff;
}

/* ============================================
   SECCIÓN 5 — 3 COLUMNAS: Texto | Imagen | Texto
   ============================================ */
.art-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #f5f0e8;
  width: 100%;
}

.art-3col__text {
  padding: 6vw 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.art-3col__text h3 {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  margin: 0 0 16px;
  color: #111;
}

.art-3col__text p {
  font-size: clamp(12px, 0.9vw, 15px);
  line-height: 1.8;
  color: #555;
  margin: 0;
}

.art-3col__img {
  overflow: hidden;
}

.art-3col__img img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============================================
   VEREDICTO — título especial
   ============================================ */
.art-veredicto-title {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff !important;
  margin: 0 0 24px;
  line-height: 1;
}

/* ============================================
   BOTÓN DE ARTÍCULO
   ============================================ */
.art-btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  margin-top: 32px;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.art-btn:hover {
  background: #111;
  color: #fff;
}

.art-split--dark .art-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.art-split--dark .art-btn:hover {
  background: #fff;
  color: #111;
}


/* ============================================
   H1 — Título del artículo (SEO + accesibilidad)
   Se muestra visualmente entre el breadcrumb/meta-bar
   y el contenido editorial. Visually hidden en el
   layout revista (el diseño ya lo comunica via imágenes),
   pero presente en el DOM para crawlers y lectores.
   ============================================ */
.art-title {
  font-family: 'Lato', sans-serif;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  margin: 0;
  padding: 24px clamp(16px, 3.8vw, 50px) 0;
  line-height: 1.15;
}

@media (max-width: 575px) {
  .art-title { font-size: clamp(20px, 6vw, 28px); }
}

/* ============================================
   META BAR — Barra de categoría / fecha / lectura
   ============================================ */
.art-meta-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  /* Mismo clamp que .blog-art-breadcrumb y el header del tema */
  padding: 12px clamp(16px, 3.8vw, 50px);
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}

.art-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.art-meta-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.art-meta-cat:hover { opacity: 0.6; }

.art-meta-sep {
  color: #ccc;
  font-size: 10px;
}

.art-meta-date,
.art-reading-time {
  font-size: 11px;
  color: #999;
  font-style: normal;
}

/* ============================================
   SOCIAL SHARING
   Usamos .art-page como prefijo para ganar especificidad
   sobre los estilos genéricos del tema Panda.
   ============================================ */
.art-page .art-share-wrapper {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #fff;
  border-top: 1px solid #ebebeb;
  padding: 40px 32px 36px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px;
  text-align: center !important;
  float: none !important;
  clear: both !important;
}

.art-page .art-share-heading {
  font-family: 'Lato', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

.art-page .art-share {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px;
  padding: 0;
  border: none;
  background: transparent;
  width: 100% !important;
  float: none !important;
}

.art-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.art-share-btn:hover {
  background: #333;
  color: #fff;
}

.art-share-fb,
.art-share-x,
.art-share-ig { background: #000; }

/* ============================================
   RESPONSIVE — tablet (≤ 991px)
   ============================================ */
@media (max-width: 991px) {
  .art-hero__overlay h2 { font-size: 5vw; }
  .art-hero__overlay p  { font-size: 2vw; }

  .art-split,
  .art-split--reverse {
    grid-template-columns: 1fr;
  }
  .art-split__img img { min-height: 340px; }
  .art-split__text    { padding: 40px 32px; }

  .art-3col           { grid-template-columns: 1fr; }
  .art-3col__img      { order: -1; }
  .art-3col__text     { padding: 36px 28px; }
}

/* ============================================
   RESPONSIVE — móvil (≤ 575px)
   ============================================ */
@media (max-width: 575px) {
  .art-hero__overlay h2 { font-size: 7vw; letter-spacing: 2px; }
  .art-hero__overlay p  { font-size: 3.5vw; }
  .art-split__text      { padding: 32px 20px; }
  .art-split__text h2   { font-size: 5.5vw; }
  .art-3col__img img    { min-height: 260px; }
  .art-meta-bar         { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575px) {
  .art-page .art-share-wrapper { padding: 28px 16px 24px; }
  .art-page .art-share         { gap: 14px; }
}

/* ============================================
   BREADCRUMB DEL ARTÍCULO — blog-art-breadcrumb
   Se alinea con el logo del header mediante el
   mismo max-width y márgenes que usa .breadcrumb
   en blog-shared.css. La línea separadora se
   añade con border-bottom sobre el wrapper.
   ============================================ */
.blog-art-breadcrumb {
  /* Padding responsivo que replica el del header del tema Panda.
     clamp(16px, 3.8vw, 50px):
       375px mobile  → 16px  (escala suave)
       768px tablet  → 29px
      1320px desktop → 50px  ← alineado con logo KOAJ
      1440px+        → 50px  ← fijo igual que el header en pantallas grandes */
  width: 100%;
  box-sizing: border-box;
  padding: 10px clamp(16px, 3.8vw, 50px);
  border-bottom: none;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
}

/* Lista horizontal — flex directo sobre el <ul> */
.blog-art-breadcrumb ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

/* Cada ítem en línea */
.blog-art-breadcrumb li {
  display: flex;
  align-items: center;
  color: #999;
  font-weight: 400;
}

/* Ocultar navigation-pipe por si algún caché sirve HTML viejo */
.blog-art-breadcrumb li.navigation-pipe {
  display: none !important;
}

/* Separador ">" entre ítems — funciona directamente ahora que
   navigation-pipe ya no se genera en el HTML */
.blog-art-breadcrumb li + li::before {
  content: '>';
  margin: 0 6px;
  color: #ccc;
  font-size: 10px;
}

/* Links intermedios */
.blog-art-breadcrumb li a {
  color: #999;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.blog-art-breadcrumb li a:hover {
  color: #111;
}

/* Último ítem visible = título del artículo */
.blog-art-breadcrumb li:last-child,
.blog-art-breadcrumb li:last-child span[itemprop="name"] {
  color: #111;
  font-weight: 700;
}

@media (max-width: 575px) {
  /* padding ya lo maneja clamp(16px, 3.8vw, 60px) — no override necesario */
}

/* ============================================
   WRAPPER full-width del breadcrumb de artículo
   El <nav> interno se centra con max-width;
   este contenedor aplica la línea separadora
   de borde a borde del viewport.
   ============================================ */
.blog-art-breadcrumb-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

/* Quitar el border-bottom del <nav> cuando está
   dentro del wrapper (ya lo lleva el wrapper) */
.blog-art-breadcrumb-wrapper .blog-art-breadcrumb {
  border-bottom: none;
}

/* ============================================
   MOBILE — prevenir overflow horizontal
   Cualquier elemento más ancho que el viewport
   en full_width_top hace que el browser mobile
   escale la página completa, agrandando el logo.
   Forzamos que TODO dentro del bloque de artículo
   se contenga dentro del viewport.
   ============================================ */
@media (max-width: 767px) {
  .blog-art-breadcrumb-wrapper,
  .blog-art-breadcrumb,
  .art-page,
  .art-page * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .art-page img,
  .art-page video,
  .art-page iframe {
    max-width: 100% !important;
    height: auto !important;
  }
}
