/* -------- FUENTES PERSONALIZADAS -------- */
@font-face {
  font-family: "Nabulist";
  src: url("assets/fonts/Nabulist.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nabulist";
  src: url("assets/fonts/NabulistBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --header-height: 80px;
  --color-orange: #ff6a00;
  --color-black: #000000;
  --color-white: #ffffff;
  --font-primary: "Nabulist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-fast: 0.12s ease;
}

html,
body {
  min-height: 100%;
}

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-system);
}

body.no-scroll {
  overflow: hidden;
}

/* ------- HEADER: CONFIGURACIÓN GENERAL ------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  background: transparent;
  font-family: var(--font-primary);
  opacity: 0;
  transform: translateY(-20px);
  animation: headerFadeIn 0.8s ease-out forwards;
  animation-delay: 1s;
}

/* Barra horizontal superior (Desktop) */
.main-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-box img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Elementos laterales (ocultos por defecto en inicio desktop) */
.side-header {
  display: none;
}

/* ------- HEADER: MODO LATERAL (Desktop al scrollear) ------- */
body.header-side .main-header {
  inset: 0;
  height: auto;
  padding: 0;
  display: block;
  background: transparent;
  opacity: 1;
  transform: none;
  animation: none;
  pointer-events: none;
  /* Click pasante en el centro */
}

body.header-side .main-header-top {
  display: none;
}

body.header-side .side-header {
  display: flex;
}

