/* Tienda Majalu — los colores vienen de majalu > Ecomerce > Configuración (variables :root en el header) */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Baloo 2', 'Inter', sans-serif; line-height: 1.15; margin: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
:root { --gutter: clamp(16px, 4vw, 72px); }
.wrap { width: 100%; max-width: none; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-muted); } .small { font-size: 13px; }

/* ---------- Botones y campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-wsp { background: #1FA855; color: #fff; width: 100%; margin-top: 12px; }
.btn-wsp:hover:not(:disabled) { background: #178a45; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.lbl { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.inp { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.inp:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
textarea.inp { resize: vertical; }
.form-msg { color: #B3261E; font-size: 13.5px; font-weight: 600; }
.form-msg:not(:empty) { background: #FDECEA; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }
.hdr { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-btn { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 19px; display: grid; place-items: center; }
.hdr-btn:hover { background: var(--accent-soft); }
.hdr > .hdr-btn:last-child { justify-self: end; }
.hdr-logo img { height: 42px; width: auto; }
.badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.overlay { position: fixed; inset: 0; background: rgba(15,25,20,.5); z-index: 90; opacity: 0; transition: opacity .2s; }
.overlay.show { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 100; width: min(360px, 88vw); background: #fff; display: flex; flex-direction: column; visibility: hidden; transition: transform .25s cubic-bezier(.32,.72,0,1), visibility .25s; }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); width: min(420px, 94vw); }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); font-family: 'Baloo 2'; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); background: var(--bg); }

.nav-search { position: relative; margin-bottom: 8px; }
.nav-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }
.nav-search input { width: 100%; padding: 11px 14px 11px 38px; border-radius: 999px; border: 1.5px solid var(--line-strong); font: inherit; }
.nav-title { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 6px; }
.nav-list, .nav-cats { list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.nav-list a i { width: 18px; text-align: center; color: var(--sage); }
.nav-list a:hover, .nav-cats a:hover { background: var(--accent-soft); }
.nav-list a.on, .nav-cats a.on { background: var(--accent-soft); font-weight: 700; }
.nav-cats ul { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 8px; border-left: 2px solid var(--line); }
.nav-cats details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.nav-cats details > summary::-webkit-details-marker { display: none; }
.nav-cats details > summary::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; padding: 6px 10px; transition: transform .2s; }
.nav-cats details[open] > summary::after { transform: rotate(180deg); }
.nav-cats summary a { flex: 1; }

/* ---------- Hero: campo verde completo, logo 3D con destello y pared inclinada de productos ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--bg); min-height: clamp(440px, 56svh, 580px);
    background-color: var(--ink);
    background-image: radial-gradient(880px 560px at 78% 42%, color-mix(in srgb, var(--sage) 62%, transparent), transparent 72%),
                      radial-gradient(640px 420px at 6% 104%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 72%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(330px, 1fr) minmax(360px, clamp(400px, 46vw, 760px)); gap: clamp(24px, 4vw, 64px);
    align-items: center; min-height: inherit; padding: 28px 0 28px var(--gutter); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding-right: 0; }
.h-title { font-size: clamp(2.1rem, 2.8vw + .5rem, 3.9rem); line-height: 1.02; letter-spacing: -.02em; color: var(--bg); margin: 10px 0 18px; text-wrap: balance; max-width: 28ch; }
.h-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.h-title .wi { display: inline-block; }
.h-title .hl { color: var(--gold); }
.h-title .hlg { display: inline-block; white-space: nowrap; }

/* Botones: uno lleno con flecha en su propia cápsula, otro de contorno */
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
    transition: background .28s cubic-bezier(.23, 1, .32, 1), border-color .28s cubic-bezier(.23, 1, .32, 1), transform .28s cubic-bezier(.23, 1, .32, 1); }
.cta:active { transform: scale(.97); }
.cta-main { background: var(--gold); color: var(--ink); padding-right: 8px; }
.cta-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 14px; transition: transform .28s cubic-bezier(.23, 1, .32, 1); }
.cta-alt { border: 1.5px solid color-mix(in srgb, var(--bg) 45%, transparent); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
    .cta-main:hover { background: color-mix(in srgb, var(--gold) 84%, #fff); }
    .cta-main:hover .cta-ico { transform: translateX(3px); }
    .cta-alt:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); border-color: var(--bg); }
}

