/* public/assets/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ── New Palette: Lime × Dark Green ─────────────────── */
    --bg:            #080d06;
    --bg-2:          #0e1809;
    --card-bg:       #111d0d;
    --card-bg-2:     #162410;
    --border:        #2a4020;
    --border-focus:  #4a7030;
    --text:          #f0faea;
    --text-muted:    #7da870;

    /* Accent = the bright lime from the gradient */
    --accent:        #8bc400;
    --accent-2:      #a8d900;
    --accent-hover:  #72a200;
    --accent-glow:   rgba(139, 196, 0, 0.22);
    --accent-glow-2: rgba(139, 196, 0, 0.10);

    /* Status */
    --success: #5cba47;
    --danger:  #EF4444;

    /* Misc */
    --font:       'Plus Jakarta Sans', sans-serif;
    --max-width:  1200px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* 3D / depth tokens */
    --shadow-card:   0 4px 24px rgba(0,0,0,0.55), 0 1px 0 rgba(139,196,0,0.06) inset;
    --shadow-hover:  0 16px 48px rgba(0,0,0,0.70), 0 0 0 1px rgba(139,196,0,0.18);
    --glow-accent:   0 0 20px rgba(139,196,0,0.25), 0 0 60px rgba(139,196,0,0.08);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 60% 40% at 20% 10%, rgba(100,160,0,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(60,100,10,0.06) 0%, transparent 70%);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Custom Rules */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, #e8ffc4 0%, var(--accent) 50%, #5a8a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════
   HEADER — Two-Row Layout
═══════════════════════════════════ */
header {
    background: linear-gradient(90deg, #8bc400 0%, #5a9400 25%, #2a5a08 60%, #0f2104 100%);
    box-shadow: 0 4px 30px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    background: linear-gradient(90deg, #7aae00 0%, #4a8200 25%, #1e4206 60%, #090f02 100%);
    box-shadow: 0 6px 30px rgba(0,0,0,0.65), 0 1px 0 rgba(139,196,0,0.12);
}

/* ── Top Row: Logo + User ─── */
.header-top-row {
    border-bottom: 1px solid rgba(0,0,0,0.20);
    background: rgba(0,0,0,0.12);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

/* ── Bottom Row: Navigation ─── */
.header-nav-row {
    background: rgba(0,0,0,0.22);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.header-nav-row .container {
    display: flex;
    align-items: stretch;
    justify-content: center; /* Centrar la navegación */
}

/* ── User area (right side of top row) ─── */
.header-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Credits badge */
.credits-badge {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(168,217,0,0.35) !important;
    border-radius: 20px !important;
    padding: 5px 13px 5px 8px !important;
    cursor: default;
    white-space: nowrap;
}

.credits-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a8d900;
    box-shadow: 0 0 8px rgba(168,217,0,0.8);
    flex-shrink: 0;
    animation: credits-pulse 2s ease-in-out infinite;
}

@keyframes credits-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(168,217,0,0.7); }
    50%       { box-shadow: 0 0 14px rgba(168,217,0,1); }
}

.credits-number {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 0.88rem;
    font-weight: 800;
    color: #a8d900;
    line-height: 1;
}

.credits-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(168,217,0,0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User chip */
.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: 5px 12px 5px 5px;
    cursor: default;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8bc400, #4a7a00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #040a01;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
}

/* Header action buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.hdr-btn-ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.12);
}

.hdr-btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: rgba(255,255,255,0.25);
}

.hdr-btn-admin {
    background: rgba(168,217,0,0.15);
    color: #a8d900;
    border-color: rgba(168,217,0,0.30);
}

.hdr-btn-admin:hover {
    background: rgba(168,217,0,0.25);
    color: #c8f020;
    border-color: rgba(168,217,0,0.55);
    box-shadow: 0 0 16px rgba(168,217,0,0.20);
}

.hdr-btn-logout {
    background: rgba(239,68,68,0.10);
    color: #f87171;
    border-color: rgba(239,68,68,0.22);
}

.hdr-btn-logout:hover {
    background: rgba(239,68,68,0.20);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.40);
}

.hdr-btn-register {
    background: linear-gradient(135deg, #8bc400, #5a8a00);
    color: #040a01;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(139,196,0,0.30);
}

.hdr-btn-register:hover {
    background: linear-gradient(135deg, #a8d900, #72a200);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139,196,0,0.40);
}

/* ── Legacy override ─── */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.35)) brightness(1.1);
    transform: scale(1.04);
}

