/* ============================================================
   KOIFIT STORE - Hoja de estilos principal
   Paleta: negro, blanco, gris metálico, naranja (identidad del logo)
   ============================================================ */

:root {
    --color-bg: #0b0b0c;
    --color-bg-alt: #141416;
    --color-card: #1b1b1e;
    --color-card-hover: #222226;
    --color-border: #2a2a2e;
    --color-white: #f5f5f7;
    --color-gray: #9a9a9f;
    --color-gray-light: #c7c7cc;
    --color-metal: #b8bcc4;
    --color-orange: #ff6a1a;
    --color-orange-dark: #e2560c;
    --color-orange-light: #ff8a4d;
    --color-success: #33c37b;
    --color-danger: #e5484d;
    --font-display: 'Oswald', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    line-height: 1.15;
}
p { margin: 0 0 14px; color: var(--color-gray-light); }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.orange { color: var(--color-orange); }

/* ===================== BOTONES ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-orange);
    color: #0b0b0c;
}
.btn-primary:hover { background: var(--color-orange-dark); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    border-color: var(--color-metal);
    color: var(--color-white);
}
.btn-outline:hover { border-color: var(--color-orange); color: var(--color-orange); }
.btn-dark {
    background: var(--color-card);
    color: var(--color-white);
    border-color: var(--color-border);
}
.btn-dark:hover { background: var(--color-card-hover); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-whatsapp {
    background: #25d366;
    color: #06210f;
}
.btn-whatsapp:hover { background: #1ebe5a; }

/* ===================== HEADER ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(11, 11, 12, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-height);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand img { height: 68px; width: auto; display: block; }

.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a {
    padding: 10px 14px;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-gray-light);
    border-radius: 6px;
    transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-orange); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--color-orange); color: var(--color-orange); }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-orange);
    color: #0b0b0c;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.whatsapp-header {
    background: #25d366;
    color: #06210f;
}
.whatsapp-header:hover { background: #1ebe5a; color: #06210f; }

.search-form {
    display: flex;
    align-items: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 6px 6px 6px 16px;
    flex: 1;
    max-width: 360px;
}
.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-size: 14px;
    padding: 6px 0;
}
.search-form input::placeholder { color: var(--color-gray); }
.search-form button {
    background: var(--color-orange);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #0b0b0c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    width: 42px;
    height: 42px;
    cursor: pointer;
}

/* ===================== TOPBAR ===================== */
.topbar {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-gray);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: var(--color-gray-light); }
.topbar a:hover { color: var(--color-orange); }
.topbar-links { display: flex; gap: 18px; }

/* ===================== MOBILE MENU DRAWER ===================== */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.mobile-drawer .panel {
    position: absolute;
    top: 0; right: 0;
    width: 82%; max-width: 340px; height: 100%;
    background: var(--color-bg-alt);
    padding: 24px 20px;
    overflow-y: auto;
    border-left: 1px solid var(--color-border);
}
.mobile-drawer .close-drawer {
    background: none; border: none; color: var(--color-white); font-size: 22px; float: right; cursor: pointer;
}
.mobile-drawer nav a {
    display: block;
    padding: 14px 4px;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}
.mobile-drawer nav a:hover { color: var(--color-orange); }
.mobile-drawer .drawer-whatsapp { margin-top: 20px; }

/* ===================== HERO ===================== */
.hero {
    position: relative;
    background: #0b0b0c;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
}

/* Fotografía a pantalla completa, detrás de todo */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% center;
    display: block;
}

/* Degradado horizontal: negro sólido (zona de texto) -> se disuelve progresivamente en la foto */
.hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #0b0b0c 0%,
        #0b0b0c 24%,
        rgba(11, 11, 12, 0.96) 34%,
        rgba(11, 11, 12, 0.82) 44%,
        rgba(11, 11, 12, 0.55) 56%,
        rgba(11, 11, 12, 0.26) 68%,
        rgba(11, 11, 12, 0.06) 80%,
        transparent 92%
    );
}

