:root { --negro: #0b0b0c; --gris: #f0f1f3; --linea: #d9dce1; --suave: #6b7280; --acento: #1d4ed8; --peligro: #b91c1c; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--negro); background: var(--gris);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; line-height: 1.45; }
.oculto { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

.cab { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--linea);
  display: flex; align-items: center; gap: 20px; padding: 10px 20px; }
.logo { color: var(--negro); font-weight: 900; font-size: 1.6rem; text-decoration: none; }
.logo img { height: 42px; display: block; }
.cab nav { display: flex; gap: 16px; margin-right: auto; }
.cab nav a { color: var(--negro); text-decoration: none; font-weight: 600; }
.cab nav a:hover { color: var(--acento); }

button { font: inherit; cursor: pointer; border-radius: 6px; border: 1px solid var(--linea); background: #fff; color: var(--negro); padding: 8px 14px; }
.boton { background: var(--negro); border-color: var(--negro); color: #fff; font-weight: 600; text-decoration: none; display: inline-block; text-align: center; }
.boton.claro { background: #fff; color: var(--negro); border-color: #fff; padding: 11px 22px; }
.boton:disabled { opacity: 0.5; cursor: not-allowed; }

.portada { background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.62)), url(../img/portada.jpg) center / cover #0b0b0c;
  color: #fff; padding: clamp(60px, 14vw, 150px) 20px; text-align: center; }
.portada h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 900; letter-spacing: -0.02em; }
.portada p { margin: 0 auto 24px; max-width: 46ch; font-size: 1.15rem; }

.menu { position: sticky; top: 63px; z-index: 10; background: #fff; border-bottom: 1px solid var(--linea);
  padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.menu a { color: var(--negro); text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--acento); }
.filtro { margin-left: auto; display: flex; gap: 6px; }
.filtro button { border-radius: 16px; padding: 5px 12px; }
.filtro .activo { background: var(--negro); color: #fff; border-color: var(--negro); }

main { max-width: 1100px; margin: 0 auto; padding: 20px; }
section { margin-bottom: 40px; scroll-margin-top: 130px; }
h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--negro); font-size: 1.4rem; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.producto { background: #fff; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; }
.producto img, .sin-foto { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #e5e7eb; }
.datos { padding: 12px 14px 16px; }
.datos h3 { margin: 0 0 4px; font-size: 1rem; }
.precio { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.vacio { color: var(--suave); text-align: center; padding: 30px 0; }

footer { background: var(--negro); color: #fff; padding: 28px 20px 90px; text-align: center; }
footer p { margin: 6px 0; }
footer a { color: #fff; }
#wsp { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #25d366; color: #fff; font-weight: 700;
  text-decoration: none; padding: 12px 18px; border-radius: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

dialog { border: 0; border-radius: 10px; padding: 22px; width: 92vw; max-width: 520px; max-height: 90vh; }
dialog::backdrop { background: rgba(0,0,0,.55); }
.cerrar { position: absolute; top: 8px; right: 8px; }
.cerrar button { border: 0; background: none; font-size: 1.2rem; }
dialog h2 { border: 0; padding: 0; margin-bottom: 12px; }
dialog img.grande { width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin: 12px 0 4px; }
input, select { width: 100%; padding: 9px 11px; border: 1px solid var(--linea); border-radius: 6px; font: inherit; }
fieldset { border: 1px solid var(--linea); border-radius: 6px; margin: 16px 0 0; padding: 4px 12px 12px; }
.radio { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.radio input { width: auto; }
.aviso { background: var(--gris); border-radius: 6px; padding: 10px; font-size: 0.92rem; }
.error { color: var(--peligro); font-weight: 600; }
.acciones { display: flex; gap: 10px; margin-top: 16px; }
.acciones .boton { flex: 1; }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linea); }
.meta { color: var(--suave); font-size: 0.88rem; }
.cant { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cant button { padding: 3px 9px; }
.cant .quitar { color: var(--peligro); font-size: 0.85rem; }
.total { font-size: 1.15rem; text-align: right; }

/* Panel de pago: elegir medio y formulario de Culqi */
dialog.pago { max-width: 380px; background: #ececec; padding: 26px 22px 22px; }
.pago-logo { text-align: center; margin: 4px 0 18px; font-weight: 900; font-size: 1.8rem; }
.pago-logo img { height: 46px; }
.pago h2 { font-size: 1rem; color: #4b4b4b; margin: 0 0 14px; }
.opcion { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid #d3d3d3;
  border-radius: 8px; padding: 12px; margin: 0 0 10px; cursor: pointer; font-weight: 500; }
.opcion input { width: auto; margin-top: 4px; }
.opcion strong { display: block; font-size: 0.95rem; }
.opcion small { color: var(--suave); }
.opcion:has(input:checked) { border-color: var(--negro); box-shadow: 0 0 0 1px var(--negro); }
.ancho { width: 100%; padding: 13px; font-size: 1rem; border-radius: 6px; }
.enlace { background: none; border: 0; color: #444; text-decoration: underline; margin-top: 12px; padding: 4px 0; }
.nota { font-size: 0.9rem; color: #4b4b4b; text-align: center; margin: 0 0 12px; }
#culqi-container { min-height: 200px; }

#dAgregado { position: fixed; inset: 70px 16px auto auto; margin: 0; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 86px); padding: 24px; box-shadow: 0 12px 42px #0003; }
#dAgregado h2 { font-size: 1.15rem; padding-right: 24px; }
#dAgregado h2::before { content: '✓'; color: #187440; margin-right: 8px; }
.resumen-agregado { display: flex; gap: 16px; align-items: center; margin: 22px 0; overflow-wrap: anywhere; }
.resumen-agregado img { width: 80px; height: 96px; object-fit: contain; }
.resumen-agregado p { color: #54575b; margin: 6px 0; }
.importe-carrito { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid #ddd; }
.opciones-agregado { display: flex; gap: 8px; margin-top: 18px; }
.opciones-agregado button { flex: 1; border-radius: 24px; min-height: 44px; }
@media (max-width: 540px) {
  #dAgregado { inset: auto 0 0; width: 100%; max-width: none; max-height: 90dvh; border-radius: 16px 16px 0 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
.ubicacion-envio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.ubicacion-envio select { width: 100%; min-width: 0; min-height: 44px; }
@media (max-width: 480px) { .ubicacion-envio { grid-template-columns: 1fr; } }
/* Fondo deportivo del catálogo P10 */
body {
  background-color: #e4edf9;
  background-image:
    repeating-linear-gradient(
      115deg,
      transparent 0 68px,
      rgba(33, 80, 155, 0.045) 68px 70px,
      transparent 70px 84px
    ),
    linear-gradient(110deg, #d5e4fa 0%, #eef3fa 48%, #dce8f8 100%);
}

#catalogo .producto {
  background: #fff;
  border-color: #cbd8e9;
  box-shadow: 0 4px 16px rgba(23, 52, 95, 0.07);
}

#catalogo h2 {
  border-bottom-color: #2859a5;
}

/* Burbuja que sale del botón de WhatsApp */
#wsp {
  overflow: visible;
}

#wsp::before {
  content: "¿Te ayudo a elegir tu talla?";
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border-radius: 16px 16px 3px 16px;
  background: #153a30;
  color: #fff;
  font: 600 14px/1.4 system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  transform-origin: bottom right;
  animation: saludo-p10 6s 1.5s both;
}

@keyframes saludo-p10 {
  0%, 100% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  8%, 88% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#wsp:focus-visible::before {
  animation: none;
  opacity: 1;
}

@media (hover: hover) {
  #wsp:hover::before {
    animation: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #wsp::before {
    animation: none;
  }
}
#wsp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: #158849;
  color: white;
  text-decoration: none;
  overflow: visible;
  box-shadow: 0 3px 12px #073b2429;
}

/* Desactiva el saludo del diseño anterior */
#wsp::before {
  content: none;
}

/* Onda alrededor del ícono */
#wsp::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 3px solid #25d366;
  border-radius: 50%;
  pointer-events: none;
  animation: wsp-onda 2.4s ease-out 3;
}

@keyframes wsp-onda {
  from { transform: scale(.94); opacity: .8; }
  to   { transform: scale(1.24); opacity: 0; }
}

#wsp .wsp-mensaje {
  position: absolute;
  right: calc(100% + 16px);
  bottom: 5px;
  width: max-content;
  max-width: min(190px, calc(100vw - 115px));
  padding: 11px 15px;
  border-radius: 9px;
  background: #117943;
  color: white;
  font: 600 14px/1.4 system-ui, sans-serif;
  text-align: left;
  box-shadow: 0 4px 14px #073b241a;
  pointer-events: none;
  opacity: 0;
  animation: wsp-saludo 7s 1s both;
}

/* Punta del globito, orientada hacia el ícono */
.wsp-mensaje::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 17px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid #117943;
}

@keyframes wsp-saludo {
  0%, 100% { opacity: 0; transform: translateX(6px); }
  8%, 88%  { opacity: 1; transform: translateX(0); }
}

#wsp:focus-visible .wsp-mensaje {
  animation: none;
  opacity: 1;
}

@media (hover: hover) {
  #wsp:hover .wsp-mensaje {
    animation: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #wsp::after { display: none; }
  #wsp .wsp-mensaje { animation: none; }
}
#contacto.pie-p10 {
  background: #101318;
  color: #fff;
  text-align: left;
  padding: 0 20px;
}

.pie-interior {
  max-width: 1060px;
  margin: 0 auto;
}

.pie-columnas {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 48px;
  padding: 48px 0 36px;
}

.pie-logo {
  display: block;
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1);
}

.pie-marca p {
  margin: 14px 0 0;
  color: #bbc4cf;
  font-size: 14px;
  line-height: 1.6;
}

.pie-grupo,
.pie-enlaces {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
}

.pie-grupo h2 {
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  color: white;
  font-size: 16px;
}

#contacto.pie-p10 a {
  color: #c4cbd4;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

#contacto.pie-p10 a:hover,
#contacto.pie-p10 a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pie-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 24px;
  border-top: 1px solid #353c45;
  color: #aeb8c4;
}

@media (max-width: 700px) {
  .pie-columnas {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 0 26px;
  }

  .pie-base {
    /* Deja espacio para el botón flotante de WhatsApp */
    padding-bottom: 90px;
  }
}