/* # Proyecto: DESARROLLO-OM */
/* # Fecha: 2026-03-18 */
/* # Versión: v1.5 (Images & Legal Polish) */

.legal-consent {
    display: block;
    width: 100%;
    text-align: center !important;
    font-size: 12px !important;
    /* Tamaño aún más pequeño */
    color: #475569 !important;
    margin-top: 4px !important;
    line-height: 1.1 !important;
    font-weight: normal !important;
    letter-spacing: 0.2px;
}

.legal-consent a {
    color: #1e293b !important;
    text-decoration: underline;
    font-weight: normal !important;
}

.legal-consent a:hover {
    color: #1e40af !important;
}

/* Ajuste para que el texto legal en el hero se vea bien sobre el fondo oscuro */
.hero .legal-consent {
    color: rgba(255, 255, 255, 0.7);
}

.hero .legal-consent a {
    color: #fff;
}

/* Resto de estilos anteriores */
@font-face {
    font-family: 'Roboto Flex';
    src: url('../fonts/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf') format('truetype');
    font-weight: 100 1000;
    font-stretch: 25% 151%;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Flex', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8fafc;
    color: #1a2a3a;
    overflow-x: hidden;
}

.header {
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo a img {
    height: 100px;
    transition: height 0.3s ease;
}

.header.scrolled .logo a img {
    height: 70px;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav ul li a {
    text-decoration: none;
    color: #1e40af;
    font-weight: 700;
    font-size: 1.05em;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #3b82f6;
}

.language-selector {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.language-selector a {
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
    color: #64748b;
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.2s;
}

.language-selector a.active {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

.hero {
    background: linear-gradient(rgba(30, 64, 175, 0.6), rgba(30, 64, 175, 0.6)), url('../imgs/om_hero_image.jpg') no-repeat center center/cover;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.65em;
    /* Ligeramente más grande y legible */
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 400;
}

.button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-hero {
    background-color: #fbbf24;
    color: #1e3a8a;
}

.cta-hero:hover {
    background-color: #f59e0b;
    transform: scale(1.05);
}

.button-blue {
    background-color: #1e40af;
    color: #fff;
}

.button-green {
    background-color: #10b981;
    color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.content-section {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Reducido de 80px para dar más espacio a las columnas */
    margin-bottom: 100px;
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.section-image {
    flex: 1;
    display: flex;
    gap: 2%;
    /* Espacio proporcional */
    justify-content: center;
    overflow: hidden;
}

.section-image img {
    width: 48%;
    /* Dos imágenes al 48% cada una para dejar espacio al gap */
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.section-image img:hover {
    transform: scale(1.03);
}

.section-info {
    flex: 1;
    /* Reparto 50-50 estricto */
}

.section-info h2 {
    font-size: 2.5em;
    /* Ligeramente más pequeño para evitar que "pise" las imágenes */
    color: #1e3a8a;
    margin-bottom: 25px;
}

.section-info p {
    font-size: 1.25em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #475569;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
    font-size: 1.15em;
    font-weight: 600;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 900;
}

.urgency-note {
    background: #fef3c7;
    border-left: 5px solid #fbbf24;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    font-size: 1.1em;
}

.testimonials-section {
    background-color: #f1f5f9;
    padding: 100px 20px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.star-rating {
    color: #fbbf24;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 800;
    color: #1e3a8a;
}

.map-section {
    width: 100%;
    height: 450px;
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-section iframe {
    width: 100%;
    height: 100%;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
    text-align: left;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    background-color: #25d366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.15);
}

.whatsapp-btn img {
    width: 35px;
    height: 35px;
}

.footer-politicas {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 20px;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9em;
    color: #94a3b8;
}


.footer-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

@media (max-width: 1024px) {

    .content-section,
    .content-section.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-content-container {
        flex-direction: column;
        gap: 15px;
    }

    .logo a img {
        height: 80px;
    }

    .nav ul {
        gap: 15px;
    }
}

/* ========================================= */
/* SECCIÓN MARCAS - CARRUSEL AUTOMÁTICO      */
/* ========================================= */

.brands-section {
    background-color: #f8fafc;
    padding: 70px 0 90px;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.brands-section h2 {
    font-size: 2em;
    color: #1e3a8a;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.brands-section .brands-subtitle {
    font-size: 1em;
    color: #94a3b8;
    margin-bottom: 40px;
}

/* Contenedor de cada fila del carrusel */
.brands-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 18px;
}

/* La última fila no necesita margen inferior (ya lo da el padding de la sección) */
.brands-track-wrapper:last-of-type {
    margin-bottom: 0;
}

/* Máscara de degradado en los bordes */
.brands-track-wrapper::before,
.brands-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.brands-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.brands-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

/* Track con ancho doble (imágenes duplicadas para loop infinito) */
.brands-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    will-change: transform;
}

/* Fila 1: izquierda → derecha */
.brands-track-wrapper.row-1 .brands-track {
    animation: brandsScrollLeft 38s linear infinite;
}

/* Fila 2: derecha → izquierda */
.brands-track-wrapper.row-2 .brands-track {
    animation: brandsScrollRight 44s linear infinite;
}

/* Pausa al hover */
.brands-track-wrapper:hover .brands-track {
    animation-play-state: paused;
}

@keyframes brandsScrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes brandsScrollRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Cada logo individual */
.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    padding: 14px 22px;
    height: 72px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.brand-logo-item:hover {
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.12);
    transform: translateY(-3px);
}

.brand-logo-item img {
    max-width: 140px;
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.65);
    transition: filter 0.3s ease;
}

.brand-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Logo blanco → se invierte para parecer gris como el resto (ej. Tiwi, Essilor) */
.brand-logo-dark {
    background: #ffffff;
    border-color: #e8edf4;
}

.brand-logo-dark img {
    filter: invert(1) grayscale(100%) opacity(0.65);
}

.brand-logo-dark:hover {
    background: #ffffff;
    border-color: #e8edf4;
}

.brand-logo-dark:hover img {
    filter: invert(1) grayscale(0%) opacity(1);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .brands-section {
        padding: 50px 0 70px;
    }

    .brands-section h2 {
        font-size: 1.5em;
        padding: 0 20px;
    }

    .brand-logo-item {
        height: 60px;
        min-width: 100px;
        padding: 10px 16px;
    }

    .brand-logo-item img {
        max-width: 110px;
        height: 34px;
    }

    .brands-track-wrapper::before,
    .brands-track-wrapper::after {
        width: 50px;
    }
}

/* ========================================= */
/* ESTILOS PARA EL BANNER DE COOKIES */
/* ========================================= */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 25px;
    z-index: 10000;
    display: none; /* Se activa por JS */
    flex-direction: column;
    border: 1px solid #e2e8f0;
    font-family: 'Roboto Flex', sans-serif;
}

.cookie-inner-container {
    display: flex;
    flex-direction: column;
}

.cookie-title {
    font-weight: 800;
    color: #1e3a8a;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 20px;
}

.cookie-content a {
    color: #1e40af;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-button {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
}

.blue-block {
    background-color: #1e40af;
    color: #fff;
}

.blue-block:hover {
    background-color: #1e3a8a;
}

.outline-block {
    background-color: transparent;
    border: 1px solid #1e40af;
    color: #1e40af;
}

.outline-block:hover {
    background-color: #f1f5f9;
}

.gray-block {
    background-color: #f1f5f9;
    color: #475569;
}

.gray-block:hover {
    background-color: #e2e8f0;
}

.manage-consent-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #1e40af;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 10px;
    }
}