/* ============================================================
   Xtreme Models · sistema visual 2026 (fase 1: portada)
   Tokens compartidos con la app (lib/theme.ts, mundo "negro premium").
   Se carga después de style.css y solo toca lo que lleva prefijo xm-.
   ============================================================ */
:root {
  --xm-negro: #0B0B0F;   /* fondo: el escenario */
  --xm-carbon: #16161C;  /* superficie */
  --xm-humo: #26262F;    /* bordes */
  --xm-rojo: #E23A3A;    /* acento de marca */
  --xm-crema: #FAF9F7;   /* texto sobre negro */
  --xm-ambar: #D8A75F;   /* luz de foco: detalles cálidos */
  --xm-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --xm-texto: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --xm-resorte: cubic-bezier(0.22, 1, 0.36, 1); /* entrada con freno suave, sin rebote */
}

/* ---------- Portada ---------- */
section#home.xm-hero {
  position: relative;
  display: flex !important;        /* style.css oculta #home bajo 980 px: aquí sí se muestra */
  align-items: center;
  min-height: 100vh;
  height: auto;
  padding: 120px 0 72px;           /* deja libre la barra fija de navegación */
  background: var(--xm-negro);
  color: var(--xm-crema);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.xm-hero__fondo { position: absolute; inset: 0; z-index: 0; }
.xm-hero__poster,
.xm-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.xm-hero__video { opacity: 0; transition: opacity 1.4s ease; }
.xm-hero__video--activo { opacity: 1; }
.xm-hero__velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 15, 0.86) 0%, rgba(11, 11, 15, 0.55) 42%, rgba(11, 11, 15, 0.10) 100%),
    linear-gradient(0deg, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0) 45%);
}

.xm-hero__contenido { position: relative; z-index: 1; }
.xm-hero__bloque { max-width: 640px; }

/* El titular es el elemento memorable: Bodoni en caja baja, sin mayúsculas forzadas de la plantilla */
.xm-hero__titulo {
  font-family: var(--xm-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.2vw, 5.6rem);
  line-height: 1.0;
  letter-spacing: -0.012em;
  text-transform: none;
  color: var(--xm-crema);
  margin: 0 0 22px;
  padding: 0;
}
.xm-hero__titulo span { display: block; }

.xm-hero__texto {
  font-family: var(--xm-texto);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: rgba(250, 249, 247, 0.84);
  max-width: 33em;
  margin: 0 0 30px;
}

.xm-hero__acciones { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 0 0 26px; }

