/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #d82027;
    --red-dark: #b01b21;
    --red-glow: rgba(216,32,39,0.5);
    --red-light: #fef0f1;
    --black: #0d0d0d;
    --black-alt: #141414;
    --dark: #1f1f1f;
    --gray: #666;
    --gray-light: #999;
    --gray-lighter: #e5e5e5;
    --white: #fff;
    --border: #e5e5e5;
    --bg: #f8f8f8;
    --bg-alt: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-red: 0 4px 20px rgba(216,32,39,0.25);
    --radius: 6px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --font-display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --max-width: 1200px;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a transparent;
}
html::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border: 2px solid transparent;
    border-radius: 99px;
    background-clip: content-box;
}
html::-webkit-scrollbar-thumb:hover {
    background: var(--red);
    background-clip: content-box;
}

/* Paneles oscuros (cajón móvil y flyouts) */
.nav,
.nav__flyout-scroll {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #111;
}
.nav::-webkit-scrollbar,
.nav__flyout-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.nav::-webkit-scrollbar-track,
.nav__flyout-scroll::-webkit-scrollbar-track { background: #111; }
.nav::-webkit-scrollbar-thumb,
.nav__flyout-scroll::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 3px; }

/* Chat */
.chatbot-messages { scrollbar-width: thin; scrollbar-color: #d0d0d0 transparent; }
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

/* En móvil ocultamos la barra: el scroll funciona igual y evitamos la línea
   blanca que Chrome Android pinta al fijar una scrollbar personalizada. */
@media (max-width: 768px) {
    html, body { scrollbar-width: none; -ms-overflow-style: none; }
    .nav, .nav__flyout-scroll, .chatbot-messages { scrollbar-width: none; -ms-overflow-style: none; }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    .nav::-webkit-scrollbar,
    .nav__flyout-scroll::-webkit-scrollbar,
    .chatbot-messages::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

*:focus { outline: none; }
*:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(216,32,39,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(216,32,39,0); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes circuitDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: var(--red); }
    100% { transform: scale(1); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes borderGlow {
    0%, 100% { border-color: var(--red); box-shadow: 0 0 8px rgba(216,32,39,0.2); }
    50% { border-color: var(--red-dark); box-shadow: 0 0 16px rgba(216,32,39,0.4); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal--left {
    transform: translateX(-30px);
}
.reveal--left.revealed {
    transform: translateX(0);
}
.reveal--right {
    transform: translateX(30px);
}
.reveal--right.revealed {
    transform: translateX(0);
}
.reveal--scale {
    transform: scale(0.9);
}
.reveal--scale.revealed {
    transform: scale(1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    transition: background 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn--primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(216,32,39,0.25);
}
.btn--primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(216,32,39,0.35);
}
.btn--primary:active { transform: translateY(0) scale(0.97); }

.btn--outline {
    border: 2px solid var(--red);
    color: var(--red);
    background: transparent;
}
.btn--outline:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-red);
}
.btn--outline:active { transform: translateY(0) scale(0.97); }

.btn--lg { padding: 14px 32px; font-size: 16px; }

/* ===== TOP BAR ===== */
.topbar {
    background: var(--black);
    color: var(--white);
    font-size: 13px;
    padding: 6px 0;
    position: relative;
    z-index: 999;
}
.topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar__links { display: flex; gap: 20px; }
.topbar__links a {
    position: relative;
    transition: color 0.2s;
}
.topbar__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.3s var(--ease-out);
}
.topbar__links a:hover { color: #ccc; }
.topbar__links a:hover::after { width: 100%; }
.topbar__eco {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-size: 12px;
}

/* ===== HEADER STICKY WRAPPER ===== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    position: relative;
    z-index: 2;
    margin: 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, padding 0.3s;
}
.header.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header__logo { flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.header__logo:hover { transform: scale(1.03); }
.header__logo img { height: 50px; width: auto; transition: height 0.3s; }
.header.scrolled .header__logo img { height: 42px; }

.header__search {
    flex: 1;
    max-width: 500px;
    display: flex;
    border: 2px solid var(--gray-lighter);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.header__search:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(216,32,39,0.1);
}
.header__search input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: var(--white);
    font-family: var(--font-body);
}
.header__search input:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.header__search button {
    padding: 10px 16px;
    background: var(--red);
    color: var(--white);
    transition: background 0.3s;
}
.header__search button:hover { background: var(--red-dark); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    text-decoration: none;
    transition: transform 0.2s;
}
.header__phone:hover { transform: scale(1.03); }
.header__phone:hover strong { color: var(--red); }
.header__phone span { display: block; font-size: 11px; color: var(--gray); line-height: 1.2; }
.header__phone strong {
    font-size: 15px;
    color: var(--dark);
    transition: color 0.2s;
    font-family: var(--font-display);
    font-weight: 700;
}

.header__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #25D366;
    border-radius: 50%;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
    position: relative;
}
.header__whatsapp:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(37,211,102,0.5);
}
.header__whatsapp::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: pulseGlow 2s infinite;
    animation-delay: 0.5s;
}

.header__user { position: relative; }
.header__user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
}
.header__user-btn:hover { background: var(--bg); }
.header__user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header__user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 100;
    padding: 6px 0;
    animation: slideDown 0.2s var(--ease-out);
}
.header__user-dropdown--open { display: block; }
.header__user-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--dark);
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}
.header__user-dropdown a:hover { background: var(--bg); color: var(--red); }
.header__user-dropdown hr { border: none; border-top: 1px solid var(--gray-lighter); margin: 4px 0; }

.topbar__cart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--red) !important;
    font-weight: 600;
}
.topbar__cart svg { flex-shrink: 0; }

/* ===== DRAWER MÓVIL (solo se muestra en móvil) ===== */
.nav__mobile-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav__mobile-logo { display: block; width: 110px; height: auto; }
.nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.nav__close:hover,
.nav__close:active { background: var(--red); border-color: var(--red); }

.nav__mobile-user {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav__mobile-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    color: #ddd;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav__mobile-pill:hover,
.nav__mobile-pill:active { background: #1f1f1f; border-color: rgba(255,255,255,0.3); color: #fff; }
.nav__mobile-pill--cart { color: #fff; border-color: rgba(216,32,39,0.6); }
.nav__mobile-pill--ghost { color: #999; }

.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.header__menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== NAVIGATION ===== */
.nav {
    background: var(--black);
    position: relative;
    z-index: 1;
    margin: 0;
    transition: box-shadow 0.3s;
}
.nav.nav--shadow { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.nav__list {
    display: flex;
    align-items: center;
}
.nav__item { position: relative; }
.nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
    transition: background 0.25s;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s var(--ease-out);
}
.nav__link:hover::after,
.nav__item--active .nav__link::after { width: calc(100% - 40px); }
.nav__link:hover, .nav__item--active .nav__link { background: rgba(216,32,39,0.15); }
.nav__arrow { font-size: 10px; opacity: 0.7; transition: transform 0.3s; }
.nav__item:hover > .nav__link .nav__arrow { transform: rotate(180deg); }
.nav__arrow--right { margin-left: auto; font-size: 9px; padding-left: 10px; }

/* Dropdown */
.nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 100;
    min-width: 420px;
    animation: slideDown 0.25s var(--ease-out);
}
.nav__item:hover > .nav__submenu,
.nav__item--open > .nav__submenu { display: block; }

.nav__submenu-scroll {
    display: flex;
    padding: 8px 0;
}
.nav__submenu-list {
    list-style: none;
    min-width: 220px;
    padding: 4px 0;
    flex-shrink: 0;
}
.nav__submenu-item {
    position: relative;
}
.nav__submenu-item > a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--dark);
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
    white-space: nowrap;
}
.nav__submenu-item > a:hover { background: var(--bg); color: var(--red); padding-left: 24px; }

/* Flyout - right side panel */
.nav__flyout {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    box-shadow: 4px 8px 30px rgba(0,0,0,0.15);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    z-index: 10;
    min-width: 240px;
    padding: 8px 0;
}
.nav__submenu-item:hover > .nav__flyout { display: block; }

.nav__flyout-scroll {
    max-height: 400px;
    overflow-y: auto;
}
.nav__flyout-group {
    padding: 4px 0;
}
.nav__flyout-group h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-light);
    padding: 4px 20px 8px;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: var(--font-display);
}
.nav__flyout-group a,
.nav__flyout a {
    display: block;
    padding: 6px 20px;
    font-size: 13px;
    color: var(--dark);
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
    white-space: nowrap;
}
.nav__flyout a:hover { background: var(--bg); color: var(--red); padding-left: 24px; }

.nav__flyout-ver {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 12px !important;
    font-weight: 600;
    color: var(--red) !important;
    border-top: 1px solid var(--gray-lighter);
    margin-top: 4px;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
}
.nav__flyout-ver:hover { background: var(--red-light) !important; }

/* Nested flyout (grandchildren) */
.nav__flyout-item--has-sub {
    position: relative;
}
.nav__flyout--nested {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    box-shadow: 4px 8px 20px rgba(0,0,0,0.12);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    z-index: 11;
    min-width: 200px;
    padding: 8px 0;
}
.nav__flyout-item--has-sub:hover > .nav__flyout--nested { display: block; }
.nav__flyout-item--has-sub > a {
    display: flex;
    align-items: center;
    padding: 6px 20px;
    font-size: 13px;
    color: var(--dark);
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav__flyout-item--has-sub > a:hover { background: var(--bg); color: var(--red); }

/* Family image */
.nav__submenu-image {
    flex-shrink: 0;
    width: 210px;
    padding: 12px 16px;
    border-left: 1px solid var(--gray-lighter);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.nav__submenu-image img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 4px;
}
.nav__submenu-image .btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
}

/* ===== HERO SLIDER ===== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--black);
}
.hero__slider { height: 100%; }
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s var(--ease-in-out);
    z-index: 1;
}
.hero__slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero__slide.active {
    opacity: 1;
    z-index: 2;
}
.hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.45) 100%) no-repeat,
        linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%) no-repeat;
    background-size: 100% 100%, 100% 40%;
    background-position: 0 0, 0 100%;
}
.hero__content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 650px;
    margin-left: 90px;
    margin-right: auto;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}
.hero__slide.active .hero__content {
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}
.hero__content h1, .hero__content h2 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
    margin-top: 0;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}
.hero__content p {
    font-size: 18px;
    margin-bottom: 28px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    opacity: 0.9;
    max-width: 500px;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero__arrow:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(216,32,39,0.4);
}
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

.hero__dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.hero__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid transparent;
    transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    padding: 0;
}
.hero__dots button.active {
    background: var(--red);
    border-color: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(216,32,39,0.5);
}

/* ===== TRUST BADGES ===== */
.trust {
    background: var(--white);
    border-bottom: 1px solid var(--gray-lighter);
    padding: 24px 0;
    position: relative;
}
.trust::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--red);
    border-radius: 0 0 3px 3px;
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    color: var(--dark);
    border-radius: var(--radius);
    transition: background 0.3s, transform 0.3s var(--ease-out);
}
.trust__item:hover {
    background: var(--bg);
    transform: translateY(-2px);
}
.trust__item svg {
    color: var(--red);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-spring);
}
.trust__item:hover svg { transform: scale(1.1) rotate(-5deg); }
.trust__item h3 {
    font-size: 15px;
    margin-bottom: 2px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.3px;
}
.trust__item p { font-size: 13px; color: var(--gray); }
.trust__item strong { color: var(--red); font-weight: 700; font-family: var(--font-display); }

