:root {
    /* Palette */
    --navy: #0b1b2b;
    --brand-orange: #FF8000;
    --celeste: #19a7ff;
    --celeste-dark: #0088e0;
    --light-gray: #f5f7fb;
    --white: #ffffff;
    --whatsapp: #25D366;

    /* Functional colors */
    --text-main: #1a202c;
    --text-muted: #64748b;
    --bg-body: var(--light-gray);
    --bg-card: var(--white);

    /* Layout Sizes */
    --sidebar-width: 260px;
    --header-height: 64px;
    --container-max: 1200px;
    --text-max-width: 70ch;

    /* Core spacing tokens */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 3.5rem;
    /* 56px */

    /* Typography System (Responsive) */
    --fs-h1: clamp(1.75rem, 5vw, 2.5rem);
    --fs-h2: clamp(1.4rem, 4vw, 1.85rem);
    --fs-h3: clamp(1.1rem, 2vw, 1.25rem);
    --fs-body: clamp(0.9rem, 1vw, 1rem);
    --fs-small: 0.85rem;
    --fs-tiny: 0.75rem;

    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s ease-out;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: var(--fs-body);
}

.container {
    width: 92%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid Utilities */
.section {
    padding: var(--space-xl) 0;
}

.section-title {
    margin-bottom: var(--space-lg);
}

/* Typography */
h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Global Header/Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--white);
    color: var(--brand-orange);
    z-index: 1000;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    border-right: 1px solid #eee;
}

.navbar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--brand-orange);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.logo {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.logo img {
    max-width: 120px;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 8px;
    object-fit: contain;
}

.company-name {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.company-name .accent {
    color: var(--celeste);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-top: 5px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.nav-links a i {
    width: 18px;
    text-align: center;
    color: var(--brand-orange);
}

.nav-links a:hover {
    color: var(--brand-orange);
    background: #fff5eb;
}

.nav-links a.active {
    background: var(--brand-orange);
    color: var(--white);
}

.nav-links a.active i {
    color: var(--white);
}

.search-container {
    margin-top: auto;
    position: relative;
    padding-top: var(--space-md);
}

.search-container input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    padding: 0.6rem 0.75rem;
    padding-right: 2.2rem;
    border-radius: 8px;
    outline: none;
    font-size: 0.85rem;
}

.search-container button {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    background: none;
    border: none;
    color: var(--brand-orange);
    cursor: pointer;
}

.search-results {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 250px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
    max-height: 350px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    color: var(--text-main);
}

.search-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.search-item:hover {
    background: #f9f9f9;
}

.search-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.search-results.active {
    display: block;
}

/* Main Layout */
main {
    margin-left: var(--sidebar-width);
    padding-bottom: 0px;
}

/* Improved Hero Section */
.hero {
    min-height: 85vh;
    background: var(--navy);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, var(--navy) 40%, rgba(11, 27, 43, 0.9) 100%);
    backdrop-filter: blur(2px);
}

.hero-eyebrow {
    color: var(--celeste);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-content h2 {
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 15ch;
}

.hero-content p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 3.5rem;
    max-width: 52ch;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-btn-secondary {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.hero-btn-secondary:hover {
    color: var(--celeste);
    transform: translateX(5px);
}

.hero-image-side {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image-side .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    /* Prioritize the person on the right */
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-image-side .slide.active {
    opacity: 1;
}

/* Subtle overlay to blend into the navy */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, transparent, rgba(11, 27, 43, 0.1) 100%);
    pointer-events: none;
}

/* Grid Categories */
.categories-grid,
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.category-card,
.bento-item {
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

.category-card img,
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img,
.bento-item:hover img {
    transform: scale(1.08);
}

.category-card::after,
.bento-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 128, 0, 0.95) 0%, rgba(255, 128, 0, 0.2) 70%);
}

.category-info,
.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.category-info h3,
.bento-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Product Card */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--celeste);
}

