:root {
    --primary: #f4f4f4;
    --accent: #c0272d;
    --accent2: #8b1a1e;
    --surface: #1a1a1a;
    --surface2: #222222;
    --surface3: #2a2a2a;
    --text: #f0f0f0;
    --text-muted: #9a9a9a;
    --border: rgba(192,39,45,0.2);
    --border2: rgba(192,39,45,0.1);
    --success: #00cc66;
    --warning: #ffaa00;
    --danger: #ff3333;
    --glow: 0 0 20px rgba(192,39,45,0.35);
    --glow2: 0 0 40px rgba(192,39,45,0.15);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--text);
    overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ========================
   NAVBAR
======================== */
.navbar {
    position: fixed; top:0; left:0; right:0; z-index:999;
    background: rgba(15,10,10,0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex; align-items: center;
    height: 72px;        /* ← antes 64px */
    gap: 1.5rem;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.logo-icon {
     width: 44px; height: 44px;  /* ← antes 38px */
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: var(--glow);
}
.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem ; font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.logo-text span { color: var(--accent); }
.logo-sub {
    font-size: 0.6rem; font-weight: 400;
    color: var(--text-muted); letter-spacing: 2px;
    display: block; text-transform: uppercase;
}
.nav-search {
    flex: 1; max-width: 480px;
    position: relative;
}
.nav-search input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,39,45,0.12);
}
.nav-search i {
    position: absolute; left: 0.75rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.875rem;
}
.nav-links {
    display: flex; align-items: center; gap: 0.25rem;
    list-style: none; margin-left: auto;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-actions {
    display: flex; align-items: center; gap: 0.5rem;
}
.btn-icon {
    width: 36px; height: 36px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
    color: var(--text-muted);
    font-size: 0.875rem;
    position: relative;
    text-decoration: none;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem; font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.35rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.btn-primary:hover {
    box-shadow: var(--glow);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-weight: 500;
    text-decoration: none;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── USER DROPDOWN ── */
.user-dropdown { position: relative; }
.user-trigger {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}
.user-trigger:hover { border-color: var(--accent); box-shadow: var(--glow2); }
.user-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: white;
    flex-shrink: 0;
}
.user-name {
    font-size: 0.82rem; font-weight: 600;
    max-width: 90px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-chevron {
    font-size: 0.65rem; color: var(--text-muted);
    transition: transform 0.25s; flex-shrink: 0;
}
.user-chevron.open { transform: rotate(180deg); }
.user-menu {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), var(--glow2);
    z-index: 1050;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}
.user-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-header {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.5rem 0.75rem;
}
.user-menu-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; color: white; flex-shrink: 0;
}
.user-menu-name {
    font-size: 0.875rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}
.user-menu-role { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }
.user-menu-divider { height: 1px; background: var(--border); margin: 0.35rem 0; }
.user-menu-item {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.15s;
}
.user-menu-item i { width: 16px; text-align: center; color: var(--accent); }
.user-menu-item:hover { background: var(--surface2); color: var(--text); }
.user-menu-logout { color: var(--danger) !important; }
.user-menu-logout i { color: var(--danger) !important; }
.user-menu-logout:hover { background: rgba(255,51,51,0.1) !important; }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
    display: none;
    width: 36px; height: 36px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem; flex-shrink: 0;
}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(15,10,10,0.98);
    border-bottom: 1px solid var(--border);
    z-index: 998;
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-user {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface2);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}
.mobile-nav-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: white; flex-shrink: 0;
}
.mobile-nav-username { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.mobile-nav-role { font-size: 0.68rem; color: var(--text-muted); }
.mobile-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: flex; align-items: center; gap: 0.6rem;
    border-bottom: 1px solid var(--border2);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); background: var(--surface2); }
.mobile-nav a i { width: 16px; text-align: center; color: var(--accent); font-size: 0.85rem; }
.mobile-nav-logout { color: var(--danger) !important; }
.mobile-nav-logout i { color: var(--danger) !important; }
.mobile-search {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 0.75rem;
}
.mobile-search::placeholder { color: var(--text-muted); }
.mobile-search:focus { border-color: var(--accent); }

/* ========================
   PROMO STRIP
======================== */
.promo-strip {
    margin-top: 72px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}
.promo-strip span { font-weight: 700; }

/* ========================
   HERO
======================== */
.hero {
    min-height: 520px;
    background: linear-gradient(135deg, var(--surface) 0%, #2a0a0a 60%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 3rem 2rem;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(192,39,45,0.14) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px; left: 30%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,26,30,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    width: 100%; max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(192,39,45,0.12);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);  /* ← antes var(--accent) */
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem; font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--text-muted);
    font-size: 1rem; line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 420px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.stat h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem; font-weight: 700;
    color: var(--accent);
}
.stat p { font-size: 0.75rem; color: var(--text-muted); }
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
}
.hero-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
}
.hero-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow2);
    transform: translateY(-2px);
}
.hero-card:first-child {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 1rem;
}
.hc-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.hc-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.hc-name { font-weight: 600; font-size: 0.9rem; }
.hc-price { color: var(--accent); font-weight: 700; font-size: 1rem; }
.hc-sm {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; gap: 0.5rem;
}
.hc-sm .hc-icon { width: 40px; height: 40px; font-size: 1rem; }
.hc-sm .hc-name { font-size: 0.8rem; }

