/* ============================================================
   DESIGN TOKENS — Sistema de diseño premium PinkCases
   ============================================================ */
:root {
    --brand: #007aff;
    --brand-dark: #005bb5;
    --brand-light: #00c6ff;
    --brand-violet: #7b2ffc;
    --accent: #ff4f9a;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;
    --ink: #0f1115;
    --ink-soft: #2b2f38;
    --muted: #5a6473;
    --muted-soft: #8a93a3;
    --line: #e7e9ee;
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-2: #f1f3f8;
    --dark-1: #070a14;
    --dark-2: #121833;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(15, 17, 21, 0.06), 0 1px 2px rgba(15, 17, 21, 0.04);
    --shadow-md: 0 6px 20px rgba(15, 17, 21, 0.08);
    --shadow-lg: 0 18px 50px rgba(15, 17, 21, 0.14);
    --shadow-brand: 0 10px 36px rgba(0, 122, 255, 0.28);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --container: 1200px;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top 0.25s var(--ease);
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header-top {
    background: linear-gradient(90deg, #1a2a4a, #2c3e6b, #1a2a4a);
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 0.3px;
}

.header-main {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header-main.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.96);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: #007aff;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.nav a:hover {
    color: #007aff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-actions button,
.header-actions a {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    position: relative;
    transition: color 0.3s;
    padding: 8px 10px;
    /* ← Añadido para más espacio alrededor */
}

.header-actions button:hover,
.header-actions a:hover {
    color: #007aff;
}

.header-actions .search-btn,
.header-actions .cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.header-actions .search-btn:hover,
.header-actions .cart-btn:hover {
    background: var(--surface-2);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #007aff;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== NAV MÓVIL ===== */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: background 0.25s var(--ease);
}

.nav-toggle:hover {
    background: var(--surface-2);
}

.nav-toggle span {
    position: relative;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--ease);
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    padding: 84px 24px 32px;
    gap: 4px;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    padding: 14px 12px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-nav a:hover {
    background: var(--surface-2);
    color: var(--brand);
}

.mobile-nav a i {
    color: var(--brand);
    width: 20px;
    text-align: center;
}

.mobile-nav .mobile-nav-cta {
    margin-top: auto;
    background: var(--whatsapp);
    color: #fff;
    justify-content: center;
}

.mobile-nav .mobile-nav-cta:hover {
    background: var(--whatsapp-dark);
    color: #fff;
}

.mobile-nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    background: var(--surface-2);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--ink);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 20, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 1100;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===== SEARCH BAR ===== */
/* ===== BARRA DE BÚSQUEDA CORREGIDA ===== */
/* ===== BARRA DE BÚSQUEDA (CORREGIDA PARA NO MOVERSE) ===== */

/* ===== BARRA DE BÚSQUEDA (SIN LÍNEA) ===== */
.search-bar {
    position: fixed !important;
    top: 71px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 0px solid transparent;
    /* Quitamos el borde visible */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 1000;
}

.search-bar.open {
    max-height: 90px;
    border-bottom: 1px solid #e7e9ee;
    /* Solo se ve la línea cuando está abierta */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.search-bar i {
    color: var(--muted);
    font-size: 1.05rem;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    padding: 8px 0;
}

.search-bar input:focus {
    outline: none;
}

.search-bar .search-clear {
    border: none;
    background: var(--surface-2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============================================================
   HERO PREMIUM — FONDO CLARO
   ============================================================ */
.hero-premium {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edf5 40%, #f5f0ff 70%, #f0f4ff 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-bg 8s ease-in-out infinite;
}

.hero-premium::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 47, 252, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-bg 10s ease-in-out infinite reverse;
}

@keyframes float-bg {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.hero-premium .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-premium-content {
    color: var(--ink);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 122, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 255, 0.12);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #4a6a9a;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #0f1115;
    animation: fadeInUp 1s ease;
}

.gradient-text {
    background: linear-gradient(135deg, #007aff, #00c6ff, #7b2ffc);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: #4a5a7a;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 1.4s ease;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #007aff, #005bb5);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 122, 255, 0.3);
    text-decoration: none;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 122, 255, 0.4);
    color: #fff;
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 122, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 255, 0.15);
    color: #1a2a4a;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-hero:hover {
    background: rgba(0, 122, 255, 0.12);
    transform: translateY(-3px);
    color: #007aff;
    border-color: rgba(0, 122, 255, 0.3);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 1.6s ease;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f1115;
}

.stat-label {
    font-size: 0.85rem;
    color: #5a6a8a;
}

.hero-premium-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    animation: fadeInUp 1s ease;
}

.hero-phone-mockup {
    width: 200px;
    height: 380px;
    background: linear-gradient(145deg, #7444eb, #0b3680);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #007aff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float-phone 4s ease-in-out infinite;
    position: relative;
}

.hero-phone-mockup::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.04) 0%, transparent 70%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes float-phone {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 122, 255, 0.1);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a2a4a;
    font-size: 0.85rem;
    font-weight: 500;
    animation: float-card 5s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.floating-card i {
    font-size: 1.2rem;
    color: #007aff;
}

.floating-card span {
    color: #1a2a4a;
}

.card-1 {
    top: 5%;
    left: -15%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: -15%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 40%;
    left: -10%;
    animation-delay: 3s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TOOLBAR ===== */
.collection-header {
    padding: 40px 0 20px;
}

.collection-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.collection-toolbar h2 {
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    letter-spacing: -0.01em;
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.results-count {
    font-size: 0.9rem;
    color: #666;
}

.sort-select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ===== FILTROS ===== */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #555;
}

.filter-btn:hover {
    border-color: #007aff;
    color: #007aff;
}

.filter-btn.active {
    background: #007aff;
    color: #fff;
    border-color: #007aff;
}

.filter-btn.active:hover {
    background: #005bb5;
    border-color: #005bb5;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #999;
}

.no-products p {
    margin-top: 12px;
    font-size: 1.1rem;
}

/* ============================================================
   PRODUCTOS
   ============================================================ */
.products-grid-section {
    padding: 0 0 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.products-grid .product-card {
    animation: cardIn 0.5s var(--ease) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-grid .product-card {
        animation: none;
    }
}

.product-card {
    background: #fff;
    border-radius: 19px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
    border-radius: 16px;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
}

.product-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #007aff, #00c6ff, #007aff);
    background-size: 300% 300%;
    opacity: 0;
    border-radius: 18px;
    z-index: -1;
    transition: opacity 0.5s ease;
    animation: gradientMove 3s ease infinite;
}

.product-card:hover::after {
    opacity: 1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.product-image-wrapper {
    width: 100%;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 20px;
    position: relative;
    transition: background 0.4s ease;
    border-bottom: 1px solid #f0f0f0;
    aspect-ratio: 1 / 1;
    height: auto;
    cursor: pointer;
    min-height: 200px;
    /* ← Añadido para que no se encoja */
}

.product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.product-image-wrapper.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #eef0f5 30%, #f7f8fb 50%, #eef0f5 70%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-image-wrapper.img-fallback::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #c4cad6;
    background: var(--surface-2);
    z-index: 1;
}

.product-image-wrapper:hover .quick-view-hint,
.product-image-wrapper:focus-visible .quick-view-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--surface-2);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.04));
}