/* ===== SECTIONS ===== */
.section { padding: 70px 0; scroll-margin-top: 140px; }
.section--alt {
    background: var(--bg);
    position: relative;
}
.section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}
.section__header {
    text-align: center;
    margin-bottom: 48px;
}
.section__header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}
.section__header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--red);
    margin: 12px auto 0;
    border-radius: 2px;
}
.section__header p { font-size: 16px; color: var(--gray); max-width: 600px; margin: 0 auto; }
.section__header .btn { margin-top: 16px; }
.section__link { display: inline-block; margin-top: 16px; color: var(--red); font-weight: 600; font-size: 15px; text-decoration: none; transition: color 0.3s, transform 0.3s; }
.section__link:hover { color: var(--black); transform: translateX(3px); }
.section__link::after { content: ' \2192'; }

.breadcrumbs {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    font-family: var(--font-body);
}
.breadcrumbs a { color: #999; text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { color: var(--red); font-weight: 600; }

/* ===== SCROLL ROW ===== */
.scroll-row { position: relative; padding: 0 36px; }
.scroll-row__track {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.scroll-row__items { display: flex; gap: 20px; will-change: transform; }
.scroll-row__items > * { flex-shrink: 0; }
.scroll-row__items .product-card { width: 280px; }
.scroll-row__items .category-card { width: 160px; }
.scroll-row__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 22px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    font-family: var(--font-display);
}
.scroll-row__arrow:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(216,32,39,0.3);
    transform: translateY(-50%) scale(1.1);
}
.scroll-row__arrow:active { transform: translateY(-50%) scale(0.95); }
.scroll-row__arrow--left { left: 0; }
.scroll-row__arrow--right { right: 0; }
.scroll-row__arrow--hidden { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
    .scroll-row { padding: 0 24px; }
    .scroll-row__arrow { width: 32px; height: 32px; font-size: 16px; }
    .scroll-row__items .product-card { width: 240px; }
}

