/* --- Variables de Estilo Inspiradas en ANDET --- */
:root {
    --primary-color: #004b8d;    /* Azul principal oscuro del logo */
    --secondary-color: #c61832; /* Rojo corporativo de Andet */
    --accent-color: #f7941d;     /* Naranja para llamadas a la acción (CTAs) */
    --bg-light: #f8f9fa;         /* Un gris muy claro para fondos */
    --text-color-dark: #333333;  /* Texto principal oscuro */
    --text-color-light: #ffffff; /* Texto sobre fondos oscuros */
    --border-color: #dee2e6;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 8px 25px rgba(0, 75, 141, 0.15);
}

/* --- Reseteo y Estilos Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--text-color-light);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2 { font-family: var(--font-secondary); font-weight: 700; color: var(--primary-color);}
img { max-width: 100%; height: auto; }

/* --- Encabezado Final y Unificado --- */

/* Barra Superior (Contenedor principal) */
.header-top-bar {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buscador en la Barra Superior */
.header-search-form {
    width: 40%;
    max-width: 350px;
}

#header-search-input {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 15px;
    font-size: 0.9rem;
}

#header-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 75, 141, 0.2);
}

/* --- Estilos para la Búsqueda en Tiempo Real --- */

.search-container {
    position: relative;
    width: 40%;
    max-width: 350px;
}

/* El formulario debe tomar todo el ancho del nuevo contenedor */
.header-search-form {
    width: 100%;
}

.search-results {
    position: absolute;
    top: calc(100% + 5px); /* Se posiciona 5px debajo de la barra */
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1001; /* Asegura que esté por encima de otros elementos */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

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

.result-item:hover {
    background-color: var(--bg-light);
}

.result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 15px;
}

.result-item-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color-dark);
    margin: 0;
}

.result-item-info p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #888;
}
/* Acciones de Usuario con Iconos (Estilo Final) */
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-action {
    display: flex;
    flex-direction: column; /* Icono arriba, texto abajo */
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color-dark);
    transition: color 0.3s ease;
}

.user-action i {
    font-size: 1.2rem;
    color: var(--secondary-color); /* Rojo Andet */
}

.user-action:hover,
.user-action:hover i {
    color: var(--accent-color);
    transform: scale(1.15);
}

/* --- ESTILOS PARA EL HEADER FIJO Y ANIMADO --- */
#sticky-header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Un fondo blanco es importante para que el contenido de abajo no se transparente */
    background-color: var(--text-color-light); 
    /* Añadimos una sombra para que se vea "despegado" al hacer scroll */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header Principal (Logo, Navegación, Carrito) */
.header {
    background-color: var(--text-color-light);
    padding: 1.2rem 0;
}

.header-main-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.header-logo-container {
    justify-self: start;
}
.logo-img { height: 45px; }

.navbar {
    justify-self: center;
}

.navbar a {
    color: var(--text-color-dark);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.navbar a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar a:hover, .navbar a.active { color: var(--secondary-color); }
.navbar a:hover::after { width: 100%; }


/* Contenedor del carrito a la derecha */
.header-cart-container {
    justify-self: end;
}

/* Icono del Carrito y Contador */
.cart-icon {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    transition: transform 0.2s;
}
.cart-icon:hover {
    transform: scale(1.1);
}
.cart-icon i {
    font-size: 1.8rem;
}
.cart-counter {
    position: absolute;
    top: -5px; right: -10px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(1);
    opacity: 1;
}
.cart-counter.hidden {
    transform: scale(0);
    opacity: 0;
}


/* --- Hero Section --- */
/* --- Estilos para el Hero Slider (Estilo Sigelec) --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh; /* Puedes ajustar la altura */
    overflow: hidden;
    background-color: var(--bg-light);
    margin-bottom: 2%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content-slider {
    position: relative;
    z-index: 2;
    max-width: 50%;
    margin-left: 8%; /* Lo movemos un poco a la izquierda */
    color: white;
}

.hero-content-slider h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-color-light);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content-slider p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-color-light);
    margin-bottom: 30px;
    max-width: 500px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.slider-nav button {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.slider-nav button:hover {
    background-color: var(--secondary-color); /* Usamos tu rojo para el hover */
}

.hero {
    position: relative;
    color: var(--text-color-dark);
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(248, 249, 250, 0.1);
}

.hero-content {
    position: relative; z-index: 2;
    text-align: left;
    max-width: 50%;
    margin-left: auto;
    margin-right: 5%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-color-dark);
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: none;
    text-transform: uppercase;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #555;
    margin-bottom: 30px;
    max-width: 450px;
}

