:root {
    --primary-color: #6824d3;
    /* Deep Purple */
    --primary-light: #7C4DFF;
    --accent-color: #FFD700;
    /* Gold/Yellow */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

h1,
h2,
h3,
h4 {
    color: var(--text-color);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

p,
li,
span,
a {
    font-family: 'Roboto', sans-serif;
}

/* Global Header */
.global-header {
    background: #ffffff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logo img {
    display: block;
    height: 50px;
    width: auto;
}

.header-slogan {
    flex: 1;
    display: none;
    /* Oculto en móvil */
    justify-content: center;
}

.header-slogan img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Mostrar slogan solo en desktop */
@media (min-width: 768px) {
    .header-slogan {
        display: flex;
    }
}

/* Menu Overlay Backdrop */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.overlay-menu.open {
    right: 0;
}

.menu-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.menu-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.menu-nav {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.menu-nav a {
    padding: 1.2rem 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.menu-nav a:hover {
    background: #f5f5f5;
    border-left-color: var(--primary-color);
    padding-left: 2.5rem;
}

.menu-nav a.active {
    background: var(--primary-color);
    color: white;
    border-left-color: var(--primary-color);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Product Page Layout - Purple Hero */
.purple-hero-block {
    height: 380px;
    background: var(--primary-color);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.floating-card-wrapper {
    position: relative;
    z-index: 10;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    position: relative;
    transition: color 0.3s;
}

/* Active State & Hover Underline */
.desktop-menu a:not(.btn-catalog)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.desktop-menu a:hover::after,
.desktop-menu a.active::after {
    width: 100%;
}

.desktop-menu a:hover,
.desktop-menu a.active {
    color: var(--accent-color);
}

/* Catalog Button */
.btn-catalog {
    color: var(--accent-color) !important;
    font-weight: 700;
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.5rem !important;
    border-radius: 20px;
    transition: all 0.3s !important;
}

.btn-catalog:hover,
.btn-catalog.active {
    background: var(--accent-color);
    color: var(--primary-color) !important;
}

.btn-catalog::after {
    display: none;
    /* No underline for button */
}

/* Dropdown Menu Enhanced */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    padding: 1rem 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border-radius: 12px;
    top: 100%;
    left: 0;
    overflow: hidden;
    animation: fadeInUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-content a {
    color: var(--text-color) !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color) !important;
    padding-left: 25px !important;
    /* Slide effect */
}

.dropdown-content a::after {
    display: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Product Slider */
.slider-wrapper {
    position: relative;
    padding: 0 0.1rem;
}

.slider-container {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 calc(100% - 2rem);
    /* 1 item on mobile */
    min-width: 0;
}

@media(min-width: 600px) {
    .slider-item {
        flex: 0 0 calc(50% - 2rem);
        /* 2 items on tablet */
    }
}

@media(min-width: 1024px) {
    .slider-item {
        flex: 0 0 calc(25% - 2rem);
        /* 4 items on desktop */
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo span {
    display: none;
    /* Hide text if present */
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
    display: none;
    /* Mobile first hidden, show on desktop */
}

@media(min-width: 768px) {
    .search-bar {
        display: block;
    }
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: none;
    outline: none;
}



/* Mobile Menu Logic */
.desktop-menu.show-mobile {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s;
}

.desktop-menu.show-mobile a {
    color: white;
    padding: 1rem;
    display: block;
    margin: 0 !important;
    text-align: center;
}

.desktop-menu.show-mobile .dropdown {
    width: 100%;
    text-align: center;
}

.desktop-menu.show-mobile .dropdown-content {
    display: block;
    position: static;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    width: 100%;
}

.desktop-menu.show-mobile .dropdown-content a {
    padding: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.nav-links button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 1rem 0;
    /* Increase hit area */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 8px;
    top: 100%;
    left: 0;
    overflow: hidden;
    animation: fadeInUp 0.3s;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Product Detail Section */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media(min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.product-image {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
   /* padding: 0 rem; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.category-tag {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.quotation-form {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    font-family: inherit;
}

/* Product Detail Refined */
.product-info-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow like reference */
}

.thumbnails-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.thumb-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: white;
    padding: 5px;
    transition: all 0.2s;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary-color);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 36, 211, 0.3);
}


/* Related Products */
.section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card .product-image-wrapper {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1rem;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.btn-small,
.btn-ver-mas {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s;
}

.btn-small:hover,
.btn-ver-mas:hover {
    background-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(104, 36, 211, 0.4);
}

/* Footer */
footer {
    background-color: #BDBDBD;
    /* Light gray from reference */
    padding: 4rem 0;
    margin-top: 0rem;
    color: #444;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

@media(min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
}

.social-icons a {
    color: #444;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

/* Share Section */
.share-section {
    background-color: #EEEEEE;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- LANDING PAGE STYLES --- */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s forwards;
}

/* Dark Theme Variables for Landing */
:root {
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-text: #ffffff;
    --accent-glow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1567&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    margin-top: -80px;
    /* Counteract header height */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services */
.services-section {
    padding: 5rem 1rem;
    background: var(--dark-bg);
    color: white;
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--accent-glow);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.service-card p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Why Choose Us */
.differentials-section {
    padding: 5rem 1rem;
    background: #000;
    color: white;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.diff-item span {
    font-size: 2.5rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 1rem;
    background: var(--dark-bg);
    color: white;
}

.testimonial-card {
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: 12px;
    margin: 1rem;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
}

.testimonial-author {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--accent-color);
    font-style: normal;
}

/* CTA Finale */
.cta-section {
    padding: 5rem 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 2rem;
}

/* Navbar Scrolled State */
header.scrolled {
    background-color: rgba(98, 0, 234, 0.95);
    padding: 0.8rem 2rem;
    backdrop-filter: blur(10px);
}

/* Responsive Font Sizes */
@media(max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
}