/* ==========================================================
   AQUA CLEAN — Tienda (usa la base de inicio-animado.css)
   ========================================================== */

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 104px; }

/* ---------- Apariciones ---------- */
.js:not(.rm) [data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .9s var(--ease) var(--rd, 0s), transform .9s var(--ease) var(--rd, 0s), box-shadow .5s;
}
.js:not(.rm) [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Navegación: enlace activo y carrito ---------- */
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.menu nav a[aria-current="page"] { color: var(--cyan); }
.nav__cart {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    transition: background .3s;
}
.nav__cart:hover { background: rgba(255, 255, 255, .22); }
.nav.is-light .nav__cart { background: rgba(3, 4, 94, .06); }
.nav.is-light .nav__cart:hover { background: rgba(3, 4, 94, .12); }
.nav__cart .ic { width: 20px; height: 20px; }
.nav__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    background: var(--aqua);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--navy);
    transform: scale(0);
    transition: transform .45s var(--ease);
}
.nav.is-light .nav__count { box-shadow: 0 0 0 2px #fff; }
.nav__count.is-on { transform: scale(1); }
.nav__count.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ==========================================================
   1. ENCABEZADO
   ========================================================== */
.shop-hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(124px, 15vw, 172px);
    color: #fff;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 45% at 50% 82%, rgba(0, 180, 216, .38), transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 0%, rgba(72, 202, 228, .22), transparent 70%),
        linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, #032C7A 100%);
}
.shop-hero__in { position: relative; z-index: 1; }
.shop-hero__title {
    margin: 18px auto 0;
    font-size: clamp(3rem, 8.4vw, 7rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.055em;
}
.shop-hero__title em { color: var(--cyan); }
.shop-hero__lead { margin: 22px auto 0; max-width: 48ch; color: rgba(255, 255, 255, .74); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.shop-hero__btns { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.shop-hero__btns .ic { width: 16px; height: 16px; }

.shop-hero__bubbles { position: absolute; inset: 0; pointer-events: none; }
.shop-hero__bubbles i {
    position: absolute;
    bottom: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(144, 224, 239, .55);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), transparent 60%);
    opacity: 0;
    animation: heroBub 11s linear infinite;
}
.shop-hero__bubbles i:nth-child(1) { left: 8%; animation-delay: -1s; }
.shop-hero__bubbles i:nth-child(2) { left: 19%; width: 6px; height: 6px; animation-delay: -6s; animation-duration: 9s; }
.shop-hero__bubbles i:nth-child(3) { left: 31%; width: 14px; height: 14px; animation-delay: -3s; animation-duration: 13s; }
.shop-hero__bubbles i:nth-child(4) { left: 46%; width: 7px; height: 7px; animation-delay: -8s; }
.shop-hero__bubbles i:nth-child(5) { left: 61%; animation-delay: -4.5s; animation-duration: 12s; }
.shop-hero__bubbles i:nth-child(6) { left: 74%; width: 5px; height: 5px; animation-delay: -2s; animation-duration: 8s; }
.shop-hero__bubbles i:nth-child(7) { left: 86%; width: 12px; height: 12px; animation-delay: -9s; animation-duration: 14s; }
.shop-hero__bubbles i:nth-child(8) { left: 94%; width: 7px; height: 7px; animation-delay: -5s; }
@keyframes heroBub {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: .9; }
    50% { transform: translate(14px, -50vh); }
    90% { opacity: .5; }
    100% { transform: translate(-6px, -100vh); opacity: 0; }
}

