/* ==========================================================================
   ONLY SHOES — estilos globales de consistencia
   Un mismo ancho de contenido (1200px) en todas las páginas, con fondos de
   sección de lado a lado, pie de página único y botón flotante compacto.
   ========================================================================== */

:root {
  --os-max: 1200px;
  --os-gutter: 20px;
  --os-pad-x: max(var(--os-gutter), calc((100% - var(--os-max)) / 2));
  --os-text-muted: #b3b3b3;
  --os-text-soft: #9a9a9a;

  /* Marca: una sola fuente de verdad para colores, radios y letras */
  --os-red: #E8000D;          /* fondos de botones y acentos */
  --os-red-hover: #c0000b;
  --os-red-text: #ff3b45;     /* rojo cuando es texto sobre negro (≥5:1) */
  --os-wa: #25D366;
  --os-wa-hover: #1ebe57;
  --os-wa-ink: #0b2613;       /* texto sobre verde WhatsApp (≥8:1) */
  --os-bg: #0a0a0a;
  --os-surface: #121212;
  --os-surface-2: #1a1a1a;
  --os-line: #2a2a2a;
  --os-text: #ffffff;
  --os-radius: 8px;           /* botones y campos */
  --os-radius-lg: 14px;       /* tarjetas y ventanas */
  --os-font: 'DM Sans', sans-serif;
  --os-display: 'Bebas Neue', sans-serif;

  /* Astra traía azul (#0085FF / #0177E3) como color principal */
  --ast-global-color-0: var(--os-red-text);
  --ast-global-color-1: var(--os-red);
  accent-color: var(--os-red);
}

/* ---------- 1. Ancho único ---------- */

/* Contenedores raíz de Elementor: de lado a lado, sin rellenos extra.
   Cada sección define su propio ancho interno de 1200px. */
.ast-page-builder-template .elementor > .e-con.e-parent {
  --container-max-width: 100%;
  --content-width: 100%;
  --width: 100%;
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
  --gap: 0px 0px;
  --row-gap: 0px;
  --column-gap: 0px;
}

/* Cada página ya trae su propio encabezado; el título suelto de Astra sobra */
.ast-page-builder-template .entry-header { display: none; }

/* Contacto: bloques al mismo ancho que el resto */
.os-contact > .os-contact-actions,
.os-contact > .os-contact-grid,
.os-contact > .os-contact-map-section { max-width: var(--os-max); }
/* La dirección larga no debe empujar la tarjeta fuera de la pantalla en celular */
.os-contact .os-contact-actions > * { min-width: 0; }
.os-contact .os-action-value { white-space: normal; overflow-wrap: anywhere; }

.elementor-widget-html :is(section, footer)[class^="os-"] {
  padding-left: var(--os-pad-x);
  padding-right: var(--os-pad-x);
  box-sizing: border-box;
}

/* Catálogo (tienda y filtros): mismo ancho que el resto */
body .onlyshoes__page .onlyshoes__hero,
body .onlyshoes__page .onlyshoes__filters,
body .onlyshoes__page .onlyshoes__results-bar,
body .onlyshoes__page .onlyshoes__grid-wrap {
  padding-left: var(--os-pad-x);
  padding-right: var(--os-pad-x);
  box-sizing: border-box;
}
body .onlyshoes__page .onlyshoes__hero { overflow: hidden; }

/* ---------- 2. Portada (inicio) ---------- */

/* Más baja para que se vea que hay contenido debajo */
.elementor-widget-html .os-hero {
  min-height: clamp(440px, calc(100svh - 230px), 760px);
  background: #000;
}

.os-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #d0d0d0 !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.os-hero-scroll:hover { color: #fff !important; }
.os-hero-scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid #E8000D;
  border-bottom: 2px solid #E8000D;
  transform: rotate(45deg);
  animation: os-bounce 1.6s ease-in-out infinite;
}
@keyframes os-bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%      { transform: translateY(6px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .os-hero-scroll-arrow { animation: none; }
}

@media (max-width: 768px) {
  .os-hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; }
  .os-hero-btns .os-btn-primary,
  .os-hero-btns .os-btn-whatsapp { justify-content: center; text-align: center; }
  .elementor-widget-html .os-hero { padding-top: 40px; padding-bottom: 72px; }
}

/* Categorías: un poco menos altas para no tapar todo */
.elementor-widget-html .os-cats { height: 60vh; max-height: 620px; }
@media (max-width: 768px) {
  .elementor-widget-html .os-cats { height: auto; max-height: none; gap: 12px; }
}