.product-image {
    height: 180px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-info h3 {
    font-size: 0.95rem;
    color: var(--brand-orange);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

/* Detail View Refined */
.detail-view {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    padding-top: var(--space-md);
    align-items: start;
}

.detail-img {
    background: var(--white);
    border-radius: 20px;
    padding: var(--space-lg);
    border: 1px solid #eee;
    position: sticky;
    top: 100px;
}

.detail-img img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.detail-info {
    max-width: var(--text-max-width);
}

.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    font-size: var(--fs-tiny);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumbs a:hover {
    color: var(--celeste);
}

.detail-info h1 {
    font-size: var(--fs-h1);
    margin-bottom: 1.5rem;
    color: var(--brand-orange);
}

/* Chips for Suministro/Garantia */
.product-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.meta-chip {
    background: #f1f5f9;
    padding: 0.6rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-orange);
    font-weight: 600;
}

.meta-chip i {
    color: var(--celeste);
}

.product-description {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2.5rem;
}

.product-description span {
    display: block;
    margin-bottom: 0.75rem;
}

/* WhatsApp Button (Maximum Width refined) */
.btn-whatsapp-large {
    background: var(--whatsapp);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1rem;
    max-width: 400px;
    width: 100%;
    transition: var(--transition);
}

.btn-whatsapp-large:hover {
    background: #20ba5a;
    transform: scale(1.02);
}

/* Brands Carousel */
.brands-wrap {
    padding: var(--space-lg) 0;
    overflow: hidden;
}

.brands-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scrollBrands 30s linear infinite;
}

.brands-track img {
    height: 35px;
    filter: grayscale(1) opacity(0.35);
    transition: var(--transition);
}

.brands-track:hover img {
    filter: grayscale(0) opacity(1);
}

@keyframes scrollBrands {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Footer Style */
.footer {
    background: var(--brand-orange);
    color: #000000;
    padding: var(--space-lg) 0;
    margin-left: var(--sidebar-width);
    position: relative;
    z-index: 1;
}

.footer p,
.footer-links ul li a,
.footer-contact ul li {
    color: #000000 !important;
}

.footer h3 {
    color: var(--white) !important;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-info .footer-logo {
    height: 110px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--celeste);
}

.footer-contact ul li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.footer-contact i {
    color: var(--celeste);
    margin-top: 3px;
}


.footer-bottom {
    background: #000000;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--white);
}

.footer-bottom p {
    margin: 0;
    color: var(--white) !important;
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .detail-view {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-img {
        position: relative;
        top: 0;
        padding: 2rem;
    }

    .detail-img img {
        max-height: 350px;
    }

    .hero-content {
        padding: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    :root {
        --sidebar-width: 100%;
    }

    .navbar {
        height: var(--header-height);
        flex-direction: row;
        align-items: center;
        padding: 0 1.5rem;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
    }

    .logo {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 36px;
        width: auto;
        margin: 0;
    }

    .company-name {
        font-size: 0.8rem;
        text-align: left;
    }

    .company-name .accent {
        margin-top: 0;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 250px;
        height: calc(100vh - var(--header-height));
        background: var(--navy);
        padding: 2rem 1.5rem;
        transition: var(--transition);
        z-index: 99;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        left: 0;
    }

    .search-container {
        display: none;
    }

    main {
        margin-left: 0;
        padding-top: var(--header-height);
    }

    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .hero-image-side {
        height: 350px;
        order: 1;
    }

    .hero-image-side .slide {
        background-position: center;
        /* Keep faces visible */
    }

    .hero-content {
        padding: 4rem 1.5rem;
        order: 2;
        background: var(--navy);
        text-align: center;
        align-items: center;
    }

    .hero-content h2 {
        max-width: 100%;
    }

    .footer {
        margin-left: 0;
    }

    .hero-image-side {
        height: 50vh;
        order: 1;
    }

    .hero-image-side .slide {
        background-position: center 20%;
        /* Keep faces visible */
    }

    .hero-content {
        order: 2;
        padding: var(--space-lg) var(--space-md);
        background: var(--navy);
        text-align: center;
        backdrop-filter: none;
    }

    .hero-content h2 {
        margin-inline: auto;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .hero-btns .btn-primary {
        width: 100%;
    }

    .categories-grid,
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .categories-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn-whatsapp-large {
        max-width: 100%;
    }
}

/* Button Global */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--celeste);
    color: white !important;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--celeste-dark);
    transform: scale(1.03);
}