/* Resplandor naranja muy sutil justo en la zona de transición */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 40%;
    width: 620px;
    height: 620px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 106, 26, 0.16) 0%, rgba(255, 106, 26, 0.05) 45%, transparent 72%);
    mix-blend-mode: screen;
    filter: blur(10px);
    pointer-events: none;
}

/* Humo discreto que se extiende hacia el área del texto */
.hero-smoke {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 420px 260px at 32% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 360px 220px at 46% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
        radial-gradient(2px 2px at 38% 45%, rgba(255, 170, 100, 0.35) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 44% 62%, rgba(255, 170, 100, 0.28) 0%, transparent 100%),
        radial-gradient(2px 2px at 52% 38%, rgba(255, 170, 100, 0.22) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 58% 55%, rgba(255, 255, 255, 0.22) 0%, transparent 100%);
    pointer-events: none;
}

/* Viñeta suave en los extremos */
.hero-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 140px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 56px;
    padding-bottom: 56px;
}
.hero-text {
    max-width: 560px;
}
.hero h1 {
    font-size: clamp(34px, 4.2vw, 58px);
    margin-bottom: 18px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.hero p.lead {
    font-size: 17px;
    max-width: 460px;
    margin-bottom: 28px;
}

/* ===================== TRUST STRIP ===================== */
.trust-strip {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 26px 0;
}
.trust-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ic {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-orange);
}
.trust-item strong { display: block; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; }
.trust-item span { font-size: 12px; color: var(--color-gray); }

/* ===================== SECTIONS ===================== */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.section-title .subtitle { color: var(--color-gray); font-family: var(--font-body); text-transform: none; font-size: 14px; margin-top: 4px; }
.section-title a { font-family: var(--font-display); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-orange); }

/* ===================== CATEGORY GRID ===================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.category-card {
    position: relative;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    overflow: hidden;
    transition: transform .25s, border-color .25s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--color-orange); }
.category-card .cat-img {
    position: absolute; inset: 0; opacity: 0.35;
    background-size: cover; background-position: center;
}
.category-card .cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,11,12,0.2) 0%, rgba(11,11,12,0.95) 90%);
}
.category-card .content { position: relative; z-index: 2; }
.category-card h3 { font-size: 22px; margin-bottom: 4px; }
.category-card p { font-size: 13px; margin-bottom: 14px; }
.category-card .arrow {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--color-orange); color: #0b0b0c;
    display: flex; align-items: center; justify-content: center;
}

/* ===================== PRODUCT GRID / CARD ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.product-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, border-color .2s;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--color-orange); }
.product-card .thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #101012;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 4px;
    background: var(--color-orange);
    color: #0b0b0c;
    font-weight: 600;
}
.badge.gray { background: var(--color-card-hover); color: var(--color-white); border: 1px solid var(--color-border); }
.badge.danger { background: var(--color-danger); color: #fff; }

.product-card .info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat-label { font-size: 11px; color: var(--color-gray); text-transform: uppercase; letter-spacing: 1px; }
.product-card h3 { font-size: 15px; text-transform: none; letter-spacing: 0; margin: 0; min-height: 40px; }
.product-card h3 a { color: var(--color-white); }
.product-card h3 a:hover { color: var(--color-orange); }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.product-card .price { font-family: var(--font-display); font-size: 19px; color: var(--color-orange); }
.product-card .compare-price { font-size: 13px; color: var(--color-gray); text-decoration: line-through; }
.product-card .stock-status { font-size: 12px; }
.stock-status.in { color: var(--color-success); }
.stock-status.out { color: var(--color-danger); }
.product-card .add-cart-btn { margin-top: 10px; }

/* ===================== CTA STRIP ===================== */
.cta-strip {
    position: relative;
    background: radial-gradient(140% 180% at 8% 30%, #1a1408 0%, #0b0b0c 32%), linear-gradient(180deg, #131315 0%, #0a0a0b 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}
/* Textura tipo fibra de carbono, muy sutil */
.cta-strip-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 9px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.18) 0px, rgba(0, 0, 0, 0.18) 1px, transparent 1px, transparent 9px),
        radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 12px 12px, 12px 12px, 24px 24px;
    background-position: 0 0, 0 0, 0 0;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.15) 75%, transparent 100%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.15) 75%, transparent 100%);
}
/* Haz de luz diagonal naranja cruzando hacia el badge derecho */
.cta-strip-beam {
    position: absolute;
    top: -40%;
    right: -6%;
    width: 220px;
    height: 220%;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 106, 26, 0.16) 48%, rgba(255, 176, 110, 0.28) 50%, rgba(255, 106, 26, 0.16) 52%, transparent 58%);
    transform: rotate(12deg);
    pointer-events: none;
}
.cta-strip-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 34px 20px;
}