/* Mapa y tienda: tamaño razonable */
.elementor-widget-html .os-location { padding-top: 64px; padding-bottom: 56px; }
.os-location .os-location-grid { min-height: 0; }
.os-location .os-location-map { min-height: 340px; }
.os-location .os-location-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; }
.os-location img.os-store-photo { height: 240px; }
.os-location .os-store-item p { color: var(--os-text-muted); }
@media (max-width: 768px) {
  .os-location .os-location-map,
  .os-location .os-location-map iframe { min-height: 280px; height: 280px; }
  .os-location img.os-store-photo { height: 200px; }
}

/* Textos pequeños o poco visibles */
.os-section-label,
.os-cat-label,
.os-trust-text .os-section-label,
.os-footer-label { font-size: 12px !important; }
.os-trust-text p { color: var(--os-text-muted) !important; }

/* ---------- 3. Página de producto ---------- */

/* Botón de compra justo debajo del precio, antes de los colores */
.os-pp .os-pi { display: flex; flex-direction: column; }
.os-pp .os-pi > .os-cats         { order: 1; }
.os-pp .os-pi > .os-ptitle       { order: 2; }
.os-pp .os-pi > .os-sku          { order: 3; }
.os-pp .os-pi > .os-prices       { order: 4; }
.os-pp .os-pi > .os-price-note   { order: 5; }
.os-pp .os-pi > .os-piloto-ui    { order: 6; }
.os-pp .os-pi > .os-wa           { order: 7; }
.os-pp .os-pi > .os-note         { order: 8; }
.os-pp .os-pi > .os-divider      { order: 9; }
.os-pp .os-pi > .os-desc         { order: 10; }
.os-pp .os-pi > .os-colors       { order: 11; }
.os-pp .os-pi > .os-perks        { order: 12; }
.os-pp .os-pi > *                { order: 20; } /* cualquier bloque nuevo va al final */
.os-pp .os-pi > .os-scroll-hint  { order: 30; }
.os-pp .os-pi > .os-divider { margin-top: 20px; }
.os-pp .os-pi > .os-colors { margin-top: 12px; }

