/* =========================================
   VARIABLES & BASE STYLES
   ========================================= */
:root {
    --primary: #2066c1;
    --primary-dark: #184e96;
    --secondary: #714fca;
    --accent: #93cbef;
    --text-gray: #707070;
    --text-dark: #111827;
    --bg-light: #f3f8f6;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --footer-bg: #15151d;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 6px rgba(32, 102, 193, 0.2);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(32, 102, 193, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: #f8faff;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-weight: 700;
}
.btn-white:hover {
    background-color: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    display: none;
    overflow: hidden;
    position: relative;
}
@media (min-width: 1024px) {
    .top-bar { display: block; }
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}
.top-bar-right {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 0 10px 60px;
}

.top-bar-right::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -100vw;
    background-color: #0b0b10;
    transform: skewX(-30deg);
    transform-origin: bottom left;
    border-left: 2px solid var(--accent);
    z-index: 0;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.top-bar-item i {
    color: var(--accent);
}
.top-bar-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255,255,255,0.3);
    margin: 0 4px;
}

/* =========================================
   MAIN NAVBAR
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(21, 21, 29, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 125px;
}

.logo img {
    width: auto;
    height: 78px;
    max-width: 360px;
    object-fit: contain;
    cursor: pointer;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-item {
    color: #e5e7eb;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    font-size: 1rem;
    position: relative;
}
.nav-item:hover { color: var(--white); }
.nav-item::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--accent);
    transition: width 0.3s;
}
.nav-item:hover::after { width: 100%; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.9rem;
}
.lang-switch:hover { color: var(--white); }

.mobile-lang-btn {
    display: none;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 125px;
    left: 0;
    width: 100%;
    background: #15151d;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
}
.mobile-menu.active { display: flex; }
.mobile-menu .nav-item { color: #e5e7eb; text-align: left; padding: 10px; width: 100%; border-radius: 4px; }
.mobile-menu .nav-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }

/* =========================================
   VIEWS & SECTIONS SETUP
   ========================================= */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

section { padding: 80px 0; }
.section-tag {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.section-title {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}
.text-center { text-align: center; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--footer-bg);
    margin-top: -1px;
}

.hero-slider-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-slide:nth-child(1).active img { animation: zoomIn 6s ease-out forwards; }
.hero-slide:nth-child(2).active img { animation: zoomOut 6s ease-out forwards; }
.hero-slide:nth-child(3).active img { animation: panRight 6s ease-out forwards; }