.product-image:not(.loaded) {
    opacity: 0;
}

.product-image.loaded {
    opacity: 1;
    transition: opacity 0.5s var(--ease);
}

.product-card:hover .product-image-wrapper {
    background: #e8e8ed;
}

.product-card:hover .product-image {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.product-card:hover .product-image-wrapper::after {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: rgba(15, 17, 21, 0.78);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    backdrop-filter: blur(6px);
}

.quick-view-hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%) translateY(8px);
    background: rgba(10, 10, 26, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.product-info {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #fff;
    position: relative;
    z-index: 1;
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #007aff;
}

.product-rating {
    color: #f5a623;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-rating span {
    color: #888;
    margin-left: 3px;
    font-size: 0.8rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
    padding-top: 4px;
    transition: color 0.3s ease;
}

.product-card:hover .product-price {
    color: #007aff;
}

.product-price .original {
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 6px;
    font-size: 0.8rem;
}

.product-price .sale {
    color: #e74c3c;
    font-size: 0.65rem;
    background: #ffe8e8;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 6px;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.add-to-cart-btn:hover::after {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    background: #007aff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

.add-to-cart-btn i {
    font-size: 0.75rem;
    margin-right: 6px;
}

/* ===== OFERTA ===== */
.volume-offer {
    padding: 40px 0 60px;
}

.offer-banner {
    background: linear-gradient(135deg, #c2bfbf 0%, #b69494 100%);
    color: #070707;
    padding: 40px 50px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.offer-banner i {
    font-size: 3.5rem;
    color: #25D366;
}

.offer-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.offer-content p {
    color: #0d0d0d;
    margin-bottom: 16px;
}

.btn-whatsapp-offer {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.btn-whatsapp-offer:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-whatsapp-offer i {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* ===== TIENDAS ===== */
.stores-section {
    padding: 60px 0 80px;
    background: #f5f8fa;
}

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.store-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid #eee;
}

.store-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.store-icon {
    font-size: 2rem;
    color: #007aff;
    margin-bottom: 12px;
}

.store-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.store-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.store-card p i {
    color: #007aff;
    width: 18px;
    margin-top: 3px;
}

.store-phone a {
    color: #007aff;
    font-weight: 500;
}

.store-phone a:hover {
    text-decoration: underline;
}

.store-whatsapp {
    display: inline-block;
    margin-top: 12px;
    background: #25D366;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s;
}

.store-whatsapp:hover {
    background: #1da851;
}

.store-whatsapp i {
    margin-right: 6px;
}

/* ===== MAPA ===== */
.map-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.map-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

#storesMap {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}

/* ===== MAPA DARK ===== */
.map-container-dark {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 40%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 30px 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 0 60px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.map-container-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0, 122, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 122, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.map-container-dark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.map-header-dark {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.map-header-dark h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b; /* Texto oscuro */
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.map-header-dark h3 i {
    color: #007aff;
    margin-right: 10px;
    animation: shield-pulse 2s ease-in-out infinite;
}

@keyframes shield-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.map-header-dark h3 span {
    background: linear-gradient(135deg, #007aff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-header-dark p {
    color: #475569; /* Gris oscuro para el subtítulo */
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.map-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.15);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #1e293b; /* Texto oscuro */
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #25D366;
    border-radius: 50%;
    animation: pulse-dot-green 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-dot-green {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.status-text {
    font-weight: 500;
}

#storesMap {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1); /* Sombra interior suave */
    background-color: #e2e8f0; /* Fondo claro por defecto */
}

.map-footer-dark {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Línea divisoria gris */
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569; /* Texto gris oscuro */
    font-size: 0.8rem;
    font-weight: 500;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007aff;
    box-shadow: 0 0 16px rgba(0, 122, 255, 0.4);
}

.legend-dot.active {
    animation: pulse-dot-blue 2s ease-in-out infinite;
}

@keyframes pulse-dot-blue {

    0%,
    100% {
        box-shadow: 0 0 16px rgba(0, 122, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 122, 255, 0.7);
    }
}

.legend-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #007aff, #00c6ff);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 122, 255, 0.3);
}

.legend-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #007aff;
    animation: pulse-ring-legend 2s ease-in-out infinite;
}

@keyframes pulse-ring-legend {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}
/* Aclarar el mapa de calles (Leaflet) */
#storesMap .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}
/* ===== MARCADORES CYBER ===== */
.marker-cyber {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.marker-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.4) 0%, transparent 70%);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.1;
    }
}

.marker-cyber i {
    font-size: 1.8rem;
    color: #007aff;
    background: rgba(10, 14, 23, 0.9);
    padding: 10px;
    border-radius: 50%;
    border: 2px solid rgba(0, 122, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.2), inset 0 0 20px rgba(0, 122, 255, 0.05);
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
}

.marker-cyber:hover i {
    border-color: #00c6ff;
    box-shadow: 0 0 40px rgba(0, 122, 255, 0.4);
    transform: scale(1.1);
}

.popup-cyber-container .leaflet-popup-content-wrapper {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 122, 255, 0.05);
    color: #e0e8f0;
}

.popup-cyber-container .leaflet-popup-tip {
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.popup-cyber {
    padding: 4px 0;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 122, 255, 0.08);
    margin-bottom: 10px;
}

.popup-header i {
    color: #007aff;
    font-size: 1.2rem;
}

.popup-body p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8ab4d8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.popup-body p i {
    color: #007aff;
    width: 18px;
}

.popup-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.popup-whatsapp:hover {
    background: #1da851;
    transform: scale(1.05);
}

.popup-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 122, 255, 0.06);
}