.logo img {
    max-height: 62px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.logo span {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: 15px; /* Añadir espacio limpio entre items */
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    position: relative;
    padding: 0 12px;
    height: 48px; /* Un poco más alto para verse premium */
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, background 0.3s ease;
    text-shadow: 0 1px 4px rgba(0,0,0,0.50);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.nav-chevron {
    opacity: 0.55;
    transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Efecto subrayado animado y moderno */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(139,196,0,0.5);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    text-shadow: 0 0 14px rgba(255,255,255,0.40);
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px; /* Bordes redondeados más premium */
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #6fa000 100%);
    color: #040a01;
    box-shadow: 0 4px 15px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.08) inset;
    border: 1px solid rgba(168,217,0,0.25);
    text-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(139,196,0,0.35), 0 0 0 1px rgba(139,196,0,0.3);
    color: #030801;
}

.btn-secondary {
    background: rgba(139,196,0,0.04);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(139,196,0,0.35);
    background: rgba(139,196,0,0.08);
    color: var(--accent-2);
    box-shadow: 0 0 12px rgba(139,196,0,0.12);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #d32f2f;
    box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero p.hero-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

/* Multi-Search Box */
.search-container {
    max-width: 750px;
    margin: 0 auto 50px auto;
    background: var(--card-bg);
    border: 1px solid rgba(139,196,0,0.15);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139,196,0,0.06) inset;
    position: relative;
}

.search-container:focus-within {
    border-color: rgba(139,196,0,0.45);
    box-shadow: 0 0 0 3px rgba(139,196,0,0.12), 0 0 30px rgba(139,196,0,0.10), 0 20px 50px rgba(0,0,0,0.5);
}

.search-form {
    display: flex;
    flex: 1;
    align-items: center;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 1rem;
    padding: 10px 15px;
    font-family: var(--font);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 5px;
}

/* Image Search trigger button */
.visual-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 4px;
}

.visual-search-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Hidden visual search form overlay */
.visual-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.visual-search-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
}

.drag-drop-area {
    border: 2px dashed var(--border);
    border-radius: 6px;
    padding: 40px 20px;
    cursor: pointer;
    margin: 20px 0;
    transition: var(--transition);
}

.drag-drop-area:hover {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.02);
}

.drag-drop-area input[type="file"] {
    display: none;
}

/* Carousel Slider */
.slider-section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--border);
    border-color: var(--text-muted);
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 20px;
}

.slider-slide {
    flex: 0 0 calc(33.333% - 13.33px);
    min-width: 280px;
}

/* Product Cards */
.product-card {
    background: linear-gradient(160deg, var(--card-bg) 0%, var(--card-bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-card);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.product-card:hover {
    transform: translateY(-7px) rotateX(1.5deg);
    border-color: rgba(139,196,0,0.30);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(139,196,0,0.08);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #0e1320;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.product-color-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

/* Category Grid & Filters */
.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.category-badge {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.category-badge:hover, .category-badge.active {
    background: var(--border);
    color: #ffffff;
    border-color: var(--text-muted);
}

/* Main Catalog Grid */
.catalog-section {
    padding: 60px 0 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Product Detail Sheet */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 0 50px 0;
}

.detail-img-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Much tighter padding */
    align-self: start;
    justify-self: center;
}

.detail-img-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.detail-img-box img:hover {
    transform: scale(1.02);
}

.detail-info-box {
    display: flex;
    flex-direction: column;
}

.detail-category {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.detail-title {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.detail-meta-list {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.meta-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 4px;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 600;
}

/* User Form Screens */
.auth-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(8,13,6,0.80);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 15px;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px rgba(139,196,0,0.08);
}

.alert {
    padding: 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-success {
    background: rgba(92, 186, 71, 0.10);
    border: 1px solid rgba(92, 186, 71, 0.30);
    color: #86efac;
}

.form-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 25px;
}

.form-footer-text a {
    color: var(--accent);
    font-weight: 600;
}

/* Floating Actions */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.08) translateY(-2px);
}

.float-whatsapp {
    background: #25D366;
}

.float-chat {
    background: var(--accent);
}

.float-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Private Dashboard styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 50px 0 100px 0;
}

.sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 25px;
    align-self: start;
}