/* Izquierda: mensaje principal */
.cta-message {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.cta-bolt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    color: var(--color-orange);
    filter: drop-shadow(0 0 10px rgba(255, 106, 26, 0.55));
}
.cta-bolt svg { position: relative; z-index: 1; filter: url(#ctaBoltLight); }
.cta-bolt-glow {
    position: absolute;
    inset: -18px;
    background: radial-gradient(circle, rgba(255, 106, 26, 0.30) 0%, transparent 72%);
    pointer-events: none;
}
.cta-message-text { display: flex; flex-direction: column; gap: 6px; }
.headline {
    display: flex;
    flex-direction: column;
    line-height: 0.94;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    transform: skewX(-7deg);
    transform-origin: left bottom;
}
.headline .line-1 {
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--color-white);
}
.headline .line-2 {
    font-size: 38px;
    letter-spacing: 0.5px;
    color: var(--color-orange);
    text-shadow: 0 0 22px rgba(255, 106, 26, 0.45);
}
.subline {
    font-family: var(--font-display);
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.subline .muted { color: var(--color-gray); }
.subline .strong { color: var(--color-white); font-weight: 600; }

/* Separadores verticales */
.cta-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, var(--color-border) 25%, var(--color-border) 75%, transparent);
    flex-shrink: 0;
}
.value-sep {
    width: 1px;
    height: 30px;
    background: var(--color-border);
    flex-shrink: 0;
}

/* Centro: valores */
.cta-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex: 1;
    flex-wrap: wrap;
}
.cta-values .value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.cta-values .value-item .v-ic {
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}
.cta-values .value-item .label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
}
.cta-values .value-item .v-underline {
    width: 26px;
    height: 2px;
    background: var(--color-orange);
    box-shadow: 0 0 8px rgba(255, 106, 26, 0.7);
}

/* Derecha: badge de marca */
.cta-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 210px;
    padding: 18px 40px 18px 30px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 18%),
        linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-orange) 50%, var(--color-orange-dark) 100%);
    color: #0b0b0c;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0% 100%);
    flex-shrink: 0;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(255, 106, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -12px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 106, 26, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -12px 18px rgba(0, 0, 0, 0.18);
}
.cta-badge-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    transform: skewX(-20deg);
}
.cta-badge-relief {
    position: absolute;
    inset: 0;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0% 100%);
    background: #ffffff;
    filter: url(#ctaPanelLight);
    mix-blend-mode: overlay;
    opacity: 0.85;
    pointer-events: none;
}
.cta-badge-name {
    position: relative;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
.cta-badge-tag {
    position: relative;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--color-gray);
    border-bottom: 1px solid var(--color-border);
}
.breadcrumb a { color: var(--color-gray-light); }
.breadcrumb a:hover { color: var(--color-orange); }

/* ===================== FILTER BAR (categoría) ===================== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.filter-bar select, .filter-bar input {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}
.results-count { color: var(--color-gray); font-size: 14px; }

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--color-gray);
}
.empty-state h3 { color: var(--color-white); margin-bottom: 8px; }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    font-family: var(--font-display);
    font-size: 13px;
}
.pagination a:hover { border-color: var(--color-orange); color: var(--color-orange); }
.pagination .active { background: var(--color-orange); color: #0b0b0c; border-color: var(--color-orange); }

/* ===================== PRODUCT DETAIL ===================== */
.product-detail {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    padding: 40px 0 60px;
}
.gallery-main {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 14px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 74px; height: 74px; object-fit: cover;
    border-radius: 8px; border: 2px solid var(--color-border);
    cursor: pointer;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--color-orange); }

