/* =========================================================
   BLOG INDEX — carrusel + grid
   Se carga DESPUÉS de styles-blog.css
   ========================================================= */

/* ----- CARRUSEL ----- */
.blog-hero {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    border-radius: 2rem;
  }
  
  /* Track con posicionamiento absoluto para crossfade */
  .hero-track {
    position: relative;
    width: 100%;
    height: clamp(220px, 40vw, 420px);
  }
  
  .hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #000;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;  /* <-- no capturan el click si no están activas */
    z-index: 0;
    transform: scale(1.02);
    transition: opacity .6s ease, transform .6s ease;
  }
  .hero-slide::after {
    /* degradado para legibilidad del texto */
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  }
  .hero-slide.active {
    opacity: 1;
    pointer-events: auto;  /* <-- solo la visible es clicable */
    z-index: 1;
    transform: scale(1);
  }
  
  /* Texto encima (en amarillo) */
  .hero-overlay {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1rem;
    color: #ffb000; /* <-- amarillo de la marca */
    z-index: 2;
  }
  .hero-overlay h3 {
    margin: 0 0 .2rem 0;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.1;
    color: #ffb000;
  }
  .hero-overlay p {
    margin: 0;
    font-family: 'GandhiSans', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: clamp(.95rem, 2.2vw, 1.1rem);
    color: #ffb000;
  }
  
  /* Dots (amarillo activo, amarillos tenues inactivos) */
  .hero-dots {
    position: absolute;
    left: 0; right: 0; bottom: .6rem;
    display: flex; gap: .4rem;
    justify-content: center; z-index: 3;
  }
  .hero-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,176,0,.45); /* inactivo: amarillo tenue */
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
  }
  .hero-dots .dot.active { background: #ffb000; transform: scale(1.1); }
  .hero-dots .dot:hover { transform: scale(1.12); }
  
  /* ----- GRID ----- */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
  }
  
  /* Card (fondo negro 2d2d2d, texto amarillo) */
  .blog-card {
    opacity: 0; transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .blog-card.in { opacity: 1; transform: translateY(0); }
  
  .blog-card .card-inner {
    display: block;
    text-decoration: none;
    color: #ffb000;                 /* texto base */
    background: #2d2d2d;            /* fondo oscuro */
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
  }
  
  .blog-card .card-thumb {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
  }
  
  /* Texto de la card en amarillo */
  .blog-card .card-text {
    padding: .85rem 1rem 1rem;
    color: #ffb000;
  }
  
  /* Título en h3 con márgenes 0.5rem arriba/abajo */
  /* Título en GandhiSans Bold */
.blog-card h3{
    font-family: 'GandhiSans', sans-serif;
    font-weight: 700;           /* o 'bold' */
    text-transform: uppercase;  /* si quieres mantener mayúsculas */
    font-size: 1.05rem;
    margin-block-start: .5rem;
    margin-block-end: .5rem;
    margin-inline: 0;
    color: #ffb000;
  }
  
  
  /* Subtítulo */
  .blog-card p {
    margin: 0;
    font-family: 'GandhiSans', sans-serif;
    font-weight: bold;
    font-size: .95rem;
    color: #ffb000;
    opacity: .95;
  }
  
  /* Sentinel (espaciador al final) */
  .blog-sentinel {
    height: 40px;
  }
  
  /* Responsive */
  @media (max-width: 798px) {
    .blog-hero { border-radius: 1.2rem; }
    .blog-card .card-inner { border-radius: 1.2rem; }
    .blog-card .card-thumb { height: 160px; }
  }
  