/* ---- fx.css ---- */
/* ---- A1. Hero ---- */
.blur-stagger {
    display: inline-block;
    filter: blur(8px);
    opacity: 0;
    transform: translateY(10px);
    transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.blur-stagger.in {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
}
.flip-words {
    position: relative;
    display: inline-block;
    min-width: 120px;
    font-weight: 800;
    color: var(--accent);
}
.flip-word-letter {
    display: inline-block;
    filter: blur(8px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.flip-word-letter.in {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
}
.flip-word-letter.out {
    filter: blur(8px);
    opacity: 0;
    transform: translateY(-10px);
}
.hero-search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 32px 0;
}
#hero-search-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
#hero-search-input:focus {
    background: #fff;
    border-color: var(--accent);
}
#hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: 0.3s;
}
#hero-search-btn.active {
    opacity: 1;
    background: var(--accent);
}
.interactive-hover-btn {
    position: relative;
    padding: 14px 28px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}
.ih-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
    margin-right: 12px;
    transition: all 0.4s ease;
}
.interactive-hover-btn:hover .ih-dot {
    transform: scale(30);
    background: var(--text);
}
.interactive-hover-btn:hover .ih-text {
    color: #fff;
    transform: translateX(4px);
}
.ih-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}
.magnetic-btn {
    display: inline-block;
    padding: 14px 24px;
    font-weight: 600;
    transition: transform 0.1s;
    color: var(--text);
}
#hero-3d-card {
    transition: transform 0.1s;
}
.hero-render {
    display: block;
}

/* ---- A3. Categorías ---- */
.carousel-section {
    padding: 96px 0;
}
.apple-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 24px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
}
.apple-carousel::-webkit-scrollbar { display: none; }
.apple-card {
    width: 280px;
    height: 420px;
    flex-shrink: 0;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.apple-card:hover {
    transform: scale(1.03);
}
.apple-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s;
}
.apple-card:hover .apple-card-bg {
    transform: scale(1.08);
}
.apple-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}
.apple-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.apple-card-count {
    font-size: 14px;
    opacity: 0.8;
}