.status-online {
    font-size: 0.75rem;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 6px;
}

.radar-circle {
    animation: radar-scan 4s ease-in-out infinite;
}

@keyframes radar-scan {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: #aaa;
    display: block;
    margin-bottom: 6px;
}

.footer-col a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    font-size: 1.2rem;
    color: #aaa;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

.footer-bottom a {
    color: #007aff;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ============================================================
   WHATSAPP FLOTANTE Y SCROLL TOP
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: #1a1a1a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 50px;
    height: 50px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #005bb5;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section {
    padding: 60px 0 80px;
}

.about-section h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.about-text p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f5f8fa;
    padding: 20px;
    border-radius: 12px;
}

.value-item i {
    font-size: 1.8rem;
    color: #007aff;
    margin-top: 4px;
}

.value-item h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-bottom: 0 !important;
}

/* ============================================================
   MODAL DE PRODUCTO CON CARRUSEL Y ZOOM
   ============================================================ */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.open {
    visibility: visible;
    opacity: 1;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 20, 0.72);
    backdrop-filter: blur(6px);
}

.product-modal-dialog {
    position: relative;
    background: var(--surface, #fff);
    border-radius: 22px;
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s var(--ease, ease);
}

/* ===== Asegurar scroll suave en el modal ===== */
.product-modal-dialog::-webkit-scrollbar {
    width: 6px;
}

.product-modal-dialog::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.product-modal-dialog::-webkit-scrollbar-thumb {
    background: #007aff;
    border-radius: 10px;
}

.product-modal.open .product-modal-dialog {
    transform: translateY(0) scale(1);
}

.product-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* ===== GALERÍA DEL MODAL ===== */
.pm-gallery {
    background: linear-gradient(160deg, #f5f7fa 0%, #eef1f6 100%);
    border-radius: 22px 0 0 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CARRUSEL ===== */
.pm-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border-radius: 22px 0 0 22px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    min-height: 180px;
}

.pm-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.pm-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    cursor: pointer;
    position: relative;
}

.pm-carousel-slide picture,
.pm-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}

.pm-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pm-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.pm-carousel-btn.prev {
    left: 12px;
}

.pm-carousel-btn.next {
    right: 12px;
}

.pm-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.pm-carousel-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pm-carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.pm-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.pm-carousel-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.zoom-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-transform: uppercase;
    z-index: 5;
}

.pm-carousel-slide:hover .zoom-hint {
    opacity: 1;
}

/* ===== DETALLES DEL PRODUCTO ===== */
.pm-details {
    padding: 30px 30px 24px;
    overflow-y: auto;
}

.pm-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink, #1a1a1a);
    margin: 0 0 6px;
    line-height: 1.2;
}

.pm-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pm-stars {
    color: #f5a623;
    letter-spacing: 2px;
    font-size: 1.1rem;
    /* ← Aumentado */
}