@keyframes zoomIn {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}
@keyframes zoomOut {
    0% { transform: scale(1.15); }
    100% { transform: scale(1.05); }
}
@keyframes panRight {
    0% { transform: scale(1.1) translateX(-2%); }
    100% { transform: scale(1.1) translateX(2%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(21, 21, 29, 0.95) 0%, rgba(21, 21, 29, 0.7) 45%, rgba(21, 21, 29, 0.2) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto 0 10%;
    padding: 40px 20px;
}

.hero h1 { font-size: 4rem; color: var(--white); line-height: 1.1; margin-bottom: 24px; font-weight: 800; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; margin-bottom: 40px; color: #d1d5db; text-shadow: 0 2px 5px rgba(0,0,0,0.5); line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; }

.hero-badge {
    display: inline-block;
    background: rgba(147, 203, 239, 0.15);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.bg-wave-shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.2;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: waveMorph 12s ease-in-out infinite alternate;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
}
.hero-wave { top: -20%; left: -10%; width: 800px; height: 800px; }
.contact-wave { bottom: -30%; right: -10%; width: 600px; height: 600px; z-index: 0; mix-blend-mode: normal; }

@keyframes waveMorph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
    100% { border-radius: 70% 30% 50% 70% / 30% 70% 30% 50%; transform: rotate(15deg) scale(1.05); }
}

.hero-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 5;
}
.hero-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    width: 0%;
}
.hero-progress-fill.animate {
    animation: progressAnim 5s linear forwards;
}
@keyframes progressAnim {
    0% { width: 0%; }
    100% { width: 100%; }
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 10%;
    display: flex;
    gap: 12px;
    z-index: 5;
}
.hero-controls .dot {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-controls .dot.active {
    background: var(--accent);
    width: 50px;
}

.hero-floating-card {
    position: absolute;
    bottom: 60px;
    right: 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
    border-left: 4px solid var(--primary);
}
.floating-icon { background: var(--primary); color: var(--white); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* =========================================
   TRUST BANNER
   ========================================= */
.trust-banner { background: var(--primary); padding: 50px 0; position: relative; z-index: 2; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-item { border-right: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: 0 15px; }
.trust-item:last-child { border-right: none; }

.trust-item i { 
    color: var(--accent); 
    font-size: 2rem; 
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-bottom: 16px; 
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 4s ease-in-out infinite;
}

.trust-item:hover i {
    transform: translateY(-10px) scale(1.1);
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation-play-state: paused;
}

.trust-item:nth-child(1) i { animation-delay: 0s; }
.trust-item:nth-child(2) i { animation-delay: 0.5s; }
.trust-item:nth-child(3) i { animation-delay: 1s; }
.trust-item:nth-child(4) i { animation-delay: 1.5s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.trust-item div { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.5px; }
.trust-item p { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.5; font-weight: 400; margin: 0; }

/* =========================================
   ABOUT US
   ========================================= */
.about-section { margin-top: 100px; padding-top: 20px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: 12px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); width: 100%; height: 500px; object-fit: cover; }
.about-list { margin-top: 24px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-weight: 500; color: #4b5563; }
.about-list i { color: var(--primary); margin-top: 4px; }

/* =========================================
   SERVICES
   ========================================= */
.services-section { background-color: #f9fafb; padding-bottom: 100px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 30px -5px rgba(0,0,0,0.2); 
    border-color: transparent;
}
.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px; height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    position: relative;
    left: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon { 
    left: calc(100% - 60px);
    transform: rotateY(180deg) rotateZ(360deg);
    background: rgba(255, 255, 255, 0.2); 
    color: var(--white); 
}

.service-card h4 { 
    color: var(--text-dark); 
    font-size: 1.25rem; 
    margin-bottom: 12px; 
    transition: color 0.5s ease;
}
.service-card p {
    color: var(--text-gray);
    transition: color 0.5s ease;
    line-height: 1.6;
}

.service-card:hover h4,
.service-card:hover p {
    color: var(--white);
}

/* =========================================
   PRODUCTS & CATEGORIES
   ========================================= */
.products-section { padding-top: 100px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0 60px; }
.product-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; mix-blend-mode: overlay; opacity: 0.6; }
.product-card:hover img { transform: scale(1.1); }
.product-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3) 50%, transparent); }

.product-card-bg1 { background: linear-gradient(to bottom right, var(--accent), var(--primary)); }
.product-card-bg2 { background: linear-gradient(to bottom right, #d1d5db, #6b7280); }
.product-card-bg3 { background: linear-gradient(to bottom right, var(--secondary), #4c1d95); }
.product-card-bg4 { background: linear-gradient(to bottom right, #374151, #111827); }

.product-content { position: absolute; bottom: 0; left: 0; padding: 24px; z-index: 2; width: 100%; }
.product-content h4 { color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.product-content p { color: #d1d5db; font-size: 0.875rem; margin-bottom: 15px; }
.product-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.875rem; opacity: 0; transform: translateY(10px); transition: all 0.3s; }
.product-card:hover .product-link { opacity: 1; transform: translateY(0); }
.product-card.active-card { box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--accent); }

/* PRODUCT CATEGORY PANEL (SPLIT CARD) */
.category-details-panel {
    display: none;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}
.category-details-panel.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.category-panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
}
.category-panel-content {
    padding: 50px;
    text-align: left;
}
.category-panel-content h4 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 16px;
}
.category-panel-content h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background: var(--primary);
    border-radius: 4px;
}
.category-panel-content p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}
.category-panel-actions {
    background: var(--bg-light);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border-color);
}
.category-panel-actions h5 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 700;
    text-align: center;
}
.category-details-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.category-details-btns .btn { width: 100%; justify-content: center; }

/* =========================================
   BRANDS INFINITE MARQUEE
   ========================================= */
