/* ================================================
   RUGGERI DISTRIBUCIONES - HOJA DE ESTILOS
   ================================================
   Índice:
   1. Variables CSS
   2. Reset y Estilos Base
   3. Utilidades
   4. Header y Navegación
   5. Hero Carousel
   6. Hero Section
   7. Secciones Split-Screen
   8. Secciones de Contenido
   9. Productos Carousel
   10. FAQ Acordeón
   11. Formulario de Contacto
   12. Footer
   13. Componentes Flotantes
   14. Animaciones
   15. Media Queries
   ================================================ */

/* ================================================
   1. VARIABLES CSS
   ================================================ */
:root {
    /* Colores Principales */
    --color-primary: #DC2626;        /* Rojo corporativo */
    --color-secondary: #EA580C;      /* Naranja */
    --color-accent: #ffde59;         /* Amarillo huevo */
    
    /* Tonos Dark */
    --color-dark: #1F2937;
    --color-dark-light: #374151;
    --color-dark-lighter: #4B5563;
    
    /* Colores Neutros */
    --color-white: #FFFFFF;
    --color-gray-light: #F9FAFB;
    --color-gray: #9CA3AF;
    --color-text: #111827;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px 6px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transiciones */
    --transition: all 0.3s ease;
    
    /* Espaciado */
    --spacing-unit: 1rem;
}

/* ================================================
   2. RESET Y ESTILOS BASE
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
    background-color: var(--color-white);
}

/* ================================================
   3. UTILIDADES
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

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

.mt-1 { margin-top: var(--spacing-unit); }
.mt-2 { margin-top: calc(var(--spacing-unit) * 2); }
.mt-3 { margin-top: calc(var(--spacing-unit) * 3); }

.mb-1 { margin-bottom: var(--spacing-unit); }
.mb-2 { margin-bottom: calc(var(--spacing-unit) * 2); }
.mb-3 { margin-bottom: calc(var(--spacing-unit) * 3); }

/* Animación fade-in reutilizable */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* ================================================
   4. HEADER Y NAVEGACIÓN
   ================================================ */
.header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Efecto underline animado */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ================================================
   5. HERO CAROUSEL
   ================================================ */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

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

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

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem 4rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    width: 80%;
    max-width: 900px;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Botones del carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Indicadores del carousel */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--color-white);
    width: 30px;
    border-radius: 6px;
}

/* ================================================
   6. HERO SECTION
   ================================================ */
.hero {
    background: var(--gradient-primary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-slogan {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.85;
}

/* Forma decorativa del hero */
.hero-shape {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0.1;
}

/* ================================================
   7. BOTONES
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ================================================
   8. TÍTULOS DE SECCIÓN
   ================================================ */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.subsection-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin: 3rem 0 2rem;
}

/* ================================================
   9. SECCIONES SPLIT-SCREEN
   ================================================ */
.split-section {
    width: 100%;
    min-height: 600px; /* Cambiado de 100vh para evitar problemas */
    position: relative;
    display: block;
    overflow: hidden;
}

.split-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 600px; /* Altura fija en lugar de 100vh */
    height: auto;
}

/* Contenedor de video */
.split-video {
    width: 50%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.split-video video {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    display: block;
}

/* Controles de video */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-controls:hover {
    opacity: 1;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Contenedor de contenido */
.split-content {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: var(--color-accent);
}

.split-text {
    max-width: 600px;
    width: 100%;
}

.split-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-align: center;
}

.split-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.split-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    font-weight: 400;
    text-align: center;
}

.split-text p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
}

.split-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}


