:root {
  --hero-bg-color: #fff;
  --accent-bg-color: #fff;
  --laliga-red: #ff4b44;
  --text-color: #000;
  --text-dark-color: #00001b;
  --text-light-color: #fff;
}

.teaser-category.teaser-category-pill {
  text-transform: uppercase;
}

.content-menu-tag {
  text-transform: uppercase;
}
.sections-top {
  display: flex;
  z-index: 100;
  flex-wrap: wrap;
  .sections-top-element {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 2rem 0 2rem 2.25vw;
    width: 50%;
  }

  :is(.nav-inside-img, .nav-simbolos-de-nuestro-legado-img, .nav-la-fuerza-de-todos-img, .nav-el-equipo-de-todos-img) {
    padding: 0 1rem;
    transition: all 0.75s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15%;
  }
  :is(.nav-inside-img, .nav-simbolos-de-nuestro-legado-img, .nav-la-fuerza-de-todos-img, .nav-el-equipo-de-todos-img)
    svg {
    transition: all 0.5s;
    width: auto;
    max-height: 6rem;
    height: 100%;
  }
  :is(.nav-inside-txt, .nav-simbolos-de-nuestro-legado-txt, .nav-la-fuerza-de-todos-txt, .nav-el-equipo-de-todos-txt) {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.75s;
    h2 {
      font-size: clamp(24px, 2.5vw, 45px);
      font-style: normal;
      font-weight: 900;
      text-align: left;
      letter-spacing: -0.9px;
      color: var(--text-color);
      text-transform: uppercase;
      opacity: 1;
    }
  }

  :is(
    .nav-inside-txt,
    .nav-simbolos-de-nuestro-legado-txt,
    .nav-la-fuerza-de-todos-txt,
    .nav-el-equipo-de-todos-txt,
    .nav-inside-img,
    .nav-simbolos-de-nuestro-legado-img,
    .nav-la-fuerza-de-todos-img,
    .nav-el-equipo-de-todos-img
  ) {
    cursor: pointer;
    transition: all 0.75s;
  }
  :is(.nav-inside-img, .nav-simbolos-de-nuestro-legado-img, .nav-la-fuerza-de-todos-img, .nav-el-equipo-de-todos-img)
    img {
    transition: all 0.75s;
  }
}

.nav-simbolos-de-nuestro-legado {
  background-color: #ffffff;
}

.nav-inside {
  background-color: #d3d3d3;
}

.nav-la-fuerza-de-todos {
  background-color: #00001b;
  h2 {
    color: #ffffff !important;
    span {
      color: var(--laliga-red) !important;
      font-weight: 900;
    }
  }
}

.nav-el-equipo-de-todos {
  background-color: #ff4b44;
  h2 {
    color: var(--text-color) !important;
    span {
      color: var(--text-light-color) !important;
      font-weight: 900;
    }
  }
}