.xm-btn {
  font-family: var(--xm-texto);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--xm-resorte);
}
.xm-btn:focus-visible { outline: 2px solid var(--xm-ambar); outline-offset: 3px; }
.xm-btn--rojo { background: var(--xm-rojo); color: var(--xm-crema); }
.xm-btn--rojo:hover, .xm-btn--rojo:focus { background: #C92F2F; color: var(--xm-crema); transform: translateY(-1px); text-decoration: none; }
.xm-btn--linea { color: var(--xm-crema); border: 1px solid rgba(250, 249, 247, 0.42); background: rgba(11, 11, 15, 0.25); }
.xm-btn--linea:hover, .xm-btn--linea:focus { color: var(--xm-crema); border-color: var(--xm-crema); background: rgba(250, 249, 247, 0.08); text-decoration: none; }
.xm-btn svg { width: 18px; height: 18px; flex: none; }

.xm-hero__prueba {
  font-family: var(--xm-texto);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(250, 249, 247, 0.62);
  max-width: 36em;
  margin: 0;
}

/* Evento del momento (Fashion Paradise 2026 + curso): entrada visible desde la portada */
.xm-hero__evento {
  display: flex; align-items: center; gap: 14px;
  max-width: 460px;
  margin: 26px 0 0;
  padding: 13px 16px;
  background: rgba(22, 22, 28, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--xm-humo);
  border-radius: 10px;
  color: var(--xm-crema);
  text-decoration: none;
  font-family: var(--xm-texto);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.xm-hero__evento:hover, .xm-hero__evento:focus { color: var(--xm-crema); border-color: rgba(250, 249, 247, 0.4); background: rgba(22, 22, 28, 0.92); text-decoration: none; }
.xm-hero__evento:focus-visible { outline: 2px solid var(--xm-ambar); outline-offset: 3px; }
.xm-hero__evento-fecha {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; padding: 4px 6px;
  border-right: 1px solid var(--xm-humo);
  color: var(--xm-ambar);
}
.xm-hero__evento-fecha strong { font-family: var(--xm-display); font-weight: 400; font-size: 34px; line-height: 1; }
.xm-hero__evento-fecha span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; margin-top: 3px; }
.xm-hero__evento-texto { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xm-hero__evento-texto strong { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--xm-crema); }
.xm-hero__evento-texto span { font-size: 13.5px; line-height: 1.4; color: rgba(250, 249, 247, 0.78); }
.xm-hero__evento-accion { flex: none; font-weight: 600; font-size: 14px; color: var(--xm-crema); text-decoration: underline; text-underline-offset: 3px; }
/* Logo de Fashion Paradise: está diseñado sobre blanco, así que va en su placa crema */
.xm-hero__evento-logo { flex: none; width: 118px; padding: 7px 8px; background: #FFFFFF; border-radius: 8px; line-height: 0; }
.xm-hero__evento-logo img { width: 100%; height: auto; display: block; }
/* Hasta 1279 px la tarjeta va en el flujo, debajo de la línea de prueba (así nunca pisa los botones);
   desde 1280 px se ancla abajo a la derecha de la portada. */
@media (max-width: 1279px) {
  .xm-hero__evento { max-width: 520px; }
}
@media (min-width: 1280px) {
  .xm-hero__evento { position: absolute; right: 32px; bottom: 44px; z-index: 2; margin: 0; max-width: 560px; padding: 16px 20px 16px 16px; gap: 16px; border-radius: 12px; }
  .xm-hero__evento-logo { width: 156px; padding: 9px 10px; }
  .xm-hero__evento-fecha { min-width: 64px; }
  .xm-hero__evento-fecha strong { font-size: 40px; }
  .xm-hero__evento-fecha span { font-size: 13px; }
  .xm-hero__evento-texto strong { font-size: 17px; }
  .xm-hero__evento-texto span { font-size: 14.5px; }
  .xm-hero__evento-accion { font-size: 15px; }
}
@media (max-width: 767px) {
  .xm-hero__evento { max-width: none; }
}
@media (max-width: 480px) {
  .xm-hero__evento-accion { display: none; }  /* la tarjeta entera es el enlace */
  .xm-hero__evento { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .xm-hero__evento-logo { width: 96px; }
  .xm-hero__evento-fecha { border-right: 0; border-left: 1px solid var(--xm-humo); padding-left: 12px; }
  .xm-hero__evento-texto { flex-basis: 100%; }
}

/* Borde de pasarela: la luz roja del escenario, no un degradado decorativo */
.xm-hero__borde {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--xm-rojo) 18%, var(--xm-rojo) 82%, transparent 100%);
  box-shadow: 0 0 26px rgba(226, 58, 58, 0.55);
}

/* ---------- Un solo momento de entrada: titular, texto y botones, escalonados ---------- */
@keyframes xmSubir {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.xm-hero__titulo span,
.xm-hero__texto,
.xm-hero__acciones,
.xm-hero__prueba {
  animation: xmSubir 0.9s var(--xm-resorte) both;
}
.xm-hero__titulo span:nth-child(1) { animation-delay: 0.15s; }
.xm-hero__titulo span:nth-child(2) { animation-delay: 0.27s; }
.xm-hero__texto    { animation-delay: 0.42s; }
.xm-hero__acciones { animation-delay: 0.56s; }
.xm-hero__prueba   { animation-delay: 0.70s; }
.xm-hero__evento   { animation: xmSubir 0.9s var(--xm-resorte) both; animation-delay: 0.9s; }

/* ---------- Sección Fashion Paradise 2026 + curso (debajo de la portada) ---------- */
section#fashion-paradise-2026.xm-evento { background: var(--xm-negro); color: var(--xm-crema); padding: 72px 0 64px; font-family: var(--xm-texto); }
.xm-evento__fotos { display: flex; gap: 10px; margin-bottom: 22px; }
.xm-evento__fotos img { border-radius: 12px; object-fit: cover; display: block; }
.xm-evento__foto-grande { width: 48%; height: 380px; }
.xm-evento__columna { width: 52%; display: flex; flex-direction: column; gap: 10px; }
.xm-evento__columna img { width: 100%; height: 185px; }
.xm-evento__titulo {
  font-family: var(--xm-display); font-weight: 400; text-transform: none; letter-spacing: -0.01em;
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; color: var(--xm-crema); margin: 0 0 18px; padding: 0;
}
.xm-evento__texto { font-size: 17px; line-height: 1.6; color: rgba(250, 249, 247, 0.84); max-width: 36em; margin: 0 0 18px; }
.xm-evento__texto strong { color: var(--xm-crema); font-weight: 700; }
.xm-evento__datos { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; max-width: 36em; }
.xm-evento__datos li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.5; color: rgba(250, 249, 247, 0.84); }
.xm-evento__datos li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--xm-ambar); transform: translateY(-2px); }
.xm-evento__datos strong { color: var(--xm-crema); font-weight: 700; }
.xm-evento__acciones { display: flex; flex-wrap: wrap; gap: 12px 14px; }
@media (max-width: 767px) {
  section#fashion-paradise-2026.xm-evento { padding: 54px 0 48px; }
  /* En el teléfono las fotos van apiladas: la grande a todo el ancho y las dos pequeñas debajo, lado a lado */
  .xm-evento__fotos { flex-direction: column; }
  .xm-evento__foto-grande { width: 100%; height: 380px; object-position: center 20%; }
  .xm-evento__columna { width: 100%; flex-direction: row; }
  .xm-evento__columna img { width: 50%; height: 150px; }
  .xm-evento__texto, .xm-evento__datos li { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .xm-hero__titulo span, .xm-hero__texto, .xm-hero__acciones, .xm-hero__prueba { animation: none; }
  .xm-hero__video { transition: none; }
  .xm-btn { transition: none; }
}

/* ---------- Móvil y tableta ---------- */
@media (max-width: 980px) {
  section#home.xm-hero { height: auto; }  /* anula el 65vh/130vh de la plantilla */
}
@media (max-width: 767px) {
  section#home.xm-hero {
    min-height: 92vh;
    align-items: flex-end;
    padding: 96px 0 44px;
  }
  .xm-hero__video { display: none; }       /* en el teléfono se muestra la foto: sin gasto de datos */
  .xm-hero__poster { object-position: center 20%; }
  .xm-hero__velo {
    background:
      linear-gradient(0deg, rgba(11, 11, 15, 0.96) 0%, rgba(11, 11, 15, 0.72) 38%, rgba(11, 11, 15, 0.12) 70%, rgba(11, 11, 15, 0.35) 100%);
  }
  .xm-hero__titulo { font-size: clamp(2.4rem, 11vw, 3.4rem); margin-bottom: 16px; }
  .xm-hero__texto { font-size: 1rem; margin-bottom: 22px; }
  .xm-hero__acciones { gap: 10px; }
  .xm-btn { padding: 15px 20px; font-size: 14.5px; }
  .xm-hero__prueba { font-size: 13px; }
}
@media (max-width: 380px) {
  .xm-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Barra de navegación (escritorio, > 800 px; el menú móvil de la plantilla sigue igual)
   ============================================================ */
header#nav-bar-xm.xm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  width: 100%;
  background: rgba(11, 11, 15, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250, 249, 247, 0.08);
  color: var(--xm-crema);
  font-family: var(--xm-texto);
}
.xm-nav__interior {
  max-width: 1440px; margin: 0 auto;
  padding: 0 28px;
  height: 78px;
  display: flex; align-items: center; gap: 20px;
}
.xm-nav__logo { display: block; flex: none; line-height: 0; }
header#nav-bar-xm.xm-nav .xm-nav__logo img { height: 46px; width: auto; }