.hero .cta-button {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.hero .cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


/* --- Sección de Carrusel de Categorías --- */
.category-carousel-section {
    position: relative;
    padding: 60px 0;

    /* La magia está aquí: usamos capas de fondo */
    background-image: 
        /* 1. Capa de color blanco semi-transparente (el overlay) */
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(211, 155, 155, 0.92)),
        
        /* 2. Tu imagen de fondo (separada por coma) */
        url('images/banner-catalogo.jpg');

    /* Propiedades para la imagen de fondo */
    background-size: cover;
    background-position: center;
    
}

.category-title-container {
    text-align: center;
    margin-bottom: 40px;
}

.category-title-chip {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 10px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.category-carousel-wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.category-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card {
    flex: 0 0 250px;
    margin: 0 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-card .img-container {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #fdfdfd;
}

.category-card .img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-card .category-name {
    color: var(--text-color-dark);
    font-weight: 700;
    padding: 15px 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.category-card .cta-footer {
    background: var(--secondary-color);
    color: var(--text-color-light);
    padding: 12px 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.category-card:hover .cta-footer {
    background: var(--accent-color);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
    background-color: #bbbbbb;
    cursor: not-allowed;
    transform: translateY(-50%);
    box-shadow: none;
}


/* --- Grid de Productos --- */
.product-grid { 
    padding: 80px 0; 
    background-color: var(--bg-light);
    /* Prepara el contenedor para las transformaciones 3D de sus hijos */
    perspective: 2000px;
}
.product-grid h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}
.grid-container {
    display: grid;
    /* 3 columnas en escritorio, con espacio entre ellas */
    grid-template-columns: repeat(3, 1fr);
    gap: 35px; /* Un poco más de espacio */
}
/* El contenedor principal de cada tarjeta */
.product-card-3d {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    cursor: pointer;
}

/* El contenido visible de la tarjeta */
.product-card-3d .card-content {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateZ(30px); /* Levanta el contenido para dar profundidad */
}

/* Pseudo-elemento para el REFLEJO brillante */
.product-card-3d .card-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 12px;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.4),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease-out;
    z-index: 10;
}
.product-card-3d:hover .card-content::before {
    opacity: 1;
}

/* Div para el BORDE brillante con color ANDET */
.product-card-3d .card-border {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 12px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(198, 24, 50, 0.3),  /* ROJO ANDET CON OPACIDAD */
        transparent 40%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
.product-card-3d:hover .card-border {
    opacity: 1;
}

/* ---- Estilos internos de la tarjeta ---- */
.product-card-3d .product-image-container {
    width: 100%; height: 250px;
    display: flex; justify-content: center; align-items: center;
    padding: 15px;
}
.product-card-3d .product-image {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    transform: translateZ(40px); /* "Levanta" la imagen aún más */
    transition: transform 0.5s ease-out;
}
.product-card-3d:hover .product-image {
    transform: translateZ(60px) scale(1.05);
}
.product-card-3d .product-info { padding: 20px; text-align: center; }
.product-card-3d .product-name {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--text-color-dark);
    margin-bottom: 8px;
    min-height: 55px; /* Para alinear tarjetas con nombres de distinta longitud */
    transform: translateZ(30px);
}
.product-card-3d .product-category {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    transform: translateZ(20px);
}

/* --- Media Queries para hacer la grilla responsive --- */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}
@media (max-width: 576px) {
    .grid-container {
        grid-template-columns: 1fr; /* 1 columna en móviles */
    }
}


/* --- Paginación --- */
#pagination-container {
    display: flex; justify-content: center; align-items: center;
    margin-top: 50px; gap: 10px;
}
.pagination-button {
    border: 2px solid var(--border-color);
    background-color: #fff;
    color: var(--text-color-dark);
    padding: 8px 15px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination-button:hover:not(.active) {
    background-color: var(--accent-color);
    color: var(--text-color-light);
    border-color: var(--accent-color);
}
.pagination-button.active {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-soft);
    pointer-events: none;
}