/* ========================
   TICKER
======================== */
.ticker {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 0.6rem 0;
    white-space: nowrap;
}
.ticker-inner {
    display: inline-flex; gap: 3rem;
    animation: ticker 30s linear infinite;
}
.ticker-item {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; color: var(--text-muted);
}
.ticker-item i { color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========================
   SECTIONS
======================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem; font-weight: 700;
    color: #1a1a1a;
}
.section-title span { color: var(--accent); }
.section-sub { 
    color: #555555;
    font-size: 0.85rem; 
    margin-top: 0.25rem; 
}

/* ========================
   CATEGORIES GRID
======================== */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

/* ========================
   FILTER BAR
======================== */
.filter-bar {
    display: flex; align-items: center; gap: 0.75rem;
    flex-wrap: wrap; margin-bottom: 1.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border-color: transparent;
    color: white;
    font-weight: 600;
}

/* ========================
   CART SIDEBAR
======================== */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1100;
    display: none;
}
.cart-overlay.open { display: block; }
.cart-sidebar {
    position: fixed; top: 0; right: -420px; bottom: 0;
    width: 400px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 1101;
    transition: right 0.3s ease;
    display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 700; }
.cart-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.cart-item {
    display: flex; gap: 0.75rem; align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border2);
}
.ci-icon {
    width: 52px; height: 52px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--accent);
    flex-shrink: 0;
}
.ci-name { font-size: 0.84rem; font-weight: 600; margin-bottom: 0.15rem; }
.ci-price { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.ci-qty {
    display: flex; align-items: center; gap: 0.4rem;
    margin-top: 0.35rem;
}
.qty-btn {
    width: 22px; height: 22px;
    border: 1px solid var(--border);
    background: var(--surface2);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--accent); }
.qty-num { font-size: 0.8rem; min-width: 18px; text-align: center; }
.ci-remove {
    margin-left: auto; color: var(--text-muted);
    cursor: pointer; font-size: 0.875rem;
    padding: 0.25rem;
    transition: color 0.2s;
}
.ci-remove:hover { color: var(--danger); }
.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.cart-total {
    display: flex; justify-content: space-between;
    font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem;
}
.cart-total span:last-child { color: var(--accent); }
.cart-note { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }
.cart-empty {
    text-align: center; padding: 3rem 1rem;
    color: var(--text-muted);
}
.cart-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; color: var(--accent); opacity: 0.4; }

/* ========================
   TOAST
======================== */
.toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--surface2);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.875rem;
    box-shadow: var(--glow2);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    max-width: calc(100vw - 2rem);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: var(--success); font-size: 1rem; }