.lineup { position: relative; z-index: 1; width: min(960px, 100% - 2 * var(--gutter)); margin: clamp(26px, 4vw, 48px) auto 0; }
.lineup svg { width: 100%; height: auto; overflow: visible; }
.lineup__item { cursor: pointer; }
.lineup__item:focus-visible { outline: none; }
.lineup__item:focus-visible .lineup__price { fill: var(--cyan); }
.lineup__refl { opacity: .55; }
.lineup__fig { transition: transform .5s var(--ease); }
@media (hover: hover) { .lineup__item:hover .lineup__fig { transform: translateY(-8px); } }
.lineup__price { fill: #fff; font: 800 19px var(--sans); letter-spacing: -.03em; text-anchor: middle; transition: fill .3s; }
.lineup__cap { fill: var(--cyan); font: 700 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; text-anchor: middle; opacity: .85; }
.lineup__item:hover .lineup__price { fill: var(--cyan); }

.shop-hero__wave { position: relative; z-index: 1; display: block; width: 100%; height: clamp(40px, 6vw, 84px); margin-top: -2px; fill: var(--mist); }

@media (max-width: 600px) {
    .lineup { width: 100%; }
    .lineup__price { font-size: 30px; }
    .lineup__cap { display: none; }
}

/* ==========================================================
   2. ELEGIR POR LITROS
   ========================================================== */
.shop {
    position: relative;
    padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 10vw, 140px);
    background: linear-gradient(180deg, var(--mist) 0%, #fff 22%, #fff 60%, var(--mist) 100%);
}
.chooser {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    padding: clamp(22px, 4vw, 48px);
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(0, 119, 182, .1);
    box-shadow: 0 40px 90px -50px rgba(3, 4, 94, .45);
}
.chooser__title { margin-top: 14px; font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.chooser__title em { color: var(--blue); }
.chooser__hint { margin-top: 14px; max-width: 42ch; color: var(--ink-70); font-size: 15px; }
.chooser__panel { padding: clamp(18px, 3vw, 30px); border-radius: 26px; background: radial-gradient(ellipse at 30% 100%, #D7F5FB, var(--mist) 70%); }
.chooser__viz { display: flex; align-items: flex-end; gap: clamp(12px, 3vw, 28px); }
.chooser__tank { width: clamp(96px, 14vw, 132px); height: auto; flex: none; overflow: visible; }
.chooser__tankg { transform: scale(var(--ts, .6)); transition: transform .5s var(--ease); }
.chooser__value { display: flex; align-items: baseline; gap: 6px; padding-bottom: 6px; font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--navy); font-variant-numeric: tabular-nums; }
.chooser__value small { font-size: .38em; letter-spacing: 0; color: var(--aqua); }

.range {
    --p: 30%;
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 34px;
    margin-top: 18px;
    background: transparent;
    cursor: pointer;
}
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--aqua), var(--blue)) 0 0 / var(--p) 100% no-repeat, rgba(3, 4, 94, .1);
}
.range::-moz-range-track { height: 10px; border-radius: 99px; background: rgba(3, 4, 94, .1); }
.range::-moz-range-progress { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--aqua), var(--blue)); }
.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    margin-top: -10px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--aqua);
    box-shadow: 0 6px 16px -4px rgba(0, 119, 182, .6);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--aqua);
    box-shadow: 0 6px 16px -4px rgba(0, 119, 182, .6);
}
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(0, 180, 216, .25); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(0, 180, 216, .25); }
.chooser__ticks { position: relative; height: 18px; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--ink-55); }
.chooser__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.chooser__ticks span:first-child { transform: none; }
.chooser__ticks span:last-child { transform: translateX(-100%); }
.chooser__pick {
    margin-top: 18px;
    padding: 12px 12px 12px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 34px -24px rgba(3, 4, 94, .45);
}
.chooser__pick p { font-size: 15px; color: var(--ink-70); }
.chooser__pick b { color: var(--navy); }
.chooser__pick strong { color: var(--blue); font-weight: 800; }
.chooser__pick .btn { min-height: 46px; padding: 0 20px; }

/* ---------- Productos ---------- */
.shop__head { margin-top: clamp(70px, 9vw, 120px); max-width: 760px; margin-inline: auto; text-align: center; }
.shop__head .h2 { margin-top: 16px; }
.shop .cards { margin-top: clamp(40px, 5vw, 64px); }
.card__direct {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--blue);
    transition: color .3s;
}
.card__direct:hover { color: var(--navy); }
.card__direct .ic { width: 16px; height: 16px; color: #25D366; }
.card__add.is-added { background: linear-gradient(135deg, #22C08A, #0A8F5E); }
.card.is-match { box-shadow: 0 0 0 3px var(--aqua), 0 44px 80px -40px rgba(3, 4, 94, .55); }
.card.is-match::before {
    content: "Tu medida";
    position: absolute;
    z-index: 2;
    top: 28px;
    right: 28px;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--aqua);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

@media (max-width: 899px) {
    .chooser { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .card.is-match::before { top: 130px; right: 14px; padding: 4px 8px; font-size: 8.5px; letter-spacing: .08em; }
    .card__direct { font-size: 12.5px; }
    .chooser__ticks span:nth-child(2), .chooser__ticks span:nth-child(5) { display: none; }
    .chooser__pick { padding: 12px; }
    .chooser__pick .btn { width: 100%; }
}

/* ==========================================================
   3. PEDIDO: botón flotante y panel
   ========================================================== */
.cart-pill {
    position: fixed;
    z-index: 41;
    left: 50%;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 8px 0 18px;
    border-radius: 99px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 20px 44px -16px rgba(3, 4, 94, .65);
    transform: translate(-50%, 160%);
    transition: transform .6s var(--ease);
}
.cart-pill.is-on { transform: translate(-50%, 0); }
.drawer-open .cart-pill { transform: translate(-50%, 160%); }
.cart-pill .ic { width: 20px; height: 20px; color: var(--cyan); }
.cart-pill strong { padding: 9px 14px; border-radius: 99px; background: linear-gradient(135deg, var(--aqua), var(--blue)); font-weight: 800; }
@media (max-width: 600px) {
    .cart-pill { left: 16px; right: 88px; justify-content: space-between; transform: translateY(160%); }
    .cart-pill.is-on { transform: none; }
    .drawer-open .cart-pill { transform: translateY(160%); }
}

html.drawer-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s .55s; }
.drawer-open .drawer { visibility: visible; transition: none; }
.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 2, 46, .5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .5s var(--ease);
}
.drawer-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -30px 0 80px -30px rgba(3, 4, 94, .5);
    transform: translateX(100%);
    transition: transform .55s var(--ease);
}
.drawer-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--ink-12); }
.drawer__head h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.drawer__close { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); transition: background .3s; }
.drawer__close:hover { background: var(--foam); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 26px; }

