:root {
    --primary: #E31E24;
    /* Red from Revenor Logo */
    --primary-light: #FF4D4D;
    --dark: #1a1a1a;
    --dark-alt: #222222;
    --gray: #888888;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --bg: #fafafa;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 4.5rem;
    /* Ensure consistent height */
}


.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: auto;
    height: 48px;
    /* Increased slightly for better proportion with two lines of text */
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 2px;
}

.brand-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--white);
    letter-spacing: 4px;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.9;
}

.scrolled .brand-name,
.scrolled .brand-subtitle {
    color: var(--dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    line-height: normal;
    /* Reset for flex alignment */
    display: flex;
    align-items: center;
}

.scrolled .nav-links a {
    color: var(--dark);
}

@media (max-width: 968px) {

    .nav-links a,
    .scrolled .nav-links a {
        color: var(--white);
    }
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

@media (min-width: 969px) {
    .nav-links a:hover::after {
        width: 100%;
    }
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-white {
    background: var(--white);
    color: var(--dark);
}

.btn-white:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    padding: 100px 10% 2rem;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    filter: brightness(0.9) contrast(1.05);
    /* Subtle enhancement */
}

.hero-video.fade-out {
    opacity: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    display: block;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: inherit;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--primary);
    text-shadow: none;
    display: inline;
    margin-bottom: 0;
    letter-spacing: inherit;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-hero-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-hero-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.hero-social-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    /* orange from palette */
    transition: var(--transition);
}

.hero-social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}

.hero-social-icon:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-social {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .highlight-text {
        font-size: 2.8rem;
    }
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.align-center {
    text-align: center;
}

/* Nosotros */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-image {
    position: relative;
    min-height: 400px;
    height: 100%;
}

.section-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 15px 15px 0 var(--primary);
}