.sidebar-profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 1.8rem;
    font-weight: 700;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-item.active a, .sidebar-item a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.sidebar-item.active a {
    border-left: 3px solid var(--accent);
}

.dashboard-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 40px;
}

.content-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tables styling */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.badge-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.badge-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #fbbf24;
}

/* Footer styling */
footer {
    background: #060a12;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-desc p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 15px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive grid media queries */
@media(max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    header {
        height: 65px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }
    .nav-links.show {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .home-action-cards {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 15px;
    }
    .action-card {
        flex: 1 1 100%;
    }
    .detail-meta-list {
        grid-template-columns: 1fr;
    }
    .home-top-bar .home-logo {
        font-size: 2.5rem;
    }
    .home-top-bar .home-slogan {
        font-size: 0.8rem;
    }
}

/* Navigation Dropdown Menus */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,18,8,0.97);
    border: 1px solid rgba(139,196,0,0.18);
    border-radius: 10px;
    min-width: 190px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.70), 0 0 0 1px rgba(139,196,0,0.06) inset;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 8px;
    backdrop-filter: blur(16px);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.nav-dropdown-menu.show-mobile {
    display: block !important;
    position: static;
    transform: none;
    background: rgba(255,255,255,0.02);
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent);
    margin-left: 10px;
    margin-top: 10px;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(139, 196, 0, 0.10);
    color: var(--accent-2);
    padding-left: 22px;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    display: block;
}

@media(max-width: 768px) {
    .nav-item-dropdown {
        display: block;
        width: 100%;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        display: block;
        background: rgba(255,255,255,0.01);
        border: none;
        box-shadow: none;
        padding-left: 15px;
        min-width: unset;
        margin-top: 0;
    }
    .nav-dropdown-menu a {
        padding: 8px 0;
        border-bottom: none;
    }
}


/* =========================================
   NUEVO HOME DARK UI (VECTORNED)
   ========================================= */
.home-dark-ui {
    background-color: #0b0c10;
    background-image: url('../img/home_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 5px 20px 5px; /* Extremely reduced padding */
    font-family: 'Inter', sans-serif;
    text-align: center;
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

.home-dark-ui::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(11,12,16,0.85) 0%, rgba(11,12,16,1) 100%);
    pointer-events: none;
    z-index: 0;
}

.home-action-cards, .home-carousel-section {
    position: relative;
    z-index: 1;
}

.home-top-bar .home-logo {
    font-size: 1.5rem; /* Smaller */
    font-weight: 900;
    margin-bottom: 0px;
    letter-spacing: -1px;
    color: #ff3c00;
}
.home-top-bar .home-logo span {
    color: #ffffff;
}
.home-top-bar .home-slogan {
    font-size: 0.65rem;
    color: #8c8f99;
    margin-bottom: 8px; /* Tighter */
}

.home-hero-wrapper {
    background: #111215;
    border-radius: 12px;
    padding: 10px 15px; /* Tighter */
    max-width: 850px; /* Slightly narrower */
    margin: 0 auto 5px; /* Extremely tight margin-bottom */
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 1;
}

/* Tarjetas Superiores */
.home-action-cards {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px; /* Tighter */
    flex-wrap: nowrap; /* Prevent wrapping so it looks exactly like the screenshot */
    width: 100%;
    margin: 0 auto 2px;
}

