/* =========================================================
   Levana Store — componentes de variantes de home, tienda,
   temas y panel de personalización. Usa los tokens de styles.css
   ========================================================= */
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.section__head--center { justify-content: center; text-align: center; }
.checks li { padding-left: 26px; position: relative; margin: 8px 0; color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Menú desplegable de homes ---------- */
.has-drop { position: relative; }
.drop {
  position: absolute; top: 100%; left: -20px; min-width: 250px; background: var(--bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: 12px 0; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; display: block !important;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.nav .drop a { padding: 7px 22px; text-transform: none; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.nav .drop a::after { display: none; }
.nav .drop a:hover { padding-left: 28px; }
.drop em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--on-accent); background: var(--accent); padding: 0 7px; border-radius: 8px; align-self: center; }

/* ---------- Header con buscador / oscuro ---------- */
.header__search { display: flex; align-items: center; background: var(--surface); border-radius: var(--radius-pill); padding: 0 6px 0 18px; height: 40px; width: 260px; }
.header__search input { border: 0; background: transparent; font: inherit; color: var(--ink); flex: 1; min-width: 0; outline: none; }
.header__search button { width: 30px; height: 30px; color: var(--accent); padding: 5px; }
.header--dark { --header-bg: #111; }
.header--dark .nav > ul > li > a, .header--dark .icon-btn, .header--dark .logo { color: #f2f2f2; }
.header--dark .logo__img { filter: brightness(0) invert(1); }   /* logo en blanco sobre fondo oscuro */
.header--dark .header__search { background: #222; }
.header--dark .header__search input { color: #eee; }
@media (max-width: 1100px) { .header__search { width: 180px; } }
@media (max-width: 860px) {
  .header__search { display: none; }
  .nav .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 12px; }
}

/* ---------- Héroes ---------- */
.hero--dark { background: radial-gradient(ellipse at 70% 40%, #2a2a35, #0d0d10 70%); }
.hero--dark h1, .hero--dark p:not(.hero__eyebrow) { color: #f2f2f2; }
.hero--dark .ph { color: #555; }
.hero--boxed { border-radius: var(--radius); }
.hero--boxed .hero__slide { padding: 40px; min-height: 440px; }
.hero-side { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding-top: 30px; }
.hero-side__stack { display: grid; gap: 24px; }
.promo-mini { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--surface-2); padding: 24px; border-radius: var(--radius); overflow: hidden; }
.promo-mini small { color: var(--accent); font-weight: 700; text-transform: uppercase; }
.promo-mini h3 { font-size: 24px; margin: 4px 0 12px; }
.promo-mini .ph { background: transparent; transition: transform .4s; }
.promo-mini:hover .ph { transform: scale(1.08) rotate(-3deg); }
.promo-mini--accent { background: var(--accent); }
.promo-mini--accent h3, .promo-mini--accent .link-arrow, .promo-mini--accent small { color: var(--on-accent); }
.promo-mini--accent .link-arrow::after { color: var(--on-accent); }

.hero-center { position: relative; overflow: hidden; text-align: center; padding: 80px 0 0; background: var(--surface); }
.hero-center .container { position: relative; }
.hero-center h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 18px; }
.hero-center p { font-size: 17px; max-width: 520px; margin: 0 auto 28px; }
.hero-center__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-center__media { max-width: 620px; margin: 40px auto 0; }
.hero-center__media .ph { aspect-ratio: 16 / 8; background: transparent; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: drift 14s ease-in-out infinite alternate; }
.blob--1 { width: 380px; height: 380px; background: var(--accent); top: -120px; left: -80px; }
.blob--2 { width: 320px; height: 320px; background: var(--accent-2); bottom: -100px; right: -60px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

.hero-landing { background: var(--surface); overflow: hidden; }
.hero-landing .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; min-height: 560px; }
.hero-landing h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 16px; }
.hero-landing p { font-size: 17px; max-width: 440px; }
.hero-landing .price { margin: 4px 0 24px; }
.hero-landing .price__now { font-size: 28px; }
.hero-landing .hero-center__cta { justify-content: flex-start; }
.hero-landing__copy > * { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-landing__copy > *:nth-child(2) { animation-delay: .1s; }
.hero-landing__copy > *:nth-child(3) { animation-delay: .2s; }
.hero-landing__copy > *:nth-child(4) { animation-delay: .3s; }
.hero-landing__copy > *:nth-child(5) { animation-delay: .4s; }
.hero-landing__media { position: relative; display: grid; place-items: center; }
.hero-landing__media .ph { background: transparent; position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
.ring { position: absolute; inset: 10%; border-radius: 50%; border: 2px solid var(--accent); opacity: .25; animation: ripple 4s ease-out infinite; }
.ring--2 { animation-delay: 2s; }
@keyframes ripple { from { transform: scale(.7); opacity: .4; } to { transform: scale(1.15); opacity: 0; } }

/* ---------- Ofertas con barra de stock ---------- */
.deal-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: center; box-shadow: var(--shadow-card); padding: 20px; transition: box-shadow .25s; background: var(--bg); }
.deal-card:hover { box-shadow: var(--shadow-card-hover); }
.deal-card__media .ph { background: transparent; }
.deal-card .card__title { margin: 8px 0 2px; }
.stock-bar { height: 6px; background: var(--surface-2); border-radius: 4px; margin: 10px 0 4px; overflow: hidden; }
.stock-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.countdown--sm { justify-content: flex-start; gap: 6px; margin: 10px 0 0; }
.countdown--sm div { width: 42px; padding: 6px 0 2px; text-align: center; }
.countdown--sm b { font-size: 14px; }

/* ---------- Línea de productos (scroll horizontal) ---------- */
.lineup { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 20px; scrollbar-width: thin; }
.lineup__item { flex: 0 0 240px; scroll-snap-align: start; text-align: center; background: var(--surface); padding: 24px; border-radius: var(--radius); transition: transform .3s; }
.lineup__item:hover { transform: translateY(-6px); }
.lineup__item .ph { background: transparent; }
.lineup__item h3 { font-size: 17px; margin: 12px 0 4px; }

/* ---------- Categorías redondas ---------- */
.round-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.round-cat .ph { border-radius: 50%; background: var(--surface); transition: transform .35s, box-shadow .35s; }
.round-cat:hover .ph { transform: scale(1.06); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent); }
.round-cat span { display: block; margin-top: 12px; color: var(--ink); font-weight: 500; }

/* ---------- Promos ---------- */
.split-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface); padding: 40px; border-radius: var(--radius); }
.split-promo h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.split-promo .ph { background: transparent; }
.wide-cta { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; background: var(--surface-2); padding: 50px 60px; border-radius: var(--radius); overflow: hidden; }
.wide-cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin-bottom: 12px; }
.wide-cta p:not(.hero__eyebrow) { margin: 0 0 24px; max-width: 420px; }
.wide-cta__media .ph { background: transparent; aspect-ratio: 4 / 3; transition: transform .5s; }
.wide-cta:hover .wide-cta__media .ph { transform: scale(1.05) rotate(-2deg); }
.wide-cta--dark { background: linear-gradient(120deg, #15151b, #2b2b38); }
.wide-cta--dark h2, .wide-cta--dark p { color: #eee; }
.big-promo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 300px; padding: 36px; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; }
.big-promo small { text-transform: uppercase; letter-spacing: .08em; }
.big-promo h3 { font-size: 30px; margin: 6px 0 16px; }
.big-promo .ph { background: transparent; transition: transform .5s; }
.big-promo:hover .ph { transform: scale(1.08); }
.big-promo--alt { background: var(--accent-soft); }

/* ---------- Confianza ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 70px; width: max-content; padding: 28px 0; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-size: 28px; font-weight: 800; letter-spacing: .04em; color: var(--muted); opacity: .6; transition: color .2s, opacity .2s; }
.marquee span:hover { color: var(--accent); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.perks { border-bottom: 1px solid var(--line); }
.perks .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 28px; }
.perk { display: flex; gap: 14px; align-items: center; }
.perk svg { width: 38px; height: 38px; color: var(--accent); flex: none; }
.perk b { display: block; color: var(--ink); }
.perk small { font-size: 13px; }

.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; background: var(--counters-bg); color: var(--counters-text); padding: 46px 20px; border-radius: var(--radius); }
.counters b { display: block; font-size: 44px; color: var(--counters-number); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.about__media { position: relative; }
.about__media .ph { aspect-ratio: 4 / 3.4; border-radius: var(--radius); }
.about__badge { position: absolute; right: -16px; bottom: -16px; background: var(--accent); color: var(--on-accent); padding: 18px 22px; display: flex; gap: 10px; align-items: center; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.about__badge b { font-size: 42px; line-height: 1; }
.about__badge small { line-height: 1.3; }

.mission { text-align: center; padding: 36px 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .3s; }
.mission:hover { border-color: var(--accent); transform: translateY(-4px); }
.mission svg { width: 48px; height: 48px; color: var(--accent); margin: 0 auto 14px; }
.mission h3 { font-size: 19px; margin-bottom: 8px; }
.mission p { margin: 0; }

.testimonials { text-align: center; background: var(--surface); padding: 60px 24px; border-radius: var(--radius); }
.testimonials__rotator { display: grid; }
.testimonials__rotator blockquote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.testimonials__rotator blockquote.is-active { opacity: 1; transform: none; }
.testimonials blockquote p { font-size: clamp(18px, 2.4vw, 24px); color: var(--ink); max-width: 720px; margin: 10px auto 16px; line-height: 1.5; }
.stars { color: var(--star); letter-spacing: 3px; }
.testimonials .stars { margin-top: 10px; }

.contact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 36px; }
.contact-strip b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.ask { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--accent); color: var(--on-accent); padding: 40px 50px; border-radius: var(--radius); }
.ask h2 { color: var(--on-accent); font-size: var(--fs-h2); }
.ask p { margin: 4px 0 0; opacity: .9; }
.ask__form { display: flex; background: var(--bg); border-radius: var(--radius-pill); padding: 5px; flex: 1; max-width: 440px; }
.ask__form input { flex: 1; border: 0; padding: 0 18px; font: inherit; outline: none; min-width: 0; background: transparent; color: var(--ink); }
.ask__form .btn { background: var(--dark); color: var(--on-dark); }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.specs h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.specs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.specs__grid div { background: var(--surface); padding: 28px; border-radius: var(--radius); }
.specs__grid b { display: block; font-size: 36px; color: var(--accent); line-height: 1.1; }

/* =========================================================
   Tienda funcional: drawer, modales, toast, páginas
   ========================================================= */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 85; opacity: 0; visibility: hidden; transition: .3s; }
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.x-btn { font-size: 26px; line-height: 1; color: var(--ink); width: 32px; height: 32px; transition: transform .2s; }
.x-btn:hover { transform: rotate(90deg); color: var(--accent); }

.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: fadeUp .35s both; }
.line .ph { border: 1px solid var(--line); background: var(--surface); }
.line h4 { font-size: 14px; font-weight: 500; }
.line small { display: block; }
.line .remove { color: var(--muted); font-size: 18px; }
.line .remove:hover { color: var(--accent); }
.qty--sm { height: 32px; margin-top: 6px; }
.qty--sm button { width: 28px; }
.qty--sm input { width: 32px; }
.qty input { background: transparent; color: var(--ink); }
.qty button { color: var(--ink); }
.totals { display: flex; justify-content: space-between; font-size: 16px; color: var(--ink); }
.totals b { font-size: 20px; }
.free-ship { font-size: 13px; }
.free-ship .stock-bar { margin: 6px 0 0; }

.empty { text-align: center; padding: 60px 20px; }
.empty svg { width: 64px; height: 64px; color: var(--muted); margin: 0 auto 16px; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { margin: 0 0 20px; }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__box {
  background: var(--bg); width: min(860px, 100%); max-height: 90vh; overflow-y: auto; position: relative; padding: 30px;
  border-radius: var(--radius); opacity: 0; transform: translateY(30px) scale(.97); transition: .3s cubic-bezier(.2, .7, .2, 1);
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__box--sm { width: min(520px, 100%); }
.modal .x-btn { position: absolute; right: 14px; top: 12px; }
.added { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.added .ph { background: var(--surface); }
.added__ok { color: var(--success); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.added__btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.quick .ph { background: var(--surface); }
.quick h2 { font-size: 24px; margin-bottom: 6px; }

.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--radius); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: toastIn .35s both; }
.toast.out { animation: toastOut .3s both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

/* Acciones activas en tarjetas */
.card__actions button.is-on, .icon-toggle.is-on { background: var(--accent); color: var(--on-accent); }
.card__soldout { position: absolute; right: 14px; top: 14px; z-index: 2; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; padding: 2px 8px; }
.card .stars { font-size: 12px; display: block; }
.card .add-line { margin-top: 12px; width: 100%; opacity: 0; transform: translateY(8px); transition: .25s; }
.card:hover .add-line { opacity: 1; transform: none; }
@media (hover: none) { .card .add-line, .card__actions, .card__actions button { opacity: 1; transform: none; } }

/* Vista lista en catálogo */
.grid--list { grid-template-columns: 1fr !important; }
.grid--list .card { display: grid; grid-template-columns: 200px 1fr; text-align: left; gap: 24px; align-items: center; }
.grid--list .card__media { margin: 0; }
.grid--list .card .add-line { opacity: 1; transform: none; width: auto; }
.view-btns { display: flex; gap: 6px; }
.view-btns button { width: 34px; height: 34px; border: 1px solid var(--line); color: var(--muted); }
.view-btns button.is-active { color: var(--accent); border-color: var(--accent); }
.range { display: flex; gap: 8px; align-items: center; }
.range input { width: 100%; border: 1px solid var(--line); padding: 6px 8px; font: inherit; background: var(--bg); color: var(--ink); }
.filter .btn { margin-top: 12px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filters button { background: var(--surface); padding: 4px 12px; border-radius: var(--radius-pill); font-size: 13px; }
.active-filters button::after { content: " ×"; color: var(--accent); }

/* Búsqueda superpuesta */
.search-pop { position: fixed; inset: 0 0 auto 0; z-index: 95; background: var(--bg); padding: 40px 0; transform: translateY(-100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 10px 40px rgba(0, 0, 0, .15); }
.search-pop.is-open { transform: none; }
.search-pop form { display: flex; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.search-pop input { flex: 1; border: 0; font: inherit; font-size: 24px; background: transparent; color: var(--ink); outline: none; min-width: 0; }
.search-pop .results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.search-pop .results a { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius); }
.search-pop .results a:hover { background: var(--surface); }
.search-pop .results .ph { background: var(--surface); }
.search-pop .x-btn { position: absolute; right: 20px; top: 10px; }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }

/* Tablas: carrito / comparar */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; color: var(--ink); padding: 14px 12px; background: var(--surface); }
.table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .ph { width: 80px; border: 1px solid var(--line); background: var(--surface); }
.cart-page { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.summary { background: var(--surface); padding: 26px; border-radius: var(--radius); display: grid; gap: 14px; position: sticky; top: 100px; }
.summary h3 { font-size: 20px; }
.summary .row { display: flex; justify-content: space-between; }
.summary .row--total { border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink); font-size: 18px; font-weight: 700; }
.coupon { display: flex; gap: 8px; }
.coupon input, .field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); padding: 11px 14px; font: inherit; background: var(--bg); color: var(--ink); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--ink); font-size: 13px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.compare-wrap { overflow-x: auto; }
.compare-table td, .compare-table th { min-width: 200px; text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; min-width: 120px; color: var(--ink); font-weight: 600; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.checkout h3 { font-size: 20px; margin: 26px 0 14px; }
.checkout h3:first-child { margin-top: 0; }
.pay-opts { display: grid; gap: 10px; }
.pay-opts label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); cursor: pointer; }
.pay-opts label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.steps { display: flex; gap: 10px; font-size: 13px; margin-bottom: 26px; flex-wrap: wrap; }
.steps span { color: var(--muted); }
.steps span.is-on { color: var(--accent); font-weight: 600; }
.success { text-align: center; padding: 40px 0; }
.success__check { width: 84px; height: 84px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 40px; margin: 0 auto 20px; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { transform: scale(0); } }

/* Acordeón (FAQ) */
.acc { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--bg); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 20px; color: var(--ink); font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .3s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc[open] summary { background: var(--surface); }
.acc p { margin: 0; padding: 16px 20px; animation: fadeUp .35s both; }

/* Pestañas de contenido (producto, cuenta) */
.ptabs { margin-top: 50px; }
.ptabs__nav { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.ptabs__nav button { padding: 12px 0; font-weight: 600; color: var(--muted); position: relative; }
.ptabs__nav button.is-active { color: var(--ink); }
.ptabs__nav button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); animation: grow .3s both; }
@keyframes grow { from { transform: scaleX(0); } }
.ptabs__panel { display: none; }
.ptabs__panel.is-active { display: block; animation: fadeUp .35s both; }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review b { color: var(--ink); }

/* Página 404 */
.e404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; position: relative; overflow: hidden; }
.e404__num { font-size: clamp(110px, 22vw, 220px); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.04em; display: flex; justify-content: center; }
.e404__num span { display: inline-block; animation: wobble 3s ease-in-out infinite; }
.e404__num span:nth-child(2) { color: var(--accent); animation-delay: .3s; }
.e404__num span:nth-child(3) { animation-delay: .6s; }
@keyframes wobble { 50% { transform: translateY(-14px) rotate(-3deg); } }
.e404 h1 { font-size: 30px; margin: 10px 0 8px; }
.e404 form { display: flex; gap: 10px; max-width: 460px; margin: 24px auto; }
.e404 form input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0 20px; font: inherit; background: var(--bg); color: var(--ink); min-width: 0; }