.brands-slider {
    background: #f9fafb;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.brands-slider h4 { color: #9ca3af; margin-bottom: 24px; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 1px; }

.brands-marquee { display: flex; width: 100%; overflow: hidden; position: relative; }
.brands-marquee::before, .brands-marquee::after { content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; pointer-events: none; }
.brands-marquee::before { left: 0; background: linear-gradient(to right, #f9fafb 0%, transparent 100%); }
.brands-marquee::after { right: 0; background: linear-gradient(to left, #f9fafb 0%, transparent 100%); }

.brands-track { display: flex; width: max-content; animation: scroll-marquee 40s linear infinite; }
.brands-track:hover { animation-play-state: paused; }

.brands-set { display: flex; align-items: center; gap: 60px; padding-right: 60px; }
.brands-set img { max-height: 70px; max-width: 150px; object-fit: contain; opacity: 0.5; filter: grayscale(100%); transition: all 0.4s ease; cursor: pointer; }
.brands-set img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
    position: relative;
    background-image: url('assets/img/hero-2-mabryx.webp');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 70px 40px;
    margin-top: 80px;
    margin-bottom: 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(32, 102, 193, 0.92) 0%, rgba(113, 79, 202, 0.92) 100%);
    z-index: 1;
}
.cta-banner-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 750px;
    margin: 0 auto;
}
.cta-banner h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-banner p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; line-height: 1.6; }

/* =========================================
   CONTACT
   ========================================= */
.contact-section { background: var(--footer-bg); color: var(--white); position: relative; overflow: hidden; }
.contact-section .section-title { color: var(--white); position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; position: relative; z-index: 1; }

.contact-info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-info-item i { color: var(--accent); font-size: 1.5rem; margin-top: 5px; }
.contact-info-item h5 { font-size: 1.125rem; margin-bottom: 4px; }
.contact-info-item p { color: #9ca3af; }

.contact-form-card { background: var(--white); padding: 40px; border-radius: 12px; color: var(--text-dark); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 8px; color: #4b5563; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 6px; font-family: var(--font-main); outline: none; transition: border 0.3s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32, 102, 193, 0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

.success-message { text-align: center; padding: 60px 20px; display: none; }
.success-message i { color: #22c55e; font-size: 4rem; margin-bottom: 20px; }
.success-message h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 10px; }

/* =========================================
   VIEWS (REGISTER & LEGAL)
   ========================================= */
.register-view { background: var(--bg-light); min-height: 100vh; padding: 60px 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 500; margin-bottom: 30px; cursor: pointer; border: none; background: none; font-size: 1rem; }
.back-link:hover { text-decoration: underline; }
.register-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.register-header { background: var(--primary); padding: 40px 20px; text-align: center; color: var(--white); }
.register-header h1 { font-size: 2rem; margin-bottom: 12px; }
.register-header p { color: var(--accent); max-width: 600px; margin: 0 auto; }
.register-body { padding: 40px; }
.notice-box { background: #fefce8; border-left: 4px solid #facc15; padding: 16px; margin-bottom: 30px; color: #a16207; font-size: 0.875rem; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.form-footer p { font-size: 0.75rem; color: #9ca3af; margin-bottom: 20px; }

.legal-view { padding: 80px 0; min-height: 100vh; }
.legal-content h1 { font-size: 2.5rem; color: var(--text-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 30px; }
.legal-content h2 { font-size: 1.5rem; color: var(--text-dark); margin: 40px 0 16px; }

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--footer-bg);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    color: #9ca3af;
    padding: 80px 0 30px;
    border-top: 4px solid var(--primary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { max-width: 180px; height: auto; margin-bottom: 20px; border-radius: 4px; filter: brightness(0) invert(1); }
.footer-info { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.footer-info p { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.footer-info i { color: var(--accent); }
.footer h4 { color: var(--white); font-size: 1.125rem; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.875rem; transition: color 0.3s; cursor: pointer; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.75rem; }

/* =========================================
   305 CLICK SIGNATURE (ANIMATED)
   ========================================= */
.designed-by-signature {
    padding-top: 1rem;
    color: #a0a0a0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}
.designed-by-signature a.gradient-link {
    font-weight: bold;
    background: linear-gradient(90deg, #ff00de, #00ddff, #ffdd00, #ff00de);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: mover-degradado 4s linear infinite;
    text-decoration: none;
    transition: all 0.3s ease;
}
.designed-by-signature a.gradient-link:hover {
    transform: scale(1.05);
    display: inline-block;
}
@keyframes mover-degradado {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero-container, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .trust-grid, .services-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Navbar móvil */
    .nav-container { height: 90px; }
    .logo img { height: 52px; max-width: 230px; }
    .mobile-menu { top: 90px; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .mobile-lang-btn { display: flex; }
    .desktop-lang-btn { display: none; }

    /* Contenedores y grillas móviles */
    .hero { padding: 60px 0 80px; text-align: center; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .services-grid, .products-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    /* Panel de Categorías móvil */
    .category-panel-grid { grid-template-columns: 1fr; }
    .category-panel-content { padding: 30px 20px; }
    .category-panel-actions { border-left: none; border-top: 1px solid var(--border-color); padding: 30px 20px; }

    /* Ajustes del carrusel para móviles */
    .brands-marquee::before, .brands-marquee::after { width: 50px; }
    .brands-set { gap: 30px; padding-right: 30px; }
    .brands-set img { max-height: 45px; max-width: 100px; }
}