/* ===== CATEGORY CARDS ===== */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.category-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--gray-lighter);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
    text-decoration: none;
}
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 45%, transparent 70%);
    transition: background 0.35s var(--ease-out);
    z-index: 1;
}
.category-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.35s var(--ease-out);
    transform-origin: left;
    z-index: 3;
}
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    border-color: transparent;
}
.category-card:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 55%, transparent 80%);
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
    display: block;
}
.category-card:hover img { transform: scale(1.06); }
.products .category-card {
    width: 100%;
    box-sizing: border-box;
}
.category-card span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.25;
}

/* ===== PRODUCT CARDS ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
    position: relative;
}
.product-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: transparent;
}
.product-card:hover img { transform: scale(1.04); }
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    animation: scaleIn 0.4s var(--ease-spring) 0.2s both;
}
.product-card__badge--new { background: #10b981; }

.badge { display:inline-block; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; font-family: var(--font-body); }
.badge--warning { background:#fef3c7; color:#92400e; }
.badge--success { background:#d1fae5; color:#065f46; }
.badge--danger { background:#fee2e2; color:#991b1b; }
.badge--info { background:#dbeafe; color:#1e40af; }
.badge--primary { background:#ede9fe; color:#5b21b6; }

.product-card__countdown {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    border-radius: 8px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
}
.countdown__unit {
    text-align: center;
    min-width: 28px;
}
.countdown__val {
    display: block;
    color: var(--red);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--font-display);
}
.countdown__label {
    display: block;
    color: #ccc;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #fff;
    transition: transform 0.4s var(--ease-out);
}
.product-card__info { padding: 16px 18px 20px; }
.product-card__info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--black);
    font-family: var(--font-display);
    letter-spacing: 0.2px;
    line-height: 1.3;
}
.product-card__info p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.4;
}
.product-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.product-card__current { font-size: 20px; font-weight: 700; color: var(--red); font-family: var(--font-display); }
.product-card__old {
    font-size: 14px;
    color: var(--gray-light);
    text-decoration: line-through;
}
.product-card__iva { font-size: 12px; color: var(--gray-light); margin-left: 4px; white-space: nowrap; }

/* ===== PRODUCTO DETALLE ===== */
.producto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.producto-detalle__main-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: opacity 0.3s ease;
    cursor: zoom-in;
}
.producto-detalle__main-img:hover { opacity: 0.9; }