/* ---- A4. Del almacén a tu puerta ---- */
.map-section { padding: 96px 0; }
.map-panel {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}
.map-text ul {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}
.map-text li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}
.map-visual {
    position: relative;
    width: 100%;
}
.map-visual img {
    width: 100%;
    height: auto;
    display: block;
}
.map-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.map-path {
    fill: none;
    stroke: url(#map-gradient);
    stroke-width: 1;
    stroke-linecap: round;
}
@media(max-width: 768px) {
    .map-panel { grid-template-columns: 1fr; }
}

/* ---- A5. Product Card ---- */
.pc-new-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.pc-media {
    position: relative;
    aspect-ratio: 1;
    background: #f1f5f9;
}
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    transition: opacity 0.4s;
}
.pc-img-hover { opacity: 0; }
.pc-new-card:hover .pc-img-hover { opacity: 1; }
.pc-new-card:hover .pc-img-main { opacity: 0; }
.pc-badges-row {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.pc-badge {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pc-badge-featured { background: var(--accent); color: #fff; }
.pc-badge-new { background: var(--text); color: #fff; }
.pc-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}
.pc-new-card:hover .pc-actions {
    opacity: 1;
    transform: translateY(0);
}
@media(max-width: 768px) {
    .pc-actions { opacity: 1; transform: translateY(0); }
}
.pc-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--line);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.pc-action-btn:hover {
    background: var(--text);
    color: #fff;
    transform: scale(1.05);
}
.pc-body {
    padding: 16px;
}
.pc-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    line-height: 1.4;
}
.pc-price-row {
    display: flex;
    flex-direction: column;
}
.pc-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.pc-ship {
    font-size: 12px;
    color: var(--muted);
}
/* Cool Mode Canvas */
#cool-mode-canvas {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
}
/* Fly to cart */
.fly-img {
    position: fixed;
    z-index: 10000;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
/* Featured Tabs */
.pill-tabs {
    display: inline-flex;
    background: rgba(15,23,42,0.05);
    padding: 4px;
    border-radius: 999px;
    position: relative;
    margin-top: 16px;
}
.pill-tab {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border: none;
    background: transparent;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}
.pill-tab.active { color: #fff; }
.pill-tab-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    background: var(--text);
    border-radius: 999px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- A6. Así compras ---- */
.sticky-scroll-section { padding: 96px 0; }
.sticky-scroll-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    position: relative;
}
.sticky-scroll-steps {
    display: flex;
    flex-direction: column;
}
.sticky-step {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s;
}
.sticky-step.active { opacity: 1; }
.sticky-step h3 { font-size: 32px; margin-bottom: 16px; }
.sticky-step p { font-size: 18px; color: var(--muted); }
.sticky-scroll-visual {
    position: sticky;
    top: 20vh;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-visual-mobile { display: none; }
@media(max-width: 768px) {
    .sticky-scroll-container { grid-template-columns: 1fr; }
    .sticky-scroll-visual { display: none; }
    .step-visual-mobile { display: block; height: 200px; background: rgba(0,0,0,0.05); margin-top: 24px; border-radius: 16px; }
    .sticky-step { min-height: auto; margin-bottom: 64px; opacity: 1; }
}

/* ---- A7. Carrito lateral ---- */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
}
.cart-drawer.open { pointer-events: auto; }
.cart-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: rgba(255,255,255,0.95);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-header h3 { font-size: 20px; font-weight: 700; }
.cart-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--line);
    background: #fff;
}
.cart-drawer-subtotal {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.cart-drawer-ship {
    font-size: 14px;
    color: #16A34A;
    text-align: right;
    margin-bottom: 16px;
}
.cd-item { display: flex; gap: 16px; margin-bottom: 24px; }
.cd-item img { width: 64px; height: 64px; object-fit: contain; background: #f8fafc; border-radius: 8px; }
.cd-item-info { flex: 1; }
.cd-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-item-price { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cd-item-controls { display: flex; align-items: center; gap: 12px; }
.cd-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cd-stepper button { width: 28px; height: 28px; border: none; background: #f8fafc; cursor: pointer; }
.cd-stepper span { width: 28px; text-align: center; font-size: 14px; }
.cd-remove { border: none; background: none; font-size: 12px; color: #EF4444; cursor: pointer; text-decoration: underline; }
.cd-empty { text-align: center; color: var(--muted); padding-top: 40px; }

/* ---- A8. Dock móvil ---- */
.mobile-dock {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    gap: 16px;
    z-index: 8000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.dock-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}
.dock-item.active { color: var(--accent); }
.dock-item:active { transform: scale(1.2); color: var(--text); background: rgba(0,0,0,0.05); }
.dock-cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media(max-width: 768px) {
    .mobile-dock { display: flex; }
    body { padding-bottom: 100px; }
}

/* ---- A9. CTA Final ---- */
.final-cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}
.marquee-3d-bg {
    position: absolute;
    inset: -50%;
    transform: rotateX(55deg) rotateZ(-45deg);
    transform-style: preserve-3d;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
.marquee-3d-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: scroll3d 40s linear infinite;
}
@keyframes scroll3d {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}
.marquee-3d-row { display: flex; gap: 16px; }
.marquee-3d-item { width: 200px; height: 260px; border-radius: 16px; background-size: cover; background-position: center; }
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, #fff 80%);
    z-index: 1;
}
.beams-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ---- A10. Pulido global ---- */
.page { transition: opacity 0.18s, filter 0.18s, transform 0.18s; }
.page.exiting { opacity: 0; filter: blur(4px); }
.page.entering { transform: translateY(12px); opacity: 0; }
.halo-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s, width 0.2s, height 0.2s;
    opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
    body:hover .halo-cursor { opacity: 0.2; }
    a:hover ~ .halo-cursor, button:hover ~ .halo-cursor, .pc-new-card:hover ~ .halo-cursor {
        opacity: 0.4;
        width: 36px;
        height: 36px;
    }
}

.pc-btn-add {}
.pc-btn-quickview {}
.sticky-visual-content {}
.vis-sim-card {
    padding: 20px; background: #fff; border-radius: 16px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 220px;
}
.vm-img { width: 100%; height: 140px; background: #f1f5f9; border-radius: 8px; margin-bottom: 12px; }
.vm-text { font-weight: 600; margin-bottom: 12px; }
.vm-btn { background: var(--text); color: #fff; padding: 8px 16px; border-radius: 8px; border: none; font-weight: bold; position: relative; cursor: pointer; transition: transform 0.2s; }
.vis-sim-card:hover .vm-btn { transform: scale(0.96); }
.vm-plus1 { position: absolute; top: 0; right: 0; opacity: 0; color: var(--accent); font-weight: 800; transform: translateY(0); transition: 0.5s; }
.vis-sim-card:hover .vm-plus1 { opacity: 1; transform: translateY(-20px); }

.vis-sim-pay {
    padding: 24px; background: #fff; border-radius: 16px; width: 260px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.vm-chips { display: flex; gap: 8px; }
.vm-chips span { background: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.vm-bar { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.vm-progress { width: 0%; height: 100%; background: #10b981; animation: vm-load 2s ease forwards; }
@keyframes vm-load { to { width: 100%; } }
.vm-check { stroke-dasharray: 50; stroke-dashoffset: 50; animation: vm-check-anim 0.5s 2s forwards; }
@keyframes vm-check-anim { to { stroke-dashoffset: 0; } }

.vis-sim-track { display: flex; flex-direction: column; gap: 4px; }
.vmt-point { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.vmt-point::before { content:''; width:12px; height:12px; border-radius:50%; border:2px solid var(--muted); background:#fff; z-index:2; }
.vmt-point.active { color: var(--text); }
.vmt-point.active::before { border-color: var(--accent); background: var(--accent); }
.vmt-line { height: 24px; width: 2px; background: var(--line); margin-left: 7px; }
.vmt-line.active { background: var(--accent); }

.quick-view { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.quick-view.open { display: flex; }
.qv-content { position: relative; width: 920px; max-width: 95%; background: #fff; border-radius: 24px; padding: 40px; }
.qv-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--muted); }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.qv-img img { width: 100%; height: auto; border-radius: 16px; }
.qv-info { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.qv-price { font-size: 24px; font-weight: 800; }
.qv-ship { color: #10b981; font-weight: 600; }

.floating-dock { display: none !important; }
@media(max-width: 768px) {
    .floating-dock { display: flex !important; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; gap: 16px; z-index: 8000; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
}

.drawer-item { display: flex; gap: 16px; margin-bottom: 24px; }
@media (hover: none) {
    .halo-cursor { display: none !important; }
}
.al-icon {}
.al-item {}
.cat-nav {}
.cat-next {}
.cat-prev {}
.pc-add {}
.pc-quick {}
.qv-add-btn {}
.vanish-canvas {}
.vis-sim-card {}
.vis-sim-pay {}
.vis-sim-track {}
.vis-simulated-card {}
.vis-simulated-pay {}
.vis-simulated-track {}
.modal-backdrop {}
/* LAYOUT FIXES OVERRIDES */

/* 1. Hero search */
#hero-vanish-input {
    width: min(520px, 100%);
    height: 56px;
    padding: 0 8px 0 20px;
}
#hero-search-input {
    font-size: 16px;
    width: 100%;
    margin-left: 12px;
}
#hero-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.search-icon-left {
    color: var(--muted);
    flex-shrink: 0;
}
.hero-cta a, .hero-cta button {
    height: 52px;
    padding: 0 28px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* 2 & 3. Hero Float Cards and Animated List */
.hero-float-card { position: absolute; z-index: 20; }

#hero-animated-list {
    position: absolute;
    bottom: 16px;
    right: 16px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 25;
}
.al-item {
    background: rgba(255,255,255,0.94);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}
.al-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 6. Map */
.map-visual { position: relative; aspect-ratio: 210/100; width: 100%; }
.map-visual img, .map-visual svg.map-arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
@media (min-width: 769px) {
    .map-panel { display: flex; align-items: center; }
    .map-text { width: 40%; padding-right: 40px; }
    .map-visual { width: 60%; }
}
@media (max-width: 768px) {
    .map-visual { width: 100%; margin-top: 24px; }
}

/* 7. Así compras */
.sticky-scroll-container { display: flex; align-items: flex-start; gap: 40px; }
.sticky-scroll-steps { width: 50%; }
.sticky-scroll-visual {
    width: 50%;
    position: sticky;
    top: 120px;
    min-height: 400px;
    padding: 32px;
}
.sticky-visual-content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* 8. Categorías */
.carousel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cat-nav-group { display: flex; gap: 8px; }
.cat-nav { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.apple-card { position: relative; overflow: hidden; border-radius: 24px; }
.apple-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.apple-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; }

/* 9. Dock móvil */
@media (max-width: 768px) {
    body { padding-bottom: 100px; }
}

/* 10. CTA Final */
.final-cta-section { position: relative; height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.marquee-3d-bg { position: absolute; inset: 0; opacity: 0.9; }
.cta-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 30%, var(--bg) 80%); pointer-events: none; }
.cta-panel { position: relative; z-index: 10; text-align: center; }

/* 11. Destacados Tabs */
.pill-tab.active { color: #fff; }
.pill-tab-slider { background: #0F172A; }

/* Final Geometry Fixes */
.al-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; height: 48px !important; }
.vis-sim-card, .vis-sim-pay, .vis-sim-track { min-height: 360px !important; min-width: 420px !important; }
.sticky-scroll-visual { min-height: 460px !important; }

/* Mapa: pines por ciudad y etiquetas (planificador) */
.map-visual img { opacity: 1; }
.map-pin-dot { fill: #fff; stroke-width: .6; }
.map-pin-dest .map-pin-dot { stroke: var(--accent); }
.map-pin-origin .map-pin-dot { stroke: var(--indigo); r: .9; }
.map-pin-ring { fill: none; stroke-width: .35; transform-box: fill-box; transform-origin: center; animation: map-pulse 2.4s ease-out infinite; }
.map-pin-dest .map-pin-ring { stroke: var(--accent); }
.map-pin-origin .map-pin-ring { stroke: var(--indigo); animation-delay: 1.2s; }
@keyframes map-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.map-label { font: 600 2.3px var(--font); fill: var(--ink); }
.map-label-origin { fill: var(--muted); font-weight: 500; }
.map-path { stroke-width: .7; }
@media (prefers-reduced-motion: reduce) { .map-pin-ring { animation: none; opacity: 0; } }

/* Hero: tarjetas flotantes flotan con `translate` (compone con el translateZ del stage 3D) */
.hfc-bob-1, .hfc-bob-2, .hfc-bob-3 { animation: hfc-bob 6s ease-in-out infinite; }
.hfc-bob-2 { animation-delay: -2s; }
.hfc-bob-3 { animation-delay: -4s; }
@keyframes hfc-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hfc-bob-1, .hfc-bob-2, .hfc-bob-3 { animation: none; } }

/* Hero: la píldora es el contenedor; lupa, input y botón viven dentro */
#hero-vanish-input.hero-search-wrapper {
  display: flex; align-items: center; gap: 10px;
  width: min(520px, 100%); height: 56px; margin: 28px 0 24px; padding: 0 8px 0 20px;
  border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-glass), inset 0 0 0 1px rgba(15,23,42,.05);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s var(--ease), background .25s;
}
#hero-vanish-input.hero-search-wrapper:focus-within { background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.15), var(--shadow-lift); }
#hero-vanish-input .search-icon-left { position: static; flex: 0 0 20px; }
#hero-vanish-input #hero-search-input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: transparent;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 16px; color: var(--ink);
}
#hero-vanish-input #hero-search-input:focus { background: transparent; border: 0; }
#hero-vanish-input #hero-search-btn { position: static; flex: 0 0 40px; transform: none; }
#hero-vanish-input .vanish-canvas { left: 50px; right: 56px; width: auto; }

/* ===== A6. Así compras: visuales (planificador) ===== */
.sticky-visual-content { position: relative; min-height: 360px; display: grid; place-items: center; }
.sv-panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  opacity: 0; filter: blur(8px); transform: translateY(10px) scale(.98);
  transition: opacity .35s var(--ease), filter .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.sv-panel.active { opacity: 1; filter: none; transform: none; }

/* Paso 1: tarjeta de producto real con botón que se presiona solo */
.sv-card { width: min(300px, 100%); background: #fff; border-radius: 22px; padding: 12px; box-shadow: var(--shadow-lift); }
.sv-card-media { aspect-ratio: 1; border-radius: 16px; background: #fff; overflow: hidden; }
.sv-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.sv-card-name { font-size: 14px; font-weight: 600; color: var(--ink); margin: 10px 4px 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-card-row { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 2px; }
.sv-card-price { font-weight: 700; font-size: 18px; color: var(--ink); }
.sv-card-btn { position: relative; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font: 700 12px var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; }
.sv-plus { position: absolute; right: 8px; top: -6px; color: var(--accent); font-size: 14px; opacity: 0; }
.sv-panel.play .sv-card-btn { animation: sv-press 2.4s var(--ease) .6s infinite; }
.sv-panel.play .sv-plus { animation: sv-plus 2.4s var(--ease) .6s infinite; }
@keyframes sv-press { 0%, 20%, 100% { transform: scale(1); } 10% { transform: scale(.93); background: var(--accent); } }
@keyframes sv-plus { 0%, 8% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 40%, 100% { opacity: 0; transform: translateY(-26px); } }

/* Paso 2: pago protegido */
.sv-pay { width: min(320px, 100%); background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lift); display: grid; gap: 16px; }
.sv-pay-total { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 14px; }
.sv-pay-total b { color: var(--ink); font-size: 22px; }
.sv-pay-methods { display: flex; gap: 8px; }
.sv-chip { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: #635BFF; }
.sv-chip-mp { color: #009EE3; }
.sv-pay-bar { height: 6px; border-radius: 99px; background: #EEF2F7; overflow: hidden; }
.sv-pay-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.sv-panel.play .sv-pay-bar i { animation: sv-bar 1.4s var(--ease) .3s forwards; }
@keyframes sv-bar { to { width: 100%; } }
.sv-pay-ok { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--success); opacity: 0; }
.sv-pay-ok svg { width: 30px; height: 30px; fill: none; stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sv-pay-ok circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.sv-pay-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.sv-panel.play .sv-pay-ok { animation: sv-fade .3s 1.6s forwards; }
.sv-panel.play .sv-pay-ok circle { animation: sv-draw .5s 1.7s forwards; }
.sv-panel.play .sv-pay-ok path { animation: sv-draw .35s 2.1s forwards; }
@keyframes sv-draw { to { stroke-dashoffset: 0; } }
@keyframes sv-fade { to { opacity: 1; } }

/* Paso 3: rastreo que se llena */
.sv-track { list-style: none; margin: 0; padding: 26px 28px; width: min(320px, 100%); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lift); }
.sv-track li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 600; color: var(--muted); font-size: 14px; }
.sv-track li span { position: relative; z-index: 1; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid #CBD5E1; background: #fff; transition: all .3s; }
.sv-track li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 34px; width: 2px; height: 26px; background: #E2E8F0; }
.sv-panel.play .sv-track li { animation: sv-step .01s forwards; }
.sv-panel.play .sv-track li:nth-child(1) { animation-delay: .3s; }
.sv-panel.play .sv-track li:nth-child(2) { animation-delay: .9s; }
.sv-panel.play .sv-track li:nth-child(3) { animation-delay: 1.5s; }
.sv-panel.play .sv-track li:nth-child(4) { animation-delay: 2.1s; }
@keyframes sv-step { to { color: var(--ink); } }
.sv-panel.play .sv-track li span { animation: sv-dot .3s forwards; animation-delay: inherit; }
@keyframes sv-dot { to { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 5px rgba(16,185,129,.15); } }
@media (prefers-reduced-motion: reduce) { .sv-panel * { animation: none !important; } .sv-pay-ok { opacity: 1; } }

/* ===== B1. Catálogo (planificador) ===== */
#page-catalog .section { overflow: visible; }          /* sticky necesita que ningún ancestro recorte */
.ct-sentinel { height: 1px; }
.catalog-toolbar {
  position: sticky; top: 88px; z-index: 40; margin: 8px 0 28px; padding: 14px 16px 12px;
  border-radius: 24px; border: 1px solid transparent;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.catalog-toolbar.stuck {
  background: rgba(255,255,255,.78); border-color: rgba(255,255,255,.9); box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.ct-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.ct-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.catalog-toolbar .catalog-search-wrap { position: relative; flex: 1; max-width: 460px; }
.catalog-toolbar .catalog-search-wrap .search-icon { position: absolute; z-index: 2; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.catalog-toolbar #catalog-search {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 999px; font: 500 15px var(--font); color: var(--ink);
  background: rgba(255,255,255,.85); border: 1px solid var(--line); outline: none; transition: box-shadow .2s, border-color .2s;
}
.catalog-toolbar #catalog-search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,.14); }

.ct-toggle { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; user-select: none; }
.ct-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ct-switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #E2E8F0; transition: background .2s; }
.ct-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25); transition: transform .25s var(--ease); }
.ct-toggle input:checked + .ct-switch { background: var(--ink); }
.ct-toggle input:checked + .ct-switch::after { transform: translateX(16px); }
.ct-toggle input:focus-visible + .ct-switch { box-shadow: 0 0 0 3px rgba(59,130,246,.35); }

.ct-sort { position: relative; }
.ct-sort-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 600 13px var(--font); color: var(--ink); background: rgba(255,255,255,.85); border: 1px solid var(--line);
}
.ct-sort-label { white-space: nowrap; }
.ct-sort-btn svg { transition: transform .25s var(--ease); }
.ct-sort.open .ct-sort-btn svg { transform: rotate(180deg); }
.ct-sort-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; margin: 0; padding: 6px; list-style: none; z-index: 5;
  border-radius: 18px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.ct-sort.open .ct-sort-list { opacity: 1; transform: none; pointer-events: auto; }
.ct-sort-list li { padding: 10px 12px; border-radius: 12px; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; }
.ct-sort-list li:hover { background: #F1F5F9; color: var(--ink); }
.ct-sort-list li[aria-selected="true"] { color: var(--ink); font-weight: 700; }

.catalog-toolbar .catalog-filters {
  position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent);
}
.catalog-toolbar .catalog-filters::-webkit-scrollbar { display: none; }
.catalog-toolbar .filter-btn {
  position: relative; z-index: 1; flex: 0 0 auto; background: transparent; border: 0; border-radius: 999px; cursor: pointer;
  padding: 9px 14px; font: 600 13px var(--font); color: var(--ink-2); white-space: nowrap; transition: color .25s var(--ease);
}
.catalog-toolbar .filter-btn small { margin-left: 4px; font-size: 11px; opacity: .55; font-weight: 600; }
.catalog-toolbar .filter-btn.active { color: #fff; }
.catalog-toolbar .filter-btn:not(.active):hover { color: var(--ink); background: rgba(15,23,42,.05); }
.filter-pill {
  position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 0; border-radius: 999px; background: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(15,23,42,.45); transition: transform .38s var(--ease), width .38s var(--ease);
}
.pc-name mark { background: rgba(225,29,46,.12); color: var(--accent); border-radius: 4px; padding: 0 2px; }
.catalog-empty { grid-column: 1 / -1; text-align: center; padding: 64px 16px; color: var(--muted); }
.catalog-empty svg { color: #CBD5E1; margin-bottom: 12px; }
.catalog-empty h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; }
.catalog-empty p { margin-bottom: 20px; }
.catalog-more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.catalog-more-wrap[hidden] { display: none; }
@media (max-width: 768px) {
  .catalog-toolbar { top: 76px; padding: 10px; margin-inline: -8px; }
  .ct-row { flex-wrap: wrap; gap: 10px; }
  .catalog-toolbar .catalog-search-wrap { max-width: none; flex-basis: 100%; }
  .ct-right { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .filter-pill, .ct-sort-list { transition: none; } }

/* ===== Hero: corrección anti-parpadeo y anti-solapamiento ===== */
#hero-3d-card {
  transform-style: flat !important;
  perspective: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

#hero-3d-card,
#hero-3d-card * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#hero-3d-card .hero-render {
  transform: none !important;
  width: 72% !important;
  height: 72% !important;
  top: 4% !important;
  left: 6% !important;
  right: auto !important;
  bottom: auto !important;
}

#hero-3d-card .hero-float-card {
  transform: none !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  transition: scale 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}

#hero-3d-card .hero-float-card:hover {
  transform: none !important;
  scale: 1.03;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

#hero-3d-card #hero-float-3 {
  bottom: 22% !important;
  left: -24px !important;
}

#hero-animated-list {
  position: absolute !important;
  right: 16px !important;
  bottom: 16px !important;
  left: auto !important;
  top: auto !important;
  max-width: 280px !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 25 !important;
}

#hero-animated-list .al-item {
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06) !important;
  height: 48px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* Móvil: el escenario es angosto; la 3ª tarjeta flotante chocaba con los avisos y se salía por la izquierda */
@media (max-width: 767px) {
  #hero-float-3 { display: none !important; }
}