@media (max-width: 768px) {
    .section-image img {
        box-shadow: 10px 10px 0 var(--primary);
    }
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.value-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Application Service Section */
.application-service {
    margin-top: 6rem;
    padding: 4rem 0;
    border-top: 1px solid var(--light-gray);
}

.service-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.service-intro {
    font-size: 1.1rem;
    color: #000;
    margin-top: 1rem;
    line-height: 1.8;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(211, 84, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.7;
    font-weight: 500;
}

.service-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .application-service {
        margin-top: 4rem;
        padding: 3rem 0;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Parallax Wrapper */
.content-parallax-wrapper {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80&w=2000');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.content-parallax-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.45));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

#nosotros,
#simulador,
#productos,
#galeria,
#distribuidores {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove internal borders that create horizontal lines */
.content-parallax-wrapper .application-service,
.content-parallax-wrapper .details-content,
.content-parallax-wrapper .category-tabs {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.content-parallax-wrapper .category-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.distributors-banner {
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 968px) {
    .content-parallax-wrapper {
        background-attachment: scroll;
        /* Fallback for mobile */
    }

    .content-parallax-wrapper::before {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 250px;
    background: #ddd;
    position: relative;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #eee, #ddd);
}

.product-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.btn-text {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--primary);
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-text:hover {
    color: var(--white);
}

.btn-text:hover::before {
    width: 100%;
}

.product-toggle {
    padding: 0.8rem 1.8rem;
}

.product-details {
    display: none;
}

/* Product Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 4px;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--white);
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--dark);
    cursor: pointer;
    z-index: 2002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-content {
    padding: 4rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

/* Modal Content Adjustments */
.modal-content .details-content {
    border-top: none;
    padding-top: 0;
}

.modal-content .sub-tabs {
    position: sticky;
    top: -4rem;
    background: var(--white);
    z-index: 10;
    padding-top: 1rem;
    margin-top: -1rem;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-modal {
        padding: 0;
    }

    .modal-container {
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-content {
        padding: 6rem 1.8rem 3rem;
    }

    .modal-close {
        top: 1.2rem;
        right: 1.2rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .modal-content .sub-tabs {
        top: -6rem;
        padding-bottom: 1.5rem;
    }
}

.details-content {
    padding-top: 1rem;
    border-top: 2px solid var(--light-gray);
}

.details-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    margin-top: 1.2rem;
    letter-spacing: 1px;
}

.details-content h4:first-child {
    margin-top: 0;
}

.details-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.6;
}

.details-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Estilos para listas que ya tienen emojis como viñetas */
.details-content ul.check-list li::before {
    display: none;
}

.details-content ul.check-list li {
    padding-left: 0;
}

.details-content h5 {
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(197, 160, 102, 0.2);
    padding-bottom: 0.3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.details-content h5:first-of-type {
    margin-top: 1rem;
}

.details-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}


/* Sub-tabs dentro de detalles */
.sub-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.sub-tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.sub-tab-btn.active {
    color: var(--primary);
}

.sub-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Distributors */
.distributors-banner {
    background: var(--dark-alt);
    color: var(--white);
    padding: 6rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.medium {
    grid-column: span 2;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Final CTA */
.cta-final {
    background: var(--primary);
    padding: 6rem 0;
    color: var(--white);
    text-align: center;
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    padding: 6rem 0 3rem;
    background: #0d0d0d;
    color: #999;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col ul a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: #888;
    display: block;
}

.social-icon:hover {
    background: var(--primary);
}

.social-icon:hover svg {
    fill: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.5;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col h3 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Toggle - Sophisticated Asymmetric Design */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2005;
    width: 35px;
    height: 35px;
    padding: 0;
}

.menu-toggle span {
    height: 2px;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
}

.menu-toggle span:nth-child(1) {
    width: 30px;
}

.menu-toggle span:nth-child(2) {
    width: 18px;
}

.menu-toggle span:nth-child(3) {
    width: 26px;
}

.scrolled .menu-toggle span {
    background: var(--dark);
}

.menu-toggle.active span {
    background: var(--white) !important;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    width: 30px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    width: 30px;
}

/* Responsive Header & Navigation - Premium Overlay */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(13, 13, 13, 0.92);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        gap: 3rem;
        padding: 2rem;
        z-index: 2000;
    }

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

    .nav-links li {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        letter-spacing: 4px;
        text-transform: uppercase;
        color: var(--white);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
        text-align: center;
        justify-content: center;
        width: 100%;
        padding: 0.5rem;
    }

    @media (max-width: 480px) {
        .nav-links a {
            font-size: 1rem;
            letter-spacing: 2px;
        }
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
        color: var(--white) !important;
    }

    .header-cta {
        display: none;
    }

    /* Hero adjustments */
    .hero-content {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 2rem;
        line-height: 1.1;
    }

    .hero p {
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 4rem;
    }

    .section-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
    }

    .hero-social {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .btn-hero-primary {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
    }
}





@media (max-width: 480px) {
    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 3rem;
        opacity: 0.9;
    }

    .btn-hero-primary {
        padding: 1.1rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    /* Grid Adjustments */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        gap: 3.5rem;
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    .menu-toggle {
        width: 35px;
        height: 28px;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Ensure proper stacking context for header elements */
.nav-container {
    position: relative;
    z-index: 1001;
}

.nav-links {
    z-index: 998;
    /* Behind the container content (like toggle) but high enough */
}

.menu-toggle {
    z-index: 1002;
    /* Above nav links */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}

/* Distributor Page Specific */
/* Distributor Page Specific - Redesign Iteration 2: Hybrid Showcase */
.hero-distributor {
    height: 75vh;
    position: relative;
    background-color: #050505;
    background-image:
        /* Layer 1: Corner Glows */
        radial-gradient(circle at 0% 0%, rgba(227, 30, 36, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(227, 30, 36, 0.4) 0%, transparent 60%),
        /* Layer 2: Architectural Grid */
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        /* Layer 3: Main Backdrop Image */
        url('../image/showroom_tigre.png');
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px, cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px;
    overflow: hidden;
}

/* Sophisticated Dark Gradient Overlay to ensure legibility and depth */
.hero-distributor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* Corner Accents Animation */
.hero-distributor::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(227, 30, 36, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(227, 30, 36, 0.15) 0%, transparent 40%);
    animation: glowMove 15s infinite alternate ease-in-out;
    z-index: 2;
    pointer-events: none;
}

@keyframes glowMove {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-geometric-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-glass-card {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 5rem 7rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    max-width: 1000px;
    margin: 0 auto;
}

.hero-distributor h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 15px;
    margin: 0;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    -webkit-text-fill-color: initial;
    background: none;
    line-height: 1;
}

.hero-subtitle {
    display: block;
    height: 4px;
    width: 100px;
    background: var(--primary);
    margin: 3rem auto 0;
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.5);
}

/* Micro-texture Overlay - Increased for architectural feel */
.hero-distributor .container {
    position: relative;
    z-index: 5;
}

.distributor-content {
    padding: 8rem 0;
    background: #f8f8f8;
}

.distributor-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.location-info-card {
    padding: 4rem;
    background: var(--dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-info-card h2 {
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.info-detail {
    margin-bottom: 2.5rem;
}

.info-detail h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 0.5rem;
}

.info-detail p {
    font-size: 1.1rem;
    font-weight: 600;
}

.map-wrapper {
    min-height: 500px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.2) contrast(1.1);
}

.features-distributor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

.feature-dist-item {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-dist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}



@media (max-width: 968px) {
    .distributor-content {
        padding: 3rem 0;
    }

    .distributor-split {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .location-info-card {
        padding: 2.5rem 1.5rem;
        text-align: left;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .location-info-card h2 {
        font-size: 0.95rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
        position: relative;
        display: inline-block;
    }

    .location-info-card h2::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--primary);
    }

    .info-detail {
        margin-bottom: 1.8rem;
    }

    .info-detail h4 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.5);
    }

    .info-detail p {
        font-size: 1rem;
        line-height: 1.5;
        color: #e0e0e0;
    }

    .location-info-card .btn {
        width: 100%;
        padding: 1rem;
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero-distributor {
        height: 60vh;
        padding-top: 80px;
    }

    .hero-glass-card {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }

    .hero-distributor h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .hero-geometric-accent {
        width: 100%;
        clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .hero-subtitle {
        margin-top: 1.5rem;
    }

    .features-distributor {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        min-height: 320px;
        height: 320px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
}

/* Extra small devices (Galaxy S8/S9, etc.) */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section {
        padding: 4rem 0;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .distributors-banner {
        padding: 3rem 1.5rem;
    }

    .distributors-banner h2 {
        font-size: 1.5rem;
    }

    .location-info-card {
        padding: 2.5rem 1.5rem;
    }

    .hero-distributor h1 {
        font-size: 2rem;
    }
}

#simulador {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 8rem 0;
    position: relative;
    color: var(--dark);
    overflow: hidden;
}

#simulador::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/white-diamond.png');
    opacity: 0.3;
    pointer-events: none;
}

.simulator-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.simulator-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.texture-display {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.texture-display:hover {
    transform: scale(1.02);
}

.base-texture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.preview-info {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

#selected-color-name,
#selected-texture-name {
    color: #444;
    font-weight: 600;
    font-size: 0.9rem;
}

.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.simulator-step h3 {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.texture-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.texture-btn {
    padding: 1.2rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #444;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.texture-btn:hover {
    background: #fff;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: var(--dark);
}

.texture-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.25);
    transform: translateY(-2px);
}

.category-tabs {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    /* Firefox */
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 0.8rem 1.8rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tab-btn:hover {
    background: #fff;
    border-color: #ccc;
    color: var(--dark);
}

.tab-btn.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.color-swatch {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.color-swatch:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.color-swatch.active {
    border-color: var(--dark);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px) scale(1.15);
}

@media (max-width: 968px) {
    .simulator-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .simulator-preview,
    .simulator-controls {
        width: 100%;
        max-width: 500px;
        /* Force consistent max width for alignment */
    }

    .texture-display {
        aspect-ratio: 1 / 1;
        /* Keep square on mid-size mobile */
        max-height: 400px;
    }

    .texture-selector {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .texture-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.7rem;
    }

    .color-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-tabs {
        overflow-x: auto;
        padding-bottom: 0.8rem;
        padding-right: 1.5rem;
        /* Add extra room at the end for scrolling */
        justify-content: flex-start;
        display: flex;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        /* Ensure it spans the controls width */
    }

    .category-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .category-tabs::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    .tab-btn {
        white-space: nowrap;
    }
}

/* Fix for white stripe/overflow */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Ensure header elements have correct contrast when not scrolled on dark backgrounds */
.hero+#main-header:not(.scrolled) .menu-toggle span,
.hero-distributor+#main-header:not(.scrolled) .menu-toggle span {
    background: var(--white);
}

/* Navigation items hover effect fix for mobile */
@media (max-width: 968px) {
    .nav-links a:hover::after {
        width: 0;
        /* Remove hover underline on mobile */
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-subtitle {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .simulator-container {
        padding: 1.5rem 1rem;
    }

    .texture-display {
        max-height: 320px;
    }

    .color-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .tab-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.75rem;
        font-weight: 700;
        white-space: nowrap;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Innovation Carousel Styles */
.innovation-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1 !important;
    z-index: 2;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}