/* Logo 3D: copias apiladas en profundidad (grosor) que se balancean; un destello lo cruza; confeti a distintas profundidades */
.stage3d { position: relative; width: clamp(150px, 11.5vw, 210px); height: clamp(150px, 11.5vw, 210px); perspective: 900px; }
.glow { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 70%, transparent), transparent 68%); opacity: .5; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.spin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.spin img.b { transform: translateZ(calc(var(--z) * -3px)); filter: brightness(.4) saturate(.7); }
.spin img.f { filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
.sheen { position: absolute; inset: 0; transform: translateZ(2px); pointer-events: none; -webkit-mask-image: var(--logo); mask-image: var(--logo);
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0; }
.ground { position: absolute; left: 50%; bottom: -10px; width: 58%; height: 18px; margin-left: -29%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); }
.cf { position: absolute; border-radius: 50%; opacity: .92; }
.cf-r { border-radius: 30%; }

/* Pared de productos: plano inclinado que sangra por el borde; las columnas giran en sentidos alternos */
.wall { position: relative; align-self: stretch; min-height: 0; margin-left: -120px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent), linear-gradient(to right, transparent, #000 120px); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent), linear-gradient(to right, transparent, #000 120px); mask-composite: intersect; }
.plane { position: absolute; left: 120px; right: 0; top: -14%; bottom: -14%; transform: rotate(-9deg) scale(1.1); transform-origin: 40% 50%; }
.plane-in { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.col { overflow: hidden; }
.col-track { display: flex; flex-direction: column; will-change: transform; }
.half { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; }
.ptile { position: relative; display: block; flex-shrink: 0; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 20px 30px -20px rgba(0,0,0,.65); }
.ptile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.23, 1, .32, 1); }
.ptag { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
@media (hover: hover) and (pointer: fine) { a.ptile:hover img { transform: scale(1.07); } }
.ptile-ico { display: grid; place-items: center; font-size: clamp(24px, 3vw, 42px); color: #fff; }
.ptile-ico.t0 { background: #F06A5B; } .ptile-ico.t1 { background: #F7C948; color: var(--ink); }
.ptile-ico.t2 { background: #5BB3F0; } .ptile-ico.t3 { background: #A78BFA; }
.hero-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--sage-soft), var(--accent-soft)); color: var(--sage); font-size: 84px; }

/* ---------- Marcas (carrusel infinito, solo CSS) ---------- */
.marcas { padding: 26px 0; background: #fff; border-block: 1px solid var(--line); overflow: hidden; }
.marcas-title { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 16px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { flex-shrink: 0; display: flex; align-items: center; gap: 56px; padding-right: 56px; margin: 0; list-style: none; min-width: 100%; justify-content: space-around; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: grid; place-items: center; height: 54px; }
.marquee-track img { max-height: 54px; max-width: 130px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .2s; }
.marquee-track img:hover { filter: none; opacity: 1; }
.marquee-track span { font-family: 'Baloo 2'; font-size: 22px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Secciones ---------- */
.sec { padding: 60px var(--gutter); }
.sec-top { padding-top: 22px; padding-bottom: 50px; }
.sec-gap { margin-top: 50px; }
.sec-alt { background: #fff; border-block: 1px solid var(--line); padding: 60px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2, .h1 { font-size: clamp(26px, 3.4vw, 38px); }
.kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 4px; }
.link-more { font-weight: 600; text-decoration: none; color: var(--sage-dark); }
.link-more:hover { text-decoration: underline; }
.empty { color: var(--ink-muted); }

/* ---------- Tarjetas ---------- */
.feat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feat .card-img { aspect-ratio: 1; }
.feat .card-name { font-size: 14px; }
.feat .card-price strong { font-size: 19px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.25); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: var(--accent-softer); overflow: hidden; }
.card-big .card-img { aspect-ratio: auto; flex: 1; min-height: 300px; }
.card-big .card-body { flex: none; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-out { background: #3b3b3b; color: #fff; }
.tag-inline { position: static; display: inline-block; margin: 0 0 10px; }
.is-out .card-img img { filter: grayscale(.8); opacity: .7; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body .btn-add { margin-top: auto; }
.card-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.card-name { font-family: 'Inter'; font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-name a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin: 4px 0 10px; }
.card-price strong { font-family: 'Baloo 2'; font-size: 22px; }
.card-price small { display: block; font-size: 12px; color: var(--ink-muted); }
.btn-add { width: 100%; padding: 10px; background: var(--accent-soft); color: var(--ink); }
.btn-add:hover:not(:disabled) { background: var(--accent); color: #fff; }

/* ---------- Nosotros / Ubícanos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.about-media img, .about-media .hero-fallback { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 120px 28px 28px 28px; }
.about-copy h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.prose { color: var(--ink-muted); font-size: 16px; max-width: 62ch; margin-bottom: 22px; }
.loc { display: grid; grid-template-columns: 1fr 1.5fr; gap: 26px; }
.loc-info { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.loc-row { display: flex; gap: 14px; align-items: flex-start; }
.loc-row > i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--sage-soft); color: var(--sage-dark); display: grid; place-items: center; }
.loc-row strong { display: block; font-size: 13px; }
.loc-row span, .loc-row a { color: var(--ink-muted); text-decoration: none; }
.loc-map iframe, .loc-map .hero-fallback { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 20px; aspect-ratio: auto; }

/* ---------- Catálogo ---------- */
.crumbs { font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs i { font-size: 11px; margin: 0 4px; }
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 20px 20px; }
.f-group { margin-bottom: 4px; }
.f-price { display: flex; align-items: center; gap: 8px; }
.f-cats { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.f-cats a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.f-cats a:hover { background: var(--accent-soft); } .f-cats a.on { background: var(--accent-soft); font-weight: 700; }
.f-actions { display: flex; gap: 8px; margin-top: 16px; } .f-actions .btn { flex: 1; padding: 10px 12px; }
.filt-toggle { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { background: var(--accent-soft); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--accent); color: #fff; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; text-decoration: none; font-weight: 600; background: #fff; }
.pager a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty-box { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line-strong); border-radius: 20px; }
.empty-box i { font-size: 44px; color: var(--sage); margin-bottom: 10px; }
.empty-box p { color: var(--ink-muted); }

/* ---------- Detalle ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 74px; height: 74px; padding: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.gallery-thumbs button.on { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.price-box { display: flex; gap: 14px; flex-wrap: wrap; }
.price-box > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; }
.price-box small { display: block; font-size: 12px; color: var(--ink-muted); }
.price-box strong { font-family: 'Baloo 2'; font-size: 28px; }
.price-mayor { background: var(--sage-soft) !important; border-color: transparent !important; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; }
.qty button { width: 42px; height: 46px; border: 0; background: transparent; font-size: 20px; border-radius: 999px; }
.qty input { width: 48px; text-align: center; border: 0; font: inherit; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.detail-desc h2 { font-size: 20px; color: var(--ink); margin-bottom: 6px; }

/* ---------- Carrito ---------- */
.cart-empty { text-align: center; padding: 50px 10px; color: var(--ink-muted); }
.cart-empty i { font-size: 42px; color: var(--sage); }
.ci { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; background: var(--accent-softer); }
.ci-name { font-weight: 600; text-decoration: none; font-size: 14px; line-height: 1.3; display: block; }
.hint { display: block; font-size: 12px; color: var(--ink-muted); margin: 2px 0 6px; }
.hint.ok { color: var(--sage-dark); font-weight: 600; } .hint.err { color: #B3261E; font-weight: 600; }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qty-sm button { width: 32px; height: 34px; font-size: 17px; } .qty-sm input { width: 38px; }
.ci-del { align-self: start; border: 0; background: transparent; color: var(--ink-muted); width: 34px; height: 34px; border-radius: 50%; }
.ci-del:hover { background: #FDECEA; color: #B3261E; }
.ci-out { opacity: .75; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-total strong { font-family: 'Baloo 2'; font-size: 26px; }
#btnContinuar { width: 100%; }

/* ---------- Formularios (reclamaciones) ---------- */
.legal { max-width: 860px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px 26px 28px; margin-top: 20px; }
.form-h { font-size: 19px; margin: 24px 0 4px; color: var(--sage-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.span-2 { grid-column: span 2; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.radio input { margin-top: 5px; accent-color: var(--accent); }
.ok-box { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px 24px; margin-top: 20px; }
.ok-box > i { font-size: 54px; color: #1FA855; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: rgba(255,255,255,.82); margin-top: 20px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-top: 50px; padding-bottom: 36px; }
.ftr-brand { font-family: 'Baloo 2'; font-size: 22px; color: #fff; }
.ftr h3 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; } .ftr a:hover { color: var(--gold); }
.ftr p { margin: 6px 0; font-size: 14px; }
.ftr-contact li { display: flex; gap: 10px; font-size: 14px; } .ftr-contact i { margin-top: 4px; color: var(--gold); }
.ftr-social { display: flex; gap: 10px; margin-top: 14px; }
.ftr-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.libro { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 10px 16px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; font-weight: 600; font-size: 14px; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 16px 20px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: 92vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-err { background: #B3261E; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .feat { grid-template-columns: repeat(3, 1fr); }
    .card-big .card-img { aspect-ratio: 1; min-height: 0; flex: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .cat-layout { grid-template-columns: 1fr; }
    .filt-toggle { display: inline-flex; }
    .filters { position: static; display: none; } .filters.open { display: block; }
}
@media (max-width: 760px) {
    .about, .loc, .detail { grid-template-columns: 1fr; gap: 26px; }
    .hero { min-height: 0; }
    .hero-in { grid-template-columns: 1fr; gap: 6px; padding: 22px 20px 0; }
    .stage3d { width: 128px; height: 128px; }
    .h-title { font-size: clamp(2rem, 9vw, 2.6rem); max-width: 14ch; margin: 8px 0 14px; }
    .hero-cta { flex-wrap: nowrap; gap: 8px; }
    .cta { height: 46px; font-size: 14px; padding: 0 14px; gap: 8px; } .cta-main { padding-right: 5px; } .cta-ico { width: 36px; height: 36px; }
    .hero-in { padding: 26px 20px 30px; }
    .wall { position: absolute; inset: 0; margin: 0; height: auto; opacity: .6; pointer-events: none; -webkit-mask-image: none; mask-image: none; }
    .hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 100% 72% at 50% 50%, color-mix(in srgb, var(--ink) 74%, transparent) 25%, color-mix(in srgb, var(--ink) 18%, transparent) 100%), linear-gradient(to bottom, color-mix(in srgb, var(--ink) 55%, transparent), transparent 26%, transparent 74%, color-mix(in srgb, var(--ink) 55%, transparent)); }
    .h-title { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
    .plane { left: 0; }
    .plane { transform: rotate(-6deg) scale(1.16); top: -6%; bottom: -6%; } .plane-in { gap: 10px; padding: 0 10px; } .half { gap: 10px; padding-bottom: 10px; }
    .ptile { border-radius: 16px; } .ptag { left: 6px; bottom: 6px; padding: 3px 8px; font-size: 11.5px; }
    .about-media { order: -1; } .sec { padding: 44px var(--gutter); } .sec-alt { padding: 44px 0; }
    .loc-map iframe, .loc-map .hero-fallback { min-height: 280px; }
    .form-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-body { padding: 10px 12px 12px; } .card-price strong { font-size: 19px; }
    .marquee-track { gap: 36px; padding-right: 36px; }
}
@media (max-width: 420px) { .ftr-grid { grid-template-columns: 1fr; } .wrap { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .marquee { overflow-x: auto; }
}

/* ---------- Menú lateral izquierdo: campo verde, marca "Inversiones Majalu" y navegación con acento dorado ---------- */
.drawer-left { width: min(340px, 90vw); color: var(--bg); background-color: var(--ink);
    background-image: radial-gradient(420px 320px at 100% 0, color-mix(in srgb, var(--sage) 55%, transparent), transparent 70%),
                      radial-gradient(360px 300px at 0 100%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%); }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 16px 18px 20px; }
.dl-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.dl-logo { flex: none; width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--gold), 0 10px 24px rgba(0,0,0,.28); transform: rotate(-4deg); }
.dl-logo img { width: 36px; height: 36px; object-fit: contain; }
.dl-name { font-family: 'Fredoka', 'Baloo 2', sans-serif; font-weight: 700; font-size: 28px; line-height: .95; letter-spacing: -.01em; color: #fff; display: flex; flex-direction: column; }
.dl-name small { font-size: 11.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.dl-close { flex: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 16px; transition: background .2s, transform .25s cubic-bezier(.23,1,.32,1); }
.dl-close:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.dl-body { padding: 4px 14px 16px; }
.dl-body::-webkit-scrollbar { width: 6px; } .dl-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.drawer-left .nav-search { margin: 0 6px 6px; }
.drawer-left .nav-search i { color: rgba(255,255,255,.55); }
.drawer-left .nav-search input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; }
.drawer-left .nav-search input::placeholder { color: rgba(255,255,255,.5); }
.drawer-left .nav-search input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.12); }
.drawer-left .nav-title { display: flex; align-items: center; gap: 10px; color: var(--gold); margin: 22px 8px 8px; letter-spacing: .2em; }
.drawer-left .nav-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.22), transparent); }
.drawer-left .nav-list a, .drawer-left .nav-cats a { position: relative; color: rgba(255,255,255,.86); padding: 10px 12px; border-radius: 14px; transition: background .2s, color .2s, transform .25s cubic-bezier(.23,1,.32,1); }
.drawer-left .nav-list a i { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--gold); font-size: 14px; transition: background .2s, color .2s; }
.drawer-left .nav-list a.on, .drawer-left .nav-cats a.on { background: rgba(255,255,255,.12); color: #fff; }
.drawer-left .nav-list a.on::before, .drawer-left .nav-cats a.on::before { content: ''; position: absolute; left: -14px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.drawer-left .nav-cats ul { border-left-color: rgba(255,255,255,.16); }
.drawer-left .nav-cats > li > a, .drawer-left .nav-cats > li > details > summary > a { font-weight: 600; }
.drawer-left .nav-cats details > summary::after { color: rgba(255,255,255,.55); }
@media (hover: hover) and (pointer: fine) {
    .drawer-left .nav-list a:hover, .drawer-left .nav-cats a:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateX(4px); }
    .drawer-left .nav-list a:hover i { background: var(--gold); color: var(--ink); }
}
.dl-foot { padding: 14px 20px 20px; border-top: 1px solid rgba(255,255,255,.12); }
.dl-wa { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 999px; background: #25d366; color: #073b1c; font-weight: 700; text-decoration: none; transition: transform .2s cubic-bezier(.23,1,.32,1), filter .2s; }
.dl-wa i { font-size: 20px; } .dl-wa:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .dl-wa:hover { filter: brightness(1.06); } }
/* Entrada escalonada al abrir (solo opacidad y desplazamiento) */
@media (prefers-reduced-motion: no-preference) {
    .drawer-left .dl-head, .drawer-left .nav-search, .drawer-left .nav-title, .drawer-left .nav-list li, .drawer-left .nav-cats > li, .drawer-left .dl-foot { opacity: 0; transform: translateX(-16px); }
    .drawer-left.open .dl-head, .drawer-left.open .nav-search, .drawer-left.open .nav-title, .drawer-left.open .nav-list li, .drawer-left.open .nav-cats > li, .drawer-left.open .dl-foot {
        opacity: 1; transform: none; transition: opacity .4s cubic-bezier(.23,1,.32,1), transform .45s cubic-bezier(.23,1,.32,1); transition-delay: .12s; }
    .drawer-left.open .nav-list li:nth-child(2) { transition-delay: .155s; } .drawer-left.open .nav-list li:nth-child(3) { transition-delay: .19s; }
    .drawer-left.open .nav-list li:nth-child(4) { transition-delay: .225s; } .drawer-left.open .nav-list li:nth-child(5) { transition-delay: .26s; }
    .drawer-left.open .nav-cats > li { transition-delay: .3s; } .drawer-left.open .dl-foot { transition-delay: .34s; }
}
.dl-brand { border-radius: 18px; } .dl-brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.dl-brand:focus:not(:focus-visible) { outline: none; }

/* Paneles de subcategorías: salen a la derecha del menú, uno por nivel (en pantallas chicas cubren el menú) */
.drawer-left .nav-cats .has-sub { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: none; color: rgba(255,255,255,.86); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.drawer-left .nav-cats .has-sub i { font-size: 12px; color: rgba(255,255,255,.55); transition: transform .25s cubic-bezier(.23,1,.32,1), color .2s; }
.drawer-left .nav-cats .has-sub[aria-expanded="true"] { background: rgba(255,255,255,.14); color: #fff; }
.drawer-left .nav-cats .has-sub[aria-expanded="true"] i { color: var(--gold); transform: translateX(3px); }
@media (hover: hover) and (pointer: fine) { .drawer-left .nav-cats .has-sub:hover { background: rgba(255,255,255,.1); color: #fff; } }
.dl-panel { position: absolute; top: 0; bottom: 0; left: 100%; width: 290px; visibility: hidden; opacity: 0; transform: translateX(-14px);
    transition: opacity .25s cubic-bezier(.23,1,.32,1), transform .3s cubic-bezier(.23,1,.32,1), visibility .3s;
    background-color: color-mix(in srgb, var(--ink) 88%, #fff); box-shadow: 14px 0 32px rgba(0,0,0,.28); border-left: 1px solid rgba(255,255,255,.1); }
.dl-panel.open { visibility: visible; opacity: 1; transform: none; }
.dl-panel-in { height: 100%; overflow-y: auto; padding: 20px 14px 24px; }
.dl-panel .nav-cats { margin-top: 6px; }
.drawer-left .dl-panel .nav-cats > li { opacity: 1; transform: none; }
.dl-back { display: none; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dl-ptitle { margin: 4px 8px 10px; font-family: 'Fredoka', 'Baloo 2', sans-serif; font-weight: 600; font-size: 22px; color: #fff; }
.drawer-left a.dl-all { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); font-weight: 700; text-decoration: none; }
.drawer-left a.dl-all i { color: inherit; }
@media (max-width: 1000px) {
    .dl-panel { left: 0; width: 100%; transform: translateX(28px); box-shadow: none; border-left: 0; }
    .dl-back { display: inline-flex; }
}

/* ---------- Header: menú + marca a la izquierda, enlaces al centro (escritorio), carrito a la derecha ---------- */
.hdr { grid-template-columns: auto 1fr auto; gap: 16px; padding: 8px var(--gutter); }
.hdr-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hdr > .hdr-btn:last-child { justify-self: end; }
.hdr-menu { border: 1.5px solid var(--line-strong); }
.hdr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.hdr-logo img { height: 40px; width: auto; }
.hdr-name { font-family: 'Fredoka', 'Baloo 2', sans-serif; font-weight: 700; font-size: 22px; line-height: .92; letter-spacing: -.01em; display: flex; flex-direction: column; white-space: nowrap; }
.hdr-name small { font-size: 9.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--sage); margin-bottom: 3px; }
.hdr-nav { display: none; justify-content: center; gap: 4px; }
.hdr-nav a { position: relative; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink); transition: background .2s; }
.hdr-nav a.on::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .hdr-nav a:hover { background: var(--accent-soft); } }
.hdr .hdr-cart { width: auto; height: 44px; padding: 0 18px; border-radius: 999px; gap: 8px; grid-auto-flow: column; background: var(--ink); color: #fff; font-size: 16px; }
.hdr-cart-t { display: none; font-size: 14px; font-weight: 700; }
.hdr .hdr-cart:hover { background: color-mix(in srgb, var(--ink) 86%, #fff); }
.hdr-cart .badge { position: static; margin-left: 2px; }
.hdr-cart .badge[hidden] { display: none; }
@media (min-width: 900px) { .hdr-nav { display: flex; } .hdr-cart-t { display: inline; } }
@media (max-width: 380px) { .hdr-name small { display: none; } .hdr-name { font-size: 20px; } }

/* ---------- Conócenos: imagen con marco desplazado + texto en párrafos + 3 ventajas ---------- */
.about { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); }
.about-media { position: relative; }
.about-frame { position: relative; border-radius: 120px 28px 28px 28px; overflow: hidden; box-shadow: 0 30px 50px -28px rgba(0,0,0,.45); }
.about-media img, .about-media .hero-fallback { display: block; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 0; transition: transform .8s cubic-bezier(.23,1,.32,1); }
@media (hover: hover) and (pointer: fine) { .about-frame:hover img { transform: scale(1.04); } }
.about-copy h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin-bottom: 18px; text-wrap: balance; }
.about-copy .prose { max-width: 60ch; margin-bottom: 26px; }
.about-copy .prose p { margin: 0 0 12px; }
.about-copy .prose p:first-child { font-size: 18px; color: var(--ink); font-weight: 500; }
.about-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-chips li { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.about-chips i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--gold); margin-bottom: 8px; }
.about-chips strong { font-size: 14.5px; line-height: 1.25; }
.about-chips span { font-size: 12.5px; color: var(--ink-muted); line-height: 1.35; }
@media (max-width: 1000px) { .about-chips { grid-template-columns: 1fr; } .about-chips li { flex-direction: row; align-items: center; gap: 12px; } .about-chips i { margin: 0; flex: none; } .about-chips li > strong, .about-chips li > span { display: block; } }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
section[id] { scroll-margin-top: 64px; }
@media (max-width: 760px) { #nosotros, .solo-tablet { display: none; } }
@media (min-width: 761px) and (max-width: 1024px) { .about-copy .prose p:nth-child(n+2) { display: none; } }

/* ---------- Panel central (modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(15,25,20,.6); opacity: 0; transition: opacity .2s; }
.modal.show { opacity: 1; }
.modal[hidden] { display: none; }
.modal-card { width: min(720px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: #fff; border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.23,1,.32,1); overflow: hidden; }
.modal.show .modal-card { transform: none; }
.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 14px 26px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: clamp(20px, 3vw, 26px); }
.modal-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; font-size: 16px; transition: background .2s, transform .25s cubic-bezier(.23,1,.32,1); }
.modal-x:hover { background: var(--accent-soft); transform: rotate(90deg); }
.modal-body { overflow-y: auto; padding: 20px 26px 28px; overscroll-behavior: contain; }
.modal-body .prose { max-width: none; margin: 0; }
.modal-body .prose p { margin: 0 0 12px; }
.modal .form-card { border: 0; padding: 0; margin: 0; }
.modal .ok-box { margin-top: 0; border: 0; padding: 20px 0; }
@media (max-width: 560px) { .modal { padding: 10px; } .modal-head { padding: 14px 12px 12px 18px; } .modal-body { padding: 16px 18px 24px; } }
@media (max-width: 760px) { .feat { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 760px) { #ubicanos { padding-top: 40px; padding-bottom: 40px; } }

/* ---------- Precio por menor / por mayor: se resalta el que se aplica ---------- */
.price-box > div { position: relative; opacity: .62; transition: opacity .25s, border-color .25s, box-shadow .25s, background .25s; }
.price-box > div.on { opacity: 1; border-color: var(--sage) !important; box-shadow: 0 0 0 2px var(--sage), 0 10px 24px -14px rgba(0,0,0,.4); }
.price-box small em { font-style: normal; }
.pb-flag { position: absolute; top: -10px; right: 12px; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.price-box > div.on .pb-flag { opacity: 1; transform: none; }
.pb-msg { margin: 12px 0 0; font-size: 14.5px; color: var(--ink); }
.pb-msg i { color: #1FA855; margin-right: 4px; }
.pb-tip { color: var(--sage-dark); font-weight: 600; }
.tier { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; margin: 3px 0 2px; }
.tier-men { background: var(--bg); color: var(--ink-muted); border: 1px solid var(--line-strong); }
.tier-may { background: var(--ink); color: var(--gold); }
.ci-info .tier { display: inline-flex; }

/* ---------- Catálogo: tarjetas compactas y ordenadas + cantidad rápida ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card-buy { display: grid; gap: 8px; margin-top: auto; }
.card-buy .qty { display: flex; justify-content: space-between; }
.qty-xs button { width: 40px; height: 34px; font-size: 18px; cursor: pointer; }
.qty-xs input { flex: 1; min-width: 0; width: auto; }
.card-buy .btn-add { padding: 9px 10px; }
.card-body { padding: 12px 14px 14px; }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .grid .card-img { aspect-ratio: 5 / 4; } .card-body { padding: 10px 10px 12px; } .card-price strong { font-size: 18px; } .card-name { font-size: 13.5px; } .qty-xs button { width: 34px; height: 32px; } .card-buy .btn-add { font-size: 13.5px; padding: 8px 6px; } }