/* Nosotros / equipo / contacto */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.team .ph { border-radius: var(--radius); margin-bottom: 14px; aspect-ratio: 4 / 4.5; }
.team h3 { font-size: 18px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-cards > div { background: var(--surface); padding: 30px; border-radius: var(--radius); }
.contact-cards h4 { text-transform: uppercase; font-size: 14px; letter-spacing: .08em; margin-bottom: 10px; }
.map { aspect-ratio: 16 / 6; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); display: grid; place-items: center; border-radius: var(--radius); color: var(--muted); }
.widget { margin-bottom: 30px; }
.widget h4 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.widget li { padding: 5px 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags a { border: 1px solid var(--line); padding: 3px 12px; font-size: 13px; border-radius: var(--radius-pill); }
.tags a:hover { border-color: var(--accent); }
.article h1 { font-size: clamp(28px, 4vw, 38px); margin: 10px 0 20px; }
.article .ph { aspect-ratio: 16 / 8; border-radius: var(--radius); margin-bottom: 24px; }
.article blockquote { border-left: 3px solid var(--accent); margin: 24px 0; padding: 6px 20px; color: var(--ink); font-size: 18px; }
.comment { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }

/* Cuenta */
.auth { max-width: 460px; margin: 0 auto; }
.auth .ptabs { margin-top: 0; }
.auth form { display: grid; gap: 16px; }
.auth .muted-link { font-size: 13px; text-align: right; }
.account { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.account nav button { display: block; width: 100%; text-align: left; padding: 12px 16px; border: 1px solid var(--line); margin-bottom: -1px; color: var(--ink); }
.account nav button.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

@media (max-width: 1024px) {
  .round-cats { grid-template-columns: repeat(3, 1fr); }
  .perks .container, .contact-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-side, .split-promo, .wide-cta, .about, .specs, .hero-landing .container, .deal-card,
  .cart-page, .checkout, .quick, .account, .team, .contact-cards { grid-template-columns: 1fr; }
  .wide-cta, .split-promo { padding: 30px 24px; text-align: center; }
  .wide-cta p:not(.hero__eyebrow) { margin-inline: auto; }
  .hero-landing .container { text-align: center; padding-block: 50px; }
  .hero-landing p { margin-inline: auto; }
  .hero-landing .hero-center__cta { justify-content: center; }
  .ask { padding: 30px 24px; }
  .about__badge { right: 10px; }
  .table--cart thead { display: none; }
  .table--cart tr { display: grid; grid-template-columns: 80px 1fr; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table--cart td { border: 0; padding: 0; }
  .table--cart td:first-child { grid-row: span 4; }
}
@media (max-width: 560px) {
  .round-cats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .perks .container, .contact-strip, .form-grid { grid-template-columns: 1fr; }
  .big-promo { grid-template-columns: 1fr; text-align: center; }
  .grid--list .card { grid-template-columns: 1fr; text-align: center; }
  .added { grid-template-columns: 1fr; text-align: center; }
  .added__btns { justify-content: center; }
}

/* =========================================================
   Temas
   ========================================================= */
:root[data-theme="dark"] {
  --bg: #0f0f13; --ink: #f1f1f1; --text: #a9a9b3; --muted: #7d7d88; --line: #2a2a33;
  --surface: #17171d; --surface-2: #1f1f27; --dark: #f1f1f1; --on-dark: #111111;
  --accent-soft: #2a1a16; --counters-bg: #1f1f27;
  --shadow-card: 0 0 0 1px #24242c; --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"] .ph { background: linear-gradient(135deg, #1d1d24, #26262f); color: #4a4a55; }
:root[data-theme="dark"] .btn--dark:hover { background: #fff; }

.theme-xmas { --accent: #c8102e; --accent-dark: #9e0c24; --accent-2: #f2b134; --price: #c8102e; --topbar-bg: #0f5132; --topbar-text: #ffffff; }
.theme-xmas .topbar a { color: inherit; }
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.snow i { position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .2); animation: fall linear infinite; }
@keyframes fall { to { transform: translate(var(--x, 30px), 105vh); } }

:root[data-radius="square"] { --radius: 0px; --radius-pill: 0px; }
:root[data-radius="round"] { --radius: 18px; --radius-pill: 50px; }
:root[data-radius="round"] .card, :root[data-radius="round"] .cat, :root[data-radius="round"] .banner,
:root[data-radius="round"] .post__media, :root[data-radius="round"] .wide-banner, :root[data-radius="round"] .pdp__main,
:root[data-radius="round"] .filter, :root[data-radius="round"] .deal-card { border-radius: var(--radius); overflow: hidden; }

/* =========================================================
   Panel de personalización
   ========================================================= */
.custo-toggle {
  position: fixed; right: 0; top: 40%; z-index: 80; background: var(--ink); color: var(--bg);
  width: 46px; height: 46px; border-radius: 8px 0 0 8px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.custo-toggle svg { width: 22px; height: 22px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.custo { width: min(360px, 100%); z-index: 96; }
.custo .drawer__body { padding: 0 24px 24px; }
.custo h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 10px; color: var(--ink); }
.custo__homes { display: grid; gap: 6px; }
.custo__homes a { display: flex; justify-content: space-between; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; color: var(--ink); }
.custo__homes a.is-current { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.custo__homes em { font-style: normal; font-size: 10px; color: var(--muted); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.presets button { height: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); transition: transform .2s; }
.presets button:hover { transform: scale(1.06); }
.colors { display: grid; gap: 8px; }
.colors label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink); gap: 10px; }
.colors input[type=color] { width: 44px; height: 28px; border: 1px solid var(--line); border-radius: 6px; padding: 0 2px; background: var(--bg); cursor: pointer; flex: none; }
.colors details { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.colors details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.colors details[open] summary { margin-bottom: 10px; }
.colors details > div { display: grid; gap: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg button, .custo select { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; font-size: 13px; color: var(--ink); background: var(--bg); }
.custo select { width: 100%; font: inherit; }
.seg button.is-active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.custo__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.custo__actions .btn { padding: 12px 10px; font-size: 13px; }
.custo textarea { width: 100%; height: 120px; font: 12px/1.5 monospace; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px; margin-top: 10px; display: none; }
.custo textarea.is-on { display: block; }

@media (prefers-reduced-motion: reduce) {
  .blob, .marquee__track, .ring, .snow, .e404__num span, .custo-toggle svg { animation: none !important; }
}

/* Utilidades */
@media (max-width: 560px) { .hide-sm { display: none !important; } }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Disponibilidad (catálogo real) e imágenes de producto */
.avail { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: var(--radius-pill); margin: 4px 0; }
.avail--disponible { background: #e3f6ec; color: var(--success); }
.avail--ultimas { background: #fdf2e1; color: #b45309; }
.avail--consultar { background: var(--surface); color: var(--muted); }
.ph--img { background: transparent; }
.ph--img img { width: 100%; height: 100%; object-fit: contain; }
/* Fotos en banners, slider y categorías: no estiran el cuadro y el fondo blanco de la foto se funde con el banner */
.ph--img { overflow: hidden; min-height: 0; }
.ph--img img { display: block; min-height: 0; }
.banner .ph--img { aspect-ratio: 16 / 7; }
:root:not([data-theme="dark"]) :is(.hero__media, .banner, .big-promo, .promo-mini, .wide-cta__media, .cat, .round-cat, .hero-center__media) .ph--img img { mix-blend-mode: multiply; }

/* ---------- Políticas (términos, envíos, devoluciones, privacidad) ---------- */
.legal__block { margin-bottom: 28px; }
.legal__block h3 { font-size: 20px; margin: 0 0 10px; }
.legal__block p, .legal__block li { line-height: 1.65; }
.legal__block ul, .legal__block ol { padding-left: 22px; margin: 0 0 12px; }
.legal__block li { margin-bottom: 6px; }
.legal a, .acc a, .checkout small a { color: var(--accent); text-decoration: underline; }
.legal__nav { border-top: 1px solid var(--line, rgba(0,0,0,.1)); padding-top: 18px; margin-top: 12px; }
.legal__nav h4 { margin: 0 0 8px; }
.totals--card { font-size: 14px; color: var(--muted); margin-top: -4px; }
.pay-options { display: grid; gap: 10px; margin-top: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius, 10px); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--ink); }
.pay-option input { margin-top: 3px; accent-color: var(--ink); }
.pay-option span { display: grid; gap: 2px; }
.pay-option small { color: var(--muted); }