.action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 10px; /* Reduced from 15px */
    text-align: left;
    flex: 1 1 150px;
    min-width: 150px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.action-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; /* Tighter */
}
.card-header .icon {
    font-size: 1.1rem;
    background: rgba(255,255,255,0.1);
    width: 25px; height: 25px; /* Tighter */
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px;
}
.card-header .badge {
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.badge.active-badge {
    background-color: #00d26a; color: #000;
}
.badge.wa-badge {
    background-color: #25D366; color: #fff;
}
.action-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.action-card p {
    font-size: 0.8rem;
    color: #8c8f99;
    line-height: 1.4;
    flex-grow: 1;
}

/* Caja de Búsqueda Visual */
.search-drop-zone {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 260px;
    margin: 0;
    background: #0d0e12; /* Solid dark color */
    border: none;
    border-radius: 12px;
    padding: 10px; /* Reduced from 15px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) inset;
}
.search-drop-zone:hover {
    background: #111216;
}
.search-empty-state {
    display: flex; flex-direction: column; align-items: center;
}
.btn-buscar.vectorned-buscar-btn {
    margin-top: 5px; /* Tighter */
    background-color: #2a2b2f; /* Dark grey button */
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 4px 20px; /* Tighter */
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s;
    width: 100%;
}
.btn-buscar.vectorned-buscar-btn:hover {
    background-color: #35363b;
    transform: none;
}

.search-active-state {
    position: relative;
    display: inline-block;
    width: 100%;
}
.search-preview-image {
    max-height: 75px; /* Tighter */
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}
.clear-search-btn {
    position: absolute;
    top: -15px; right: -15px;
    background: #ff4757; color: white;
    border: none; width: 25px; height: 25px; border-radius: 50%;
    cursor: pointer; font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Swiper 3D Carousel */
.home-carousel-section {
    padding-bottom: 60px;
    overflow: hidden;
}
.search-results-header {
    margin-bottom: 30px;
}
.search-results-header h2 {
    font-size: 1.5rem; color: #fff;
}
.search-results-header p {
    color: #00d26a; font-weight: 600; font-size: 0.9rem;
}

.homeSwiper {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    overflow-y: visible !important;
}
.product-slide {
    background-position: center;
    background-size: cover;
    width: 320px !important;
    max-width: 320px;
    height: 400px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    background: #1e1e24;
}
.slide-image-wrapper {
    width: 100%; height: 75%;
    position: relative;
}
.slide-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
}
.similarity-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: #00d26a; color: #000;
    padding: 6px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.slide-info {
    padding: 15px;
    height: 25%;
    background: linear-gradient(180deg, rgba(30,30,36,0.8) 0%, rgba(30,30,36,1) 100%);
}
.slide-info h3 {
    font-size: 1rem; color: #fff; margin-bottom: 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slide-action {
    display: flex; justify-content: space-between; align-items: center;
}
.slide-action .price {
    font-weight: 800; color: #ff3c00; font-size: 0.9rem;
}
.slide-action .btn-comprar {
    background: #fff; color: #000; padding: 6px 15px;
    font-size: 0.75rem; font-weight: 800; border-radius: 20px; text-decoration: none;
}
.custom-nav-btn {
    color: rgba(255,255,255,0.5);
}
.custom-nav-btn:hover {
    color: #fff;
}

/* =========================================
   RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .action-card {
        min-width: 100%;
        padding: 15px;
    }
    .search-drop-zone {
        min-width: 100%;
        min-height: 250px;
    }
    .product-slide {
        width: 260px !important;
        max-width: 260px;
        height: 340px;
    }
}

/* SPOTLIGHT EFFECT */
.spotlight-wrapper {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}
.spotlight-base {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    display: block;
}
.spotlight-wrapper:hover .spotlight-base {
    filter: blur(6px) brightness(0.6);
}
.spotlight-sharp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    
    /* Variables --x and --y updated by JS (fallback sizes) */
    -webkit-mask-image: radial-gradient(circle 150px at 50% 50%, black 0%, black 80%, transparent 100%);
    mask-image: radial-gradient(circle 150px at 50% 50%, black 0%, black 80%, transparent 100%);
}
.spotlight-wrapper:hover .spotlight-sharp {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   GILSO.HU — PREMIUM VISUAL ENHANCEMENTS
   Lime × Dark-Green Identity System
═══════════════════════════════════════════ */

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139,196,0,0.30); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,196,0,0.55); }

