/* ===== Variables (cambia aquí colores y fuentes de toda la web) ===== */
:root {
  --brand: #12a37f;
  --brand-dark: #0b7a5e;
  --brand-soft: #e3f6ef;
  --accent: #f4a259;
  --ink: #14211f;
  --muted: #5b6b68;
  --line: #e3e8e7;
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 33, 31, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
p { margin: 0 0 1em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container--narrow { width: min(780px, 92%); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem var(--font-body); cursor: pointer; transition: all .2s ease;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--small { padding: .55rem 1.1rem; font-size: .85rem; background: var(--ink); color: var(--white); }
.btn--small:hover { background: var(--brand); }

/* ===== Aviso y cabecera ===== */
.announcement {
  background: var(--ink); color: #dfe9e7; text-align: center;
  font-size: .82rem; padding: .55rem 1rem; letter-spacing: .02em;
}
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand); color: var(--white); font-family: var(--font-display); font-size: 1.2rem;
}
.logo__text { font-family: var(--font-display); font-size: 1.3rem; }
.nav { display: flex; gap: 2rem; font-weight: 500; font-size: .95rem; }
.nav a { position: relative; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; gap: .5rem; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-btn { display: none; }

/* ===== Hero ===== */
.hero { padding: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero h1 em { font-style: italic; color: var(--brand); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 2.5rem; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.hero__trust li { display: flex; flex-direction: column; font-size: .88rem; }
.hero__trust span { color: var(--muted); }

.hero__visual { position: relative; }
.hero__card--main {
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #0b5c48, #12a37f 55%, #6fd3b4);
  box-shadow: 0 30px 60px rgba(18, 163, 127, .28);
}
.hero__card--main .product-art { position: absolute; inset: 0; background-color: transparent; }
.hero__tag {
  position: absolute; left: 1.5rem; bottom: 1.5rem; background: var(--white);
  border-radius: 14px; padding: 1rem 1.25rem; display: grid; gap: .1rem; box-shadow: var(--shadow);
}
.hero__tag span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero__tag em { font-style: normal; color: var(--brand); font-weight: 600; }
.hero__card--float {
  position: absolute; top: 2rem; right: -1rem; background: var(--white); border-radius: 999px;
  padding: .7rem 1.2rem; font-size: .88rem; font-weight: 500; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .5rem; animation: float 4s ease-in-out infinite;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== Ilustraciones de producto (sustituir por fotos reales) ===== */
.product-art { width: 100%; height: 100%; background-repeat: no-repeat; background-position: center; background-size: 60%; }
.art--lamp { background-color: #15624f; background-image: radial-gradient(circle at 50% 42%, #ffe7b3 0 14%, rgba(255, 210, 120, .55) 15% 26%, transparent 45%), linear-gradient(#1f7d65, #15624f); background-size: cover; }
.art--bottle { background-color: #f6e7d7; background-image: linear-gradient(90deg, transparent 40%, #12a37f 40% 60%, transparent 60%), radial-gradient(ellipse at 50% 22%, #0b7a5e 0 8%, transparent 9%); background-size: 100% 70%, cover; background-position: center 70%, center; }
.art--projector { background-color: #e7ecf3; background-image: radial-gradient(circle at 40% 55%, #14211f 0 9%, #3b4a48 10% 13%, transparent 14%), linear-gradient(transparent 42%, #cfd8e3 42% 68%, transparent 68%); background-size: cover; }
.art--posture { background-color: #f3e3e0; background-image: radial-gradient(ellipse at 50% 30%, #c56b5c 0 10%, transparent 11%), linear-gradient(90deg, transparent 38%, #c56b5c 38% 42%, transparent 42% 58%, #c56b5c 58% 62%, transparent 62%); background-size: cover; }

/* ===== Secciones ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; margin-bottom: 3rem; }
.section__head p { color: var(--muted); }

/* Categorías */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.category {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; transition: all .25s;
}
.category:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow); }
.category__icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); margin-bottom: .75rem; }
.category small { color: var(--muted); }

/* Productos */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__media { position: relative; aspect-ratio: 1; }
.badge { position: absolute; top: 1rem; left: 1rem; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.badge--soft { background: var(--white); }
.product__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 1.15rem; }
.product__body p { color: var(--muted); font-size: .9rem; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 600; font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 400; font-size: .85rem; margin-right: .25rem; }

/* Ventajas */
.features { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.features__intro { position: sticky; top: 110px; }
.features__intro p:last-child { color: var(--muted); }
.features__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feature { padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--white); border-radius: 14px; padding: 1.1rem 1.4rem; border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .8rem 0 0; }

/* Newsletter */
.newsletter {
  background: var(--ink); color: var(--white); border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
.newsletter p { color: #b7c6c3; margin: 0; }
.newsletter__form { display: flex; gap: .5rem; background: var(--white); border-radius: 999px; padding: .4rem; }
.newsletter__form input { flex: 1; border: none; outline: none; padding: 0 1rem; font: inherit; border-radius: 999px; min-width: 0; }
.newsletter__msg { grid-column: 1 / -1; color: #9fe3d6 !important; min-height: 1.2em; }

/* Pie */
.footer { background: #0e1716; color: #a9b8b5; padding: 4rem 0 2rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: var(--white); margin: 0 0 1rem; font-size: .95rem; }
.footer__grid a:not(.logo) { display: block; margin-bottom: .5rem; transition: color .2s; }
.footer__grid a:hover { color: var(--white); }
.logo--light { color: var(--white); margin-bottom: 1rem; }
.footer__about { max-width: 22rem; }
.footer__bottom { border-top: 1px solid #22302e; margin-top: 3rem; padding-top: 1.5rem; font-size: .82rem; }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 150%);
  background: var(--ink); color: var(--white); padding: .9rem 1.4rem; border-radius: 999px;
  font-size: .9rem; box-shadow: var(--shadow); transition: transform .35s ease, opacity .35s; z-index: 100;
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Animación al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card--float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .products, .categories { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; gap: 2rem; }
  .features__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav a { padding: 1rem 4%; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav.open { max-height: 320px; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__card--float { right: .5rem; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; border-radius: 18px; }
  .newsletter__form input { padding: .8rem 1rem; }
}
@media (max-width: 520px) {
  .products, .categories, .features__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===== Carrito lateral ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(14, 23, 22, .45); z-index: 90;
  opacity: 0; transition: opacity .3s ease;
}
.cart-overlay.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 95;
  background: var(--bg); box-shadow: -20px 0 50px rgba(0, 0, 0, .15);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.cart-drawer.open { transform: none; }
body.no-scroll { overflow: hidden; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-drawer__head h2 { font-size: 1.4rem; margin: 0; }
.cart-drawer__head h2 span { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 500; }

.cart-shipping { padding: 1rem 1.5rem; background: var(--brand-soft); font-size: .88rem; }
.cart-shipping p { margin: 0 0 .5rem; }
.cart-shipping__bar { height: 6px; border-radius: 999px; background: rgba(18, 163, 127, .15); overflow: hidden; }
.cart-shipping__bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .4s ease; }

.cart-items { list-style: none; margin: 0; padding: .5rem 1.5rem; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
.cart-item__img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; }
.cart-item__name { font-weight: 600; font-size: .95rem; margin: 0 0 .15rem; }
.cart-item__unit { color: var(--muted); font-size: .82rem; margin: 0 0 .5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 30px; height: 30px; border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--brand-soft); }
.qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.cart-item__total { font-weight: 600; }
.cart-item__remove { border: none; background: none; color: var(--muted); font-size: .78rem; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-item__remove:hover { color: #b42318; }

.cart-empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.cart-empty__icon { font-size: 2.5rem; width: 84px; height: 84px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 1rem; }
.cart-empty p { color: var(--muted); }
.cart-drawer.is-empty .cart-empty { display: flex; }
.cart-drawer.is-empty .cart-items,
.cart-drawer.is-empty .cart-drawer__foot,
.cart-drawer.is-empty .cart-shipping { display: none; }

.cart-drawer__foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--white); }
.cart-row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: .4rem; color: var(--muted); }
.cart-row--total { color: var(--ink); font-weight: 700; font-size: 1.1rem; margin: .6rem 0 1rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.btn--block { width: 100%; }
.cart-clear { display: block; margin: .75rem auto 0; border: none; background: none; color: var(--muted); font-size: .82rem; cursor: pointer; text-decoration: underline; }
.add-btn.added { background: var(--brand); }

/* Logo con icono y aviso legal del pie */
.logo__mark svg { width: 20px; height: 20px; stroke: var(--white); stroke-width: 2; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__disclaimer { color: #7f908c; }
.logo__img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.footer .logo__img { width: 60px; height: 60px; }

/* ===== Compra-venta: collage del hero ===== */
.hero__collage { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 10px; }
.hero__card--main .hero__collage .product-art { position: relative; inset: auto; border-radius: 18px; }
.hero__card--main .hero__collage .art--bottle { background-color: #f6e7d7; }
.hero__card--main .hero__collage .art--projector { background-color: #e7ecf3; }
.hero__card--main .hero__collage .art--posture { background-color: #f3e3e0; }
.hero__card--main .hero__collage .art--lamp { background-color: #15624f; }

/* Franja de confianza */
.trustbar { background: var(--white); border-block: 1px solid var(--line); }
.trustbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.25rem 0; }
.trustbar__item { display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 500; }
.trustbar__item svg { color: var(--brand); flex-shrink: 0; }

/* Estado y calidad en productos */
.condition { align-self: flex-start; font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 6px; margin-bottom: .6rem; }
.condition--new { background: var(--brand-soft); color: var(--brand-dark); }
.condition--like { background: #fff1e3; color: #9a5412; }
.quality { display: flex; align-items: center; gap: .4rem; font-size: .8rem !important; color: var(--brand-dark) !important; font-weight: 600; flex: 0 !important; margin-bottom: 1rem !important; }
.quality svg { width: 16px; height: 16px; }

/* Cómo funciona */
.section__head .eyebrow { margin-bottom: .6rem; }
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.howto__col { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; }
.howto__col--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill { display: inline-block; font-family: var(--font-body); font-size: .85rem; font-weight: 600; padding: .35rem .9rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.pill--light { background: rgba(255,255,255,.12); color: #9fe3cd; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 1rem; }
.steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--brand); color: var(--white); }
.steps span { color: var(--muted); font-size: .92rem; }
.howto__col--dark .steps span { color: #b7c6c3; }

/* Vender */
.sell { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(140deg, #0b5c48, #12a37f); color: var(--white); }
.eyebrow--light { color: #b9f0dc; }
.sell__copy p { color: #def5ec; }
.sell__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.sell__list li { display: flex; gap: .6rem; align-items: center; }
.sell__list li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.sell__form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.sell__form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; }
.sell__form input, .sell__form select, .sell__form textarea { font: inherit; font-weight: 400; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); resize: vertical; }
.sell__form input:focus, .sell__form select:focus, .sell__form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.sell__full { grid-column: 1 / -1; }
.sell__msg { margin: 0; color: var(--brand-dark); font-weight: 500; min-height: 1.2em; }

@media (max-width: 1000px) {
  .trustbar__inner { grid-template-columns: 1fr 1fr; }
  .sell { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .howto { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .trustbar__inner { grid-template-columns: 1fr; }
  .sell__form { grid-template-columns: 1fr; }
}

/* Cómo funciona (3 pasos) */
.howto3 { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.howto3 li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; display: flex; flex-direction: column; gap: .4rem; }
.howto3 li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--brand); color: var(--white); margin-bottom: .75rem; }
.howto3 strong { font-family: var(--font-display); font-size: 1.2rem; }
.howto3 span { color: var(--muted); font-size: .93rem; }
@media (max-width: 780px) { .howto3 { grid-template-columns: 1fr; } }

/* ===== Buscador y filtros ===== */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: .75rem; margin-bottom: .75rem; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: .5rem; background: var(--bg); border-radius: 12px; padding: 0 .9rem; border: 1px solid transparent; }
.search:focus-within { border-color: var(--brand); }
.search svg { color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; border: none; background: none; font: inherit; padding: .75rem 0; outline: none; min-width: 0; }
.chips { display: flex; gap: .4rem; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .55rem 1rem; font: 500 .88rem var(--font-body); cursor: pointer; color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.filters select { font: 500 .88rem var(--font-body); padding: .6rem 2rem .6rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b68' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center; appearance: none; cursor: pointer; color: var(--ink); }
.filters select:focus { outline: 2px solid var(--brand); }
.filters__meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .88rem; margin: 0 .25rem 1.5rem; min-height: 1.5em; }
.link-btn { border: none; background: none; color: var(--brand-dark); font: 600 .88rem var(--font-body); cursor: pointer; text-decoration: underline; }
.product.is-hidden { display: none; }
.no-results { text-align: center; padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; }
.no-results[hidden] { display: none; }
.no-results p { color: var(--muted); }
@media (max-width: 780px) {
  .chips { width: 100%; overflow-x: auto; }
  .filters select { flex: 1 1 45%; }
}
.condition--used { background: #eef0f3; color: #4a5560; }
.condition--fair { background: #fdecec; color: #9b2c2c; }

/* Etiquetas de la ficha: estado + disponibilidad */
.product__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.product__tags .condition { margin-bottom: 0; }
.stock { font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 6px; border: 1px solid var(--line); background: var(--white); }
.stock::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; background: currentColor; }
.stock--online { color: #2f5d9a; }
.stock--fisico { color: var(--brand-dark); }
.stock--ambas { color: #6b3fa0; }
.product__img { width: 100%; height: 100%; object-fit: contain; background: #e9e7e2; display: block; transition: transform .4s ease; }
.product:hover .product__img { transform: scale(1.04); }
.product__media { overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__collage--2 { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) minmax(0,1fr); }
.hero__collage--2 img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 18px; display: block; }

/* ===== Portada: carrusel de productos destacados ===== */
.hero__slider { position: absolute; inset: 10px; border-radius: 20px; overflow: hidden; background: #e9e7e2; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 4.5s ease; }
.hero__slide.active { opacity: 1; transform: scale(1); }
.hero__tag { color: var(--ink); text-decoration: none; min-width: 210px; transition: transform .25s, box-shadow .25s; z-index: 2; }
.hero__tag:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.15); }
.hero__tag strong, .hero__tag-row { transition: opacity .35s ease; }
.hero__tag.changing strong, .hero__tag.changing .hero__tag-row { opacity: 0; }
.hero__tag-row { display: flex; align-items: center; gap: .6rem; }
.hero__tag-row em { font-size: 1.15rem; }
.hero__tag-row .condition { margin: 0; }
.hero__dots { position: absolute; right: 1.5rem; bottom: 1.6rem; display: flex; gap: .4rem; z-index: 2; }
.hero__dot { width: 9px; height: 9px; border-radius: 999px; border: none; padding: 0; background: rgba(255,255,255,.6); cursor: pointer; transition: width .3s, background .3s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hero__dot.active { width: 26px; background: var(--white); }
.product.highlight { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: opacity .3s; transform: none; } }
.hero__tag-row .condition { text-transform: none; letter-spacing: 0; font-size: .75rem; }

/* Página 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: .5rem; }
.notfound .logo__img { width: 72px; height: 72px; margin-bottom: 1rem; }
.notfound p { color: var(--muted); max-width: 30rem; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }

/* Pago */
.checkout-msg { margin: .75rem 0 0; padding: .7rem .9rem; border-radius: 10px; background: #fff4e5; color: #8a4b0f; font-size: .85rem; }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .8rem 0 0; font-size: .78rem; color: var(--muted); }
.checkout-secure svg { width: 14px; height: 14px; }

/* Ventana de pago con Bizum */
.bizum { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); border: none; border-radius: 20px; padding: 1.5rem; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.bizum::backdrop { background: rgba(15, 30, 26, .55); }
.bizum__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.bizum__head h2 { font-size: 1.35rem; }
.bizum__intro, .bizum__note { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.bizum__total { background: var(--brand-soft); color: var(--brand-dark); border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.bizum__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1rem; }
.bizum__grid label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 600; }
.bizum__grid input { font: inherit; font-weight: 400; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); min-width: 0; }
.bizum__grid input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.bizum__full { grid-column: 1 / -1; }
.bizum .checkout-msg { margin: 0 0 1rem; }
.bizum__data { display: grid; gap: .5rem; margin: 1rem 0; }
.bizum__data div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.bizum__data dt { color: var(--muted); font-size: .9rem; }
.bizum__data dd { margin: 0; font-weight: 700; font-size: 1.05rem; text-align: right; }
@media (max-width: 520px) { .bizum__grid { grid-template-columns: 1fr; } }

/* Páginas legales y de contacto */
.legal { max-width: 760px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.legal__back { display: inline-block; margin-bottom: 1.5rem; color: var(--brand-dark); font-weight: 600; font-size: .9rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.legal__date { color: var(--muted); font-size: .88rem; margin: 0 0 2rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .5rem 0 1rem; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal a { color: var(--brand-dark); }
.pendiente { background: #fff1b8; color: #6b4e00; padding: 0 .25rem; border-radius: 4px; font-weight: 600; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; margin: 1.5rem 0; }
.contact-card a.btn { margin-top: .5rem; }

/* Pasos de la compra */
.order-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.order-steps li { flex: 1; font-size: .78rem; font-weight: 600; color: var(--muted); padding-top: .5rem; border-top: 3px solid var(--line); }
.order-steps li.active { color: var(--brand-dark); border-top-color: var(--brand); }
.bizum__ok { font-size: 1.15rem; margin: 0 0 .5rem; color: var(--brand-dark); }

/* Elegir forma de pago */
.pay__ship { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .88rem; }
.pay__ship > span { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.pay__ship p { margin: 0; line-height: 1.5; }
.pay__ship .link-btn { position: absolute; top: .7rem; right: 1rem; }
.pay__label { font-weight: 600; font-size: .9rem; margin: 0 0 .6rem; }
.pay__option { display: grid; gap: .2rem; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin-bottom: .6rem; cursor: pointer; transition: border-color .2s, background .2s; }
.pay__option:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.pay__option:disabled { opacity: .6; cursor: wait; }
.pay__option strong { font-size: .98rem; }
.pay__option span { font-size: .82rem; color: var(--muted); }
#checkoutBtn:disabled { opacity: .7; cursor: wait; }

/* Página de gracias */
.thanks h1 { margin-top: .25rem; }
.thanks__check { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-size: 2rem; font-weight: 700; margin: 0 auto 1rem; }
.thanks [hidden] { display: none; }
.logo__accent { color: var(--brand); }
.logo--light .logo__accent { color: #6fd3b4; }