/* Visibilidad de textos */
.os-pp .os-sku { color: var(--os-text-soft) !important; font-size: 13px !important; }
.os-pp .os-price-note,
.os-pp .os-note { color: var(--os-text-muted) !important; font-size: 13px !important; }
.os-pp .os-cat-pill { color: #cfcfcf !important; border-color: #3a3a3a !important; font-size: 11px !important; }
.os-pp .os-cat-pill.os-brand { display: none !important; } /* la marca ya aparece en la foto */
.os-pp .os-breadcrumb,
.os-pp .os-breadcrumb a { color: var(--os-text-soft) !important; }
/* Aviso "solo por WhatsApp": compacto para no empujar el botón hacia abajo */
.os-pp .os-pi > .os-piloto-ui { margin: 16px 0 0 !important; padding: 10px 14px !important; }
.os-pp .os-piloto-whatsapp-hint { color: #d6d6d6 !important; font-size: 13px !important; margin: 0 !important; line-height: 1.5 !important; }
.os-pp .os-piloto-whatsapp-hint .os-piloto-arrow { display: inline !important; font-size: 15px !important; margin: 0 0 0 4px !important; }

/* Barra fija de compra en celular */
.os-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid #262626;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.os-buybar-info { min-width: 0; flex: 1 1 auto; }
.os-buybar-name {
  display: block;
  color: #cfcfcf;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-buybar-price {
  display: block;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  line-height: 1;
}
body .os-buybar .os-buybar-btn.os-buybar-btn-buy { background: #E8000D !important; }
body .os-buybar .os-buybar-btn {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0 !important;
  padding: 13px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  background: #25D366 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  cursor: pointer;
}
@media (max-width: 768px) {
  .os-buybar { display: flex; }
  body.os-buybar-on .os-buybar { transform: translateY(0); }
  body.os-buybar-on { padding-bottom: 72px; }
}

/* ---------- 4. Botón flotante de WhatsApp (compacto y desplegable) ---------- */

html body .os-float-wa {
  bottom: 20px;
  right: 20px;
  width: auto;
  height: 52px;
  min-width: 52px;
  padding: 0 13px;
  gap: 0;
  border-radius: 999px;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: padding 0.25s ease, transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}
html body .os-float-wa svg { width: 26px; height: 26px; flex: 0 0 26px; }
html body .os-float-wa .os-float-wa-text {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
}
html body .os-float-wa.is-open,
html body .os-float-wa:focus-visible { padding: 0 18px 0 13px; }
html body .os-float-wa.is-open .os-float-wa-text,
html body .os-float-wa:focus-visible .os-float-wa-text { max-width: 160px; opacity: 1; margin-left: 8px; }
@media (hover: hover) {
  html body .os-float-wa:hover { padding: 0 18px 0 13px; transform: none; }
  html body .os-float-wa:hover .os-float-wa-text { max-width: 160px; opacity: 1; margin-left: 8px; }
}
@media (max-width: 768px) {
  html body .os-float-wa { bottom: 16px; right: 16px; height: 48px; min-width: 48px; padding: 0 12px; border-radius: 999px; }
  html body .os-float-wa svg { width: 24px; height: 24px; flex-basis: 24px; }
  html body .os-float-wa .os-float-wa-text { display: inline-block; }
}
/* Cuando la barra de compra está visible, el flotante se esconde */
@media (max-width: 768px) {
  body.os-buybar-on .os-float-wa { opacity: 0; pointer-events: none; transform: translateY(20px); }
}

/* ---------- 4b. Catálogo: el contenedor de búsqueda no debe encoger la página ---------- */
.site-content > .ast-container:has(> .onlyshoes__page) {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ast-container > .onlyshoes__page { flex: 1 1 100%; width: 100%; max-width: 100%; }

/* ---------- 4c. Compra directa ---------- */

/* Ícono del carrito en el encabezado */
.os-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 14px;
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background .2s;
}
.os-cart-link:hover { background: rgba(255,255,255,.08); }
.os-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #E8000D;
  color: #fff;
  font: 700 11px/18px 'DM Sans', sans-serif;
  text-align: center;
  box-sizing: border-box;
}
.os-cart-count[hidden] { display: none; }
#ast-mobile-header .os-cart-link { margin-right: 6px; }

/* Acceso flotante al carrito (aparece cuando hay productos) */
.os-cart-pill {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9997;
  display: none;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #111 !important;
  text-decoration: none !important;
  font: 700 13px 'DM Sans', sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.os-cart-pill.is-visible { display: inline-flex; }
.os-cart-pill-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #E8000D; color: #fff; font-size: 12px; line-height: 22px; text-align: center; box-sizing: border-box;
}
.os-piloto-floating { display: none !important; } /* reemplazado por .os-cart-pill */
@media (max-width: 768px) {
  .os-cart-pill { left: 16px; bottom: 16px; height: 46px; }
  .os-cart-pill > span:first-of-type { display: none; }
  body.os-buybar-on .os-cart-pill { display: none; }
}
.os-cart-link.is-bump, .os-cart-pill.is-bump { animation: os-cart-bump .5s ease; }
@keyframes os-cart-bump {
  0% { transform: scale(1); } 35% { transform: scale(1.25); } 70% { transform: scale(.92); } 100% { transform: scale(1); }
}

/* Imagen que "vuela" al carrito */
.os-fly {
  position: fixed;
  z-index: 100001;
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .7s cubic-bezier(.5,-.2,.7,.6), opacity .7s ease;
}

/* Ventana de compra */
html.os-buy-open { overflow: hidden; }
.os-buy-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.os-buy-modal[hidden] { display: none; }
.os-buy-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); opacity: 0; transition: opacity .2s; }
.os-buy-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px 24px 22px;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  background: #121212;
  color: #f2f2f2;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  box-sizing: border-box;
}
.os-buy-modal.is-open .os-buy-backdrop { opacity: 1; }
.os-buy-modal.is-open .os-buy-dialog { transform: none; opacity: 1; }
.os-buy-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border: 0 !important; border-radius: 999px; background: transparent !important;
  color: #bbb !important; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 !important;
}
.os-buy-close:hover { color: #fff !important; background: #222 !important; }
.os-buy-title { margin: 0 0 14px; color: #fff; font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; line-height: 1; }
.os-buy-title-center { text-align: center; }
.os-buy-product { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #262626; border-radius: 12px; background: #0b0b0b; margin-bottom: 14px; }
.os-buy-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #1a1a1a; flex: none; }
.os-buy-name { margin: 0 0 4px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; text-transform: uppercase; }
.os-buy-price { margin: 0; color: #cfcfcf; font-size: 14px; }
.os-buy-note { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid #E8000D; background: #1b1b1b; color: #e6e6e6; font-size: 13px; line-height: 1.5; border-radius: 4px; }
.os-buy-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin: 0 0 16px; }
.os-buy-size {
  min-height: 48px; border: 1px solid #3a3a3a !important; border-radius: 8px; background: #1c1c1c !important;
  color: #fff !important; font: 700 15px 'DM Sans', sans-serif; cursor: pointer; padding: 0 !important; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.os-buy-size:hover { border-color: #777 !important; }
.os-buy-size[aria-checked="true"] { border: 2px solid #E8000D !important; background: rgba(232,0,13,.14) !important; }
.os-buy-primary, .os-buy-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px;
  padding: 12px 16px !important; border-radius: 8px; font: 700 14px 'DM Sans', sans-serif; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none !important; cursor: pointer; box-sizing: border-box; transition: background .2s, opacity .2s;
}
.os-buy-primary { border: 0 !important; background: #E8000D !important; color: #fff !important; }
.os-buy-primary:hover { background: #c0000b !important; }
.os-buy-primary:disabled { opacity: .45; cursor: not-allowed; }
.os-buy-secondary { border: 1px solid #444 !important; background: transparent !important; color: #fff !important; }
.os-buy-secondary:hover { background: #1f1f1f !important; }
.os-buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.os-buy-link { display: block; margin-top: 14px; color: #bdbdbd !important; font-size: 13px; text-align: center; text-decoration: underline !important; }
.os-buy-error { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #ec6c6c; background: #401f1f; color: #fff; font-size: 13px; border-radius: 4px; }
.os-buy-error[hidden] { display: none; }
.os-buy-question { margin: 6px 0 12px; color: #fff; font-size: 17px; font-weight: 700; text-align: center; }
.os-buy-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: os-spin .7s linear infinite; }
@keyframes os-spin { to { transform: rotate(360deg); } }
.os-buy-check { display: flex; justify-content: center; margin: 2px 0 10px; }
.os-buy-check svg { width: 60px; height: 60px; fill: none; stroke: #25D366; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.os-buy-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: os-draw .5s ease forwards; }
.os-buy-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: os-draw .35s .4s ease forwards; }
@keyframes os-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 600px) {
  .os-buy-modal { align-items: flex-end; padding: 0; }
  .os-buy-dialog { max-width: none; border-radius: 18px 18px 0 0; padding: 24px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .os-buy-actions { grid-template-columns: 1fr; }
}

/* Selector de tallas de la ficha con el mismo estilo que la ventana de compra */
#os-piloto .os-piloto-size span { border-color: #3a3a3a; background: #1c1c1c; border-radius: 8px; }
#os-piloto .os-piloto-size input:checked + span { border: 2px solid #E8000D; background: rgba(232,0,13,.14); }
#os-piloto .os-piloto-actions button[type="submit"] {
  background: #E8000D; color: #fff !important; text-transform: uppercase; letter-spacing: 1px;
  padding: 14px 22px; border-radius: 8px; font-family: 'DM Sans', sans-serif;
}
#os-piloto .os-piloto-actions button[type="submit"]:hover { background: #c0000b; }
#os-piloto .os-piloto-actions a { color: #fff; text-decoration: underline; }

/* Botón de agregar en la ficha mientras se procesa */
#os-piloto button.is-busy { display: inline-flex; align-items: center; gap: 8px; opacity: .85; }


/* ---------- 5. Pie de página único ---------- */

/* El pie viejo de Astra (solo copyright) y los pies dentro de páginas
   quedan reemplazados por el pie global. */
.site-footer,
.elementor-widget-html .os-footer { display: none !important; }

.os-gfooter {
  background: #0b0b0b;
  border-top: 1px solid #1a1a1a;
  padding: 56px var(--os-pad-x) 0;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
}
.os-gfooter-grid {
  max-width: var(--os-max);
  margin: 0 auto;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.os-gfooter-col { min-width: 0; }
.os-gfooter-title { color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 16px; letter-spacing: .5px; }
.os-gfooter-label { color: var(--os-text-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; margin: 0 0 18px; }
.os-gfooter-desc { color: #b5b5b5; font-size: 14px; line-height: 1.8; margin: 0 0 22px; max-width: 360px; }
.os-gfooter-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff !important; text-decoration: none !important;
  padding: 13px 20px; border-radius: 10px; font-weight: 700; font-size: 14px;
  transition: transform .2s ease, background .2s ease;
}
.os-gfooter-wa:hover { background: #1ebe57; transform: translateY(-1px); }
.os-gfooter-card { background: #111; border: 1px solid #1f1f1f; border-radius: 14px; padding: 18px; }
.os-gfooter-card p { margin: 0 0 4px; color: #b0b0b0; font-size: 14px; }
.os-gfooter-card .os-gfooter-card-title { color: #fff; font-weight: 700; margin-bottom: 6px; }
.os-gfooter-card .os-gfooter-card-hl { color: #25D366; font-size: 15px; font-weight: 800; margin: 0; }
.os-gfooter-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.os-gfooter-links a { color: #cfcfcf !important; font-size: 14px; text-decoration: none !important; }
.os-gfooter-links a:hover { color: #fff !important; text-decoration: underline !important; }
.os-gfooter-social { display: flex; flex-direction: column; gap: 12px; }
.os-gfooter-social a {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 260px;
  padding: 14px 16px; border-radius: 12px; box-sizing: border-box;
  color: #fff !important; text-decoration: none !important; font-size: 14px; font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}
.os-gfooter-social a:hover { opacity: .92; transform: translateY(-1px); }
.os-gfooter-social .os-gfooter-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.os-gfooter-social .os-gf-fb { background: #1877F2; }
.os-gfooter-social .os-gf-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.os-gfooter-social .os-gf-tt { background: #111; border: 1px solid #2a2a2a; }
.os-gfooter-bottom { max-width: var(--os-max); margin: 0 auto; padding: 20px 0 24px; border-top: 1px solid #1a1a1a; text-align: center; }
.os-gfooter-bottom p { margin: 0; color: var(--os-text-soft); font-size: 13px; line-height: 1.6; }

@media (max-width: 992px) {
  .os-gfooter-grid { grid-template-columns: 1fr; gap: 28px; }
  .os-gfooter-desc { max-width: 100%; }
  .os-gfooter-social a { max-width: 100%; }
}
@media (max-width: 768px) {
  .os-gfooter { padding-top: 40px; }
  .os-gfooter-title { font-size: 22px; }
  .os-gfooter-wa { width: 100%; justify-content: center; box-sizing: border-box; }
  .os-gfooter-bottom { padding-bottom: 84px; } /* espacio para el botón flotante */
}

/* ---------- 6. Sistema visual: logo, menú, legibilidad ---------- */

/* Logo: solo el logo de la marca, más grande. El nombre en letra genérica
   queda oculto a la vista pero disponible para lectores de pantalla. */
.site-header .site-title {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.site-header .site-logo-img .custom-logo-link img.custom-logo {
  width: 84px !important;
  max-width: 84px !important;
  height: auto !important;
}
.site-header .site-description {
  margin: 0;
  color: var(--os-text-muted) !important;
  font: 500 13px/1.3 var(--os-font);
  letter-spacing: .3px;
}
@media (max-width: 921px) {
  .site-header .site-logo-img .custom-logo-link img.custom-logo { width: 60px !important; max-width: 60px !important; }
  .site-header .ast-site-title-wrap { display: none; }
}

/* Menú: misma letra que el resto del sitio y sin el azul de Astra */
.main-header-menu .menu-link {
  font-family: var(--os-font) !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff !important;
}
.main-header-menu .menu-item > .menu-link { position: relative; }
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .menu-link:hover { color: #fff !important; }
@media (min-width: 922px) {
  .main-header-menu .menu-item > .menu-link::after {
    content: ''; position: absolute; left: 1em; right: 1em; bottom: 6px; height: 2px;
    background: var(--os-red); transform: scaleX(0); transform-origin: left;
    transition: transform .2s ease;
  }
  .main-header-menu .current-menu-item > .menu-link::after,
  .main-header-menu .menu-link:hover::after { transform: scaleX(1); }
}

/* Foco visible al navegar con teclado */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Rojo como texto: el tono más claro de la marca para que se lea sobre negro */
.os-section-label,
.os-cat-label,
.os-hero-sub,
.os-rel-lbl,
.onlyshoes__hero-label,
.onlyshoes__card-off { color: var(--os-red-text) !important; }

/* Botones verdes de WhatsApp: texto e ícono oscuros (el blanco daba 2:1) */
/* El id va aparte: dentro de :is() subiría la especificidad y pisaría los botones de borde */
html body :is(.only-shoes-whatsapp-btn, .os-gfooter-wa, .os-location-wa, .os-btn-whatsapp, .os-float-wa),
html body #os-piloto-whatsapp {
  color: var(--os-wa-ink) !important;
}
html body :is(.only-shoes-whatsapp-btn, .os-gfooter-wa, .os-location-wa, .os-btn-whatsapp, .os-float-wa) svg,
html body #os-piloto-whatsapp svg {
  fill: currentColor !important;
}
html body .os-buybar .os-buybar-btn:not(.os-buybar-btn-buy) { color: var(--os-wa-ink) !important; }
/* Botones de borde (sin relleno): texto verde, no oscuro */
html body .os-hero .os-btn-whatsapp { color: var(--os-wa) !important; }
html body .os-hero .os-btn-whatsapp:hover { color: var(--os-wa-ink) !important; background: var(--os-wa) !important; }
/* Sin el brillo verde alrededor de los botones */
html body :is(.only-shoes-whatsapp-btn, #os-piloto-whatsapp, .os-float-wa) { box-shadow: 0 4px 14px rgba(0, 0, 0, .35) !important; }

/* ---------- 9. Portada: destacados, marcas, ubicación ---------- */

/* Hero más bajo y con un solo titular, para que los productos asomen en la primera pantalla */
.elementor-widget-html .os-hero { min-height: clamp(380px, calc(70svh - 140px), 560px); }
.os-hero .os-hero-title { min-height: 0 !important; }
.os-hero .os-hero-desc { min-height: 0 !important; color: #d6d6d6; }
.os-hero .os-btn-primary, .os-hero .os-btn-whatsapp { border-radius: var(--os-radius) !important; }

.os-dest, .os-brands {
  padding: 64px var(--os-pad-x); box-sizing: border-box; background: var(--os-bg);
  font-family: var(--os-font); color: #fff;
}
.os-dest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.os-dest-title { margin: 6px 0 0; color: #fff; font: 400 clamp(34px, 5vw, 52px)/1 var(--os-display); letter-spacing: 1px; }
.os-dest .os-section-label, .os-brands .os-section-label { font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.os-dest-all {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap;
  color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important;
  border-bottom: 2px solid var(--os-red);
}
.os-dest-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.os-dest-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid #1e1e1e; border-radius: 12px; background: #111;
  color: #fff !important; text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease;
}
.os-dest-card:hover { border-color: #3a3a3a; transform: translateY(-3px); }
.os-dest-img { position: relative; display: block; aspect-ratio: 1; background: #0e0e0e; overflow: hidden; }
.os-dest-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.os-dest-card:hover .os-dest-img img { transform: scale(1.04); }
.os-dest-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 4px;
  background: var(--os-red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.os-dest-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; border-top: 1px solid #1e1e1e; }
.os-dest-brand { color: var(--os-text-soft); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.os-dest-name {
  font-size: 14px; font-weight: 700; line-height: 1.3; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.os-dest-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2px; font: 400 26px/1 var(--os-display); letter-spacing: 1px; }
.os-dest-online { font: 700 11px/1 var(--os-font); letter-spacing: .5px; color: #7ee2a0; text-transform: uppercase; }
@media (max-width: 900px) {
  .os-dest { padding-top: 48px; padding-bottom: 48px; }
  .os-dest-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin: 0 calc(var(--os-pad-x) * -1); padding-left: var(--os-pad-x); padding-right: var(--os-pad-x);
    scroll-padding-left: var(--os-pad-x); scrollbar-width: none;
  }
  .os-dest-row::-webkit-scrollbar { display: none; }
  .os-dest-card { scroll-snap-align: start; }
  .os-dest-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

.os-brands { padding-top: 24px; text-align: center; }
.os-brands-list {
  list-style: none; margin: 28px auto 0; padding: 0; max-width: var(--os-max);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
}
.os-brands-list a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 110px; padding: 16px 10px; border: 1px solid #1e1e1e; border-radius: 12px; background: #111;
  color: var(--os-text-muted) !important; font-size: 13px; font-weight: 700; text-decoration: none !important;
  transition: border-color .2s ease, color .2s ease;
}
.os-brands-list img { width: 72px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; transition: opacity .2s ease; }
.os-brands-list a:hover { border-color: #3a3a3a; color: #fff !important; }
.os-brands-list a:hover img { opacity: 1; }
@media (max-width: 900px) { .os-brands-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Ubicación: tarjeta con enlace a Google Maps en lugar del mapa incrustado */
.os-location .os-map-card {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  height: 100%; min-height: 340px; padding: 32px; box-sizing: border-box; border-radius: 14px;
  background: radial-gradient(circle at 80% 20%, rgba(232, 0, 13, .18), transparent 55%), #111;
  border: 1px solid #1f1f1f; color: #fff !important; text-decoration: none !important;
}
.os-location .os-map-card svg { width: 40px; height: 40px; color: var(--os-red-text); }
.os-location .os-map-card strong { font: 400 34px/1 var(--os-display); letter-spacing: 1px; }
.os-location .os-map-card span { color: var(--os-text-muted); font-size: 15px; line-height: 1.6; }
.os-location .os-map-card em {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--os-radius);
  background: #fff; color: #111; font: 700 14px var(--os-font); font-style: normal; letter-spacing: 1px; text-transform: uppercase;
}
.os-location .os-map-card:hover em { background: #e6e6e6; }
@media (max-width: 768px) { .os-location .os-map-card { min-height: 260px; padding: 24px; } }

/* Íconos de línea en lugar de emojis */
.os-ico { width: 20px; height: 20px; flex: 0 0 20px; color: var(--os-red-text); }
.os-store-icon .os-ico { width: 22px; height: 22px; }

/* Redes del pie con los colores de la marca, no los de cada plataforma */
html body .os-gfooter-social :is(.os-gf-fb, .os-gf-ig, .os-gf-tt) {
  background: #141414 !important; border: 1px solid #262626 !important;
}
html body .os-gfooter-social a:hover { border-color: #444 !important; opacity: 1; }

/* Etiqueta "Colección" sobre las fotos: fondo propio para que se lea sobre cualquier imagen */
html body .os-cats .os-cat-label {
  display: inline-block; padding: 5px 10px; border-radius: 4px;
  background: rgba(0, 0, 0, .72); color: #fff !important;
}
/* Flechas de "Ver más": quietas (el rebote distraía y no aportaba) */
.os-hero-scroll-arrow, .os-pp .os-scroll-hint-arrow { animation: none !important; }

/* ---------- 10. Celular: toques de al menos 44px y movimiento reducido ---------- */
.os-gfooter-links a,
.os-pp .os-breadcrumb a,
.os-pp .os-btn-back,
.os-pp .os-rel-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #fff !important; border-bottom-color: var(--os-red) !important;
}
/* Enlace dentro del texto: área de toque más alta sin romper la línea */
.os-pp .os-perk a { padding: 12px 0; margin: -12px 0; }
.os-pp .os-rel-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.os-pp .os-rel-lbl { display: block; }
.os-gfooter-links { gap: 0 20px; }
.os-pp .os-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.site-header .custom-logo-link { display: inline-flex; min-height: 44px; align-items: center; }
#ast-mobile-header .menu-toggle,
.ast-mobile-header-wrap .menu-toggle { min-width: 44px; min-height: 44px; }
.os-cart-link { width: 44px; height: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- 8. Dudas (shortcode [os_dudas]) ---------- */
.os-dudas {
  max-width: 860px; margin: 0 auto; padding: 72px 20px 80px; box-sizing: border-box;
  color: var(--os-text); font-family: var(--os-font);
}
.os-dudas-head { text-align: center; margin-bottom: 40px; }
.os-dudas-head .os-section-label { font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.os-dudas-title {
  margin: 8px 0 12px; color: #fff; font: 400 clamp(40px, 6vw, 64px)/1 var(--os-display); letter-spacing: 1px;
}
.os-dudas-sub { margin: 0 auto 24px; max-width: 520px; color: var(--os-text-muted); font-size: 16px; line-height: 1.6; }
.os-dudas-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.os-dudas-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--os-line); border-radius: 999px; background: var(--os-surface);
  color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important;
  transition: border-color .15s ease, background-color .15s ease;
}
.os-dudas-nav a:hover { border-color: var(--os-red); }
.os-dudas-group { margin-top: 40px; scroll-margin-top: 100px; }
.os-dudas-group-title {
  margin: 0 0 14px; color: #fff; font: 400 32px/1 var(--os-display); letter-spacing: 1px;
}
.os-dudas-item { border: 1px solid #1f1f1f; border-radius: 12px; background: var(--os-surface); margin-bottom: 10px; overflow: hidden; }
.os-dudas-q { margin: 0; font: inherit; }
.os-dudas-q button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 60px; padding: 16px 20px; margin: 0;
  border: 0 !important; background: transparent !important; color: #fff !important;
  font: 700 16px/1.4 var(--os-font); text-align: left; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.os-dudas-q button:hover { background: #171717 !important; }
.os-dudas-icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.os-dudas-icon::before, .os-dudas-icon::after {
  content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px;
  background: var(--os-red-text); transition: transform .2s ease;
}
.os-dudas-icon::after { transform: rotate(90deg); }
.os-dudas-q button[aria-expanded="true"] .os-dudas-icon::after { transform: rotate(0deg); }
.os-dudas-a { padding: 0 20px 18px; color: #c9c9c9; font-size: 15px; line-height: 1.75; }
.os-dudas-a p { margin: 0 0 8px; }
.os-dudas-a ul { margin: 4px 0 8px; padding-left: 20px; }
.os-dudas-a strong { color: #fff; }
.os-dudas-a a { color: var(--os-wa) !important; font-weight: 700; }
.os-dudas-cta { margin-top: 48px; padding: 28px 20px; border: 1px solid #1f1f1f; border-radius: 14px; background: var(--os-surface); text-align: center; }
.os-dudas-cta p { margin: 0 0 16px; color: #fff; font-size: 18px; font-weight: 700; }
.os-dudas-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 16px; color: var(--os-text-muted) !important; text-decoration: underline !important; }
@media (max-width: 600px) {
  .os-dudas { padding-top: 48px; }
  .os-dudas-cta .os-gfooter-wa { width: 100%; justify-content: center; box-sizing: border-box; }
  .os-dudas-link { margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .os-dudas-icon::before, .os-dudas-icon::after { transition: none; } }

/* ---------- 7. Ficha: un solo camino de compra ---------- */

/* Botón principal de WhatsApp (productos sin carrito): sólido, a lo ancho */
html body .os-pp .os-pi > .os-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; margin-top: 16px;
  border: 0 !important; border-radius: var(--os-radius) !important;
  background: var(--os-wa) !important;
  font: 700 15px/1.2 var(--os-font) !important; letter-spacing: 1px; text-transform: uppercase;
  transition: background-color .15s ease, transform .1s ease;
}
html body .os-pp .os-pi > .os-wa:hover { background: var(--os-wa-hover) !important; }
html body .os-pp .os-pi > .os-wa:active { transform: scale(.98); }
html body .os-pp .os-pi > .os-wa svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* Con carrito: WhatsApp pasa a opción secundaria de borde */
html body .os-pp .os-pi > .os-wa.os-wa-secondary,
html body #os-piloto-whatsapp.os-wa-secondary {
  min-height: 48px; margin-top: 10px; padding: 12px 16px !important;
  background: transparent !important;
  border: 1.5px solid var(--os-wa) !important;
  color: var(--os-wa) !important;
  box-shadow: none !important;
  font-size: 14px !important;
}
html body .os-pp .os-pi > .os-wa.os-wa-secondary:hover { background: rgba(37, 211, 102, .1) !important; }
.os-has-cart #osm-s-info .osm-btn-back { display: none; }

/* Selector de tallas: el botón de agregar es el protagonista */
#os-piloto .os-piloto-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
html body #os-piloto .os-piloto-actions button[type="submit"] {
  width: 100%; min-height: 54px; font-size: 15px; font-weight: 700;
  border: 0; border-radius: var(--os-radius); cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
html body #os-piloto .os-piloto-actions button[type="submit"]:active { transform: scale(.98); }
#os-piloto .os-piloto-actions a { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
#os-piloto .os-piloto-actions a[hidden] { display: none; }
#os-piloto .os-piloto-size span { min-width: 52px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }

/* Aviso de productos por WhatsApp: en positivo, no como limitación */
.os-pp .os-pi > .os-piloto-ui:not(:has(form)) {
  border: 1px solid rgba(37, 211, 102, .35) !important;
  border-radius: var(--os-radius) !important; background: rgba(37, 211, 102, .07) !important;
}
.os-pp .os-piloto-whatsapp-hint { text-wrap: pretty; }

/* Selector de canal (plugin de familias): mismo aspecto que la ventana de compra */
html body .osf-contact .osf-contact__dialog {
  background: var(--os-surface) !important;
  color: #f2f2f2 !important;
  border: 1px solid var(--os-line);
  font-family: var(--os-font) !important;
}
html body .osf-contact .osf-contact__eyebrow { color: var(--os-red-text) !important; font-size: 12px; letter-spacing: 3px; }
html body .osf-contact h2 {
  color: #fff !important; font-family: var(--os-display) !important; font-weight: 400 !important;
  font-size: 30px !important; letter-spacing: 1px; line-height: 1.05 !important;
}
html body .osf-contact .osf-contact__product { color: #fff !important; }
html body .osf-contact .osf-contact__help,
html body .osf-contact .osf-contact__status { color: var(--os-text-muted) !important; }
html body .osf-contact .osf-channel {
  background: var(--os-surface-2) !important; border: 1px solid var(--os-line) !important;
  color: #fff !important; border-radius: 12px !important; font-family: var(--os-font) !important;
  transition: border-color .15s ease, background-color .15s ease;
}
html body .osf-contact .osf-channel:hover { border-color: #555 !important; background: #222 !important; }
html body .osf-contact .osf-channel strong { color: #fff !important; }
html body .osf-contact .osf-channel small { color: var(--os-text-muted) !important; }
html body .osf-contact .osf-contact__close {
  width: 44px !important; height: 44px !important; background: #222 !important; color: #ddd !important; border: 0 !important;
}
html body .osf-contact .osf-contact__fallback textarea { background: var(--os-surface-2); color: #fff; border: 1px solid var(--os-line); }

/* Barra fija y ventana de compra: toques de al menos 44px */
body .os-buybar .os-buybar-btn { min-height: 46px; border-radius: var(--os-radius) !important; }
.os-buy-close { width: 44px !important; height: 44px !important; top: 6px !important; right: 6px !important; }

/* Tamaño mínimo de letra en etiquetas y datos de la ficha */
.os-pp .os-badge-brand,
.os-pp .os-badge-sale,
.os-pp .os-colors-count,
.os-pp .os-color-name,
.os-pp .os-colors-note,
.os-pp .os-rel-lbl { font-size: 12px !important; }
.os-pp .os-scroll-hint-txt { font-size: 12px !important; color: var(--os-text-soft) !important; }
/* Códigos internos (familia, SKU de cada color y del producto): no le dicen nada al cliente */
.os-pp :is(.osf-family-code, .osf-sku) { display: none !important; }
.os-pp .os-pi > .os-sku { display: none !important; }
/* Color actual en rojo de la marca (venía en azul) */
html body .os-pp .os-color-option.is-current {
  border-color: var(--os-red) !important;
  box-shadow: 0 0 0 1px var(--os-red) !important;
  outline-color: var(--os-red) !important;
}
.os-pp .osf-family-name { font-size: 12px !important; color: var(--os-text-muted) !important; }
.os-pp .osf-stock { font-size: 11px !important; }
.os-pp .osf-stock.is-in { color: #7ee2a0 !important; }
.os-pp .osf-stock.is-out { color: #ff8a8a !important; }