/* --- Modal de Producto --- */
.product-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); z-index: 1002;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.product-modal.active { opacity: 1; visibility: visible; }
.modal-content {
    background-color: #fff; border-radius: 10px;
    width: 90%; max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.95); transition: transform 0.3s ease;
    position: relative; overflow: hidden;
}
.product-modal.active .modal-content { transform: scale(1); }
.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 2rem;
    color: #888; cursor: pointer; transition: color 0.3s ease;
    z-index: 10;
}
.close-modal:hover { color: var(--secondary-color); }

.modal-body { display: flex; flex-direction: column; }
@media (min-width: 768px) { .modal-body { flex-direction: row; } }
.modal-info { flex-basis: 50%; padding: 40px; display: flex; flex-direction: column; }
.modal-info h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 10px; }
.modal-info .modal-category { color: #666; font-weight: bold; margin-bottom: 20px; }
.modal-info .modal-description { margin-bottom: 30px; flex-grow: 1; }

.modal-actions { display: flex; gap: 20px; margin-top: 20px; align-items: center; }
.quantity-selector { display: flex; align-items: center; }
.quantity-selector input {
    width: 50px; text-align: center; border: 1px solid var(--border-color);
    border-radius: 5px; height: 45px;
}
.quantity-selector button {
    background-color: var(--bg-light); border: 1px solid var(--border-color);
    width: 40px; height: 45px; cursor: pointer; font-size: 1.2rem;
}
.modal-actions .add-to-cart-btn {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border: none; padding: 0 25px;
    font-weight: 700; font-size: 0.9rem;
    font-family: var(--font-secondary);
    letter-spacing: 1px;
    border-radius: 5px;
    text-transform: uppercase;
    flex-grow: 1; cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    height: 45px;
    line-height: 45px;
}
.modal-actions .add-to-cart-btn:hover {
    background-color: #a51227;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* --- Estilos para la Galería del Modal --- */
.modal-image-gallery {
    flex-basis: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-main-image {
    width: 100%;
    height: 300px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.modal-main-image img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.modal-thumbnail-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    padding: 5px;
    opacity: 0.7;
}
.modal-thumbnail-img:hover {
    opacity: 1;
    border-color: var(--secondary-color);
}
.modal-thumbnail-img.active {
    border-color: var(--secondary-color);
    opacity: 1;
    transform: scale(1.08);
    box-shadow: var(--shadow-soft);
}


/* --- Carrito Lateral --- */
.cart-sidebar {
    position: fixed; top: 0; right: -100%; width: 400px; max-width: 90vw;
    height: 100vh; background: white; box-shadow: var(--shadow-medium);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001; display: flex; flex-direction: column;
}
.cart-sidebar.active { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 1.2rem; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 10px; }

.cart-item { display: flex; align-items: center; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border-color); }
.cart-item-image { width: 70px; height: 70px; object-fit: contain; }
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 8px; font-weight: 500;}
.cart-item-quantity { font-size: 0.9rem; color: #555; }
.remove-from-cart-btn {
    background: transparent; border: none; font-size: 1.2rem;
    color: var(--secondary-color); cursor: pointer; transition: transform 0.2s ease;
}
.remove-from-cart-btn:hover { transform: scale(1.1); }
#cartItems .empty-cart { padding: 20px; text-align: center; color: #777; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border-color); }
.checkout-btn {
    width: 100%; background: var(--secondary-color); color: white;
    border: none; padding: 15px; border-radius: 5px;
    font-weight: bold; cursor: pointer; text-align: center; display: block;
    text-decoration: none;
}
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.overlay.active { opacity: 1; visibility: visible; }


/* Sección "Nosotros" y "Contacto" */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}
.about-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.about-image { flex: 1 1 300px; }
.about-image img { border-radius: 10px; box-shadow: var(--shadow-medium); }
.about-text { flex: 1 1 400px; }
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color); /* ¡Añadimos esta línea para el color rojo! */
}
.about-text p { margin-bottom: 20px; }