.pm-reviews {
    color: #8a8a8a;
    font-size: 1rem;
}

.pm-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand, #007aff);
    margin-bottom: 4px;
}

.pm-original {
    font-size: 1.1rem;
    color: #b0b0b0;
    text-decoration: line-through;
    font-weight: 500;
}

.pm-sale {
    background: #ff375f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.pm-material {
    font-size: 1rem;
    color: #666;
    margin: 2px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-material i {
    color: var(--brand, #007aff);
}

.pm-section {
    margin-bottom: 14px;
}

.pm-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 8px;
}

.pm-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pm-color-swatch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border: 2px solid #e2e6ec;
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: #444;
    transition: all 0.3s ease;
}

.pm-color-swatch:hover {
    border-color: #007aff;
    transform: translateY(-2px);
}

.pm-color-swatch.active {
    background: #007aff;
    border-color: #007aff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.pm-color-swatch.active .pm-swatch-dot {
    border-color: #fff;
}

.pm-color-swatch.active .pm-swatch-name {
    color: #fff;
}

.pm-swatch-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.pm-swatch-name {
    font-size: 1rem;
    font-weight: 500;
}

.pm-models {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pm-model-chip {
    padding: 6px 14px;
    border: 1.5px solid #e2e6ec;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pm-model-chip:hover {
    border-color: #c3ccd6;
}

.pm-model-chip.active {
    border-color: var(--brand, #007aff);
    background: var(--brand, #007aff);
    color: #fff;
}

.pm-muted {
    color: #999;
    font-size: 0.85rem;
}

.pm-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pm-qty-row .pm-label {
    margin: 0;
}

.pm-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #e2e6ec;
    border-radius: 8px;
    overflow: hidden;
}

.pm-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f5f7fa;
    font-size: 1.1rem;
    cursor: pointer;
    color: #333;
    transition: background 0.2s ease;
}

.pm-qty-btn:hover {
    background: #e9edf2;
}

.pm-qty-value {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.pm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.pm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.pm-btn:hover {
    transform: translateY(-2px);
}

.pm-btn:active {
    transform: translateY(0);
}

.pm-btn-cart {
    background: var(--ink, #1a1a1a);
    color: #fff;
}

.pm-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.pm-btn-wompi {
    background: linear-gradient(135deg, #007aff, #00c6ff);
    color: #fff;
}

.pm-secure-note {
    text-align: center;
    font-size: 0.72rem;
    color: #9aa0a8;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pm-secure-note i {
    color: #34c759;
}

/* ============================================================
   ZOOM (Lightbox)
   ============================================================ */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-out;
}

.zoom-overlay.open {
    opacity: 1;
    visibility: visible;
}

.zoom-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: zoom-in;
}

.zoom-overlay.open .zoom-container {
    transform: scale(1) translateY(0);
}

.zoom-image {
    display: block;
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.zoom-container.zoomed .zoom-image {
    cursor: grab;
}

.zoom-container.zoomed .zoom-image:active {
    cursor: grabbing;
}

.zoom-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10002;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8);
}

.zoom-overlay.open .zoom-close {
    opacity: 1;
    transform: scale(1);
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) !important;
}

.zoom-info {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.4s ease 0.2s;
    white-space: nowrap;
}