.section-paragraph p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Imagen split */
.split-image {
    width: 50%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.split-image img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

/* Clase para invertir el orden - IMPORTANTE */
.split-section.split-reverse .split-container {
    flex-direction: row-reverse;
}





/* ================================================
   10. SERVICIOS
   ================================================ */
.services-section {
    padding: 3rem 0;
}

.services-list {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.services-list ul {
    list-style: none;
}

.services-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    font-size: 1.1rem;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list i {
    color: var(--color-secondary);
    margin-right: 1rem;
}


/* ================================================
   20. MARCAS CAROUSEL
   ================================================ */

/* Brand Tabs */
.brand-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.brand-tab {
    padding: 0.75rem 2rem;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.brand-tab:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brand-tab.active {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

/* Asegurar que los carousels no activos estén ocultos */
.products-carousel-container {
    display: none !important;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 2rem 0;
    cursor: grab;
    user-select: none;
}

.products-carousel-container.active {
    display: block !important;
}

/* Asegurar que la animación funcione */
.products-carousel-track {
    display: flex;
    animation: scrollProducts 30s linear infinite;
    width: max-content;
    gap: 0;
}



/* ================================================
   11. PRODUCTOS CAROUSEL
   ================================================ */
.products-carousel-section {
    padding: 5rem 0;
    background: var(--color-gray-light);
    overflow: hidden;
}

.products-carousel-section .section-title {
    margin-bottom: 1rem;
}

.products-carousel-section p {
    color: var(--color-dark-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.products-carousel-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 2rem 0;
    cursor: grab;
    user-select: none;
}

.products-carousel-container:active {
    cursor: grabbing;
}

/* Track del carousel */
.products-carousel-track {
    display: flex;
    animation: scrollProducts 40s linear infinite;
    width: max-content;
    gap: 0;
    will-change: transform;
}

/* Pausar animación en hover */
.products-carousel-container:hover .products-carousel-track {
    animation-play-state: paused;
}

/* Slide individual de producto */
.product-slide {
    flex: 0 0 auto;
    width: 300px;
    background: var(--color-white);
    transition: var(--transition);
    cursor: pointer;
    border-right: 1px solid var(--color-gray-light);
}

.product-slide:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    z-index: 2;
    border-right-color: transparent;
}

/* Imagen del producto */
.product-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--color-gray-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-slide:hover .product-image img {
    transform: scale(1.15);
}

/* Badge del producto */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.product-badge.badge-new {
    background: var(--gradient-accent);
}

.product-badge.badge-kids {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
}

/* Overlay con icono en hover */
.product-image::after {
    content: '\f06e'; /* Font Awesome eye icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--color-white);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-slide:hover .product-image::after {
    opacity: 0.9;
}

/* Overlay oscuro en hover */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-slide:hover .product-image::before {
    opacity: 1;
}

/* Información del producto */
.product-info {
    padding: 1.5rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info p {
    font-size: 0.875rem;
    color: var(--color-dark-light);
    line-height: 1.4;
}

/* Gradientes en los bordes del carousel */
.products-carousel-container::before,
.products-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 3;
    pointer-events: none;
}

.products-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-gray-light), transparent);
}

.products-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-gray-light), transparent);
}

/* ================================================
   12. ATENCIÓN PERSONALIZADA
   ================================================ */
.attention-section {
    padding: 3rem 0;
}

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

.client-type {
    background: var(--gradient-accent);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: var(--color-white);
    transition: var(--transition);
}

.client-type:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.client-type i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.client-type h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.client-type p {
    opacity: 0.9;
}

/* ================================================
   13. CLIENTES SECTION
   ================================================ */
.clients-section {
    padding: 2rem 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-light);
    border-bottom: 1px solid var(--color-gray-light);
}

.clients-section .section-title {
    margin-bottom: 2rem;
}

.clients-section p {
    color: var(--color-dark-light);
    font-size: 1.125rem;
}

.clients-carousel {
    position: relative;
    overflow: hidden;
    margin: 3rem 0;
    padding: 2rem 0;
}

.clients-wrapper {
    display: flex;
    gap: 3rem;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.clients-wrapper:hover {
    animation-play-state: paused;
}

.client-item {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-item:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Gradientes para el carousel de clientes */
.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-white), transparent);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-white), transparent);
}

/* ================================================
   14. POR QUÉ ELEGIRNOS
   ================================================ */
.why-us {
    background: var(--gradient-primary);
    padding: 5rem 0;
    color: var(--color-white);
}

.why-us .section-title {
    color: var(--color-white);
}

.why-us .section-title::after {
    background: var(--color-white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.reason {
    text-align: center;
}

.reason i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.reason h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reason p {
    opacity: 0.8;
}

/* ================================================
   15. FAQ ACORDEÓN
   ================================================ */
.faq {
    padding: 5rem 0;
    background: var(--color-gray-light);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--color-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-lg);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: var(--color-white);
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--color-gray-light);
}