.xm-nav__menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.xm-nav__item { position: relative; display: inline-block; }

.xm-nav__enlace {
  display: inline-block;
  font-family: var(--xm-texto);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--xm-crema);
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.xm-nav__enlace:hover, .xm-nav__enlace:focus, .xm-nav__item:hover > .xm-nav__enlace {
  color: var(--xm-crema);
  background: rgba(250, 249, 247, 0.08);
  border-color: rgba(250, 249, 247, 0.3);
  text-decoration: none;
}
.xm-nav__enlace:focus-visible { outline: 2px solid var(--xm-ambar); outline-offset: 2px; }
.xm-nav__enlace--actual { border-color: rgba(250, 249, 247, 0.22); background: rgba(250, 249, 247, 0.06); }
.xm-nav__enlace--app { background: var(--xm-rojo); border-color: var(--xm-rojo); }
.xm-nav__enlace--app:hover, .xm-nav__enlace--app:focus { background: #C92F2F; border-color: #C92F2F; }

.xm-nav__whatsapp {
  display: inline-flex; align-items: center; gap: 9px;
  flex: none;
  font-family: var(--xm-texto);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: var(--xm-crema);
  border: 1px solid rgba(250, 249, 247, 0.32);
  border-radius: 6px;
  padding: 11px 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.xm-nav__whatsapp:hover, .xm-nav__whatsapp:focus { color: var(--xm-crema); border-color: var(--xm-crema); background: rgba(250, 249, 247, 0.08); text-decoration: none; }
.xm-nav__whatsapp:focus-visible { outline: 2px solid var(--xm-ambar); outline-offset: 2px; }
.xm-nav__whatsapp svg { width: 19px; height: 19px; flex: none; }

/* Submenús (Modelos, Fashion Paradise): reemplazan el .dropdown-content gris de la plantilla */
.xm-nav .dropdown-content.xm-nav__sub {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 70;
  min-width: 230px; max-height: none; overflow: visible;
  padding: 8px;
  background: var(--xm-carbon);
  border: 1px solid var(--xm-humo);
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  transition: none;
}
.xm-nav .xm-nav__item:hover .dropdown-content.xm-nav__sub,
.xm-nav .xm-nav__item:focus-within .dropdown-content.xm-nav__sub { display: block; max-height: none; }
/* puente invisible para que el submenú no se cierre al bajar el cursor */
.xm-nav .xm-nav__item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.xm-nav .dropdown-content.xm-nav__sub a {
  display: block;
  font-family: var(--xm-texto);
  font-weight: 500;
  font-size: 15px;
  color: var(--xm-crema);
  background: transparent;
  padding: 11px 12px;
  border-radius: 6px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
.xm-nav .dropdown-content.xm-nav__sub a:hover, .xm-nav .dropdown-content.xm-nav__sub a:focus { background: rgba(250, 249, 247, 0.08); color: var(--xm-crema); }

/* ============================================================
   Menú del teléfono (≤ 800 px, donde style.css muestra #menu y oculta #nav-bar-xm)
   ============================================================ */
@media screen and (max-width: 800px) {
  nav#menu { z-index: 80; top: 64px; }            /* por encima de la portada (antes quedaba tapado); 64 = alto del banner nuevo */
  nav#menu #nav-mobile-banner.xm-movil {
    display: flex; align-items: center; gap: 10px;
    height: 64px; top: -64px; padding: 0 76px 0 16px;
    background: rgba(11, 11, 15, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(250, 249, 247, 0.08);
    cursor: default;
  }
  .xm-movil__logo { display: block; line-height: 0; flex: none; }
  .xm-movil__logo img { height: 38px; width: auto; }
  .xm-movil__whatsapp {
    margin-left: auto; flex: none;
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--xm-texto); font-weight: 600; font-size: 14px; line-height: 1;
    color: var(--xm-crema); text-decoration: none;
    border: 1px solid rgba(250, 249, 247, 0.32); border-radius: 6px; padding: 9px 11px;
  }
  .xm-movil__whatsapp svg { width: 18px; height: 18px; flex: none; }
  .xm-movil__whatsapp:hover, .xm-movil__whatsapp:focus { color: var(--xm-crema); border-color: var(--xm-crema); text-decoration: none; }
  @media (max-width: 360px) { .xm-movil__whatsapp span { display: none; } }

  /* Botón de las tres líneas: fijo arriba a la derecha, siempre visible */
  nav#menu #nav-mobile {
    width: 64px; height: 64px; top: -64px; right: 0;
    background: var(--xm-rojo); border: 0; border-radius: 0; cursor: pointer; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    padding: 0;
  }
  nav#menu #nav-mobile span {
    display: block; width: 24px; height: 2px; margin: 0; border-radius: 2px;
    background: #FFFFFF;
    transition: transform 0.3s var(--xm-resorte), opacity 0.2s ease;
  }
  nav#menu #nav-mobile.nav-open-mobile span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav#menu #nav-mobile.nav-open-mobile span:nth-child(2) { opacity: 0; }
  nav#menu #nav-mobile.nav-open-mobile span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Lista desplegable */
  nav#menu ul.nav-menu-mobile {
    background: var(--xm-carbon);
    border-bottom: 1px solid var(--xm-humo);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s var(--xm-resorte);
  }
  nav#menu ul.nav-menu-mobile.open-menu-mobile { max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
  nav#menu ul.nav-menu-mobile > li {
    background: transparent; text-transform: none; text-align: left;
    border-bottom: 1px solid var(--xm-humo);
    font-family: var(--xm-texto);
  }
  nav#menu ul.nav-menu-mobile > li > a {
    display: block; color: var(--xm-crema); font-weight: 600; font-size: 17px;
    line-height: 1.2; padding: 17px 20px; text-decoration: none;
  }
  nav#menu ul.nav-menu-mobile > li > a:active, nav#menu ul.nav-menu-mobile > li > a:focus { color: var(--xm-crema); background: rgba(250, 249, 247, 0.08); }
  nav#menu ul.nav-menu-mobile > li.xm-movil__destacado > a { color: var(--xm-ambar); }
  nav#menu ul.nav-menu-mobile > li.xm-movil__app > a { background: var(--xm-rojo); color: var(--xm-crema); margin: 12px 20px 16px; border-radius: 6px; text-align: center; }
  nav#menu ul.nav-menu-mobile > li.xm-movil__accesos {
    display: flex; gap: 10px; padding: 14px 20px; background: var(--xm-negro);
  }
  nav#menu ul.nav-menu-mobile .xm-movil__acceso {
    flex: 1 1 0; appearance: none; -webkit-appearance: none;
    background: rgba(250, 249, 247, 0.06); color: var(--xm-crema);
    border: 1px solid rgba(250, 249, 247, 0.3); border-radius: 6px;
    font-family: var(--xm-texto); font-weight: 600; font-size: 14.5px; line-height: 1.25;
    padding: 12px 10px; text-transform: none; cursor: pointer;
  }
  nav#menu ul.nav-menu-mobile .xm-movil__acceso:active { background: rgba(250, 249, 247, 0.14); }
}

