:root {
    /* Color Palette - Updated to Blue/Gold Theme */
    --primary-color: #003a8c;
    /* Darker Blue */
    --secondary-color: #f5f5f5;
    --accent-color: #e3a623;
    /* Custom Gold/Orange */
    --accent-hover: #c48c1a;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --bg-dark: #002147;
    --body-bg: radial-gradient(circle, #2e60b2 0%, #002147 100%);
    --success: #28a745;
    --whatsapp-color: #25d366;
    --danger: #dc3545;
    --white: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --container-mobile-width: 90%;
}

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

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

h1,
h2,
h3,
h4,
.headline {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* Header Styles */
header {
    background: #002147;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
    height: 60px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.contact-info .item span {
    color: var(--accent-color);
    font-weight: 600;
}

nav {
    background: var(--accent-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 12px 0;
}

.nav-links a {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #002147 !important;
}

.social-icon i {
    color: white;
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.social-icon a:hover i {
    color: #002147;
}

/* Hamburger Menu Icon */
.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}


/* Hero Section */
.hero {
    height: 80vh;
    background: url('../img/Banner Principal.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 700px;
    text-align: left;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    background: #c5a02c;
}

/* Grid Sections */
.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.promo-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.2;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
    transition: transform 0.5s ease;
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

/* Color Catalog placeholder */
.color-catalog {
    padding: var(--section-padding);
    background: var(--secondary-color);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.color-item {
    aspect-ratio: 1;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #002147;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

/* Category Section Title Smoothing */
.category-section h1 {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 50px;
    color: white;
    /* Matching reference image color? Wait, screenshot shows it over blue, let's see */
    font-size: 2.5rem;
}

.product-page-layout {
    display: flex;
    gap: 40px;
}


.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #002d6b;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 25px;
    border-bottom: none;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-item {
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #cbd5e0;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.category-item.active {
    background: var(--accent-color);
    color: #002147;
    font-weight: 700;
    border-radius: 4px;
}

.category-item.active::after {
    content: "❯";
    font-size: 0.8rem;
}

.product-gallery-main {
    flex-grow: 1;
}

/* Skeleton Screen */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

.skeleton-card {
    height: 350px;
    width: 100%;
    margin-bottom: 20px;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Updated Grid */
.dynamic-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: opacity 0.3s ease;
}

.product-item-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-item-img {
    height: 250px;
    background: #f9f9f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-item-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-item-info p {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 25px;
    min-height: 2.8em;
}

.product-item-info .btn {
    background: var(--accent-color);
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
    border-radius: 8px;
    width: 100%;
}

.product-item-info .btn:hover {
    background: var(--accent-hover);
}

.dynamic-product-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsiveness Queries */
@media (max-width: 1024px) {
    .dynamic-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .sidebar h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 0;
    }

    .contact-info {
        justify-content: center;
    }

    /* Mobile Navigation Drawer */
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        justify-content: flex-end;
        padding-right: 5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #003a8c;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: 0.4s ease;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links .social-icon i {
        font-size: 1.5rem;
    }

    .hero {
        justify-content: center;
        text-align: center;
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .dynamic-product-grid {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Floating Widget */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wa-button {
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
}

.wa-button:hover {
    transform: scale(1.1);
    background-color: #1eb956;
}

.wa-form-container {
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    overflow: hidden;
    display: none;
    /* Hidden by default */
    transform-origin: bottom right;
    animation: wa-slide-in 0.4s ease-out;
}

@keyframes wa-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wa-form-container.active {
    display: block;
}

.wa-form-header {
    background: var(--whatsapp-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-form-header i {
    font-size: 2rem;
}

.wa-form-header .wa-header-text h4 {
    margin: 0;
    font-size: 1.1rem;
}

.wa-form-header .wa-header-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.wa-form-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wa-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wa-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.wa-form-body input,
.wa-form-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: #f8fafc;
}

.wa-form-body input:focus,
.wa-form-body textarea:focus {
    border-color: var(--whatsapp-color);
    background: #fff;
}

.wa-form-body textarea {
    height: 100px;
    resize: none;
}

.wa-btn-send {
    background: var(--whatsapp-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.wa-btn-send:hover {
    background: #1eb956;
}

@media (max-width: 480px) {
    .wa-form-container {
        width: calc(100vw - 40px);
    }

    .wa-widget-container {
        bottom: 20px;
        right: 20px;
    }
}

/* Product Detail Layout */
.product-main-container {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--card-shadow);
    margin: 40px auto;
    position: relative;
    z-index: 10;
    max-width: var(--container-width);
}

.product-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.product-gallery {
    flex: 1;
    max-width: 500px;
}

.product-gallery .main-img {
    width: 100%;
    max-width: 350px;
    max-height: 350px;
    object-fit: contain;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
}

.product-info-conversion {
    flex: 1;
}

.product-tagline {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.feature-text strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.feature-text span {
    font-size: 0.9rem;
    font-weight: 600;
}

.how-to-use-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.step-card {
    background: #fdfdfd;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    background: var(--whatsapp-color) !important;
    color: white !important;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    margin-top: 20px;
}

.btn-whatsapp:hover {
    background: #1eb956 !important;
}

@media (max-width: 768px) {
    .product-main-container {
        padding: 30px 20px;
        margin-top: 20px;
        width: 95%;
    }

    .product-flex {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery {
        max-width: 100%;
    }

    .product-features-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-to-use-grid {
        grid-template-columns: 1fr;
    }
}