/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --bg-body: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent: #e63946;
    --border-color: #e5e5e5;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--text-main); line-height: 1.2; }

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

/* =========================================
   NAVEGACIÓN
   ========================================= */
nav {
    /* Siempre arriba y por encima del hero */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 2rem 5%;
    z-index: 1000;

    /* SIN FONDO (se ve la imagen del hero debajo) */
    background: transparent;
    border-bottom: 1px solid transparent;

    transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

/* Al hacer scroll: negro */
nav.scrolled {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

/* Texto en blanco cuando el menú está sobre la imagen */
nav .logo a,
nav .nav-links a {
    color: #ffffff;
}

/* Botón Newsletter en blanco sobre imagen */
nav .btn-subscribe {
    border-color: #ffffff;
    color: #ffffff;
}

/* Hover sobre imagen */
nav .nav-links a:hover {
    color: #ffffff;
    opacity: 0.85;
}

nav.scrolled .logo a,
nav.scrolled .nav-links a {
    color: #ffffff;
}

nav.scrolled .btn-subscribe {
    border-color: #ffffff;
    color: #ffffff;
}
.logo { font-size: 1.8rem; font-weight: 700; font-family: var(--font-heading); }
.logo a { color: var(--text-main); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text-main); opacity: 1; }

.btn-subscribe {
    border: 1px solid var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-main);
}
.btn-subscribe:hover { background: var(--text-main); color: white; opacity: 1; }

/* =========================================
   HERO (CABECERA CON IMAGEN)
   ========================================= */
/* =========================================
   HERO: overlay + degradado inferior controlado
   ========================================= */
header.hero{
  position: relative;
  text-align: center;
  color: #fff;

  /* Ajusta alturas aquí */
  padding: 7rem 1rem 3.2rem;

  background-image: url('../imagenes/testa10.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* Overlay oscuro uniforme (para legibilidad) */
header.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 45%, rgba(0,0,0,0.35), rgba(0,0,0,0.12) 55%),
    rgba(0,0,0,0.12);
  z-index: 1;
}

/* Degradado inferior: corto y visible, sin “niebla” gigante */
header.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height: 70px; /* ← CLAVE: antes era demasiado alto */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(255,255,255,0.18) 55%,
    var(--bg-body) 100%
  );
  z-index: 2;
  pointer-events:none;
}

/* El contenido del hero por encima */
header.hero > div{
  position: relative;
  z-index: 3;
}