/* Text selection */
::selection { background: rgba(139,196,0,0.25); color: #fff; }

/* ── Invisible Anti-Theft System ── */
.protected-image {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* Credits badge premium style */
.credits-badge {
    background: rgba(0, 255, 80, 0.06) !important;
    border: 1px solid rgba(139,196,0,0.28) !important;
    border-radius: 20px !important;
    padding: 5px 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: monospace !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--accent-2) !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 0 16px rgba(139,196,0,0.08) !important;
    transition: all 0.3s ease;
}

.credits-badge:hover {
    border-color: rgba(139,196,0,0.55) !important;
    box-shadow: 0 0 24px rgba(139,196,0,0.18) !important;
}

/* Auth card premium */
.auth-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(22,36,16,0.95) 100%);
    border: 1px solid rgba(139,196,0,0.14);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,196,0,0.05) inset;
}

/* Category badge premium */
.category-badge {
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.category-badge:hover, .category-badge.active {
    background: rgba(139,196,0,0.12) !important;
    color: var(--accent-2) !important;
    border-color: rgba(139,196,0,0.35) !important;
    box-shadow: 0 0 16px rgba(139,196,0,0.10);
}

/* Detail box premium */
.detail-img-box {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-bg-2) 100%);
    border-color: rgba(139,196,0,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Meta items premium */
.meta-item {
    background: rgba(139,196,0,0.03);
    border-color: rgba(139,196,0,0.12);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.meta-item:hover {
    border-color: rgba(139,196,0,0.25);
    box-shadow: 0 0 12px rgba(139,196,0,0.06);
}

/* Slider arrow premium */
.slider-arrow {
    background: var(--card-bg) !important;
    border-color: rgba(139,196,0,0.18) !important;
    transition: all 0.25s ease;
}

.slider-arrow:hover {
    background: rgba(139,196,0,0.10) !important;
    border-color: rgba(139,196,0,0.40) !important;
    color: var(--accent-2) !important;
    box-shadow: 0 0 16px rgba(139,196,0,0.12);
}

/* Hero accent label */
.hero-subtitle {
    color: var(--accent) !important;
    text-shadow: 0 0 20px rgba(139,196,0,0.30);
}

/* Product price accent */
.product-price {
    color: var(--accent-2) !important;
    text-shadow: 0 0 16px rgba(139,196,0,0.15);
}

/* Free badge */
.product-price[data-free="true"],
.product-price:empty ~ .product-price-free {
    color: var(--success) !important;
}

/* Footer link hover */
footer a:hover {
    color: var(--accent-2) !important;
    text-shadow: 0 0 12px rgba(139,196,0,0.25);
}

/* ── Premium Side Ads ── */
.premium-side-ad {
    display: none; /* Oculto por defecto para móviles */
}

@media (min-width: 1560px) { /* Breakpoint para pantallas muy anchas */
    .premium-side-ad {
        display: block;
        position: fixed;
        top: 150px;
        z-index: 90;
    }
    
    .side-ad-left {
        left: calc((50vw - 600px) * 0.15); /* Centrado en el espacio restante (15% margen) */
        width: calc((50vw - 600px) * 0.7); /* Ocupa el 70% del espacio disponible */
    }
    
    .side-ad-right {
        right: calc(50% - 600px - 150px);
        width: 140px;
    }
    
    .premium-side-ad-link {
        display: block;
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
        cursor: pointer;
    }
    
    a.premium-side-ad-link:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(139, 196, 0, 0.4);
    }
    
    .side-ad-left .premium-side-ad-img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }
    
    .side-ad-right .premium-side-ad-img {
        width: 100%;
        height: 280px; /* Banner vertical pero más corto */
        object-fit: cover;
        object-position: top;
        display: block;
        border-radius: 8px;
    }
}