/* ========================
   RESPONSIVE — TABLET (≤ 1024px)
======================== */
@media (max-width: 1024px) {
    .cats-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-search { max-width: 280px; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
}

/* ========================
   RESPONSIVE — TABLET PORTRAIT (≤ 900px)
======================== */
@media (max-width: 900px) {
    .navbar { gap: 0.75rem; }
    .nav-search { display: none; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; margin-left: 0; }
    .nav-actions { margin-left: auto; }
    .user-trigger { padding: 0.4rem 0.75rem 0.4rem 0.4rem; border-radius: 10px; }
    .user-name { display: block; max-width: 120px; }
    .user-chevron { display: inline; }

    .hero { min-height: auto; padding: 2.5rem 1.5rem 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-visual { display: none; }
    .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; gap: 2.5rem; }

    .cats-grid { grid-template-columns: repeat(3, 1fr); }
    .section { padding: 2rem 1rem; }
    .banner-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================
   RESPONSIVE — MOBILE (≤ 640px)
======================== */
@media (max-width: 640px) {
    .navbar { padding: 0 1rem; gap: 0.5rem; }
    .logo-text { font-size: 1.2rem; }
    .logo-sub { display: none; }
    .user-name { max-width: 100px; font-size: 0.78rem; }
    .user-menu { right: 0; min-width: 200px; }

    .promo-strip { font-size: 0.72rem; padding: 0.5rem 0.75rem; }

    .hero { padding: 2rem 1rem 2.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.9rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .stat h3 { font-size: 1.5rem; }

    .cats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; }
    .section-title { font-size: 1.5rem; }

    .cart-sidebar { width: 100%; right: -100%; }
    .cart-sidebar.open { right: 0; }

    .toast { bottom: 1rem; right: 1rem; left: 1rem; font-size: 0.8rem; }
}

/* ========================
   RESPONSIVE — SMALL MOBILE (≤ 380px)
======================== */
@media (max-width: 380px) {
    .hero h1 { font-size: 1.9rem; }
    .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* ========================
   HERO CARRUSEL
======================== */
.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 560px;
    max-height: 750px;
    display: block;
    padding: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.hero-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: all;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0,0,0,.40);
    z-index: 0;
    pointer-events: none;
}
.hero-slide-bg {
    position: absolute;
    inset: -5%;          /* ← ligeramente más grande que el contenedor */
    width: 110%;
    height: 110%;
    object-fit: contain;
    object-position: center center;
    z-index: 1;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,.78) 0%,
        rgba(0,0,0,.40) 50%,
        rgba(0,0,0,.08) 100%
    );
    z-index: 2;
}
.hero-slide > div:not(.hero-slide-overlay):not(.hero-slide-bg) {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.hero-slide h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1rem;
    max-width: 600px;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-slide p {
    color: rgba(255,255,255,.88);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 500px;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background .2s, transform .2s;
    font-size: 1rem;
}
.carousel-prev { left: 1.5rem; }
.carousel-next { right: 1.5rem; }
.carousel-prev:hover { background: rgba(192,39,45,.85); transform: translateY(-50%) scale(1.05); }
.carousel-next:hover { background: rgba(192,39,45,.85); transform: translateY(-50%) scale(1.05); }
.carousel-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .5rem;
    z-index: 10;
}
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    transition: all .3s;
    padding: 0;
}
.carousel-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 4px;
}
@media (max-width: 1024px) {
    .hero-carousel { height: 65vh; min-height: 500px; }
    .hero-slide    { height: 65vh; min-height: 500px; }
    .hero-slide h1 { font-size: 2.8rem; }
}
@media (max-width: 640px) {
    .hero-carousel { height: 55vh; min-height: 380px; max-height: 480px; }
    .hero-slide    { height: 55vh; min-height: 380px; max-height: 480px; }
    .hero-slide h1 { font-size: 1.9rem; }
    .hero-slide p  { font-size: .88rem; }
    .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: .85rem; }
    .carousel-prev { left: .75rem; }
    .carousel-next { right: .75rem; }
}
@media (max-width: 380px) {
    .hero-carousel { height: 50vh; min-height: 320px; }
    .hero-slide    { height: 50vh; min-height: 320px; }
    .hero-slide h1 { font-size: 1.65rem; }
}

/* Avatar inicial mobile */
.nav-mobile-avatar {
  display: none;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
  cursor: pointer; flex-shrink: 0;
}

/* Desktop: ocultar avatar, mostrar info completa */
.nav-user-desktop {
  display: flex; align-items: center; gap: .5rem;
}

@media (max-width: 900px) {
  .nav-mobile-avatar { display: flex !important; }
  .nav-user-desktop  { display: none !important; }
  #btn-ingresar      { display: none !important; }
  .nav-search        { display: flex !important; max-width: 160px; }
  @media (max-width: 900px) {
  #nav-suggestions {
    position: fixed !important;
    top: 72px !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
  }
}
}

@media (max-width: 768px) {
  #contacto > div {
    grid-template-columns: 1fr !important;
    padding: 1.5rem !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 900px) {
  /* Solo el primer slide con hero-grid se adapta */
  .hero-carousel {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

  /* Slides de banner (con imagen) mantienen altura */
  .hero-slide {
    position: absolute !important;
    height: 55vw !important;
    min-height: 220px !important;
    max-height: 320px !important;
  }

  /* Solo el slide activo es visible */
  .hero-slide.active {
    position: relative !important;
  }

  /* Primer slide (hero-grid) — sin altura fija */
  .hero-slide.active .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 2.5rem 1.25rem !important;
    text-align: center !important;
  }
  .hero-visual { display: none !important; }
  .hero h1 { font-size: 2rem !important; }
  .hero p { max-width: 100% !important; margin: 0 auto 1.5rem !important; }
  .hero-btns { justify-content: center !important; }
  .hero-stats { justify-content: center !important; gap: 1.5rem !important; flex-wrap: wrap !important; }
  .hero-badge { font-size: .68rem !important; }
  .carousel-prev, .carousel-next { width: 36px !important; height: 36px !important; font-size: .82rem !important; }
  .carousel-prev { left: .5rem !important; }
  .carousel-next { right: .5rem !important; }
}

@media (max-width: 900px) {
  .hero-slide.active .hero-stats {
    position: relative;
    z-index: 11 !important;
    margin-bottom: 1.5rem !important;
  }
  .carousel-dots {
    bottom: .5rem !important;
  }
  .hero-slide.active .hero-grid {
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 900px) {
  .carousel-dots {
    bottom: -2.5rem !important;
  }
}