/* ============================================================
   Slider de fotos (xm-slider): desplazamiento nativo con imanes (scroll-snap),
   flechas, teclado y deslizar con el dedo. Sin librerías.
   ============================================================ */
.xm-slider { position: relative; }
.xm-slider__pista {
  display: flex; gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.xm-slider__pista::-webkit-scrollbar { display: none; }
.xm-slider__pista:focus-visible { outline: 2px solid var(--xm-ambar); outline-offset: 4px; border-radius: 12px; }
.xm-slider__item { flex: 0 0 auto; width: min(68vw, 250px); margin: 0; scroll-snap-align: start; }
.xm-slider__item img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  border-radius: 12px; background: var(--xm-carbon);
}
.xm-slider__btn {
  position: absolute; top: 50%; transform: translateY(-60%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(250, 249, 247, 0.28);
  background: rgba(11, 11, 15, 0.74); color: var(--xm-crema);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.xm-slider__btn svg { width: 22px; height: 22px; }
.xm-slider__btn--prev { left: -8px; }
.xm-slider__btn--next { right: -8px; }
.xm-slider__btn:hover { background: var(--xm-rojo); border-color: var(--xm-rojo); }
.xm-slider__btn[disabled] { opacity: 0.3; cursor: default; }
.xm-slider__btn[disabled]:hover { background: rgba(11, 11, 15, 0.74); border-color: rgba(250, 249, 247, 0.28); }
.xm-slider__btn:focus-visible { outline: 2px solid var(--xm-ambar); outline-offset: 2px; }
@media (max-width: 767px) {
  .xm-slider__btn { width: 38px; height: 38px; }
  .xm-slider__btn svg { width: 18px; height: 18px; }
  .xm-slider__btn--prev { left: 2px; }
  .xm-slider__btn--next { right: 2px; }
}
/* Título del slider dentro de las secciones viejas de models.html */
.xm-slider-titulo { font-family: var(--xm-display); font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; margin: 0 0 16px; padding: 0; }

/* ============================================================
   Páginas 2026 (estructura propia, sin la plantilla): agencia-de-modelos-ambato.html
   ============================================================ */
.xm-pagina { font-family: var(--xm-texto); color: #1B1B21; background: var(--xm-crema); }
.xm-pagina p, .xm-pagina li { font-size: 17px; line-height: 1.6; }
.xm-pagina a { color: inherit; }
.xm-seccion { padding: 64px 0; }
.xm-seccion--oscura { background: var(--xm-negro); color: var(--xm-crema); }
.xm-seccion--oscura p { color: rgba(250, 249, 247, 0.84); }
.xm-seccion--gris { background: #F1EFEA; }
.xm-contenedor { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.xm-angosto { max-width: 760px; }
.xm-h1, .xm-h2, .xm-h3 { font-family: var(--xm-display); font-weight: 400; text-transform: none; letter-spacing: -0.012em; color: inherit; padding: 0; }
.xm-h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; margin: 0 0 20px; }
.xm-h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin: 0 0 18px; }
.xm-h3 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 8px; }
.xm-intro { font-size: clamp(1.1rem, 1.4vw, 1.25rem); max-width: 40em; }
.xm-portada-pagina { padding: 150px 0 72px; position: relative; overflow: hidden; }
.xm-portada-pagina .xm-hero__acciones { margin: 28px 0 18px; }
.xm-portada-pagina .xm-hero__prueba { color: rgba(250, 249, 247, 0.62); }
.xm-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0 0; }
.xm-tarjeta { background: #FFFFFF; border: 1px solid #E4E0D9; border-radius: 12px; padding: 24px 22px; }
.xm-tarjeta p { font-size: 15.5px; margin: 0 0 12px; color: #3A3A42; }
.xm-tarjeta a { font-weight: 600; color: #B02020; text-decoration: none; }
.xm-tarjeta a:hover { text-decoration: underline; }
.xm-galerias .xm-slider { margin: 10px 0 40px; }
.xm-pasos { list-style: none; counter-reset: paso; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.xm-pasos li { counter-increment: paso; background: #FFFFFF; border: 1px solid #E4E0D9; border-radius: 12px; padding: 22px; font-size: 16px; }
.xm-pasos li::before { content: counter(paso); display: block; font-family: var(--xm-display); font-size: 2.2rem; line-height: 1; color: var(--xm-rojo); margin-bottom: 10px; }
.xm-pasos strong { display: block; margin-bottom: 6px; font-size: 17px; }
.xm-lugares { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.xm-lugares li { font-size: 15px; padding: 9px 14px; border: 1px solid #D9D4CB; border-radius: 999px; background: #FFFFFF; }
.xm-lugares li.xm-lugares__sede { background: var(--xm-negro); color: var(--xm-crema); border-color: var(--xm-negro); }
.xm-clientes { font-size: 17px; color: #3A3A42; }
.xm-faq details { border-top: 1px solid #D9D4CB; padding: 14px 0; }
.xm-faq details:last-child { border-bottom: 1px solid #D9D4CB; }
.xm-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.xm-faq summary::-webkit-details-marker { display: none; }
.xm-faq summary::after { content: '+'; font-family: var(--xm-display); font-size: 1.6rem; line-height: 1; color: var(--xm-rojo); flex: none; }
.xm-faq details[open] summary::after { content: '–'; }
.xm-faq details p { margin: 12px 0 0; max-width: 46em; }
.xm-cta-final { text-align: left; }
.xm-cta-final .xm-hero__acciones { margin-top: 24px; }
.xm-migas { font-size: 14px; color: rgba(250, 249, 247, 0.6); margin: 0 0 18px; }
.xm-migas a { color: rgba(250, 249, 247, 0.8); text-decoration: none; }
.xm-migas a:hover { text-decoration: underline; }
.xm-btn--oscuro { background: var(--xm-negro); color: var(--xm-crema); }
.xm-btn--oscuro:hover, .xm-btn--oscuro:focus { background: #26262F; color: var(--xm-crema); text-decoration: none; }
@media (max-width: 767px) {
  .xm-seccion { padding: 48px 0; }
  .xm-portada-pagina { padding: 110px 0 52px; }
  .xm-pagina p, .xm-pagina li { font-size: 16px; }
}

/* Pantallas anchas (la mayoría de escritorios): botones más grandes */
@media (min-width: 1440px) {
  .xm-nav__interior { height: 84px; padding: 0 36px; }
  .xm-nav__menu { gap: 8px; }
  .xm-nav__enlace { font-size: 17px; padding: 13px 18px; }
  .xm-nav__whatsapp { font-size: 16px; padding: 12px 18px; }
  .xm-nav__whatsapp svg { width: 21px; height: 21px; }
  header#nav-bar-xm.xm-nav .xm-nav__logo img { height: 50px; }
  .xm-nav .dropdown-content.xm-nav__sub a { font-size: 16px; padding: 12px 14px; }
}

/* Pantallas medianas: la barra se compacta antes de pasar al menú móvil (≤ 800 px) */
@media (max-width: 1280px) {
  .xm-nav__interior { padding: 0 18px; gap: 12px; }
  .xm-nav__enlace { font-size: 14px; padding: 10px 12px; }
  .xm-nav__whatsapp { font-size: 14px; padding: 10px 12px; }
  header#nav-bar-xm.xm-nav .xm-nav__logo img { height: 40px; }
}
@media (max-width: 1120px) {
  .xm-nav__whatsapp .xm-nav__numero { display: none; }   /* queda el icono y la palabra WhatsApp */
  .xm-nav__enlace { font-size: 13.5px; padding: 9px 10px; }
  .xm-nav__menu { gap: 3px; }
}
@media (max-width: 940px) {
  .xm-nav__interior { height: 68px; }
  .xm-nav__enlace { font-size: 13px; padding: 8px 8px; }
  .xm-nav__whatsapp { padding: 9px 10px; }
  header#nav-bar-xm.xm-nav .xm-nav__logo img { height: 34px; }
}
