/* INFASTROS · tienda. Estructura tipo e-commerce (barra de anuncios, logo centrado, menú de
   categorías, hero con CTA, banda animada, grillas de producto) con la identidad negro/violeta. */
:root {
  --bg: #ffffff;
  --soft: #f5f4f7;
  --ink: #0f0d14;
  --ink-2: #3b3647;
  --muted: #6f6880;
  --line: #e7e4ec;
  --violet: #7b2cff;
  --violet-d: #5d16d6;
  --violet-l: #efe6ff;
  --hot: #e11d48;
  --ok: #15803d;
  --dark: #0b0910;
  --dark-2: #15111d;
  --dark-line: #2a2238;
  --r: 12px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Poppins", "Arial Black", system-ui, sans-serif;
  --gothic: "UnifrakturCook", "Old English Text MT", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.gothic { font-family: var(--gothic); font-weight: 700; text-transform: none; letter-spacing: 0; }
.accent { color: #c4a0ff; }
.eyebrow { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin: 0 0 .5rem; }
.hint { color: var(--muted); font-size: .88rem; margin: .25rem 0 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--violet); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Barra de anuncios */
.announce { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--violet); color: #fff; padding: .45rem var(--gutter); }
.announce__text { margin: 0; font: 700 .78rem var(--head); letter-spacing: .06em; text-transform: uppercase; text-align: center; flex: 1; transition: opacity .3s; }
.announce__arrow { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 .4rem; opacity: .8; }
.announce__arrow:hover { opacity: 1; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .7rem var(--gutter); max-width: var(--max); margin: 0 auto; }
.header__menu { visibility: hidden; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo .gothic { font-size: 2.1rem; line-height: 1; }
.header__actions { display: flex; justify-content: flex-end; gap: .3rem; }
.header__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem 2rem; padding: 0 var(--gutter) .75rem; }
.header__nav a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); padding: .2rem 0; border-bottom: 2px solid transparent; }
.header__nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.header__nav .nav-hot { color: var(--violet); font-weight: 700; }
.icon-btn { position: relative; background: none; border: 0; color: inherit; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; font-size: 1.05rem; }
.icon-btn:hover { background: var(--soft); }
.badge-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--violet); color: #fff; font: 700 .65rem/18px var(--sans); }
.badge-count[data-vacio] { display: none; }
.dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 10px; font: 600 .9rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .1s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover:not(:disabled) { background: #2a2433; }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--violet-d); box-shadow: 0 6px 24px rgba(123, 44, 255, .35); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--violet); font: 600 .85rem var(--sans); cursor: pointer; padding: 0; text-decoration: underline; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,9,16,.15), rgba(11,9,16,.55) 60%, rgba(11,9,16,.75)); }
.hero__content { padding: 4rem var(--gutter); max-width: 760px; }
.hero__kicker { font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; opacity: .9; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.hero__lead { font-size: 1.08rem; margin: 1rem auto 1.8rem; max-width: 34rem; opacity: .95; }
.hero .btn--dark { background: #000; }

/* Banda */
.band { background: linear-gradient(90deg, #5d16d6, #7b2cff, #9b5bff); color: #fff; overflow: hidden; white-space: nowrap; padding: .85rem 0; }
.band__track { display: inline-flex; gap: 2rem; align-items: center; animation: band 32s linear infinite; font: 700 1rem var(--head); }
.band__track i { font-style: normal; opacity: .85; }
@keyframes band { to { transform: translateX(-50%); } }

/* Secciones */
.section { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: #f3f0fa; }
.title-center { text-align: center; margin-bottom: 2rem; }
.title-center p { color: var(--muted); margin: .5rem 0 0; }
.title-center a { color: var(--violet); }

/* Grilla de productos */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.1rem; }
.pcard { position: relative; display: flex; flex-direction: column; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pcard__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: #e9e7ee; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard__img img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard:hover .pcard__img img + img { opacity: 1; }
.pcard__tag { position: absolute; top: .7rem; left: .7rem; background: var(--violet); color: #fff; padding: .3rem .6rem; border-radius: 6px; font: 700 .68rem var(--sans); text-transform: uppercase; letter-spacing: .04em; z-index: 1; }
.pcard__tag--sold { background: #fff; color: var(--ink); }
.pcard__quick { position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); z-index: 1; }
.pcard__name { font-weight: 600; font-size: 1rem; margin-top: .8rem; line-height: 1.3; }
.pcard__tech { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.pcard__price { font-weight: 700; margin-top: .35rem; }
.pcard__price small { color: var(--muted); font-weight: 500; }

/* Tiles de categorías */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .65)); }
.tile span { position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 1; font: 800 1.5rem var(--head); text-transform: uppercase; }

/* Colección */
.collection__head { margin-bottom: 1.5rem; }
.collection__head h2 { text-transform: none; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
.collection__desc { font-style: italic; color: var(--ink-2); max-width: 36rem; margin: .8rem 0 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; border-block: 1px solid var(--line); padding: .8rem 0; margin-bottom: 1.6rem; }
.toolbar__filters, .toolbar__sort { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.toolbar label { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); }
.toolbar select { border: 0; background: transparent; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; padding: .3rem 0; }
.toolbar__count { font-size: .88rem; color: var(--muted); }

/* Lookbook */
.look { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 20%); gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; scrollbar-color: var(--violet) transparent; }
.look figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; border-radius: var(--r); background: var(--soft); }
.look img { width: 100%; height: 100%; object-fit: cover; }

/* Custom (oscuro) */
.custom { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.custom h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.custom__intro p { color: #d5cde6; max-width: 30rem; }
.section--dark .eyebrow { color: #c4a0ff; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; color: #e8e2f4; }
.checks li::before { content: "★"; color: #c4a0ff; margin-right: .6rem; }

/* Formularios */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 3vw, 1.8rem); }
.card--dark { background: var(--dark-2); border-color: var(--dark-line); color: #f3f0fa; }
.form { display: grid; gap: 1rem; }
.form h3 { font-size: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; background: #fff; color: var(--ink); border: 1px solid #d9d5e0; border-radius: 10px; padding: .75rem .9rem; font: 400 1rem var(--sans); }
.card--dark input, .card--dark select, .card--dark textarea { background: var(--dark); color: #f3f0fa; border-color: var(--dark-line); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123, 44, 255, .2); }
.form [aria-invalid="true"] { border-color: var(--hot); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#camposEnvio:not([hidden]), #camposPresencial:not([hidden]) { display: grid; gap: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; cursor: pointer; display: inline-block !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5rem .9rem; border: 1px solid #d9d5e0; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.card--dark .chip span { border-color: var(--dark-line); color: #d5cde6; }
.chip input:checked + span { border-color: var(--violet); background: var(--violet); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.consent { display: flex !important; align-items: flex-start; gap: .6rem !important; font-weight: 400 !important; color: var(--muted); }
.consent input { width: auto; margin-top: .25rem; accent-color: var(--violet); }
.consent a { color: var(--violet); }
.error { color: var(--hot); font-size: .9rem; margin: 0; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pasos */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps li { background: #fff; border-radius: var(--r); padding: 1.4rem; border: 1px solid var(--line); }
.steps span { font: 800 .85rem var(--head); color: var(--violet); }
.steps h3 { font-size: 1.15rem; margin: .5rem 0 .4rem; }
.steps p { color: var(--muted); margin: 0; font-size: .92rem; }

/* FAQ */
.faq { max-width: 820px !important; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: .6rem 0 0; }

/* Footer */
.footer { background: var(--dark); color: #d5cde6; padding: 3rem var(--gutter); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-end; }
.footer__brand .gothic { font-size: clamp(2.4rem, 7vw, 4rem); color: #c4a0ff; line-height: 1; }
.footer__brand p { margin: .4rem 0 0; font-size: .9rem; }
.footer__links { display: flex; gap: 1.5rem; margin-left: auto; }
.footer__links a { text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { width: 100%; margin: 0; font-size: .82rem; color: #8d84a0; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(15, 13, 20, .45); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 60; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); visibility: hidden; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); }
.drawer[aria-hidden="false"] { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; }
.drawer__body { overflow-y: auto; padding: 0 1.2rem; flex: 1; }
.drawer__foot { padding: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; }
.empty { color: var(--muted); text-align: center; padding: 3rem 0; }
.citem { display: grid; grid-template-columns: 72px 1fr auto; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.citem img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.citem h4 { margin: 0; font-size: .95rem; }
.citem small { color: var(--muted); display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; margin-top: .4rem; }
.qty button { background: none; border: 0; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.qty span { min-width: 22px; text-align: center; font-size: .85rem; }
.citem__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-weight: 700; font-size: .9rem; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .78rem; text-decoration: underline; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total strong { font: 800 1.4rem var(--head); }

/* Modales */
.modal { width: min(520px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1.2rem, 3vw, 2rem); background: #fff; color: var(--ink); border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal--wide { width: min(980px, calc(100vw - 2rem)); }
.modal::backdrop { background: rgba(15, 13, 20, .55); backdrop-filter: blur(3px); }
.modal h2 { font-size: 1.6rem; margin-bottom: .4rem; padding-right: 2.5rem; }
.modal__close { position: absolute; top: .8rem; right: .8rem; margin: 0; z-index: 2; }
.modal__close .icon-btn { background: var(--soft); }

.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; }
.product__gallery { display: grid; gap: .6rem; }
.product__gallery > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.product__thumbs { display: flex; gap: .5rem; }
.product__thumbs button { padding: 0; border: 2px solid transparent; background: none; width: 68px; cursor: pointer; border-radius: 8px; overflow: hidden; }
.product__thumbs button[aria-current="true"] { border-color: var(--violet); }
.product__thumbs img { aspect-ratio: 1; object-fit: cover; }
.product__info { align-content: start; }
.product__price { font: 800 1.5rem var(--head); }
.product__info p { color: var(--ink-2); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags span { background: var(--violet-l); color: var(--violet-d); padding: .3rem .65rem; font-size: .75rem; font-weight: 600; border-radius: 999px; }
.summary { background: var(--soft); border-radius: 10px; padding: .9rem 1rem; margin: 1rem 0; font-size: .9rem; display: grid; gap: .3rem; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; }
.summary .sum-total { border-top: 1px solid var(--line); padding-top: .4rem; font-weight: 700; }
.ok { text-align: center; display: grid; gap: .6rem; justify-items: center; }
.ok h2 { padding: 0; }
.ok__code { font: 800 2.2rem var(--head); letter-spacing: .06em; color: var(--violet); margin: 0; }
.ok p { margin: 0; color: var(--ink-2); }

/* Login */
.login { display: grid; gap: .8rem; text-align: center; }
.login__logo { font-size: 2.4rem; color: var(--violet); }
.login h2 { padding: 0; }
.login .form { text-align: left; margin-top: .6rem; }
.login__sent { margin: 0; font-size: .92rem; color: var(--ink-2); }
.otp { text-align: center; font: 700 1.8rem var(--head) !important; letter-spacing: .6em; padding-left: 1.4rem !important; }
.login__alt { display: flex; justify-content: space-between; }

/* Cuenta */
.account__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; padding-right: 3rem; }
.account__head h2 { padding: 0; }
.account__grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.account h3 { font-size: 1rem; margin-bottom: .8rem; }
.history { display: grid; gap: .8rem; }
.order { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: .5rem; }
.order__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order__code { font: 800 1rem var(--head); color: var(--violet); }
.order small { color: var(--muted); }
.order ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); }
.status { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 999px; background: var(--violet-l); color: var(--violet-d); }
.status--entregado { background: #dcfce7; color: var(--ok); }
.status--cancelado { background: #f1f1f4; color: var(--muted); }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.progress span { height: 5px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--violet); }
.order__foot { display: flex; justify-content: space-between; font-size: .88rem; }

/* Toast */
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translate(-50%, 160%); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 10px; font-weight: 600; font-size: .9rem; z-index: 80; transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .header__menu { visibility: visible; }
  .logo .gothic { font-size: 1.7rem; }
  .logo img { width: 28px; height: 28px; }
  .header__nav { display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 var(--gutter) .6rem; }
  .header__nav.open { display: flex; }
  .header__nav a { padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .7rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .custom, .product, .account__grid { grid-template-columns: 1fr; }
  .look { grid-auto-columns: 62vw; }
  .toolbar label { font-size: .82rem; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .pcard__name { font-size: .92rem; }
  .steps { grid-template-columns: 1fr; }
  .account__head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