.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: lbFadeIn 0.2s ease;
    padding: 20px;
}
.img-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(1);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: zoom-in;
    user-select: none;
}
.img-lightbox.is-zoomed img {
    transform: scale(1.4);
    cursor: zoom-out;
}
.img-lightbox__close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    user-select: none;
}
.img-lightbox__close:hover { opacity: 1; }

@keyframes lbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.producto-detalle__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.producto-detalle__thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #fff;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    padding: 4px;
}
.producto-detalle__thumb:hover { border-color: #ccc; transform: translateY(-2px); }
.producto-detalle__thumb--active { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(216,32,39,0.15); }

@media (max-width: 768px) {
    .producto-detalle { grid-template-columns: 1fr; gap: 20px; }
    .producto-detalle__main-img { max-height: 300px; }
    .producto-detalle__thumb { width: 56px; height: 56px; }
}

/* ===== BANNER ===== */
.banner {
    background: linear-gradient(135deg, var(--red) 0%, #c21820 100%);
    color: var(--white);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.banner__text h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.banner-20y { font-size: 42px !important; }
@media (max-width: 768px) { .banner-20y { font-size: 28px !important; } }
@media (max-width: 480px) { .banner-20y { font-size: 22px !important; } }
.banner__text p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.banner__text .btn {
    background: var(--white);
    color: var(--red);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.banner__text .btn:hover {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.banner__image img {
    width: 280px;
    height: 200px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: transform 0.4s var(--ease-out);
}
.banner__image img:hover { transform: scale(1.03) rotate(-1deg); }

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    border: 1px solid var(--gray-lighter);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.feature-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: transform 0.35s var(--ease-out);
}
.feature-card:hover img { transform: scale(1.03); }
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
    letter-spacing: 0.2px;
}
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ===== NEWSLETTER ===== */
.newsletter {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(216,32,39,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(216,32,39,0.05) 0%, transparent 50%);
}
.newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.newsletter__text h2 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--white);
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.newsletter__text p { color: #aaa; font-size: 14px; }
.newsletter__form {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.newsletter__form input {
    padding: 14px 20px;
    font-size: 15px;
    border: none;
    outline: none;
    max-width: 320px;
    width: 100%;
    font-family: var(--font-body);
    transition: box-shadow 0.3s;
}
.newsletter__form input:focus { box-shadow: inset 0 0 0 2px var(--red); }
.newsletter__form input:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.newsletter__form button {
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 0;
}

/* ===== CONTACT ===== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.contact__map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 300px; border-radius: var(--radius); border: 0; }
.contact__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}
.contact__item {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius);
    align-items: flex-start;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.contact__item:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(216,32,39,0.08);
    transform: translateY(-2px);
}
.contact__item--full { grid-column: 1 / -1; }
.contact__item svg { color: var(--red); flex-shrink: 0; margin-top: 2px; transition: transform 0.3s var(--ease-spring); }
.contact__item:hover svg { transform: scale(1.1); }
.contact__item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
}
.contact__item p { font-size: 14px; color: var(--gray); }
.contact__item a { color: var(--gray); transition: color 0.2s; }
.contact__item a:hover { color: var(--red); }
.contact__whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #25D366 !important;
    font-weight: 600;
    margin-top: 4px;
    transition: transform 0.2s !important;
}
.contact__whatsapp-link:hover { transform: translateX(3px); text-decoration: underline; }
.contact__review-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--red) !important;
    font-weight: 600;
    margin-top: 4px;
    transition: transform 0.2s !important;
}
.contact__review-link:hover { transform: translateX(3px); text-decoration: underline; }

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact__form .form-group { display: flex; gap: 16px; }
.form-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}
.form-alert--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.form-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.contact__form input,
.contact__form textarea {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid var(--gray-lighter);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
}
.contact__form input:focus,
.contact__form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(216,32,39,0.08);
}
.contact__form textarea { resize: vertical; }
.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
}
.form-group--checkbox input { flex: none; width: auto; accent-color: var(--red); }
.form-group--checkbox a { color: var(--red); text-decoration: underline; }

/* ===== RESENAS ===== */
.resenas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.resena-card {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius);
    padding: 14px 16px;
    position: relative;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.resena-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245,158,11,0.1);
    transform: translateY(-2px);
}
.resena-stars {
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

/* ===== GOOGLE MAP + REVIEW CTA ===== */
.review-cta {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    height: 100%;
    min-height: 300px;
}
.review-cta h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin: 8px 0 4px;
}
.review-cta p { color: var(--gray); font-size: 13px; margin-bottom: 10px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    color: #ccc;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    overflow: clip;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
}
.footer__logo {
    width: 130px;
    height: auto;
    margin-bottom: 16px;
    transition: opacity 0.3s;
}
.footer__logo:hover { opacity: 0.8; }
.footer__col p { font-size: 13px; line-height: 1.6; margin-bottom: 4px; }
.footer__col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}
.footer__col h4::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--red);
    margin-top: 6px;
    border-radius: 1px;
}
.footer__col a {
    display: block;
    font-size: 13px;
    padding: 5px 0;
    color: #aaa;
    transition: color 0.2s, padding-left 0.2s;
}
.footer__col a:hover { color: var(--red); padding-left: 4px; }
.footer__phone { font-size: 20px; font-weight: 700; color: var(--red) !important; margin: 4px 0; font-family: var(--font-display); }
.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.footer__social a:hover {
    background: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(216,32,39,0.4);
}
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* ===== SKELETON / SHIMMER ===== */
.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

