/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary-gold: #F5C400;
    --primary-dark: #1A1A1A;
    
    /* Colores secundarios dorados */
    --gold-light: #F8D844;
    --gold-medium: #E8B000;
    --gold-dark: #D4A200;
    --gold-accent: #FFF3B3;
    
    /* Grises y neutros */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Colores de texto */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-light: #737373;
    --text-gray: #737373;
    --text-white: #FFFFFF;
    
    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --light-bg: #F8F9FA;
    --bg-dark: #1A1A1A;
    --bg-darker: #0F0F0F;
    
    /* Otros */
    --secondary-dark: #1A1A1A;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary-gold);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-medium));
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 196, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 196, 0, 0.4);
    background: linear-gradient(135deg, var(--gold-light), var(--primary-gold));
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 196, 0, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000000;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--primary-gold);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-white);
}

.logo-img {
    width: 200px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-medium));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
}

.contact-phone:hover {
    color: var(--primary-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    box-sizing: border-box;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(45, 45, 45, 0.6));
}

.hero-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: calc(100vh - 160px);
}

.hero-content {
    flex: 1;
    max-width: 50%;
    color: white;
    padding-right: 2rem;
    text-align: left;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: white;
    opacity: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F5C400;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.scroll-arrow {
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Hero Form Styles */
.hero-form {
    flex: 1;
    max-width: 50%;
}

.form-container {
    background-color: rgba(26, 26, 26, 0.5);
    padding: 2rem;
    margin-left: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
}

.form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    text-align: center;
}

.form-container p {
    color: var(--text-white);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    padding: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-full {
    width: 100%;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--gold-accent);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(245, 196, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F5C400, #E8B000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #1A1A1A;
    font-weight: 600;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 3rem 0; /* Reducido de 5rem a 3rem */
    min-height: 100vh; /* Asegurar que ocupe toda la altura de pantalla */
    display: flex;
    align-items: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* Reducido de 4rem a 2rem */
    align-items: center;
    width: 100%;
}

.section-title {
    font-size: 2rem; /* Reducido de 2.5rem a 2rem */
    margin-bottom: 0.5rem; /* Reducido de 1rem a 0.5rem */
    color: #1A1A1A;
}

.section-subtitle {
    font-size: 1rem; /* Reducido de 1.25rem a 1rem */
    margin-bottom: 1rem; /* Reducido de 2rem a 1rem */
    color: #4A4A4A;
}

.about-description p {
    margin-bottom: 1rem; /* Reducido de 1.5rem a 1rem */
    font-size: 0.95rem; /* Reducido de 1.1rem a 0.95rem */
    line-height: 1.5; /* Reducido de 1.7 a 1.5 */
}

.about-services {
    margin-top: 1rem; /* Reducido de 2rem a 1rem */
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* Reducido de 1rem a 0.75rem */
    margin-bottom: 0.75rem; /* Reducido de 1.5rem a 0.75rem */
}

.service-item i {
    font-size: 1.25rem; /* Reducido de 1.5rem a 1.25rem */
    color: #F5C400;
    margin-top: 0.25rem;
}

.service-item h4 {
    margin-bottom: 0.25rem; /* Reducido de 0.5rem a 0.25rem */
    color: #1A1A1A;
    font-size: 0.95rem; /* Añadido tamaño más pequeño */
}

.service-item p {
    font-size: 0.85rem; /* Añadido tamaño más pequeño */
    line-height: 1.4;
    margin: 0;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%; /* Asegurar que el contenedor tome toda la altura disponible */
}

.about-image img {
    width: 100%;
    height: 100%; /* Cambiar a 100% para ocupar todo el contenedor */
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, rgba(245, 196, 0, 0.95), rgba(232, 176, 0, 0.95)); /* Gradiente más llamativo */
    color: #1A1A1A;
    padding: 1.5rem 2rem; /* Aumentado el padding */
    border-radius: 12px; /* Bordes más redondeados */
    text-align: center;
    font-weight: 700; /* Más grueso */
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(245, 196, 0, 0.4); /* Sombra más prominente */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Borde sutil */
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
    transform: scale(1.05); /* Ligeramente más grande */
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.overlay-number {
    font-size: 2rem; /* Número más grande */
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.overlay-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilo para resaltar sectores de repuestos */
.sector-highlight {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    display: inline;
}

.sector-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-light));
    opacity: 0.7;
}