.drawer__empty { display: none; padding: 40px 10px; text-align: center; color: var(--ink-70); }
.drawer__empty svg { width: 64px; height: 134px; margin: 0 auto 18px; }
.drawer__empty p + p { margin-top: 4px; font-size: 14px; }
.drawer__empty .btn { margin-top: 22px; }
.drawer.is-empty .drawer__empty { display: block; }
.drawer.is-empty .order, .drawer.is-empty .drawer__foot, .drawer.is-done .order, .drawer.is-done .drawer__foot, .drawer.is-done .drawer__list { display: none; }
.drawer.is-done .drawer__empty { display: none; }

.drawer__list { display: grid; gap: 12px; }
.line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px 10px 10px;
    border-radius: 20px;
    background: var(--mist);
    border: 1px solid rgba(0, 119, 182, .08);
}
.line__thumb { width: 58px; height: 70px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(ellipse at 50% 88%, #BDEFF8, #fff 75%); }
.line__thumb svg { width: 46px; height: 60px; }
.line__name, .line__meta, .line__sub { display: block; }
.line__name { font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.line__meta { font-size: 12.5px; color: var(--ink-55); }
.line__sub { margin-top: 3px; font-size: 14px; font-weight: 800; color: var(--blue); }
.line__side { display: grid; justify-items: end; gap: 6px; }
.stepper { display: inline-flex; align-items: center; border-radius: 99px; background: #fff; border: 1px solid var(--ink-12); }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; transition: background .25s; }
.stepper button:hover { background: var(--mist); }
.stepper .ic { width: 14px; height: 14px; }
.stepper output { min-width: 22px; text-align: center; font-size: 14px; font-weight: 800; }
.line__remove { font-size: 12px; color: var(--ink-55); text-decoration: underline; text-underline-offset: 2px; }
.line__remove:hover { color: #C53030; }

.order { margin-top: 22px; padding-top: 20px; border-top: 1px dashed rgba(3, 4, 94, .18); display: grid; gap: 12px; }
.order h3 { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-55); }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.field i { font-style: normal; font-weight: 500; color: var(--ink-55); }
.field input, .field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(3, 4, 94, .14);
    background: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(0, 180, 216, .16); }
.field input[aria-invalid="true"] { border-color: #D64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .12); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.order__pay { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--mist); font-size: 13.5px; color: var(--ink-70); }
.order__pay .ic { flex: none; width: 20px; height: 20px; color: var(--blue); }
.order__pay b { color: var(--navy); }
.order__error { min-height: 1.3em; font-size: 13px; font-weight: 600; color: #C53030; }

.drawer__done { padding: 36px 6px; text-align: center; color: var(--ink-70); }
.drawer__done .btn { margin-top: 22px; }
.drawer__done .link-arrow { display: flex; width: fit-content; margin: 22px auto 0; }
.drawer__ok { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: #DCF7E8; color: #0A8F5E; }
.drawer__ok .ic { width: 30px; height: 30px; }

.drawer__foot { display: grid; gap: 10px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink-12); background: #fff; }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; }
.drawer__total span { font-weight: 700; color: var(--ink-55); }
.drawer__total strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.drawer__foot .btn { width: 100%; }
.drawer__fine { font-size: 12px; text-align: center; color: var(--ink-55); }