/* ===== LOADING OVERLAY ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}
.page-loader::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #d82027, #ff4444, #d82027);
    animation: loaderBar 1.2s ease-in-out infinite;
}
.page-loader.hidden {
    opacity: 0;
    transition: opacity 0.3s;
}
@keyframes loaderBar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* ===== CIRCUIT DECORATION ===== */
.circuit-bg {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
    z-index: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .categories { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .topbar__links { display: none; }
    .topbar__inner { justify-content: flex-end; }

    .header__search { display: none; }
    .header__cta { display: none; }
    .header__user { display: none; }
    .header__menu-toggle { display: flex; }
    .header__phone div { display: none; }
    .header__inner { justify-content: space-between; gap: 10px; }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: #111;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.35s var(--ease-out);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    .nav.nav--open { transform: translateX(0); }
    .nav * { box-sizing: border-box; max-width: 100%; }
    .nav > .container { padding: 0; }

    .nav__mobile-head { display: flex; position: sticky; top: 0; z-index: 5; background: #111; }
    .nav__mobile-user { display: flex; }

    .nav__list { flex-direction: column; align-items: stretch; padding: 4px 0 40px; }
    .nav__link {
        justify-content: space-between;
        padding: 15px 16px;
        font-size: 15px;
        color: #eee;
        word-break: break-word;
        overflow-wrap: break-word;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav__link::after { display: none; }
    .nav__link:hover { background: transparent; }
    .nav__item--open > .nav__link { background: rgba(216,32,39,0.12); }
    .nav__submenu-item > a:hover { background: rgba(255,255,255,0.04); color: #fff; }
    .nav__arrow { font-size: 11px; opacity: 0.5; }
    .nav__item--open > .nav__link .nav__arrow { transform: rotate(180deg); }
    .nav__arrow--right { display: none; }

    .nav__submenu { position: static; min-width: 0; width: 100%; box-shadow: none; border-radius: 0; background: #171717; border-bottom: 1px solid rgba(255,255,255,0.06); display: none; animation: none; }
    .nav__submenu-scroll { flex-direction: column; }
    .nav__submenu-list { min-width: 0; }
    .nav__submenu-item > a { padding: 12px 16px 12px 30px; font-size: 14px; color: #b5b5b5; word-break: break-word; overflow-wrap: break-word; display: block; border-top: 1px solid rgba(255,255,255,0.04); }

    /* En móvil el submenú se queda simple: solo subfamilias, sin listas de productos ni flyouts */
    .nav__flyout, .nav__flyout--nested { display: none !important; }

    .nav__submenu-image { display: block; width: 100%; border-left: none; border-top: 0; padding: 12px 16px 16px; }
    .nav__submenu-image img { display: none; }
    .nav__submenu-image .btn { display: block; width: 100%; text-align: center; font-size: 13px; padding: 11px 14px; white-space: normal; }

    .nav__item:hover > .nav__submenu { display: none; }
    .nav__item--open > .nav__submenu { display: block !important; }

    .hero { height: 380px; }
    .hero__content { padding: 0 56px; max-width: none; text-align: center; align-items: center; display: flex; flex-direction: column; margin: 0 auto; }
    .hero__content h1, .hero__content h2 { font-size: 32px; }
    .hero__content p { font-size: 15px; }
    .hero__arrow { width: 40px; height: 40px; font-size: 18px; }
    .hero__arrow--prev { left: 6px; }
    .hero__arrow--next { right: 6px; }

    .trust__grid { grid-template-columns: 1fr; }
    .trust__item { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .resenas-grid { grid-template-columns: 1fr; }

    .banner__inner { flex-direction: column-reverse; text-align: center; }
    .banner__image img { width: 100%; }
    .banner__text h2 { font-size: 24px; }

    .contact { grid-template-columns: 1fr; }
    .contact__info { grid-template-columns: 1fr; }
    .contact__form .form-group { flex-direction: column; }
    .contact__map { grid-template-columns: 1fr; }
    .contact__map iframe { min-height: 200px; }
    .review-cta { min-height: auto; }

    .newsletter__inner { flex-direction: column; text-align: center; }
    .newsletter__form { flex-direction: column; width: 100%; }
    .newsletter__form input { width: 100%; max-width: 320px; }
    .newsletter__form button { width: 100%; }
    .newsletter__text h2 { font-size: 22px; }

    .footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .footer__col { text-align: center; }
    /* En móvil las columnas del footer entran hacia arriba: evita 30px de desbordamiento horizontal */
    .footer .reveal--left,
    .footer .reveal--right { transform: translateY(30px); }
    .footer .reveal--left.revealed,
    .footer .reveal--right.revealed { transform: translateY(0); }
    .footer__col h4::after { margin: 6px auto 0; }
    .footer__social { justify-content: center; }
    .footer__logo { margin: 0 auto 16px; }

    table { display: none; }
    .cards-mobile { display: flex; }
    .carrito-layout { grid-template-columns: 1fr; }
    .carrito-item { flex-direction: column; }
    .carrito-item img { width: 100%; height: auto; max-height: 200px; }

    .section__header h2 { font-size: 28px; }
    .section__header h2::after { width: 40px; }

    .scroll-row__items .category-card { width: 130px; }
    .product-card__countdown .countdown__label { font-size: 10px; }

    .breadcrumbs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

    .producto-detalle__detalle-btn { flex-wrap: wrap; }
}

/* ===== SMALL PHONES (<480px) ===== */
@media (max-width: 480px) {
    .hero { height: 300px; }
    .hero__content { max-width: none; padding: 0 48px; text-align: center; align-items: center; display: flex; flex-direction: column; margin: 0 auto; }
    .hero__content h1, .hero__content h2 { font-size: 24px; }
    .hero__content p { font-size: 14px; }
    .hero__arrow { width: 34px; height: 34px; font-size: 16px; }
    .hero__arrow--prev { left: 6px; }
    .hero__arrow--next { right: 6px; }
    .trust__item { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 12px; }

    .section__header h2 { font-size: 22px; }
    .section__header h2::after { width: 32px; }
    .section__header p { font-size: 14px; }

    .newsletter__form { gap: 10px; }
    .newsletter__text h2 { font-size: 20px; }

    .banner__text h2 { font-size: 20px; }

    .scroll-row { padding: 0 20px; }
    .scroll-row__arrow { width: 28px; height: 28px; font-size: 14px; }
    .scroll-row__items .product-card { width: 200px; }

    .categories { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 16px 10px 12px; }
    .category-card img { width: 56px; height: 56px; }

    .product-card__info h3 { font-size: 15px; }
    .product-card__info { padding: 12px 14px 16px; }

    .footer { padding-top: 40px; }
    .footer__phone { font-size: 18px; }

    .producto-detalle h1 { font-size: 22px; }

    .nav { width: 85vw; }

    .scroll-row__track {
        mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    }
}

/* ===== MENU OVERLAY ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
}
.nav-overlay.visible { display: block; animation: fadeIn 0.3s; }

/* Con el menú abierto, .header-sticky (que contiene el cajón) queda por encima
   del overlay y de la topbar; el cajón se pinta sobre todo lo demás. */
body.nav-open .header-sticky { z-index: 3000; }
body.nav-open .topbar { visibility: hidden; }
body.nav-open .header { visibility: hidden; }
body.nav-open .chatbot-btn,
body.nav-open .chatbot-window { display: none !important; }

/* ===== MOBILE MENU TOGGLE ===== */
/* La X vive dentro del cajón (#navClose); el botón del header no se transforma. */

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== CHATBOT IA ===== */
.chatbot-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(216,32,39,0.35);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}
.chatbot-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(216,32,39,0.45);
}
.chatbot-btn svg { width: 28px; height: 28px; }
.chatbot-btn--close { display: none; }

.chatbot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 9999;
    width: 380px;
    height: 500px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.3s var(--ease-out);
    border: 1px solid var(--gray-lighter);
    overscroll-behavior: contain;
}
.chatbot-window--open { display: flex; }

.chatbot-header {
    background: var(--red);
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.chatbot-header h4 {
    font-family: var(--font-display);
    font-size: 15px;
    margin: 0;
    letter-spacing: 0.3px;
}
.chatbot-header p { font-size: 12px; margin: 2px 0 0; opacity: 0.85; }
.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.chatbot-close:hover { opacity: 1; }

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
}
.chatbot-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    animation: fadeInUp 0.3s var(--ease-out);
}
.chatbot-msg--bot {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #333;
}
.chatbot-msg--bot strong { color: var(--dark); }
.chatbot-msg--user {
    background: var(--red);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px;
}
.chatbot-suggestion {
    background: var(--white);
    border: 1px solid var(--red);
    color: var(--red);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-family: var(--font-body);
    white-space: nowrap;
}
.chatbot-suggestion:hover {
    background: var(--red);
    color: var(--white);
}

.chatbot-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-lighter);
    background: var(--white);
}
.chatbot-input {
    flex: 1;
    border: 1px solid var(--gray-lighter);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}
.chatbot-input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.chatbot-input:focus { border-color: var(--red); }
.chatbot-send {
    background: var(--red);
    color: var(--white);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.chatbot-send:hover { transform: scale(1.08); }

.chatbot-footer {
    text-align: center;
    padding: 6px 16px 10px;
    background: var(--white);
}
.chatbot-human {
    font-size: 11px;
    color: var(--gray);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.chatbot-human:hover { color: var(--red); }
.chatbot-human svg { width: 14px; height: 14px; }

.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
}
.chatbot-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    animation: typingBounce 1.2s infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 65vh;
        right: 20px;
        bottom: 88px;
        border-radius: 16px 16px 0 0;
    }
    .chatbot-btn {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }
}
