/* Tienda de chapas · estilos propios (el resto lo pone Tailwind con los colores de la web) */
:root { color-scheme: light; }
body { font-family: 'Nunito', system-ui, sans-serif; }
.font-display { font-family: 'Fredoka', system-ui, sans-serif; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8B2FC9; outline-offset: 3px; border-radius: 10px; }

/* Degradados de la marca (los mismos de la portada) */
.text-gradient {
  background: linear-gradient(100deg, #0BB6D6, #8B2FC9 40%, #FF1E8C 70%, #FB9D2E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gradient-animated {
  background: linear-gradient(120deg, #0BB6D6, #8B2FC9, #FF1E8C, #FB9D2E, #0BB6D6);
  background-size: 300% 300%;
  animation: degradado 14s ease infinite;
}
@keyframes degradado { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes destello { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
.anim-destello { animation: destello 2.4s ease-in-out infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.girando { animation: girar .9s linear infinite; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.entrar { animation: entrar .5s cubic-bezier(.2,.8,.2,1) both; }

/* Campos */
.campo {
  width: 100%; min-height: 52px; padding: 13px 15px; font-size: 16px;   /* 16px: el iPhone no hace zoom */
  font-family: inherit; color: #1A1338; background: #fff;
  border: 1.5px solid rgba(26,19,56,.16); border-radius: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo::placeholder { color: rgba(26,19,56,.42); }
.campo:focus { outline: none; border-color: #0BB6D6; box-shadow: 0 0 0 4px rgba(11,182,214,.2); }
.campo[aria-invalid="true"] { border-color: #C21F4A; box-shadow: 0 0 0 3px rgba(194,31,74,.12); }
.etiqueta { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; color: #1A1338; }
.etiqueta small { font-weight: 600; color: rgba(26,19,56,.62); }
.error { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: #C21F4A; }
.error:empty { display: none; }

/* Vitrina: los diseños en grande */
.halo {
  position: absolute; inset: 7%; border-radius: 50%;
  background: conic-gradient(from 0deg, #0BB6D6, #8B2FC9, #FF1E8C, #FB9D2E, #0BB6D6);
  filter: blur(34px); opacity: .45; animation: girar 16s linear infinite;
}
/* Detrás de la personalizada: el mismo brillo, pero alargado y sin girar */
.halo-rect { inset: 12% 5%; border-radius: 40px; background: linear-gradient(120deg, #0BB6D6, #8B2FC9, #FF1E8C, #FB9D2E, #0BB6D6);
             background-size: 300% 300%; animation: degradado 14s ease infinite; opacity: .4; }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
.flotar { animation: flotar 7s ease-in-out infinite; filter: drop-shadow(0 22px 24px rgba(26,19,56,.35)); }
@keyframes flotar-suave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.flotar-suave { animation: flotar-suave 7s ease-in-out infinite; }
/* Más ancho que la columna del texto: en el móvil casi de borde a borde y en el ordenador hasta 720 px */
.a-lo-ancho { margin-inline: -14px; }
@media (min-width: 640px) {
  .a-lo-ancho { --ancho: min(720px, calc(100vw - 64px)); width: var(--ancho); margin-inline: 0; margin-left: calc((100% - var(--ancho)) / 2); }
}
.sombra-pieza { filter: drop-shadow(0 16px 22px rgba(26,19,56,.28)); }
.miniatura { filter: drop-shadow(0 4px 6px rgba(26,19,56,.3)); }
.foto-suela { container-type: inline-size; }
/* El nombre de ejemplo, escrito sobre la suela de la zapatilla (posición en % de la imagen) */
.nombre-suela {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--giro, 0deg));
  font-family: 'Great Vibes', cursive; font-size: 18px; font-size: var(--tam); line-height: 1.1;
  color: #6E3F2C; white-space: nowrap; pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.4); mix-blend-mode: multiply;
}

/* Selector de cantidad */
.cantidad { display: flex; align-items: center; gap: 6px; }
.cantidad input {
  width: 64px; height: 48px; text-align: center; font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 22px; font-weight: 600; color: #1A1338; background: #fff;
  border: 1.5px solid rgba(26,19,56,.16); border-radius: 14px;
}
.cantidad input:focus { outline: none; border-color: #0BB6D6; box-shadow: 0 0 0 4px rgba(11,182,214,.2); }
.cantidad input[disabled] { color: rgba(26,19,56,.35); background: rgba(26,19,56,.04); cursor: not-allowed; }
.cantidad input::-webkit-inner-spin-button, .cantidad input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cantidad input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.paso {
  width: 48px; height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 14px; cursor: pointer; color: #fff; background: #077E96;
  font-size: 26px; line-height: 1; font-family: 'Fredoka', system-ui, sans-serif;
  transition: background-color .15s ease, transform .1s ease;
}
.paso:hover { background: #05687C; }
.paso:active { transform: scale(.94); }
.paso[disabled] { background: rgba(26,19,56,.14); color: rgba(26,19,56,.4); cursor: not-allowed; }

/* Nombres de las personalizadas */
.fila-nombre { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.fila-nombre .num {
  width: 34px; height: 34px; margin-top: 9px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #FFE3F1; color: #B8125F; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 15px;
}
.contador { font-size: 12.5px; font-weight: 700; color: rgba(26,19,56,.55); font-variant-numeric: tabular-nums; }
.contador[data-lleno="si"] { color: #B8125F; }

/* Cuenta atrás */
.bloque-reloj {
  min-width: 60px; padding: 9px 6px 7px; border-radius: 14px; background: #fff;
  border: 1px solid rgba(26,19,56,.08); box-shadow: 0 8px 20px -12px rgba(26,19,56,.35);
}
.bloque-reloj b { display: block; font-family: 'Fredoka', system-ui, sans-serif; font-size: 24px; line-height: 1.05; font-weight: 600; color: #077E96; font-variant-numeric: tabular-nums; }
.bloque-reloj span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(26,19,56,.55); }
.bloque-reloj[data-urgente="si"] b { color: #C21F4A; }

/* Botón de pagar */
.btn-pagar {
  display: flex; width: 100%; min-height: 58px; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border: 0; border-radius: 18px; cursor: pointer;
  font-family: 'Fredoka', system-ui, sans-serif; font-size: 20px; font-weight: 600; color: #fff;
  background: #077E96; box-shadow: 0 16px 30px -14px rgba(7,126,150,.8);
  transition: background-color .2s ease, transform .1s ease;
}
.btn-pagar:hover { background: #05687C; }
.btn-pagar:active { transform: translateY(1px); }
.btn-pagar[disabled] { background: rgba(26,19,56,.18); color: rgba(26,19,56,.55); box-shadow: none; cursor: not-allowed; }
.btn-secundario {
  display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 18px; border: 2px solid #077E96; background: #fff;
  font-family: 'Fredoka', system-ui, sans-serif; font-size: 18px; font-weight: 600; color: #077E96;
  transition: background-color .2s ease;
}
.btn-secundario:hover { background: #E9F8FB; }

/* Forma de pago: dos opciones grandes (Bizum / efectivo en los ensayos) */
.opcion-pago {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border-radius: 16px; border: 1.5px solid rgba(26,19,56,.16); background: #fff;
  transition: border-color .2s ease, background-color .2s ease;
}
.opcion-pago input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: #077E96; cursor: pointer; }
.opcion-pago strong { display: block; font-family: 'Fredoka', system-ui, sans-serif; font-size: 17px; font-weight: 600; color: #1A1338; }
.opcion-pago small { display: block; margin-top: 1px; font-size: 13.5px; color: rgba(26,19,56,.65); }
.opcion-pago:has(input:checked) { border-color: #077E96; background: #E9F8FB; }
.opcion-pago:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opcion-pago:has(input:disabled) input { cursor: not-allowed; }
#pago[aria-invalid="true"] .opcion-pago { border-color: #C21F4A; }

/* Bizum */
.dato-copiar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: 16px; background: #FFF7EC; border: 1.5px dashed rgba(139,47,201,.3);
}
.dato-copiar__valor {
  display: block; font-family: 'Fredoka', system-ui, sans-serif; font-size: 19px; font-weight: 600;
  letter-spacing: .02em; color: #1A1338; word-break: break-word;
}
.copiar {
  flex: 0 0 auto; min-height: 44px; min-width: 84px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid #077E96; background: #fff; color: #077E96; font-size: 14px; font-weight: 800;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.copiar:hover { background: #E9F8FB; }
.copiar[data-ok="si"] { border-color: #1D7A45; color: #1D7A45; }
.copiar[data-ok="no"] { border-color: #C21F4A; color: #C21F4A; }
.casilla {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; cursor: pointer;
  border-radius: 16px; border: 1.5px solid rgba(26,19,56,.16); background: #fff;
  font-size: 15px; font-weight: 700; line-height: 1.4; color: #1A1338;
  transition: border-color .2s ease, background-color .2s ease;
}
.casilla input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: #077E96; cursor: pointer; }
.casilla:has(input:checked) { border-color: #077E96; background: #E9F8FB; }
.casilla:has(input[aria-invalid="true"]) { border-color: #C21F4A; box-shadow: 0 0 0 3px rgba(194,31,74,.12); }

/* Accesibilidad: sin movimiento si se pide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