.accordion-header h4 {
    font-size: 1.125rem;
    color: var(--color-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accordion-header h4 i {
    color: var(--color-secondary);
}

.accordion-icon {
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background: var(--color-white);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content p {
    color: var(--color-dark-light);
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   16. MARCAS
   ================================================ */
.brands {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: var(--color-white);
}

.brands .section-title {
    color: var(--color-white);
}

.brands .section-title::after {
    background: var(--color-white);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Contenedor del logo de marca */
.brand-logo {
    width: 150px;
    height: 150px;
    background: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.brand-item:hover .brand-logo {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.brand-item p {
    opacity: 0.9;
}

/* ================================================
   17. CONTACTO
   ================================================ */
.contact {
    padding: 5rem 0;
    background: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-info .section-title::after {
    left: 0;
    transform: none;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-dark-light);
}

.contact-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
    width: 25px;
}

/* Información de ubicaciones */
.locations-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-gray-light);
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
}

.locations-info h4 {
    color: var(--color-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locations-info p {
    margin-bottom: 0.5rem;
    color: var(--color-dark-light);
}

/* Enlaces sociales */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

/* Formulario de contacto */
.contact-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--color-white);
}

/* ================================================
   18. FOOTER
   ================================================ */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: left;
}

.footer-section.footer-contact {
    text-align: right;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--color-accent);
}

.footer-description {
    color: var(--color-gray);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-dark-light);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-gray);
}

/* ================================================
   19. COMPONENTES FLOTANTES
   ================================================ */

/* Botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Regla adicional para eliminar subrayado en enlaces con iconos */
a.social-link,
a.whatsapp-btn,
a[class*="fa-"] {
    text-decoration: none !important;
}

/* ================================================
   20. ANIMACIONES
   ================================================ */

/* Animación fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de scroll para carousels */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Animación de scroll para productos */
@keyframes scrollProducts {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ================================================
   21. MEDIA QUERIES
   ================================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
    /* Navegación móvil */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Animación hamburger */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Carousel */
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-subtitle {
        font-size: 1.125rem;
    }
    
    .carousel-content {
        padding: 2rem;
        width: 90%;
    }
    
    .carousel-btn {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    /* Títulos */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-slogan {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .subsection-title {
        font-size: 1.5rem;
    }
    
    /* Split sections */
    .split-container {
        flex-direction: column;
    }
    
    /* Importante: en móvil, ambos splits tienen el mismo orden vertical */
    .split-reverse .split-container {
        flex-direction: column;
    }
    

    
    .split-text {
        max-width: 90%;
    }
    
    .split-title {
        font-size: 2rem;
    }
    
    .split-subtitle {
        font-size: 1.2rem;
    }
    
    .video-controls {
        bottom: 10px;
        left: 10px;
    }
    
    /* Grids */
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    /* Clientes carousel */
    .client-item {
        width: 120px;
        height: 80px;
    }
    
    /* FAQ */
    .accordion-header h4 {
        font-size: 1rem;
    }
    
    /* Contacto */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section,
    .footer-section.footer-contact {
        text-align: center;
    }
    
    /* WhatsApp Button */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    /* Hero Carousel */
    .hero-carousel {
        height: 300px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
    }
    
    .carousel-content {
        padding: 1.5rem;
    }
    
    /* Grids móvil */
    .products-grid,
    .reasons-grid,
    .values-grid,
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    /* Clientes */
    .client-item {
        width: 100px;
        height: 60px;
    }
}

/* Footer con logo */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.footer-brand-text h3 {
    margin-bottom: 0.5rem;
}

.footer-brand-text p {
    margin: 0;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
}

/* Sección Trabaja con Nosotros */
.work-with-us {
    background: var(--color-dark-light);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.work-text {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--color-white);
}

.work-text i {
    font-size: 2.5rem;
    color: var(--color-accent);
}

.work-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.work-text p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.work-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.work-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .work-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .work-text {
        flex-direction: column;
        gap: 1rem;
    }
    
    .work-text i {
        font-size: 2rem;
    }
    
    .work-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}


/* ================================================
   CORRECCIÓN SPLIT MÓVILES - AGREGAR AL FINAL
   ================================================ */
@media screen and (max-width: 768px) {
    /* Reset general para móviles */
    .split-section {
        display: block !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .split-container {
        display: block !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Todos los elementos como bloques */
    .split-video,
    .split-content,
    .split-image {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        min-height: auto !important;
    }
    
    /* Videos e imágenes con altura fija */
    .split-video,
    .split-image {
        height: 250px !important;
        overflow: hidden !important;
    }
    
    .split-video video,
    .split-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    /* Contenido amarillo */
    .split-content {
        min-height: 300px !important;
        padding: 30px 20px !important;
        background: var(--color-accent) !important;
    }
    
    /* Textos */
    .split-text {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .split-video,
    .split-image {
        height: 200px !important;
    }
    
    .split-content {
        padding: 25px 15px !important;
    }
}