header.hero .hero-label{
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: block;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

header.hero h1{
  color:#fff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.75);
}

header.hero p.subtitle{
  color:#f0f0f0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.75);
  max-width: 720px;
  margin: 0.9rem auto 0;
  font-size: 1.15rem;
}

/* =========================================
   FILTROS DE BÚSQUEDA
   ========================================= */
.filter-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.filter-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

/* =========================================
   GRID Y CARDS (PORTADA)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.section-title { font-size: 2rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

/* Animaciones */
.card.hidden { display: none; }
.card.fade-in { animation: fadeIn 0.5s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos de Card */
.card { display: flex; flex-direction: column; }

/* Contenedor de imagen (UNIFICADO) */
.card-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1; /* cuadrado perfecto */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    background-color: var(--bg-secondary);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover .card-image { transform: scale(1.03); filter: grayscale(0%); }

.card-meta {
    font-size: 0.8rem; color: var(--accent); font-weight: 600;
    text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 0.5px;
}

.card-title { font-size: 1.5rem; margin-bottom: 0.8rem; font-weight: 700; }

.card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* número de líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-size: 0.9rem; font-weight: 600;
    border-bottom: 1px solid var(--text-main);
    display: inline-block; padding-bottom: 2px; width: fit-content;
}

/* =========================================
   BADGES SOBRE IMAGEN (MISMO ESTILO QUE .filter-btn)
   ========================================= */
.badges{
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

/* Base: igual que .filter-btn */
.badges .badge{
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0;
    text-transform: none;
    pointer-events: none;

    /* Extra para legibilidad sobre imagen */
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

/* Hover “conceptual” */
.card:hover .badges .badge{
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Alternativa estilo activo */
.badges .badge.alt{
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
}

/* =========================================
   PÁGINA DE ARTÍCULO
   ========================================= */
.article-wrapper {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.article-header { text-align: center; margin-bottom: 3rem; }

.article-category {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-title { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; font-style: italic; }

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.article-content p { margin-bottom: 1.5rem; }
.article-content h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; font-family: var(--font-heading); }
.article-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 10px; color: #444; }

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.2rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-tags {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-pill {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.tag-pill:hover {
    background: var(--text-main);
    color: white;
    opacity: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.back-link:hover { color: var(--text-main); opacity: 1; }

/* =========================================
   REPRODUCTOR FLOTANTE (GLASSMORPHISM)
   ========================================= */
.player-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;

    /* Fondo oscuro semitransparente */
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    transition: all 0.3s ease;
}

.player-bar:hover { background: rgba(20, 20, 25, 0.95); }

.track-info { display: flex; align-items: center; gap: 15px; }

.album-art-small {
    width: 50px; height: 50px; border-radius: 6px; background-color: #eee;
    background-image: url('https://images.unsplash.com/photo-1459749411177-287ce3276916?auto=format&fit=crop&w=100&q=80');
    background-size: cover;
}

.track-details h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; color: #ffffff; }
.track-details span { font-size: 0.8rem; color: #aaaaaa; }

.controls { display: flex; align-items: center; gap: 20px; }

.control-btn {
    background: none; border: none; cursor: pointer; color: #ffffff;
    display: flex; align-items: center; justify-content: center;
}
.control-btn:hover { opacity: 0.8; }

.play-pause {
    width: 40px; height: 40px; background: #ffffff; color: #141419; border-radius: 50%;
}

.progress-container {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: rgba(255,255,255,0.1); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
}
.progress-bar { width: 40%; height: 100%; background: var(--accent); }

/* =========================================
   FOOTER CON IMAGEN Y TEXTO INTEGRADO
   ========================================= */
footer {
    position: relative;
    margin-top: 4rem;
    padding: 0;
    min-height: 350px;

    /* Imagen de fondo */
    background-image: url('../imagenes/pie.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Degradado SUPERIOR para fundir con el contenido blanco */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, var(--bg-body), transparent);
    z-index: 1;
    pointer-events: none;
}

.footer-content {
    text-align: center;
    padding: 4rem 2rem 2rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.copyright {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-links a {
    color: #cccccc;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    opacity: 1;
}

/* =========================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    header.hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }

    .grid { grid-template-columns: 1fr; }

    .article-title { font-size: 2rem; }
    .article-wrapper { padding: 0 1.5rem; margin: 2rem auto; }

    footer { min-height: 300px; }
    footer::before { height: 100px; }
    .footer-logo { font-size: 2rem; }

    .player-bar { width: 95%; bottom: 10px; padding: 10px 15px; }
    .track-details { display: none; }
    .filter-container { padding: 0 1rem; }
    .filter-btn { padding: 6px 15px; font-size: 0.8rem; }

    /* badges un poco más compactos en móvil */
    .badges { top: 10px; left: 10px; gap: 8px; }
    .badges .badge { padding: 6px 14px; font-size: 0.8rem; }
}
/* =========================================
   NAV TRANSPARENTE + SCROLL A NEGRO
   ========================================= */
nav.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 18px 5%;
  z-index: 1000;

  background: transparent;
  border-bottom: 1px solid transparent;

  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}

nav.site-nav.scrolled{
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}

/* Sobre imagen (transparente): texto blanco */
nav.site-nav .logo a,
nav.site-nav .nav-links a{
  color: #ffffff;
}
nav.site-nav .btn-subscribe{
  border-color: #ffffff;
  color: #ffffff;
}
nav.site-nav .nav-links a:hover{ opacity: .85; }

/* Cuando está scrolled, seguimos en blanco */
nav.site-nav.scrolled .logo a,
nav.site-nav.scrolled .nav-links a,
nav.site-nav.scrolled .btn-subscribe{
  color: #ffffff;
  border-color: #ffffff;
}

/* Para que el hero no quede tapado por nav fijo */
header.hero{
  padding-top: calc(8rem + 80px);
}

/* =========================================
   HAMBURGUESA (botón)
   ========================================= */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.18);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span{
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 6px 0;
  transition: transform .25s ease, opacity .2s ease;
}

/* Icono X cuando está abierto */
nav.site-nav.is-open .nav-toggle span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
nav.site-nav.is-open .nav-toggle span:nth-child(2){
  opacity: 0;
}
nav.site-nav.is-open .nav-toggle span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   PANEL MÓVIL
   ========================================= */
.nav-panel{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  padding: 90px 22px 22px;

  background: rgba(0,0,0,.96);
  border-left: 1px solid rgba(255,255,255,.12);

  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 1002;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

nav.site-nav.is-open .nav-panel{
  transform: translateX(0);
}

.nav-panel a{
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 10px;
  opacity: .95;
}

.nav-panel a:hover{
  background: rgba(255,255,255,.08);
  opacity: 1;
}

.nav-panel-btn{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.55);
  text-align: center;
}

/* Backdrop */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1001;
}

nav.site-nav.is-open .nav-backdrop{
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   RESPONSIVE: en móvil se oculta el menú normal
   ========================================= */
@media (max-width: 768px){
  .nav-links{ display: none !important; }
  .btn-subscribe{ display: none; }
  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }
}

/* =========================================
   SECCIÓN VÍDEOS
   ========================================= */
.videos-section{
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  padding: 0 2rem;
}

.videos-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.videos-title{
  font-size: 2rem;
  font-family: var(--font-heading);
}

.videos-cta{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}
.videos-cta:hover{
  color: var(--text-main);
  border-bottom-color: var(--text-main);
  opacity: 1;
}

.videos-grid{
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.video-card{
  width: 32%;
  min-width: 280px;
  max-width: 360px;
}

.video-thumb{
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-color);
}

.video-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
  filter: grayscale(10%);
}

.video-thumb:hover img{
  transform: scale(1.04);
  filter: grayscale(0%);
}

.video-play{
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(0,0,0,.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

.video-name{
  margin-top: 0.9rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-family: var(--font-heading);
}

.video-name a:hover{ opacity: .85; }

.video-link{
  margin-top: .5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.video-link:hover{
  color: var(--text-main);
  border-bottom-color: var(--text-main);
  opacity: 1;
}

@media (max-width: 900px){
  .videos-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .videos-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .videos-grid{
    flex-direction: column;
    align-items: center;
  }

  .video-card{
    width: 100%;
    max-width: 420px;
  }
}

/* =========================================
   INTRO PROYECTO (debajo del hero)
   ========================================= */
/* =========================================
   INTRO PROYECTO (debajo del hero)
   ========================================= */
.intro-proyecto{
  background: var(--bg-body);
  padding: 2.2rem 0 1.2rem;
 /*   border-top: 1px solid var(--border-color);*/
}

.intro-proyecto-inner{
  max-width: 920px;     /* más estrecho -> mejora lectura */
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.intro-texto{
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-main);
  margin: 0;
}

.intro-destacado{
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 1.4rem;
}
/* =========================================
   NAV: modo overlay (con hero) vs solid (sin hero)
   ========================================= */

/* Base (siempre fijo) */
/* =========================================
   NAV NEGRO FIJO
   ========================================= */

nav.site-nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.1);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 5%;
}

/* Links blancos */
nav.site-nav .logo a,
nav.site-nav .nav-links a{
  color: #ffffff;
}

nav.site-nav .nav-links a:hover{
  opacity: .7;
}

/* Botón newsletter blanco */
nav.site-nav .btn-subscribe{
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
}

nav.site-nav .btn-subscribe:hover{
  background: #ffffff;
  color: #000;
  opacity: 1;
}

/* MODO OVERLAY: sobre imagen del hero */
nav.nav--overlay{
  background: transparent;
  border-bottom: 1px solid transparent;
}
nav.nav--overlay .logo a,
nav.nav--overlay .nav-links a{
  color: #ffffff;
}
nav.nav--overlay .btn-subscribe{
  border-color: #ffffff;
  color: #ffffff;
}

/* Cuando haces scroll en overlay (negro) */
nav.nav--overlay.scrolled{
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* MODO SOLID: páginas sin hero (artículo, nosotros...) */
nav.nav--solid{
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--border-color);
}
nav.nav--solid .logo a,
nav.nav--solid .nav-links a{
  color: rgb(255, 255, 255);
}
nav.nav--solid .nav-links a:hover{
  color: var(--text-main);
  opacity: .7;
}
nav.nav--solid .btn-subscribe{
  border-color: var(--text-main);
  color: rgb(255, 255, 255);
}
nav.nav--solid .btn-subscribe:hover{
  background: var(--text-main);
  color: rgb(226, 250, 8);
  opacity: 1;
}

/* Como el nav es fixed, en páginas SIN hero hay que bajar el contenido */
body.no-hero main{
  padding-top: 90px;
}

/* HERO */
.post-hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
}

.post-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(55%);
}

.post-hero-overlay {
    position: absolute;
    bottom: 60px;
    left: 10%;
    color: white;
    max-width: 700px;
}

.post-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.post-subtitle {
    font-size: 1.3rem;
    opacity: 0.85;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* CONTENIDO */
.post-content {
    max-width: 800px;
    margin: 80px auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-intro {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 50px;
}

.post-block {
    margin-bottom: 40px;
}

.post-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 70px 0;
    padding-left: 25px;
    border-left: 4px solid black;
}

.post-image img {
    width: 100%;
    margin: 40px 0;
    border-radius: 6px;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
    margin: 60px 0;
}

/* GALERÍA */
.post-gallery img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}
.post-gallery img:hover {
    transform: scale(1.03);
}

.post-video {
    margin: 80px 0;
}

.post-conclusion {
    margin-top: 60px;
    font-weight: 500;
}

.article-wrapper {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.article-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

/* PORTADA PRINCIPAL */
.article-cover img {
    width: 100%;
     max-width: 480px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.article-header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.article-header-text h2 {
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.6;
}

.article-body {
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-intro {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 50px;
}

.article-block {
    margin-bottom: 40px;
}

.article-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 60px 0;
    padding-left: 25px;
    border-left: 4px solid black;
}

/* IMÁGENES DEL CUERPO */
.article-image {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    margin: 60px auto;
    border-radius: 8px;
}

.article-video {
    margin: 70px 0;
}

.article-conclusion {
    margin-top: 60px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .article-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* LAYOUT GENERAL */
.article-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/* CUERPO */
.article-main {
    max-width: 750px;
}

.article-body {
    line-height: 1.8;
}

/* IMÁGENES MAGAZINE */
.magazine-row {
    margin: 60px 0;
}

.magazine-row img {
    width: 60%;
    border-radius: 8px;
}

.magazine-row.left {
    text-align: left;
}

.magazine-row.right {
    text-align: right;
}

/* SIDEBAR */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-box {
    margin-bottom: 50px;
}

.sidebar-box h3 {
    margin-bottom: 15px;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box li {
    margin-bottom: 8px;
}

.sidebar-box a {
    text-decoration: none;
    color: inherit;
}

.sidebar-box a:hover {
    text-decoration: underline;
}

.sidebar-tags {
    margin-top: 10px;
}

.sidebar-tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 6px 6px 0 0;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #f2f2f2;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.sidebar-tag:hover {
    background: #111;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .magazine-row img {
        width: 100%;
    }
}

.tag-chip {
    display: inline-block;
    padding: 6px 14px;
    margin: 6px 6px 0 0;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #f2f2f2;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.tag-chip:hover {
    background: #111;
    color: white;
}
/* FILTRO SUPERIOR */
.filter-bar {
    text-align: center;
    margin: 30px 0 50px 0;
}

.filter-chip {
    display: inline-block;
    padding: 8px 18px;
    margin: 6px;
    border-radius: 30px;
    background: #f2f2f2;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #111;
    color: white;
}

.filter-chip.active {
    background: #111;
    color: white;
}

/* TAGS EN CARDS */
.card-tags {
    margin: 8px 0 12px 0;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    margin: 0 6px 6px 0;
    border-radius: 14px;
    background: #f2f2f2;
    text-decoration: none;
    color: #444;
    transition: all 0.2s ease;
}

.card-tag:hover {
    background: #111;
    color: #fff;
}

/* NAV BASE */
.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Modo overlay (solo arriba del todo) */
.nav--overlay {
    background: transparent;
}

/* Modo sólido */
.nav--solid {
    background: #000;
}

/* Cuando hacemos scroll */
.site-nav.scrolled {
    background: #000 !important;
    backdrop-filter: blur(6px);
}