.product-info .cat-label a { color: var(--color-orange); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; font-family: var(--font-display); }
.product-info h1 { font-size: 30px; margin: 10px 0; }
.product-info .sku { color: var(--color-gray); font-size: 13px; margin-bottom: 16px; }
.product-info .price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.product-info .price-block .price { font-family: var(--font-display); font-size: 34px; color: var(--color-orange); }
.product-info .short-desc { font-size: 15px; margin-bottom: 22px; }

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}
.qty-selector button {
    width: 40px; height: 44px;
    background: var(--color-card);
    border: none;
    color: var(--color-white);
    font-size: 18px;
    cursor: pointer;
}
.qty-selector button:hover { background: var(--color-card-hover); color: var(--color-orange); }
.qty-selector input {
    width: 54px; height: 44px;
    text-align: center;
    background: var(--color-bg);
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    color: var(--color-white);
    font-size: 15px;
}
.purchase-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }

.product-tabs { margin-top: 30px; border-top: 1px solid var(--color-border); padding-top: 24px; }
.product-tabs h2 { font-size: 19px; }
.product-tabs .full-desc { color: var(--color-gray-light); white-space: pre-line; }

.trust-mini { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.trust-mini .item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-gray-light); }

/* ===================== CARRITO ===================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 34px;
    align-items: start;
    padding: 40px 0 70px;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gray);
    padding: 0 0 14px;
    border-bottom: 1px solid var(--color-border);
}
.cart-item td {
    padding: 18px 10px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.cart-item .prod-cell { display: flex; align-items: center; gap: 14px; }
.cart-item .prod-cell img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--color-bg-alt); }
.cart-item .prod-name { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; }
.cart-item .prod-sku { color: var(--color-gray); font-size: 12px; }
.cart-item .remove-item { color: var(--color-danger); background: none; border: none; cursor: pointer; font-size: 12px; margin-top: 6px; }
.cart-item .item-price { color: var(--color-orange); font-family: var(--font-display); }
.cart-item .qty-selector { width: 120px; }
.cart-item .qty-selector button { width: 32px; height: 36px; }
.cart-item .qty-selector input { width: 40px; height: 36px; }

.cart-summary {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.cart-summary h3 { font-size: 17px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--color-gray-light); }
.summary-row.total { font-size: 18px; color: var(--color-white); font-family: var(--font-display); border-top: 1px solid var(--color-border); padding-top: 14px; margin-top: 6px; }
.summary-row.total .val { color: var(--color-orange); }
.cart-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.cart-empty { text-align: center; padding: 90px 20px; }
.cart-empty .ic { font-size: 60px; color: var(--color-border); margin-bottom: 18px; }

/* ===================== FORMULARIOS ===================== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-gray-light); }
.form-control {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-body);
}
.form-control:focus { outline: none; border-color: var(--color-orange); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--color-gray); margin-top: 6px; }
.form-error { color: var(--color-danger); font-size: 13px; margin-top: 6px; }

.checkout-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.alert-success { background: rgba(51, 195, 123, 0.12); border-color: rgba(51, 195, 123, 0.4); color: var(--color-success); }
.alert-error { background: rgba(229, 72, 77, 0.12); border-color: rgba(229, 72, 77, 0.4); color: var(--color-danger); }
.alert-info { background: rgba(255, 106, 26, 0.1); border-color: rgba(255, 106, 26, 0.35); color: var(--color-orange-light); }

/* ===================== CONFIRMACIÓN ===================== */
.confirm-box { max-width: 560px; margin: 60px auto; text-align: center; padding: 0 20px; }
.confirm-box .ic-success {
    width: 84px; height: 84px; border-radius: 50%;
    background: rgba(51,195,123,0.12); border: 2px solid var(--color-success);
    color: var(--color-success); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-size: 40px;
}
.confirm-box h1 { font-size: 26px; }
.order-code-box {
    background: var(--color-card);
    border: 1px dashed var(--color-orange);
    border-radius: 10px;
    padding: 14px;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--color-orange);
    margin: 20px 0;
}