.zoom-overlay.open .zoom-info {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.zoom-info strong {
    color: #fff;
    font-weight: 600;
}

.zoom-lens {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 220px;
    height: 220px;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.zoom-lens.active {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-premium .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-premium-image {
        min-height: 300px;
    }

    .hero-phone-mockup {
        width: 160px;
        height: 300px;
        font-size: 4rem;
    }

    .floating-card {
        display: none;
    }

    .hero-premium {
        padding: 60px 0 50px;
        min-height: auto;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .product-image-wrapper {
        height: auto;
        aspect-ratio: 1/1;
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-nav,
    .nav-overlay {
        display: block;
    }

    .search-bar {
        top: 63px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-phone-mockup {
        width: 120px;
        height: 220px;
        font-size: 3rem;
    }

    .hero-premium {
        padding: 40px 0 30px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .collection-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .collection-toolbar h2 {
        font-size: 1.3rem;
    }

    .toolbar-right {
        flex-wrap: wrap;
        gap: 8px;
    }

    .results-count {
        font-size: 0.75rem;
    }

    .sort-select {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .filter-container {
        gap: 5px;
        margin: 10px 0 16px;
    }

    .filter-btn {
        padding: 3px 10px;
        font-size: 0.65rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image-wrapper {
        height: auto;
        aspect-ratio: 1/1;
        padding: 12px;
    }

    .product-image {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.03));
    }

    .product-info {
        padding: 10px 12px 12px;
        gap: 2px;
    }

    .product-header {
        min-height: 24px;
        gap: 4px;
    }

    .product-name {
        font-size: 0.75rem;
    }

    .product-rating {
        font-size: 0.6rem;
    }

    .product-price {
        font-size: 0.85rem;
        padding-top: 1px;
    }

    .product-price .original {
        font-size: 0.65rem;
    }

    .product-price .sale {
        font-size: 0.55rem;
        padding: 1px 6px;
    }

    .add-to-cart-btn {
        padding: 5px 8px;
        font-size: 0.65rem;
        margin-top: 5px;
        border-radius: 6px;
    }

    .add-to-cart-btn i {
        font-size: 0.6rem;
    }

    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .product-card:hover .product-image {
        transform: none;
    }

    .product-card:hover .product-name {
        color: #1a1a1a;
    }

    .product-card:hover .product-price {
        color: #1a1a1a;
    }

    .add-to-cart-btn:hover {
        background: #1a1a1a;
        transform: none;
        box-shadow: none;
    }

    .offer-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }

    .offer-banner i {
        font-size: 2.5rem;
    }

    .offer-content h3 {
        font-size: 1.2rem;
    }

    .offer-content p {
        font-size: 0.85rem;
    }

    .btn-whatsapp-offer {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .stores-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .store-card {
        padding: 16px;
    }

    .store-card h3 {
        font-size: 1rem;
    }

    .store-card p {
        font-size: 0.75rem;
    }

    #storesMap {
        height: 250px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-section h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 85px;
        right: 20px;
    }

    /* ===== MODAL RESPONSIVE ===== */
    .product-modal {
        padding: 0;
        align-items: flex-end;
    }

    .product-modal-dialog {
        max-width: 100%;
        max-height: 94vh;
        border-radius: 22px 22px 0 0;
        overflow: hidden;
    }

    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pm-gallery {
        border-radius: 22px 22px 0 0;
        padding: 0;
    }

    .pm-carousel {
        border-radius: 22px 22px 0 0;
        min-height: 150px;
        aspect-ratio: 4 / 3;
    }

    .pm-carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .pm-carousel-btn.prev {
        left: 6px;
    }

    .pm-carousel-btn.next {
        right: 6px;
    }

    .pm-carousel-dot {
        width: 7px;
        height: 7px;
    }

    .pm-carousel-dots {
        gap: 5px;
        bottom: 10px;
    }

    .pm-carousel-counter {
        font-size: 0.6rem;
        padding: 3px 10px;
        top: 8px;
        right: 8px;
    }

    .pm-details {
        padding: 14px 16px 18px;
    }

    .pm-title {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }

    .pm-price {
        font-size: 1.3rem;
    }

    .pm-rating {
        margin-bottom: 5px;
    }

    .pm-reviews {
        font-size: 0.7rem;
    }

    .pm-material {
        font-size: 0.7rem;
        margin: 2px 0 8px;
    }

    .pm-section {
        margin-bottom: 8px;
    }

    .pm-label {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }

    .pm-color-swatch {
        padding: 3px 8px 3px 4px;
        font-size: 0.6rem;
    }

    .pm-swatch-dot {
        width: 14px;
        height: 14px;
    }

    .pm-model-chip {
        padding: 3px 8px;
        font-size: 0.6rem;
    }

    .pm-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .pm-qty-value {
        min-width: 28px;
        font-size: 0.8rem;
    }

    .pm-qty-row {
        margin-bottom: 6px;
    }

    .pm-actions {
        gap: 6px;
        margin-top: 8px;
    }

    .pm-btn {
        padding: 8px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .pm-secure-note {
        font-size: 0.6rem;
        margin-top: 6px;
    }

    .zoom-hint {
        font-size: 0.5rem;
        padding: 3px 10px;
        bottom: 10px;
    }

    /* Zoom responsive */
    .zoom-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .zoom-info {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 0.7rem;
        white-space: normal;
        max-width: 85%;
    }

    .zoom-container {
        max-width: 98vw;
        max-height: 90vh;
    }

    .zoom-lens {
        width: 220px;
        height: 220px;
    }

    .zoom-image {
        max-height: 90vh;
    }

    .map-container-dark {
        padding: 20px 16px 16px;
    }

    #storesMap {
        height: 300px;
    }

    .map-header-dark h3 {
        font-size: 1.1rem;
    }

    .map-footer-dark {
        gap: 16px;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .marker-cyber i {
        font-size: 1.2rem;
        padding: 8px;
    }

    .marker-cyber {
        width: 40px;
        height: 40px;
    }

    .marker-glow {
        width: 40px;
        height: 40px;
    }

    .popup-cyber-container .leaflet-popup-content-wrapper {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-phone-mockup {
        width: 100px;
        height: 180px;
        font-size: 2.5rem;
    }

    .hero-premium-image {
        min-height: 200px;
    }

    .products-grid {
        gap: 8px;
    }

    .product-image-wrapper {
        height: auto;
        aspect-ratio: 1/1;
        padding: 8px;
    }

    .product-info {
        padding: 6px 8px 8px;
    }

    .product-header {
        min-height: 20px;
        gap: 3px;
    }

    .product-name {
        font-size: 0.6rem;
    }

    .product-rating {
        font-size: 0.5rem;
    }

    .product-price {
        font-size: 0.7rem;
    }

    .product-price .original {
        font-size: 0.55rem;
    }

    .add-to-cart-btn {
        font-size: 0.55rem;
        padding: 4px 6px;
        margin-top: 3px;
    }

    .stores-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 2px 6px;
        font-size: 0.55rem;
    }

    .store-card {
        padding: 12px;
    }

    .store-card h3 {
        font-size: 0.9rem;
    }

    .store-card p {
        font-size: 0.7rem;
    }

    #storesMap {
        height: 200px;
    }

    .map-container {
        padding: 16px;
    }

    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 80px;
        right: 16px;
    }

    /* ===== MODAL MÓVIL PEQUEÑO ===== */
    .pm-carousel {
        min-height: 120px;
        aspect-ratio: 4 / 3;
    }

    .pm-carousel-btn {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }

    .pm-carousel-btn.prev {
        left: 4px;
    }

    .pm-carousel-btn.next {
        right: 4px;
    }

    .pm-carousel-dot {
        width: 5px;
        height: 5px;
    }

    .pm-carousel-dots {
        gap: 4px;
        bottom: 6px;
    }

    .pm-carousel-counter {
        font-size: 0.5rem;
        padding: 2px 8px;
        top: 6px;
        right: 6px;
    }

    .zoom-hint {
        font-size: 0.45rem;
        padding: 2px 8px;
        bottom: 6px;
    }

    .pm-details {
        padding: 10px 12px 14px;
    }

    .pm-title {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .pm-price {
        font-size: 1.1rem;
    }

    .pm-rating {
        margin-bottom: 3px;
    }

    .pm-stars {
        font-size: 0.7rem;
    }

    .pm-reviews {
        font-size: 0.6rem;
    }

    .pm-material {
        font-size: 0.6rem;
        margin: 1px 0 6px;
    }

    .pm-label {
        font-size: 0.55rem;
        margin-bottom: 3px;
    }

    .pm-section {
        margin-bottom: 6px;
    }

    .pm-colors {
        gap: 4px;
    }

    .pm-color-swatch {
        padding: 2px 6px 2px 3px;
        font-size: 0.55rem;
    }

    .pm-swatch-dot {
        width: 12px;
        height: 12px;
    }

    .pm-swatch-name {
        font-size: 0.5rem;
    }

    .pm-model-chip {
        padding: 2px 6px;
        font-size: 0.55rem;
        border-radius: 4px;
    }

    .pm-qty-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 4px;
    }

    .pm-qty-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .pm-qty-value {
        min-width: 24px;
        font-size: 0.7rem;
    }

    .pm-actions {
        gap: 4px;
        margin-top: 4px;
    }

    .pm-btn {
        padding: 6px;
        font-size: 0.65rem;
        border-radius: 6px;
    }

    .pm-btn i {
        font-size: 0.65rem;
    }

    .pm-secure-note {
        font-size: 0.5rem;
        margin-top: 4px;
    }

    /* Zoom responsive móvil */
    .zoom-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .zoom-info {
        bottom: 12px;
        padding: 6px 12px;
        font-size: 0.6rem;
        max-width: 90%;
    }

    .zoom-lens {
        width: 220px;
        height: 220px;
    }

    .zoom-container {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .zoom-image {
        max-height: 100vh;
    }

    #storesMap {
        height: 250px;
    }

    .map-header-dark h3 {
        font-size: 0.95rem;
    }

    .map-status {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .map-footer-dark {
        gap: 12px;
    }

    .legend-item {
        font-size: 0.65rem;
        gap: 6px;
    }

    .legend-line {
        width: 20px;
    }

    .marker-cyber i {
        font-size: 1rem;
        padding: 6px;
    }

    .marker-cyber {
        width: 32px;
        height: 32px;
    }

    .marker-glow {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 769px) {

    .mobile-nav,
    .nav-overlay {
        display: none !important;
    }
}

/* ============================================================
   BOTÓN FLOTANTE DEL CARRITO (NUEVO - MOVIDO A LA DERECHA)
   ============================================================ */
/* ============================================================
   BOTONES FLOTANTES (FLECHA ARRIBA, CARRITO, WHATSAPP)
   ============================================================ */

/* 1. FLECHA ARRIBA (La posición más alta) */
.scroll-top-btn {
    position: fixed;
    bottom: 160px;
    /* Subimos la flecha arriba */
    right: 28px;
    width: 50px;
    height: 50px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #005bb5;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

/* 2. CARRITO (Justo debajo de la flecha) */
.cart-float {
    position: fixed;
    right: 28px;
    bottom: 96px;
    /* Bajamos el carrito para que quede en el medio */
    background-color: #003366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.cart-float:hover {
    background-color: #005bb5;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 91, 181, 0.5);
}

.cart-count-float {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ff4f9a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 3. WHATSAPP (La posición más baja) */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    /* Lo dejamos en el fondo */
    right: 28px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: #1a1a1a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 140px;
        /* Flecha arriba en móvil */
        right: 20px;
    }

    .cart-float {
        right: 20px;
        bottom: 84px;
        /* Carrito en el medio en móvil */
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
        bottom: 20px;
        /* WhatsApp abajo en móvil */
        right: 20px;
    }
}

/* ============================================================
   LUPA CORREGIDA - BAJA A COLECCIÓN, CLARA Y CON CONTRASTE
   ============================================================ */

/* ===== CONTENEDOR DE LA BARRA ===== */
.search-bar {
    position: fixed !important;
    top: 80px !important;
    left: 0;
    right: 0;
    background: #f7f8fb !important;
    /* ← Fondo claro como la página principal */
    border-bottom: 1px solid #e7e9ee !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease !important;
    z-index: 1000;
    padding: 0 !important;
    opacity: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.search-bar.open {
    max-height: 180px !important;
    padding: 18px 0 !important;
    opacity: 1 !important;
}

/* ===== CONTENEDOR INTERNO ===== */
.search-bar .container {
    max-width: 720px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: #ffffff !important;
    /* ← Fondo blanco para contraste */
    border-radius: 14px !important;
    border: 2px solid #e7e9ee !important;
    padding: 4px 8px 4px 18px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.search-bar .container:focus-within {
    border-color: #007aff !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), 0 4px 16px rgba(0, 122, 255, 0.08) !important;
}

/* ===== ÍCONO LUPA ===== */
.search-bar .container i {
    font-size: 2.4rem !important;
    color: #007aff !important;
    flex-shrink: 0 !important;
}

/* ===== INPUT - TEXTO VISIBLE Y CONTRASTE ===== */
#productSearch {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    /* ← TEXTO OSCURO para contraste */
    padding: 14px 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}

#productSearch::placeholder {
    color: #8e8e93 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}

/* ===== BOTÓN LIMPIAR (X) - AHORA CIERRA ===== */
.search-clear {
    flex-shrink: 0 !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    display: none !important;
    /* Oculto por defecto */
    align-items: center !important;
    justify-content: center !important;
    color: #8e8e93 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.search-clear.visible {
    display: flex !important;
}

.search-clear:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #1a1a1a !important;
}

/* ===== BOTÓN LUPA EN EL HEADER ===== */
.search-btn {
    font-size: 1.4rem !important;
    padding: 10px !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #1a1a1a !important;
}

.search-btn:hover {
    background: rgba(0, 122, 255, 0.08) !important;
    color: #007aff !important;
    transform: scale(1.05) !important;
}

.search-btn i {
    font-size: 1.3rem !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .search-bar {
        top: 70px !important;
    }

    .search-bar.open {
        max-height: 150px !important;
        padding: 14px 0 !important;
    }

    .search-bar .container {
        max-width: 100% !important;
        margin: 0 12px !important;
        padding: 3px 8px 3px 14px !important;
        border-radius: 12px !important;
    }

    #productSearch {
        font-size: 1rem !important;
        padding: 12px 0 !important;
    }

    #productSearch::placeholder {
        font-size: 0.9rem !important;
    }

    .search-bar .container i {
        font-size: 1.2rem !important;
    }

    .search-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .search-btn i {
        font-size: 1rem !important;
    }

    .search-clear {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .search-bar {
        top: 62px !important;
    }

    .search-bar.open {
        max-height: 130px !important;
        padding: 10px 0 !important;
    }

    .search-bar .container {
        margin: 0 8px !important;
        padding: 2px 6px 2px 12px !important;
        border-radius: 10px !important;
    }

    #productSearch {
        font-size: 0.9rem !important;
        padding: 10px 0 !important;
    }

    #productSearch::placeholder {
        font-size: 0.8rem !important;
    }

    .search-bar .container i {
        font-size: 1rem !important;
    }

    .search-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }

    .search-btn i {
        font-size: 0.9rem !important;
    }

    .search-clear {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
}

/* ===== AGRANDAR PÁGINA PRINCIPAL ===== */
.collection-header {
    padding: 50px 0 30px !important;
    /* ← Más espacio */
}

.collection-toolbar h2 {
    font-size: 2rem !important;
    /* ← Título más grande */
}

.products-grid-section {
    padding: 0 0 80px !important;
    /* ← Más espacio abajo */
}

/* ===== AGRANDAR EN MÓVIL ===== */
@media (max-width: 768px) {
    .products-grid {
        gap: 16px !important;
    }

    .product-name {
        font-size: 0.9rem !important;
    }

    .product-price {
        font-size: 1.1rem !important;
    }

    .add-to-cart-btn {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }

    .product-image-wrapper {
        min-height: 150px !important;
        padding: 14px !important;
    }
}

/* ============================================================
   MODAL - AGRANDAR TODO EN MÓVIL
   ============================================================ */

@media (max-width: 768px) {

    /* === MODAL GENERAL === */
    .product-modal-dialog {
        max-height: 98vh !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .pm-details {
        padding: 20px 18px 24px !important;
    }

    /* === TÍTULO === */
    .pm-title {
        font-size: 1.6rem !important;
        /* ← Más grande */
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }

    /* === ESTRELLAS Y RESEÑAS === */
    .pm-stars {
        font-size: 1.2rem !important;
        /* ← Más grande */
    }

    .pm-reviews {
        font-size: 1rem !important;
        /* ← Más grande */
    }

    /* === PRECIO === */
    .pm-price {
        font-size: 1.8rem !important;
        /* ← Más grande */
        font-weight: 800 !important;
    }

    .pm-original {
        font-size: 1.2rem !important;
    }

    /* === MATERIAL === */
    .pm-material {
        font-size: 1rem !important;
        /* ← Más grande */
        margin: 4px 0 12px !important;
    }

    /* === LABELS (Motivos, Modelos, Cantidad) === */
    .pm-label {
        font-size: 0.95rem !important;
        /* ← Más grande */
        margin-bottom: 8px !important;
    }

    /* === MOTIVOS/COLORES === */
    .pm-color-swatch {
        padding: 8px 16px 8px 10px !important;
        font-size: 0.9rem !important;
        /* ← Más grande */
        border-radius: 30px !important;
        gap: 10px !important;
    }

    .pm-swatch-dot {
        width: 22px !important;
        height: 22px !important;
    }

    .pm-swatch-name {
        font-size: 0.9rem !important;
    }

    /* === MODELOS === */
    .pm-model-chip {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
        /* ← Más grande */
        border-radius: 10px !important;
    }

    /* === CANTIDAD === */
    .pm-qty-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.3rem !important;
    }

    .pm-qty-value {
        min-width: 40px !important;
        font-size: 1.3rem !important;
        /* ← Más grande */
    }

    /* === BOTONES === */
    .pm-btn {
        padding: 16px !important;
        /* ← Más padding */
        font-size: 1.05rem !important;
        /* ← Más grande */
        border-radius: 12px !important;
        gap: 12px !important;
    }

    .pm-btn i {
        font-size: 1.2rem !important;
    }

    /* === NOTA SEGURA === */
    .pm-secure-note {
        font-size: 0.85rem !important;
        margin-top: 12px !important;
        gap: 8px !important;
    }

    /* === CARRUSEL - IMÁGENES MÁS GRANDES === */
    .pm-carousel {
        min-height: 300px !important;
        aspect-ratio: 4 / 3 !important;
    }

    .pm-carousel-slide img {
        object-fit: contain !important;
        padding: 10px !important;
    }

    /* === BOTONES DE NAVEGACIÓN DEL CARRUSEL === */
    .pm-carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    /* === DOTS DEL CARRUSEL === */
    .pm-carousel-dot {
        width: 10px !important;
        height: 10px !important;
    }

    /* === CONTADOR === */
    .pm-carousel-counter {
        font-size: 0.8rem !important;
        padding: 6px 14px !important;
    }

    /* === HINT DE ZOOM === */
    .zoom-hint {
        font-size: 0.7rem !important;
        padding: 6px 16px !important;
        bottom: 16px !important;
    }
}

/* ===== PARA PANTALLAS MUY PEQUEÑAS (menos de 480px) ===== */
@media (max-width: 480px) {
    .pm-title {
        font-size: 1.3rem !important;
    }

    .pm-price {
        font-size: 1.6rem !important;
    }

    .pm-stars {
        font-size: 1rem !important;
    }

    .pm-reviews {
        font-size: 0.9rem !important;
    }

    .pm-material {
        font-size: 0.9rem !important;
    }

    .pm-label {
        font-size: 0.85rem !important;
    }

    .pm-color-swatch {
        font-size: 0.8rem !important;
        padding: 6px 12px 6px 8px !important;
    }

    .pm-swatch-dot {
        width: 18px !important;
        height: 18px !important;
    }

    .pm-model-chip {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    .pm-btn {
        font-size: 0.9rem !important;
        padding: 14px !important;
    }

    .pm-qty-value {
        font-size: 1.1rem !important;
    }

    .pm-qty-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.1rem !important;
    }

    .pm-carousel {
        min-height: 220px !important;
    }

    .pm-secure-note {
        font-size: 0.75rem !important;
    }
}

/* ============================================================
   MODAL - ASEGURAR QUE LOS BOTONES SE VEAN SIEMPRE
   ============================================================ */

/* ===== FIJAR LOS BOTONES EN LA PARTE INFERIOR ===== */
.pm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 4px;
}

/* ===== ESPACIO EXTRA PARA QUE LOS BOTONES NO QUEDEN OCULTOS ===== */
.pm-details {
    padding: 24px 24px 30px !important; /* ← Más padding abajo */
    overflow-y: auto;
    max-height: 100%;
}

/* ===== EN MÓVIL - MÁS ESPACIO ===== */
@media (max-width: 768px) {
    .pm-details {
        padding: 18px 16px 40px !important; /* ← Más padding abajo en móvil */
    }

    .pm-actions {
        gap: 10px !important;
        margin-top: 20px !important;
        padding-bottom: 10px !important;
    }

    .pm-btn {
        padding: 16px !important;
        font-size: 1rem !important;
        min-height: 54px !important; /* ← Altura mínima para que sean táctiles */
    }

    .product-modal-dialog {
        max-height: 95vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important; /* ← Scroll suave en iOS */
    }
}

@media (max-width: 480px) {
    .pm-details {
        padding: 14px 14px 50px !important;
    }

    .pm-actions {
        gap: 8px !important;
        margin-top: 16px !important;
    }

    .pm-btn {
        padding: 14px !important;
        font-size: 0.9rem !important;
        min-height: 48px !important;
    }

    .product-modal-dialog {
        max-height: 96vh !important;
    }
}

/* Ajuste para el logo del osito en el header */
.header-inner .logo .logo-img-header {
    height: 90px !important;   /* Ajusta esta altura a tu gusto (ej: 50px, 70px) */
    width: 90px !important;    /* Fuerza el ancho igual a la altura */
    object-fit: cover;         /* Recorta la imagen para que llene el cuadro */
    border-radius: 50% !important; /* ¡Esto la hace perfectamente redonda! */
    margin-right: 10px;
}

/* Asegurar que el logo no se estire */
.header-inner .logo {
    display: flex !important;
    align-items: center !important;
    max-width: 300px; /* Opcional: limita el ancho del contenedor del logo */
}