/* ------- HEADER: MODIFICACIÓN MÓVIL (SIEMPRE LATERAL) ------- */
@media (max-width: 768px) {

  /* Forzamos el modo lateral desde el principio en celular */
  .main-header {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    inset: 0 !important;
    height: auto !important;
    padding: 0 !important;
    pointer-events: none;
    background: transparent !important;
    display: block !important;
  }

  /* Ocultamos barra superior */
  .main-header-top {
    display: none !important;
  }

  /* Mostramos laterales ajustados */
  .side-header {
    display: flex !important;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    /* Más angosto */
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 50;

    /* Fondo totalmente transparente */
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  /* Logo más chico en celular */
  .logo-vertical img {
    max-width: 50px;
  }

  .vertical-nav {
    gap: 1.25rem;
  }

  /* Letra más chica en celular */
  .vertical-nav a {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  /* Alinear EQUIPOS/CONTACTO en fila */
  .side-header-right {
    top: 0;
    bottom: 0;
    right: 0;
    width: 36px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .side-header-right .vertical-nav {
    flex-direction: column;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .side-header-right .vertical-nav a {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  /* Acercar logo al margen izquierdo */
  .side-header-left {
    left: 0;
    width: 32px;
    justify-content: flex-start;
    padding-left: 4px;
  }
}

/* Estilos comunes de los laterales */
.side-header {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.side-header-left {
  left: 0;
}

.side-header-right {
  right: 0;
}

.logo-vertical img {
  max-width: 140px;
  height: auto;
  transform: rotate(-90deg);
}

.vertical-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.vertical-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.vertical-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {

  /* Reforzar overrides móviles después de estilos comunes */
  .side-header {
    width: 36px !important;
  }

  .side-header-left {
    left: 0 !important;
    width: 32px !important;
    justify-content: flex-start !important;
    padding-left: 4px !important;
  }

  .logo-vertical img {
    max-width: 50px !important;
  }

  .side-header-right {
    right: 0 !important;
    width: 36px !important;
  }

  .side-header-right .vertical-nav {
    gap: 0.8rem !important;
  }

  .side-header-right .vertical-nav a {
    font-size: 0.5rem !important;
  }
}

/* ------- HERO / FONDOS ------- */
.hero {
  position: relative;
}

.hero-images {
  position: relative;
}

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

.bg-bw {
  position: relative;
  z-index: 1;
}

.bg-color {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  animation: heroColorIn 1.4s ease-out forwards;
  animation-delay: 0.8s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-top: var(--header-height);
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(6vh, 10vh, 14vh);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
  opacity: 0;
  transform: translateY(20px);
  z-index: 10;
  animation: overlayFadeIn 0.9s ease-out forwards;
  animation-delay: 1.1s;
}

.hero-content {
  max-width: 420px;
  margin: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-end;
}

.hero-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Botones Hero */
.cta-image-button,
.whatsapp-image-button {
  align-self: flex-end;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.cta-image-button img {
  display: block;
  max-width: 260px;
  height: auto;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.cta-image-button:hover img {
  filter: brightness(1.05);
}

.cta-image-button:active img {
  transform: translateY(2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.whatsapp-image-button {
  margin-top: 0.5rem;
}

.whatsapp-image-button img {
  display: block;
  width: 56px;
  height: 56px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-image-button:hover img {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.whatsapp-image-button:active img {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

/* ---- MODIFICACIONES HERO PARA MÓVIL ---- */
@media (max-width: 768px) {
  .hero-overlay {
    justify-content: center;
    padding-inline: 1.5rem;
    padding-bottom: clamp(5vh, 8vh, 10vh);
  }

  .hero-content {
    text-align: center;
    align-items: center;
    gap: 1rem;
    /* Menos espacio entre elementos */
  }

  /* 1. Título más chico en celular */
  .hero-title {
    font-size: 1.8rem;
    /* Reducido de 3rem */
  }

  /* 2. Ocultar botón Explore en celular */
  .cta-image-button {
    display: none;
  }

  /* 3. Botón WhatsApp más chico en celular */
  .whatsapp-image-button img {
    width: 40px;
    /* Reducido de 56px */
    height: 40px;
  }
}

/* ------- HERO INFERIOR ------- */
.hero-bottom {
  position: relative;
}

/* Contenido sobre el fondo inferior (Solo Título y Equipos) */
.hero-bottom-content {
  position: absolute;
  top: max(60px, 5vw);
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 900px);
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 6;
}

.equipos-title {
  display: block;
  max-width: 320px;
  width: 60%;
  height: auto;
  position: relative;
  z-index: 2;
}

/* Equipos Grid */
.hero-bottom .equipos-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.hero-bottom .equipos-grid>* {
  flex: 0 0 36%;
  max-width: 360px;
}

.hero-bottom .equip-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Asegurar que la imagen dentro del enlace también ocupe el 100% */
.hero-bottom .equip-link img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-bottom .equip-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  position: relative;
  z-index: 2;
}

.hero-bottom .equip-image:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .hero-bottom {
    padding-top: 2rem;
    padding-bottom: 3rem;
    min-height: 100vh;
    /* Asegurar altura mínima para el fondo */
  }

  /* Hacer que la imagen de fondo cubra toda la sección en móviles */
  .hero-bottom>.bg-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
  }

  .hero-bottom-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding-inline: 1.25rem;
    gap: 1.75rem;
    z-index: 6;
    /* Asegurar que esté sobre el fondo */
  }

  .hero-bottom .equipos-grid {
    flex-direction: column;
    align-items: center;
  }

  .hero-bottom .equipos-grid>* {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
  }
}

.line-orange {
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  /* Posicionar en la unión entre hero-top y hero-bottom */
  height: 16px;
  width: 100%;
  display: block;
  object-fit: cover;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .line-orange {
    top: -8px;
    /* Mantener en la unión también en móviles */
    height: 12px;
    /* Reducir altura en móviles */
  }
}

/* Animaciones */
@keyframes heroColorIn {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes headerFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   NUEVA ESTRUCTURA FLOTANTE (CONTACTO + FORM)
   ========================================================= */

.contact-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* 1. TARJETA DE CONTACTO */
.contact-card-absolute {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  max-width: 500px;
  pointer-events: auto;
}

.contact-card {
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
  background: transparent;
  font-family: var(--font-primary);
}

.contact-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  position: relative;
}

.contact-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--color-orange);
  transition: width 0.25s ease;
}

.contact-title:hover::after {
  width: 100%;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}

.contact-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-family: var(--font-primary);
  font-weight: 400;
}

.contact-list li a:hover {
  text-decoration: underline;
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}


/* 2. FORMULARIO FLOTANTE (Horizontal) */
.contact-form-absolute {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 1000px;
  pointer-events: auto;
  z-index: 10;
}

.contact-form {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: none;
}

.form-title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  color: var(--color-white);
  margin: 0;
  text-transform: uppercase;
  text-align: left;
  width: 100%;
}

/* Fila de campos */
.form-inputs-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.form-group {
  flex: 1;
  position: relative;
  height: 50px;
}

.message-group {
  flex: 1.5;
}

.form-group input,
.form-group textarea {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 1rem;
  color: var(--color-white);
  font-family: var(--font-system);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.form-group textarea {
  resize: none;
  padding-top: 14px;
  line-height: 1.2;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  background: rgba(255, 255, 255, 0.2);
}

.submit-button {
  height: 50px;
  background-color: var(--color-orange);
  color: var(--color-white);
  border: none;
  padding: 0 2rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  text-transform: uppercase;
  border-radius: 999px;
  flex-shrink: 0;
}

.submit-button:hover {
  background-color: #ff8533;
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}


/* ------- RESPONSIVE CONTACTO (Móvil) ------- */
@media (max-width: 900px) {
  .contact-overlay-layer {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem;
    pointer-events: auto;
    z-index: 6;
    /* Asegurar que esté sobre el fondo en móviles */
  }

  /* Tarjeta Móvil */
  /* Ocultar tarjeta de contacto en móvil - info en footer */
  .contact-card-absolute {
    display: none;
  }

  .contact-card {
    padding: 0;
    /* Sin padding para layout limpio */
    background: transparent;
    /* Sin fondo en móvil */
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrar contenido horizontalmente */
  }

  /* Centrar título en móvil */
  .contact-title {
    text-align: center;
    display: block;
    width: 100%;
  }

  /* Centrar lista de contactos en móvil */
  .contact-list {
    width: 100%;
    align-items: center;
    /* Centrar items */
  }

  .contact-list li {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Centrar cada item */
  }

  .contact-list li a {
    justify-content: center;
    /* Centrar contenido del link */
  }

  /* Formulario Móvil */
  .contact-form-absolute {
    width: 90%;
    bottom: auto;
    left: auto;
    transform: none;
    position: relative;
    margin: 0.25rem auto 1.5rem;
  }

  .form-inputs-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group,
  .message-group,
  .submit-button {
    width: 100%;
    flex: none;
  }

  .message-group {
    height: auto;
  }

  .form-group textarea {
    height: 100px;
    padding-top: 1rem;
  }
}


/* ------- FOOTER ------- */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 1.2rem 3rem 1.4rem;
  border-top: none;
  font-family: var(--font-primary);
  color: var(--color-white);
  z-index: 20;
  width: 100%;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  width: 38px;
  height: auto;
  flex-shrink: 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
}

.footer-contact-item img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-contact-item:hover span {
  text-decoration: underline;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-dev {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-dev img {
  height: 5rem;
  width: auto;
}

.footer-dev-separator {
  color: var(--color-white);
  font-size: 1.3rem;
  margin: 0 0.2rem;
}

.footer-rights {
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 1.2rem 1.5rem 0.5rem;
    /* Reduced bottom padding */
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    /* Center align items */
    gap: 1rem;
  }

  .footer-left {
    gap: 1rem;
  }

  .footer-dev img {
    height: 5.5rem;
  }

  .footer-right {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-rights {
    font-size: 0.85rem;
    text-align: center;
  }
}


/* ------- SLIDER POPUP & DETALLE ------- */
.modal-line-orange {
  position: absolute;
  bottom: 140px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-orange);
  z-index: 10;
  display: none;
}

.modal-slider-wrapper {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 140px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.modal-slider-container {
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.modal-slider-track {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  height: 100%;
  transition: transform 0.35s ease;
}

.slide-item {
  flex: 0 0 25%;
  height: 100%;
  border-radius: 16px 0 16px 16px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.slide-item img,
.detail-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 60vh;
  border-radius: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 16 Q0 0 16 0 H100 V100 H16 Q0 100 0 84 Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 16 Q0 0 16 0 H100 V100 H16 Q0 100 0 84 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.slide-item img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.slider-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.slider-btn:hover {
  color: #ffb380;
  transform: scale(1.08);
}

.slider-btn:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .modal-line-orange {
    bottom: 100px;
    display: none;
  }

  .modal-slider-wrapper {
    bottom: 40px;
    height: 100px;
  }

  .slide-item {
    flex: 0 0 33.3333%;
    height: 100%;
  }
}

/* ------- DETALLE / LOADER ------- */
.loader-detail-page {
  background: var(--color-black);
  color: var(--color-white);
}

.detail-back {
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-primary);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
}

.detail-back:hover {
  text-decoration: underline;
}

.loader-hero {
  position: relative;
  min-height: 100vh;
  background: var(--color-black);
  display: block;
  isolation: isolate;
}

.loader-bg {
  display: block;
  width: 100%;
  height: auto;
}

.loader-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

/* .loader-hero .line-orange removed */

.loader-hero-content {
  position: absolute;
  top: 0;
  right: clamp(1.5rem, 7vw, 5rem);
  left: auto;
  padding: 5rem 2.5rem 2.5rem;
  max-width: 520px;
  width: min(520px, 90vw);
  text-align: right;
  margin-left: auto;
  z-index: 2;
}

.detail-title-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 450px;
  margin-bottom: 1rem;
  margin-left: auto;
}

.detail-kicker {
  font-family: var(--font-primary);
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.detail-title {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.detail-desc {
  font-size: 1rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.85);
  display: none;
}

.detail-slider-overlay {
  position: absolute;
  left: 50%;
  bottom: clamp(90px, 12vh, 160px);
  transform: translateX(-50%);
  width: min(1100px, 96%);
  z-index: 2;
  padding: 0 0.5rem;
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.detail-logo {
  height: 48px;
  width: auto;
}

.quote-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.quote-btn img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform var(--transition-fast);
}

.quote-btn:hover img {
  transform: translateY(-1px);
}

.download-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
}

.download-btn img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform var(--transition-fast);
}

.download-btn:hover img {
  transform: translateY(-1px);
}

.detail-slider-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-slider-container {
  flex: 1;
  overflow: hidden;
}

.detail-slider-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.35s ease;
}

.detail-slide {
  flex: 0 0 25%;
  height: auto;
  border-radius: 16px 0 16px 16px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-slider-wrapper .slider-btn {
  width: 38px;
  height: 38px;
  font-size: 1.8rem;
}

.specs-section {
  display: none;
}

.hero-specs {
  display: block;
  width: min(520px, 70vw);
  height: auto;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: 0;
  /* Align to right since parent is text-align: right */
  /* transform: translateX(-18vw); REMOVED */
}

@media (max-width: 1024px) {
  .loader-hero {
    min-height: 100vh;
  }
}

@media (max-width: 768px) {
  .loader-hero {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .loader-hero-content {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    padding: 0.85rem 1.25rem 0.65rem;
    width: min(520px, 92vw);
    text-align: center;
    margin: -6rem auto 0;
  }

  .hero-specs {
    margin: 1rem auto 0;
    width: min(420px, 90vw);
    transform: none;
  }

  .detail-slide {
    flex: 0 0 50%;
  }

  .detail-slider-wrapper .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 1.6rem;
  }

  .detail-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .detail-slider-overlay {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    padding: 0 1rem;
    margin: 1.5rem auto 0;
  }
}

@media (max-width: 480px) {
  .loader-hero {
    min-height: 100vh;
  }

  .detail-slider-wrapper {
    gap: 0.75rem;
  }

  .detail-slider-track {
    gap: 0.75rem;
  }

  .detail-slide {
    flex: 0 0 100%;
  }
}

/* ------- MODAL / POPUP ------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 80%;
  max-width: 1100px;
  height: 72vh;
  max-height: 78vh;
  background-image: url("assets/categories/loadershovel/z930d/background/backz930d.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 20;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .modal-content {
    width: 92%;
    height: 70vh;
    max-height: 74vh;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 1.6rem;
    border-width: 1px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    height: 75vh;
    max-height: 78vh;
  }

  .modal-slider-wrapper {
    bottom: 28px;
    height: 90px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
  }
}