/* ===================== PÁGINAS ESTÁTICAS ===================== */
.page-header {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 46px 0;
    text-align: center;
}
.page-header h1 { margin-bottom: 6px; }
.static-content { max-width: 820px; margin: 0 auto; padding: 50px 20px; }
.static-content h2 { font-size: 22px; margin-top: 34px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.value-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; text-align: center; }
.value-card .ic { color: var(--color-orange); font-size: 26px; margin-bottom: 10px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px 0; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-info-list .item { display: flex; gap: 14px; }
.contact-info-list .ic {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--color-card); border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center; color: var(--color-orange); flex-shrink: 0;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: #08080a;
    border-top: 1px solid var(--color-border);
    padding-top: 54px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 40px;
}
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--color-card); border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { border-color: var(--color-orange); color: var(--color-orange); }
.footer-col h4 { font-size: 14px; margin-bottom: 16px; color: var(--color-white); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--color-gray-light); font-size: 14px; }
.footer-col ul li a:hover { color: var(--color-orange); }
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-gray);
    flex-wrap: wrap;
    gap: 10px;
}

/* ===================== WHATSAPP FLOTANTE ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 800;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #06210f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
    font-size: 28px;
    animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== TOAST ===================== */
.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-card);
    border: 1px solid var(--color-orange);
    color: var(--color-white);
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ===================== SKELETON / LAZY ===================== */
img.lazy { background: var(--color-card-hover); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-strip-inner { gap: 20px; }
    .cta-values { gap: 16px; }
    .headline .line-1 { font-size: 17px; }
    .headline .line-2 { font-size: 30px; }
}

@media (max-width: 900px) {
    .main-nav, .search-form, .topbar { display: none; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
    .cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .cta-divider { display: none; }
    .cta-values { justify-content: flex-start; gap: 20px; }
    .cta-badge { align-self: stretch; align-items: center; text-align: center; }
    .category-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail { grid-template-columns: 1fr; gap: 26px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cart-table thead { display: none; }
    .cart-item { display: block; padding: 14px 0; }
    .cart-item td { display: block; border: none; padding: 4px 0; }
    .cart-item .prod-cell { padding: 6px 0; }
}

/* ===================== HERO + HEADER COMPACTOS EN MÓVIL (<=768px) ===================== */
@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .brand img { height: 44px; }

    .hero {
        min-height: 0;
        height: auto;
        align-items: stretch;
        display: block;
    }
    .hero-media {
        position: relative;
        inset: auto;
        width: 100%;
        height: clamp(420px, 62vw, 520px);
    }
    .hero-bg-img {
        object-position: 58% 32%;
    }
    /* En móvil el degradado es vertical: el texto emerge desde abajo de la foto */
    .hero-fade {
        background:
            linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,0) 32%, rgba(11,11,12,0.55) 62%, rgba(11,11,12,0.95) 100%),
            linear-gradient(90deg, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0) 16%, rgba(11,11,12,0) 84%, rgba(11,11,12,0.35) 100%);
    }
    .hero-glow { left: 50%; top: 62%; width: 380px; height: 380px; }
    .hero-inner {
        position: relative;
        z-index: 2;
        margin-top: -140px;
        padding: 0 20px 28px;
        text-align: left;
    }
    .hero-text { max-width: 100%; }
    .hero h1 { font-size: 30px; margin-bottom: 12px; }
    .hero p.lead { font-size: 14px; margin-bottom: 18px; max-width: 100%; }
    .hero .btn { width: 100%; }
}

@media (max-width: 560px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .container { padding: 0 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .value-sep { display: none; }
    .cta-values { gap: 16px; }
    .cta-values .value-item { width: calc(50% - 8px); }
    .brand img { height: 52px; }
    .section { padding: 44px 0; }
    .whatsapp-float { width: 52px; height: 52px; font-size: 24px; bottom: 16px; right: 16px; }
}
