/* Victoria · estilo de la tienda. Modelo: distribuidora de fragancias (encabezado negro, banner, catálogo con barra lateral). */
:root {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --tile: #f1f1f1;
  --ink: #111111;
  --black: #0b0b0b;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --accent: #b08d57;
  --ok: #2f7a4b;
  --warn: #a0702a;
  --bad: #b3261e;
  --wa: #25d366;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: .02em; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Encabezado negro */
.aviso { background: var(--accent); color: #fff; font-size: 12px; text-align: center; padding: 7px 16px; letter-spacing: .04em; font-weight: 500; }
.top { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; color: inherit; }
.logo span { font: 500 28px/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; }
.logo small { font: 500 8px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; margin-top: 4px; padding-left: .5em; opacity: .8; }
.menu-btn { background: none; border: 0; color: #fff; padding: 8px; display: none; }
.menu-btn .ico { width: 24px; height: 24px; }
nav.principal { display: flex; gap: 22px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-left: 12px; }
nav.principal a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
nav.principal a:hover, nav.principal a[aria-current="page"] { border-bottom-color: var(--accent); }
.buscador { margin-left: auto; display: flex; background: #fff; border-radius: 3px; overflow: hidden; min-width: 0; }
.buscador input { border: 0; padding: 8px 12px; width: 200px; min-width: 0; color: var(--ink); font-size: 13px; outline-offset: -2px; }
.buscador button { border: 0; background: #fff; color: var(--ink); padding: 0 10px; display: flex; align-items: center; }
.buscador .ico { width: 16px; height: 16px; }
.carrito-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; position: relative; font-size: 13px; font-weight: 600; white-space: nowrap; }
.carrito-btn .badge { position: absolute; left: 12px; top: -8px; background: var(--accent); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 1020px) {
  .top .wrap { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .menu-btn { display: inline-flex; order: 0; margin-left: -8px; }
  .top .logo { order: 1; margin-right: auto; }
  .carrito-btn { order: 2; }
  .buscador { order: 3; flex: 1 1 100%; margin-left: 0; }
  .buscador input { width: 100%; }
  nav.principal { order: 4; flex: 1 1 100%; flex-direction: column; gap: 0; margin: 0; display: none; border-top: 1px solid #2a2a2a; }
  nav.principal.abierto { display: flex; }
  nav.principal a { padding: 12px 0; border-bottom: 1px solid #222; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 13px 22px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-radius: 3px; }
.btn:hover { background: #333; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: none; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.full { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* Banner rotativo */
.slider { background: var(--black); }
.slider .wrap { padding-block: 0; }
.slides { position: relative; aspect-ratio: 2 / 1; max-height: 560px; width: 100%; overflow: hidden; background: #111; }
.slides a { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slides a.activo { opacity: 1; z-index: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slider .flecha { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.45); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.slider .flecha.izq { left: 12px; } .slider .flecha.der { right: 12px; }
.puntos { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.puntos button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; }
.puntos button[aria-current="true"] { background: #fff; }

/* Barra de contacto */
.info-bar { border-bottom: 1px solid var(--line); }
.info-bar .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 18px; }
.info-bar a, .info-bar div > span { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-size: 13px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .info-bar .wrap { grid-template-columns: 1fr; gap: 8px; } .info-bar a, .info-bar div > span { justify-content: flex-start; } }

/* Sobre nosotros (banda negra) */
.nosotros-banda { background: var(--black) center / cover no-repeat; color: #fff; position: relative; }
.nosotros-banda::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.nosotros-banda .wrap { position: relative; text-align: center; padding-block: clamp(40px, 7vw, 80px); max-width: 760px; }
.nosotros-banda .logo span { font-size: 40px; }
.nosotros-banda h2 { font-size: 18px; letter-spacing: .16em; text-transform: uppercase; margin: 24px 0 12px; }
.nosotros-banda p { margin: 0 0 8px; white-space: pre-line; color: #e9e9e9; }
.nosotros-banda .lema { font: italic 500 22px/1.3 var(--serif); color: var(--accent); margin-top: 16px; }

/* Catálogo con barra lateral */
.shop .wrap { padding-block: 40px 64px; }
.shop-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.shop h1 { font-size: 22px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.lateral { display: grid; gap: 28px; position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.lateral h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.lateral input[type="search"] { width: 100%; border: 1px solid var(--line); padding: 10px 12px; border-radius: 3px; }
.lateral ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lateral li a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; padding: 5px 0; font-size: 13px; color: #333; }
.lateral li a:hover { color: var(--accent); }
.lateral li a[aria-current="true"] { font-weight: 700; color: var(--ink); }
.lateral li a small { color: var(--muted); font-variant-numeric: tabular-nums; }
.lateral details summary { cursor: pointer; list-style: none; }
.lateral details summary::-webkit-details-marker { display: none; }
@media (max-width: 860px) {
  .shop-grid { grid-template-columns: 1fr; gap: 20px; }
  .lateral { position: static; max-height: none; overflow: visible; grid-template-columns: 1fr; gap: 16px; }
  .lateral .bloque-marcas ul { max-height: 260px; overflow: auto; }
}
.barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.barra p { margin: 0; color: var(--muted); font-size: 13px; }
.barra select { border: 1px solid var(--line); padding: 9px 12px; background: #fff; border-radius: 3px; font-size: 13px; max-width: 100%; }
.filtro-activo { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: none; padding: 5px 12px; font-size: 12px; border-radius: 99px; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.card { display: flex; flex-direction: column; text-decoration: none; text-align: center; }
.card .ph { aspect-ratio: 1; background: #fff; position: relative; overflow: hidden; border: 1px solid var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; }
.card .info { padding: 12px 4px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .marca { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.card .name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.35; }
.card .price { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card .ver { margin-top: 10px; align-self: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; border: 1px solid var(--ink); padding: 8px 14px; border-radius: 3px; transition: background .2s, color .2s; }
.card:hover .ver { background: var(--ink); color: #fff; }
.out { color: var(--bad); }
.vacio { padding: 48px 0; color: var(--muted); }
.ph-vacio { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 500 56px/1 var(--serif); color: var(--line); letter-spacing: .1em; }
.paginas { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.paginas a, .paginas span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; font-size: 13px; padding: 0 10px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.paginas a:hover { border-color: var(--ink); }
.paginas [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.paginas span.puntos-sus { border: 0; }

/* Medios de pago */
.pagos-banda { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pagos-banda .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 32px; }
.pagos-banda div { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pagos-banda .ico { width: 36px; height: 36px; stroke-width: 1.4; color: var(--accent); }
@media (max-width: 700px) { .pagos-banda .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Opiniones */
.opiniones .wrap { padding-block: 56px; }
.opiniones h2 { text-align: center; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 28px; }
.opiniones .lista { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.opiniones figure { margin: 0; border: 1px solid var(--line); padding: 20px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.opiniones blockquote { margin: 0; font-size: 13px; color: #333; }
.opiniones figcaption { font-weight: 600; font-size: 13px; }
.opiniones .estrellas { color: var(--accent); letter-spacing: 2px; }

/* Producto */
.pdp .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-block: 32px 48px; }
.pdp .fotos { display: grid; gap: 8px; align-content: start; }
.pdp .fotos .principal { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.pdp .fotos .principal img { width: 100%; height: 100%; object-fit: contain; }
.pdp .miniaturas { display: flex; gap: 8px; }
.pdp .miniaturas button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); background: #fff; }
.pdp .miniaturas button[aria-current="true"] { border-color: var(--ink); }
.pdp .miniaturas img { width: 100%; height: 100%; object-fit: contain; }
.pdp .datos { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: 100px; align-self: start; }
.pdp .datos nav a { text-decoration: none; }
.pdp .datos nav a:hover { text-decoration: underline; }
.pdp h1 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.pdp .marca-link { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-decoration: none; font-weight: 600; }
.pdp .resumen { color: var(--muted); margin: 0; }
.variantes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.variantes legend { margin-bottom: 8px; }
.variantes label { position: relative; }
.variantes input { position: absolute; opacity: 0; }
.variantes span { display: block; border: 1px solid var(--line); padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 3px; }
.variantes input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.variantes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.variantes input:disabled + span { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.precio { font: 700 28px/1 var(--sans); font-variant-numeric: tabular-nums; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.precio s { font-size: 18px; color: var(--muted); font-weight: 400; }
.precio small { font: 500 13px/1.4 var(--sans); color: var(--ok); }
.cantidad { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.cantidad .btn { flex: 1 1 200px; }
.qty { display: inline-flex; border: 1px solid var(--line); align-items: center; border-radius: 3px; }
.qty button { background: none; border: 0; width: 36px; height: 100%; min-height: 40px; }
.qty span, .qty input { min-width: 32px; width: 40px; text-align: center; font-variant-numeric: tabular-nums; border: 0; background: none; }
.meta-prod { font-size: 12px; color: var(--muted); display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.meta-prod a { color: var(--ink); }
details.acordeon { border-top: 1px solid var(--line); padding-block: 14px; }
details.acordeon:last-of-type { border-bottom: 1px solid var(--line); }
details.acordeon summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
details.acordeon summary::after { content: "+"; }
details.acordeon[open] summary::after { content: "–"; }
details.acordeon p { color: var(--muted); white-space: pre-line; margin: 12px 0 0; font-size: 14px; }
@media (max-width: 860px) { .pdp .wrap { grid-template-columns: 1fr; } .pdp .datos { position: static; } }
.relacionados .wrap { padding-block: 16px 64px; }
.relacionados h2 { font-size: 16px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }

/* Carrito y checkout */
.checkout .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); padding-block: 32px 72px; align-items: start; }
@media (max-width: 860px) { .checkout .wrap { grid-template-columns: 1fr; } }
.checkout h1 { font-size: 24px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.checkout h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin: 28px 0 12px; }
.linea { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding-block: 14px; }
.linea .mini { width: 72px; height: 72px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.linea .mini img { width: 100%; height: 100%; object-fit: contain; }
.linea .nom { font-size: 13px; font-weight: 600; text-transform: uppercase; }
.linea .acciones { display: flex; gap: 12px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.linea .monto { font-variant-numeric: tabular-nums; font-weight: 600; }
.resumen-box { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 100px; border-radius: 3px; }
.resumen-box .fila { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; font-size: 14px; }
.resumen-box .total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; }
form.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
form.datos .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.datos { grid-template-columns: 1fr; } }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 0; }
.campo input, .campo select, .campo textarea { border: 1px solid var(--line); background: #fff; padding: 10px 12px; font-size: 15px; border-radius: 3px; width: 100%; }
.campo textarea { min-height: 80px; resize: vertical; }
.opciones { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.opcion { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; border: 1px solid var(--line); padding: 14px 16px; cursor: pointer; border-radius: 3px; }
.opcion:has(input:checked) { border-color: var(--ink); }
.opcion input { margin-top: 4px; accent-color: var(--ink); }
.opcion small { display: block; color: var(--muted); font-size: 12px; }
.opcion .extra { font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.error-box { border: 1px solid var(--bad); color: var(--bad); padding: 12px 14px; font-size: 14px; }
.ok-box { border: 1px solid var(--ok); padding: 16px; }
pre.datos-banco { background: var(--surface); padding: 16px; white-space: pre-wrap; font: 400 14px/1.6 var(--sans); margin: 0; }

/* Páginas de texto */
.texto .wrap { max-width: 760px; padding-block: 48px 72px; }
.texto h1 { font-size: 26px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 24px; }
.texto h2 { font-size: 16px; margin: 32px 0 8px; }
.texto p, .texto li { color: var(--ink); max-width: 65ch; }

/* Pie negro */
footer.site { background: var(--black); color: #d6d6d6; }
footer.site .wrap { padding-block: 48px 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; font-size: 13px; }
footer.site .logo { color: #fff; align-items: flex-start; }
footer.site h3 { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .contacto li { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
footer.site .legal { grid-column: 1 / -1; color: #8d8d8d; font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #262626; padding-top: 20px; }
@media (max-width: 860px) { footer.site .wrap { grid-template-columns: 1fr 1fr; } footer.site .marca { grid-column: 1 / -1; } }
@media (max-width: 480px) { footer.site .wrap { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 25; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; font-size: 13px; z-index: 30; display: flex; gap: 16px; align-items: center; border-radius: 3px; max-width: calc(100vw - 32px); }
.toast a { color: #fff; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
