/* Modo Meme · estilos de la tienda (identidad: blanco y negro, bordes gruesos, sombra sticker) */
:root {
  --surface: #FFFFFF;
  --surface-alt: #F2F2F2;
  --ink: #0A0A0A;
  --ink-muted: #5C5C5C;
  --hairline: #D9D9D9;
  --alert: #C62828;
  --ok: #1B7F3B;
  --shadow: 4px 4px 0 #0A0A0A;
  --radius-sm: 8px;
  --radius-md: 16px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; }
.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.etiqueta { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Franja y encabezado */
.franja { background: var(--ink); color: #fff; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; padding: 8px 16px; }
.encabezado { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 2px solid var(--ink); }
.encabezado .contenedor { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.encabezado .logo img { height: 32px; width: auto; }
.nav { display: none; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.icono-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 999px; cursor: pointer; text-decoration: none; }
.icono-btn:hover { background: var(--surface-alt); }
.contador { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.contador[hidden] { display: none; }
.menu-movil { display: none; border-top: 2px solid var(--ink); }
.menu-movil.abierto { display: block; }
.menu-movil a { display: block; padding: 16px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--hairline); }
@media (min-width: 860px) { .nav { display: flex; } .btn-menu { display: none; } }

/* Botones */
.btn { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.claro { background: var(--surface); color: var(--ink); }
.btn.bloque { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-texto { background: none; border: 0; padding: 8px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Portada */
.portada { background: var(--ink); color: #fff; }
.portada .contenedor { padding-top: 40px; padding-bottom: 44px; display: grid; gap: 28px; }
.portada .etiqueta { color: #A3A3A3; }
.portada h1 { font-size: clamp(40px, 9vw, 72px); letter-spacing: -0.03em; line-height: .98; }
.portada p { color: #D9D9D9; font-size: 17px; max-width: 520px; }
.portada .acciones { display: grid; gap: 12px; }
.portada .btn { box-shadow: none; }
.portada .btn.claro { border-color: #fff; }
.portada .btn.contorno { background: transparent; color: #fff; border-color: #fff; }
.portada .vitrina { background: #1A1A1A; border-radius: var(--radius-md); padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 860px) {
  .portada .contenedor { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 72px; }
  .portada .acciones { grid-auto-flow: column; justify-content: start; }
}
.beneficios { border-bottom: 2px solid var(--ink); }
.beneficios .contenedor { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; font-size: 12px; font-weight: 600; }
@media (min-width: 860px) { .beneficios .contenedor { justify-content: center; gap: 64px; font-size: 14px; } }

/* Camiseta (silueta + diseño) */
.camiseta { position: relative; width: 100%; aspect-ratio: 1; }
.camiseta svg { width: 100%; height: 100%; display: block; }
.camiseta .forma { fill: #fff; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.camiseta.negra .forma { fill: var(--ink); stroke: #3A3A3A; }
/* Área de estampado a escala real: 30×30 cm sobre una talla M (~52 cm de pecho) */
.camiseta .diseno { position: absolute; left: 36.75%; top: 22%; width: 26.5%; height: 26.5%; object-fit: contain; object-position: center top; }
.camiseta.negra .diseno.invertir { filter: invert(1); }
.camiseta .guia-30 { position: absolute; left: 36.75%; top: 22%; width: 26.5%; height: 26.5%; outline: 1.5px dashed #8A8A8A; outline-offset: 0; }
.camiseta .guia-30 span { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 600; color: #5C5C5C; background: var(--surface-alt); padding: 0 6px; border-radius: 999px; }
.camiseta .idea { position: absolute; left: 36.75%; top: 22%; width: 26.5%; height: 26.5%; border: 2px dashed currentColor; border-radius: 6px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: clamp(8px, 2vw, 12px); font-weight: 700; padding: 2px; line-height: 1.1; }
.camiseta.blanca .idea { color: var(--ink); }
.camiseta.negra .idea { color: #fff; }

/* Secciones */
.seccion { padding: 48px 0; }
.seccion-titulo { display: grid; gap: 6px; margin-bottom: 20px; }
.seccion-titulo h2 { font-size: clamp(30px, 6vw, 44px); }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 12px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 860px) { .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; } }
.tarjeta { display: grid; gap: 10px; text-decoration: none; }
.tarjeta .foto { position: relative; background: var(--surface-alt); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 8px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.tarjeta:hover .foto { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.sello { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.tarjeta .nombre { font-weight: 600; font-size: 15px; }
.tarjeta .fila { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-muted); }
.puntos { display: flex; gap: 4px; }
.puntos span { width: 12px; height: 12px; border-radius: 999px; border: 1.5px solid var(--ink); }
.puntos span + span { background: var(--ink); }
.vacio { grid-column: 1 / -1; padding: 32px; text-align: center; border: 2px dashed var(--hairline); border-radius: var(--radius-md); }

/* Ctrl+C */
.ctrlc { background: var(--ink); color: #fff; border-radius: var(--radius-md); padding: 32px 24px; display: grid; gap: 22px; }
.teclas { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; }
.tecla { height: 60px; min-width: 60px; padding: 0 16px; border-radius: 10px; border: 2px solid #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; box-shadow: 3px 3px 0 #5C5C5C; }
.tecla.clara { background: #fff; color: var(--ink); }
.ctrlc h2 { font-size: clamp(28px, 5vw, 40px); }
.pasos { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pasos li { display: flex; gap: 14px; }
.pasos .num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pasos b { display: block; }
.pasos small { color: #A3A3A3; font-size: 14px; }
.ctrlc .btn { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
@media (min-width: 860px) { .ctrlc { grid-template-columns: 1fr 1fr; padding: 48px; column-gap: 48px; } .ctrlc .pasos, .ctrlc .btn { grid-column: 2; } .ctrlc .teclas, .ctrlc h2 { grid-column: 1; } .ctrlc .pasos { grid-row: 1 / span 2; } }

.confianza { display: grid; gap: 12px; }
@media (min-width: 860px) { .confianza { grid-template-columns: repeat(3, 1fr); } }
.caja { display: flex; gap: 14px; padding: 18px; border: 2px solid var(--ink); border-radius: var(--radius-md); }
.caja .ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; }
.caja b { display: block; }
.caja p { font-size: 14px; color: var(--ink-muted); }

.preguntas details { border-bottom: 1px solid var(--hairline); }
.preguntas summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: '+'; font-size: 24px; font-weight: 400; }
.preguntas details[open] summary::after { content: '−'; }
.preguntas details p { padding: 0 0 18px; color: var(--ink-muted); }

/* Pie */
.pie { background: var(--ink); color: #fff; padding: 48px 0 32px; }
.pie .contenedor { display: grid; gap: 24px; }
.pie img { width: 210px; }
.pie nav { display: grid; gap: 10px; font-size: 14px; }
.pie nav a { text-decoration: none; }
.pie nav a:hover { text-decoration: underline; }
.pie .legal { border-top: 1px solid #2E2E2E; padding-top: 20px; color: #A3A3A3; font-size: 13px; }
@media (min-width: 860px) { .pie .contenedor { grid-template-columns: 1.4fr 1fr 1fr; } .pie .legal { grid-column: 1 / -1; } }

.wa-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 58px; height: 58px; border-radius: 999px; background: var(--ink); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }

/* Producto */
.producto { padding: 20px 0 48px; display: grid; gap: 28px; }
@media (min-width: 860px) { .producto { grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 40px; align-items: start; } }
.producto .foto { position: relative; background: var(--surface-alt); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow); }
.producto .info { display: grid; gap: 22px; }
.producto h1 { font-size: clamp(30px, 6vw, 44px); }
.precio { font-size: 24px; font-weight: 600; }
.grupo { display: grid; gap: 10px; }
.grupo > .titulo { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.color-op { width: 50px; height: 50px; border-radius: 999px; border: 2px solid transparent; background: var(--surface); padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.color-op[aria-pressed="true"] { border-color: var(--ink); }
.color-op span { width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--ink); }
.color-op.negra span { background: var(--ink); }
.talla-op { min-width: 58px; height: 48px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); font-weight: 600; cursor: pointer; }
.talla-op[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cantidad { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; }
.cantidad button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 999px; }
.cantidad output { min-width: 32px; text-align: center; font-weight: 600; }
.acciones-compra { display: grid; gap: 14px; }
.detalles { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-md); background: var(--surface-alt); font-size: 14px; }
.detalles div { display: flex; gap: 10px; align-items: center; }
.aviso { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.aviso[hidden] { display: none; }

/* Formularios */
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; }
.campo input, .campo textarea, .campo select { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; }
.campo textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.campo .ayuda { font-size: 13px; color: var(--ink-muted); }
.campo .error { font-size: 13px; color: var(--alert); font-weight: 600; }
.campo.invalido input, .campo.invalido textarea, .campo.invalido select { border-color: var(--alert); }
.dos-col { display: grid; gap: 14px; }
@media (min-width: 560px) { .dos-col { grid-template-columns: 1fr 1fr; } }

/* Página simple (Ctrl+C, pedido, gracias) */
.cabecera-negra { background: var(--ink); color: #fff; }
.cabecera-negra .contenedor { padding-top: 32px; padding-bottom: 32px; display: grid; gap: 14px; }
.cabecera-negra h1 { font-size: clamp(32px, 7vw, 52px); }
.cabecera-negra p { color: #D9D9D9; }
.cabecera-negra .tecla { height: 48px; min-width: 48px; font-size: 18px; }
.cuerpo { padding-top: 28px; padding-bottom: 56px; }
.formulario { display: grid; gap: 24px; max-width: 640px; }
.paso-titulo { font-size: 18px; font-weight: 700; }
.nota { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }

.pedido-layout { display: grid; gap: 32px; }
@media (min-width: 860px) { .pedido-layout { grid-template-columns: 1.2fr 1fr; align-items: start; } .resumen { position: sticky; top: 88px; } }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 2px solid var(--ink); border-radius: var(--radius-md); }
.item .mini { width: 76px; height: 76px; background: var(--surface-alt); border-radius: var(--radius-sm); padding: 4px; }
.item .nombre { font-weight: 600; }
.item .meta { font-size: 13px; color: var(--ink-muted); }
.item .controles { display: grid; justify-items: end; gap: 6px; }
.item .cantidad button { width: 36px; height: 36px; font-size: 18px; }
.lista-items { display: grid; gap: 12px; }
.resumen { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius-md); background: var(--surface-alt); }
.resumen .linea { display: flex; justify-content: space-between; font-size: 15px; }
.resumen .total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--hairline); padding-top: 12px; }
.metodos { display: flex; flex-wrap: wrap; gap: 6px; }
.metodos span { font-size: 12px; font-weight: 600; padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 999px; }
.estado { text-align: center; display: grid; justify-items: center; gap: 18px; max-width: 560px; margin: 0 auto; padding: 48px 0 64px; }
.estado img.cara { width: 120px; height: 120px; }
.estado h1 { font-size: clamp(30px, 7vw, 44px); }
.cita { width: 100%; text-align: left; padding: 16px; border: 2px solid var(--ink); border-radius: var(--radius-md); font-size: 14px; }
.texto-legal { max-width: 760px; display: grid; gap: 14px; }
.texto-legal h2 { font-size: 22px; margin-top: 14px; }
.texto-legal p, .texto-legal li { color: #2A2A2A; }

/* Subir imagen (Ctrl+C) */
.zona-foto { min-height: 120px; border: 2px dashed var(--ink); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; font-weight: 600; cursor: pointer; background: var(--surface); }
.zona-foto:hover, .zona-foto.encima { background: var(--surface-alt); }
.zona-foto.con-foto { border-style: solid; }
.zona-foto small { font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.zona-foto:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.calidad { font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: var(--radius-sm); border: 2px solid var(--ink); }
.calidad.buena { background: var(--surface); }
.calidad.media { background: var(--surface-alt); }
.calidad.baja { border-color: var(--alert); color: var(--alert); }
.calidad[hidden] { display: none; }
.vista-grande { background: var(--surface-alt); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 16px 16px 30px; box-shadow: var(--shadow); }
@media (max-width: 859px) { .crear-layout .vista { order: -1; } }

/* Opciones tipo tarjeta (ciudad y pago) */
.opcion { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 2px solid var(--hairline); border-radius: var(--radius-md); cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--ink); box-shadow: var(--shadow); }
.opcion:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.opcion input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #0A0A0A; flex-shrink: 0; }
.opcion b { display: block; }
.opcion small { color: var(--ink-muted); font-size: 13px; }
.opcion .precio-op { margin-left: auto; font-weight: 700; white-space: nowrap; }
.opciones-lista { display: grid; gap: 10px; }
.paso-caja { width: 100%; text-align: left; display: grid; gap: 10px; padding: 18px; border: 2px solid var(--ink); border-radius: var(--radius-md); }
.paso-caja .n { width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; margin-right: 8px; }
.nequi-num { font-size: 26px; font-weight: 700; letter-spacing: .02em; }
[hidden] { display: none !important; }
.recomendado { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; }
.opcion small { font-weight: 400; display: block; margin-top: 2px; }

/* Galería con modelos */
.galeria { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; }
.mini-vista { flex-shrink: 0; width: 72px; height: 90px; padding: 0; border-radius: var(--radius-sm); border: 2px solid var(--hairline); background: var(--surface-alt); overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.mini-vista[aria-pressed="true"] { border-color: var(--ink); }
.mini-vista img { width: 100%; height: 100%; object-fit: cover; }
.mini-vista.cargando { background: linear-gradient(90deg, #EEE, #F7F7F7, #EEE); background-size: 200% 100%; animation: brillo 1.2s infinite linear; }
@keyframes brillo { to { background-position: -200% 0; } }
.foto-modelo { width: 100%; height: auto; border-radius: var(--radius-sm); }