/* Responsive para la sección About */
@media (max-width: 992px) {
    .about {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-image {
        height: 350px; /* Altura fija para tablets cuando está en columna */
    }
    
    .about-image img {
        height: 100%; /* Mantener 100% del contenedor */
    }
    
    .image-overlay {
        bottom: 1rem;
        left: 1rem;
        padding: 1.2rem 1.5rem;
    }
    
    .overlay-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .about-description p {
        font-size: 0.9rem;
    }
    
    .service-item {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .about-image {
        height: 280px; /* Altura fija para móviles */
    }
    
    .about-image img {
        height: 100%; /* Mantener 100% del contenedor */
    }
    
    .image-overlay {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .overlay-number {
        font-size: 1.6rem;
    }
    
    .overlay-text {
        font-size: 0.8rem;
    }
}

/* Brands Section */
.brands-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.brands-header {
    text-align: center;
    margin-bottom: 3rem;
}

.brands-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.brand-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.brand-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 5px;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-logo img {
    transform: scale(1.05);
}

.brand-card h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(245, 196, 0, 0.15);
    border-color: var(--gold-accent);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px; /* Tamaño fijo para todas las imágenes */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 90%;
    max-height: 180px; /* Altura máxima para mantener proporción */
    object-fit: contain; /* Muestra la imagen completa */
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card-carousel:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-dark);
}

.product-content p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature {
    background: var(--light-bg);
    color: var(--secondary-dark);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-gold);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

/* Product Carousel Styling */
.product-carousel-wrapper {
    width: 100%;
    position: relative;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.product-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Product Slide - Reduced width to show 3-4 products */
.product-slide {
    flex: 0 0 25%; /* 25% width para mostrar 4 productos en desktop */
    padding: 0 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Product Card Container */
.product-card-carousel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Carousel controls */
.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: var(--primary-gold);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Carousel indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

/* Footer Styles */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
}

.footer-content p {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-info {
    margin: 1rem 0;
    text-align: center;
}

.footer-info p {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-info i {
    color: var(--primary-gold);
}
.footer-bottom{
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
}

/* Ajustes para la página de gracias */
.gracias .footer-info h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.gracias .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.gracias .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gracias .social-icons a:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.gracias .copyright {
    margin-top: 2rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-medium);
    transform: translateY(-5px);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(245, 196, 0, 0.15);
    border-color: var(--primary-gold);
}

.service-card-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(245, 196, 0, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.service-description {
    flex: 1;
}

.service-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.feature-item i {
    color: var(--primary-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Services CTA */
.services-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--gray-800));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(245, 196, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.services-cta h3 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.services-cta p {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-to-form {
    position: relative;
    overflow: hidden;
}

.scroll-to-form:hover {
    transform: translateY(-3px);
}

/* Responsive Services */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .services-cta {
        padding: 2rem;
    }
    
    .services-cta h3 {
        font-size: 1.5rem;
    }
    
    .service-features {
        gap: 0.75rem;
    }
}

/* Responsive ajustes */
@media (max-width: 1200px) {
    .product-slide {
        flex: 0 0 33.333%; /* 3 productos en pantallas medianas */
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
    }
    
    .hero-content, .hero-form {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .brand-card {
        padding: 1rem;
    }
    
    .brand-logo {
        height: 80px;
        margin-bottom: 0;
    }
    
    .brand-logo img {
        max-height: 60px;
    }
    
    .brand-card h3 {
        display: none;
    }
    
    .product-slide {
        flex: 0 0 50%; /* 2 productos en tablets */
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-image img {
        max-height: 160px;
    }
}

@media (max-width: 768px) {
    /* Prevenir scroll horizontal */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-contact {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        max-width: 100%;
        word-wrap: break-word;
        margin-top: 1rem;
    }
    
    .hero-wrapper {
        min-height: auto;
        padding: 1.5rem 0;
        max-width: 100%;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 70px;
        overflow-x: hidden;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }
    
    /* Features Section - Mobile Optimized */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
        text-align: center;
        margin: 0;
        max-width: 100%;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 0.75rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0;
    }
    
    /* Hero Stats - Mantener en fila con letra más pequeña */
    .hero-stats {
        gap: 0.5rem;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow: hidden;
        max-width: 100%;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: 33.333%;
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .stat-label {
        font-size: 0.75rem;
        word-wrap: break-word;
        line-height: 1.1;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0;
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .product-slide {
        flex: 0 0 100%; /* 1 producto en móviles */
    }
    
    .product-content h3 {
        font-size: 0.95rem;
    }
    
    .product-content p {
        font-size: 0.8rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
    
    /* Hero Stats móvil - Aún más compacto pero en fila */
    .hero-stats {
        gap: 0.5rem;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-number {
        font-size: 1.4rem;
        margin-bottom: 0;
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: auto;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 98;
    transition: all 0.3s ease;
    padding: 0 20px;
    font-weight: 600;
    overflow: hidden;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-btn i {
    font-size: 1.8rem;
    margin-right: 0;
    transition: all 0.3s ease;
}

.whatsapp-text {
    font-size: 0.95rem;
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: 0;
}

.whatsapp-btn:hover .whatsapp-text {
    opacity: 1;
    width: 110px;
    margin-left: 10px;
}

.whatsapp-btn:hover i {
    margin-right: 0;
}

/* WhatsApp pulse animation */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    transform: translate(-50%, -50%) scale(0);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 6rem;
        right: 2rem;
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn:hover {
        transform: translateY(-3px) scale(1.1);
    }
    
    .whatsapp-btn i {
        margin-right: 0;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .whatsapp-btn {
        bottom: 5.5rem;
        right: 2rem;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn i {
        font-size: 1.4rem;
    }
}

/* Product Quote Modal Styles - Ultra Compact Version */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-white);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(10px);
    transition: all 0.25s ease;
    border: 1px solid var(--primary-gold);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-medium));
    border-radius: 7px 7px 0 0;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(26, 26, 26, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    padding: 1rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-form .form-row {
    display: flex;
    gap: 0.5rem;
}

.quote-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.quote-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.3);
}

.quote-form textarea {
    resize: vertical;
    min-height: 60px;
}

.form-help {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: var(--text-light);
    font-style: italic;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

.modal-actions .btn {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Select2 Custom Styles - Purple/Gold Theme */
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--gray-200) !important;
    border-radius: 4px !important;
    min-height: 80px !important;
    padding: 0.25rem !important;
    font-size: 0.85rem !important;
    background-color: var(--bg-white) !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.3) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary-gold) !important;
    border: 1px solid rgba(245, 196, 0, 0.8) !important;
    color: var(--primary-dark) !important;
    border-radius: 3px !important;
    padding: 2px 6px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin: 2px 2px 2px 0 !important;
    order: 1 !important;
    max-width: calc(100% - 20px) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--primary-dark) !important;
    margin-right: 3px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(26, 26, 26, 0.1) !important;
    border-radius: 2px !important;
}

.select2-container--default .select2-search--inline {
    order: 999 !important;
    width: 100% !important;
    min-width: 150px !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 0.85rem !important;
    margin: 2px 0 !important;
    padding: 2px 4px !important;
    min-width: 100px !important;
    width: 100% !important;
    text-align: left !important;
    direction: ltr !important;
}

.select2-dropdown {
    border: 1px solid var(--primary-gold) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-gold) !important;
    color: var(--primary-dark) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(245, 196, 0, 0.2) !important;
    color: var(--primary-dark) !important;
}

/* Asegurar que el dropdown de Select2 esté por encima del modal */
.select2-container--open .select2-dropdown {
    z-index: 10000 !important;
}

.select2-container {
    width: 100% !important;
}

/* Modal Responsive - Ultra Compact */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 0.5rem;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-content {
        padding: 0.75rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .quote-form .form-row {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
        gap: 0.4rem;
    }
    
    .modal-actions .btn {
        width: 100%;
        padding: 0.6rem;
    }
    
    .select2-container--default .select2-selection--multiple {
        min-height: 70px !important;
    }
}

@media (max-width: 576px) {
    .modal-content {
        padding: 0.5rem;
    }
    
    .quote-form {
        gap: 0.4rem;
    }
    
    .select2-container--default .select2-selection--multiple {
        min-height: 65px !important;
    }
}

/* Estilos de accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-gold);
    color: var(--primary-dark);
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--primary-gold);
}

/* Mejoras de accesibilidad para foco */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Estilos de foco personalizados para botones del carrusel */
.carousel-btn:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.3);
}

/* Mejora del contraste para textos en fondos claros */
.feature-card p,
.product-content p {
    color: var(--gray-700);
}

/* Estilos para la página de gracias */
.gracias {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-light);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.mensaje-gracias {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mensaje-gracias:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(245, 196, 0, 0.15);
    border-color: var(--gold-accent);
}

.mensaje-gracias i {
    font-size: 80px;
    color: var(--primary-gold);
    margin-bottom: 25px;
    display: block;
}

.mensaje-gracias h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.mensaje-gracias p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.botones {
    margin-top: 30px;
}

.botones .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Responsive para la página de gracias */
@media (max-width: 768px) {
    .gracias {
        padding: 80px 0;
    }
    
    .mensaje-gracias {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .mensaje-gracias i {
        font-size: 60px;
    }
    
    .mensaje-gracias h1 {
        font-size: 2rem;
    }
    
    .mensaje-gracias p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .mensaje-gracias {
        padding: 25px 15px;
    }
    
    .mensaje-gracias i {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .mensaje-gracias h1 {
        font-size: 1.8rem;
    }
}

/* Mejora visibilidad del texto "Descubre más" */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.scroll-arrow {
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive ajustes para .scroll-indicator */
@media (max-width: 768px) {
    /* ...existing code... */
    
    .scroll-indicator {
        bottom: 5rem; /* Ajustado para evitar superposición con botones */
    }
}

@media (max-width: 576px) {
    /* ...existing code... */
    
    .scroll-indicator {
        bottom: 0.5rem; /* Aún más abajo en pantallas pequeñas */
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .scroll-arrow {
        margin-top: 0.3rem;
    }
}

/* Form Messages */
.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.form-message i {
    font-size: 1.1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for buttons */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}