.content-simbolos-de-nuestro-legado {
  background-color: var(--white, #fff);
  position: relative;
  .teaser {
    background-color: #ebebeb;
  }
  .teaser-category-pill {
    background-color: var(--laliga-red);
    b {
      color: var(--text-dark-color);
    }
    max-width: 168px;
    padding-right: 2rem;
  }
  .teaser-headline-link {
    color: var(--text-color);
  }
}

.content-inside {
  background-color: #D3D3D3;
  .teaser-category-pill {
    background-color: var(--laliga-red);
    b {
      color: var(--text-dark-color);
    }
    max-width: 168px;
    padding-right: 2rem;
  }
  .teaser-headline-link {
    color: var(--text-color);
  }
}
.content-simbolos-de-nuestro-legado::before {
  content: "";
  display: block;
  position: absolute;
  top: -80px;
  width: 100vw;
  height: 80px;
}
.section-intro-title--inverted {
  h2 {
    color: var(--laliga-red);
    text-wrap: balance;
  }
}
.section-intro-destacado--inverted {
  h3 {
    color: var(--text-color) !important;
    text-wrap: balance;
    b {
      font-weight: inherit;
      color: var(--laliga-red);
    }
  }
}
.section-intro-txt--inverted p {
  color: var(--text-dark-color);
}

.simbolos-de-nuestro-legado {
  .article-section {
    color: var(--text-color);
  }

  .article-section::before {
    background-image: url(/assets/img/core/simbolos-de-nuestro-legado.svg);
  }

  .article-hero {
    background-color: var(--hero-bg-color);
  }

  .article-hero-content {
    .hero-media {
      display: flex;
      align-items: stretch;
      justify-content: center;
      position: relative;
      margin-top: calc(2rem + 2vw);
      overflow: visible;
      width: min(90vw, 1600px);
      margin-left: auto;
      margin-right: auto;

      .hero-media-video {
        width: 80%;
        max-width: 1200px;
        margin: 64px auto;
        position: relative;
        z-index: 2;
      }

      .escudo-izquierda,
      .escudo-derecha {
        position: relative;
        z-index: 1;
        height: 100%;
        flex: 0 0 auto;
        align-self: center;
        margin: 0 -5%;
      }

      .escudo-izquierda img,
      .escudo-derecha img {
        height: 100%;
        width: auto;
        max-width: none;
        display: block;
      }
    }
  }

  .hero-media-img::before,
  .hero-media-video::before {
    background-image: none !important;
  }

  .hero-media-img::after,
  .hero-media-video::after {
    content: "";
    background-image: none !important;
  }

  .article-kicker,
  .article-title h1,
  .firma-uestudio {
    color: var(--text-color);
  }

  .social {
    gap: 4px;
  }

  .social-link {
    border-color: var(--laliga-red);
  }

  .social-top {
    a {
      color: var(--text-color);
      background-color: var(--laliga-red);
    }

    a:active,
    a:visited {
      color: #ff4b44;
    }

    a:hover {
      color: var(--laliga-red);
      background-color: #fff;
    }
  }

  .content-title {
    margin-bottom: calc(1rem + 1vw);
    font-size: calc(20px + 1.7vw);
    color: var(--text-color);
  }

  @media (min-width: 860px) {
    .social-top {
      top: 50%;
    }
  }

  @media (max-width: 768px) {
    .article-hero-content {
      .hero-media {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: wrap;
        row-gap: 0;
        justify-content: center;

        .escudo-izquierda,
        .escudo-derecha {
          order: 1;
          z-index: 1;
          height: auto;
          flex: 0 0 25%;
          max-width: 25%;
          margin: 0 1.5%;
          align-self: center;
        }

        .escudo-izquierda {
          transform: rotate(-30deg);
        }

        .escudo-derecha {
          transform: rotate(30deg);
        }

        .hero-media-video {
          order: 2;
          z-index: 2;
          width: 80%;
          max-width: 1200px;
          margin: -12.5% auto 32px;
        }

        .escudo-izquierda img,
        .escudo-derecha img {
          height: auto;
          width: 100%;
        }
      }
    }
  }
}

/* ========================================
   BARRA DE NAVEGACIÓN PERSONALIZADA
   Sistema independiente sin conflictos
   ======================================== */

/* Contenedor principal */
.custom-sections-nav {
  width: 100%;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  transition: background-color 0.4s ease;
}

/* Backgrounds dinámicos según sección activa */
.custom-sections-nav.bg-simbolos { background-color: rgba(255, 255, 255, 0.95); }
.custom-sections-nav.bg-inside { background-color: rgba(211, 211, 211, 0.95); }
.custom-sections-nav.bg-equipo { background-color: rgba(255, 75, 68, 0.95); }
.custom-sections-nav.bg-fuerza { background-color: rgba(0, 0, 27, 0.95); }

/* Base común para todos los items */
.section-nav-item {
  width: 120px;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Espaciador automático antes del item 3 */
.section-nav-item-3 {
  margin-left: auto;
}

/* Iconos y textos - base común */
.section-nav-icon,
.section-nav-text {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-nav-icon {
  width: 50px;
  height: 100%;
  padding: 10px;
}

.section-nav-icon svg {
  height: 35px;
  width: auto;
}

.section-nav-text {
  width: 100%;
  height: 100%;
  padding: 15px;
}

.section-nav-text img {
  max-height: 45px;
  width: auto;
}

/* ===== SECCIÓN 1: Símbolos - TEXTO visible, ICONO en hover ===== */
.section-nav-item-1 .section-nav-text {
  opacity: 1;
  transform: translateX(0);
}

.section-nav-item-1 .section-nav-icon {
  right: 10px;
  opacity: 0;
  transform: translateX(50px);
}

.section-nav-item-1 .section-nav-icon path {
  fill: #ff4b44;
}

.section-nav-item-1:hover .section-nav-text,
.section-nav-item-1.active .section-nav-text {
  opacity: 0;
  transform: translateX(-50px);
}

.section-nav-item-1:hover .section-nav-icon,
.section-nav-item-1.active .section-nav-icon {
  opacity: 1;
  transform: translateX(0);
}

/* ===== SECCIÓN 2: Inside - ICONO visible, TEXTO en hover ===== */
.section-nav-item-2 .section-nav-icon {
  left: 10px;
  opacity: 1;
  transform: translateX(0);
}

.section-nav-item-2 .section-nav-icon path {
  fill: #00001b;
}

.section-nav-item-2 .section-nav-text {
  opacity: 0;
  transform: translateX(50px);
}

.section-nav-item-2:hover .section-nav-icon,
.section-nav-item-2.active .section-nav-icon {
  opacity: 0;
  transform: translateX(-50px);
}

.section-nav-item-2:hover .section-nav-text,
.section-nav-item-2.active .section-nav-text {
  opacity: 1;
  transform: translateX(0);
}

/* ===== SECCIÓN 3: El Equipo - TEXTO visible, ICONO en hover ===== */
.section-nav-item-3 .section-nav-text {
  opacity: 1;
  transform: translateX(0);
}

.section-nav-item-3 .section-nav-icon {
  right: 10px;
  opacity: 0;
  transform: translateX(50px);
}

.section-nav-item-3 .section-nav-icon path {
  fill: #ffffff;
}

.section-nav-item-3:hover .section-nav-text,
.section-nav-item-3.active .section-nav-text {
  opacity: 0;
  transform: translateX(-50px);
}

.section-nav-item-3:hover .section-nav-icon,
.section-nav-item-3.active .section-nav-icon {
  opacity: 1;
  transform: translateX(0);
}

/* ===== SECCIÓN 4: La Fuerza - ICONO visible, TEXTO en hover ===== */
.section-nav-item-4 .section-nav-icon {
  left: 10px;
  opacity: 1;
  transform: translateX(0);
}

.section-nav-item-4 .section-nav-icon path {
  fill: #ffffff;
}

.section-nav-item-4 .section-nav-text {
  opacity: 0;
  transform: translateX(50px);
}

.section-nav-item-4 .section-nav-text img {
  filter: brightness(0) invert(1);
}

.section-nav-item-4:hover .section-nav-icon,
.section-nav-item-4.active .section-nav-icon {
  opacity: 0;
  transform: translateX(-50px);
}

.section-nav-item-4:hover .section-nav-text,
.section-nav-item-4.active .section-nav-text {
  opacity: 1;
  transform: translateX(0);
}