.about-text .cta-button.secondary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--text-color-light);
    border-radius: 50px;
    padding: 15px 30px;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    display: inline-block; /* Agregado para que no tome todo el ancho */
}
.about-text .cta-button.secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color-light);
    transform: translateY(-3px) scale(1.05);
}


.contact-section {
    position: relative;
    padding: 100px 0;
    color: var(--text-color-light);
    background-image: url('images/contacto.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.contact-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 41, 80, 0.7);
    z-index: 1;
}
.contact-container {
    position: relative; z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.contact-info { flex: 1 1 40%; }
.contact-info h2 { color: var(--text-color-light); font-size: 2.8rem; margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.contact-item i { font-size: 1.8rem; width: 40px; text-align: center; }
.contact-item p { font-size: 1rem; font-weight: 500; line-height: 1.5; }

.contact-form { flex: 1 1 50%; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; opacity: 0.9; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 12px 15px;
    color: var(--text-color-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.contact-form input:focus {
    outline: none;
    border-color: var(--text-color-light);
}
.submit-btn {
    background-color: var(--text-color-light);
    color: var(--text-color-dark);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
}


/* --- Footer --- */
footer {
    background: var(--text-color-light);
    color: var(--text-color-dark);
    padding: 50px 0 0 0;
    border-top: 4px solid var(--secondary-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}
.footer-column h4 {
    font-family: var(--font-secondary);
    color: var(--text-color-dark);
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
}
.footer-column a {
    display: flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: var(--secondary-color);
}
.footer-column i {
    color: var(--secondary-color);
    font-size: 1rem;
    width: 25px;
}
.footer-logo-img { max-width: 180px; }
.footer-bottom {
    background-color: #f1f1f1;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
}

/* --- Estilos para la Sección de Marcas --- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.brands-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--secondary-color); /* Azul de Andet */
    font-family: var(--font-secondary);
}

.brands-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.brands-container:hover .brands-slide {
    animation-play-state: paused; /* Pausa la animación en hover */
}

.brands-slide {
    display: flex;
    align-items: center;
    animation: scroll 40s linear infinite; /* Aumenta la duración para ir más lento */
}

.brands-slide img {
    height: 45px; /* Altura más uniforme */
    width: auto;
    max-width: 150px;
    margin: 0 50px; /* Más espacio */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brands-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Hero Slider */
.cta-button {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- Estilos para la Sección de Propuesta de Valor --- */
.value-prop-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Un fondo gris claro para separarla */
}

.value-prop-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Para que sea responsive en pantallas pequeñas */
}

/* Columna de Texto */
.value-prop-text {
    flex: 1;
    min-width: 300px; /* Ancho mínimo para la columna de texto */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2; /* Para que el texto esté sobre la imagen */
}

.logo-container-vp {
    margin-bottom: 20px;
}

.logo-container-vp img {
    max-width: 255px; /* Ajusta el tamaño del logo según necesites */
    height: auto;
}

.text-card-vp {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 436px; /* Ancho máximo para la tarjeta de texto */
    text-align: center;
    position: relative;
}

.text-card-vp p {
    font-size: 1 em;
    line-height: 1.6;
    color: var(--text-color-dark);
    font-weight: 100;
}

/* Columna de Imagen */
.value-prop-image {
    flex: 1.2; /* Damos un poco más de espacio a la imagen */
    min-width: 320px; /* Ancho mínimo para la imagen */
    margin-left: -50px; /* ¡El truco para la superposición! */
}

.value-prop-image {
    flex: 1.2;
    min-width: 320px;
    /* Aumentamos el margen negativo para que se "meta" más hacia la izquierda */
    margin-left: -120px; 
}

/* --- Ajustes para Responsive --- */
@media (max-width: 992px) {
    .value-prop-image {
        margin-left: 0; /* Quitamos la superposición en tablets */
    }
    .value-prop-container {
        flex-direction: column; /* Apilamos las columnas */
    }
}
@media (max-width: 576px) {
    .text-card-vp p {
        font-size: 1.1rem; /* Hacemos el texto un poco más pequeño en móviles */
    }
    .value-prop-section {
        padding: 60px 0; /* Reducimos el espaciado en móviles */
    }
}