/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
  --text-color: #ffffff;
  --subtext-color: #ffffff;
  --btn-bg: #ffffff;
  --btn-text: #111111;

  --c1: #00f0ff;
  --c2: #ff00cc;
  --c3: #ff9900;
  --c4: #a64dff;
  --c5: #00ff99;
}

/* ==========================================================================
   RESET ESPACIOS SUPERIORES (ASTRA / THEME)
   ========================================================================== */
body,
.site-main,
#primary,
.ast-container,
.ast-plain-container,
.entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ==========================================================================
   CLASES DE VISIBILIDAD
   ========================================================================== */
.desktop-only {
  display: block !important;
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

/* ==========================================================================
   HERO WRAPPER – BASE
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important; 
}

/* ==========================================================================
   DESKTOP – HERO FULLSCREEN
   ========================================================================== */
@media (min-width: 1024px) {

  header.site-header,
  .pl-header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 2000;
  }

  .hero-desktop-container {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh;
    overflow: hidden !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .hero-carousel {
    display: none !important;
  }

  .hero-desktop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* ==========================================================================
     CATEGORÍAS – GRID EDITORIAL
     ========================================================================== */
  .hero-categories-row {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    
    width: 90%; 
    max-width: 1200px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    
    box-sizing: border-box;
    z-index: 20;
  }

  .hero-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease;
    min-width: 0;
  }

  .hero-category-item:hover {
    transform: translateY(-6px);
  }

  /* ==========================================================================
     IMÁGENES 4:3 — REDUCIDAS 40%
     ========================================================================== */
  .hero-category-img {
    width: 60%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center;

    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
    transition: all 0.25s ease;
    display: block;
  }

  .hero-category-item:hover .hero-category-img {
    filter: brightness(1.12);
    border-color: rgba(255,255,255,0.55);
  }

  .hero-category-title {
    margin-top: 10px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  }
}
