:root {
    --negro: #000000;
    --amarillo: #f1b317;
    --blanco: #ffffff;
    --fuente-principal: 'Poppins', sans-serif;
    --velocidad-marcas: 30s; 
    --velocidad-test-web: 80s; 
    --velocidad-test-movil: 50s;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--fuente-principal); background-color: #ffffff; overflow-x: hidden; padding-bottom: 80px; }

/* --- HEADER --- */
.main-header {
    background-color: #000000;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
.logo img { height: 74px; width: auto; display: block; }
.contact-info { display: flex; gap: 25px; }
.contact-link { color: #ffffff; text-decoration: none; font-size: 14px; display: flex; align-items: center; }
.contact-link i { margin-right: 8px; font-size: 1.2rem; }

@media (max-width: 768px) { .main-header { display: none; } }

/* --- HERO --- */
/* MODIFICADO: Padding reducido a 30px */
.hero { display: flex; justify-content: center; align-items: center; padding: 30px 5%; }
.hero-container { display: flex; width: 100%; max-width: 1200px; align-items: center; gap: 40px; }
.hero-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }

.hero-picture { width: 100%; display: block; margin-bottom: 25px; min-height: 100px; }
.hero-picture img { width: 100%; height: auto; display: block; }
.hero-title-img { max-width: 100%; height: auto; display: block; }

.btn-cta {
    background-color: var(--amarillo);
    color: #000000;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-cta:hover { transform: scale(1.03); }
.hero-footer-text { margin-top: 15px; font-size: 16px; color: #333333; }
.hero-video-wrapper { flex: 1; display: flex; justify-content: center; }

/* MODIFICADO: Video más grande (750px) */
.hero-video-wrapper video { width: 100%; max-width: 750px; display: block; }

@media (max-width: 991px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { align-items: center; }
    .hero-video-wrapper { width: 100%; margin-top: 30px; }
}

/* --- PREFOOTER 1 (Video) --- */
/* MODIFICADO: Padding reducido a 30px */
.prefooter-1 { position: relative; width: 100%; min-height: 250px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 30px 20px; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); }
.prefooter-container { position: relative; z-index: 2; display: flex; justify-content: center; }

/* MODIFICADO: Imagen responsiva en móvil para no cortarse */
.prefooter-img { width: 100%; max-width: 430px; height: auto; display: block; }

@media (max-width: 768px) {
    /* MODIFICADO: Padding lateral extra para móvil */
    .prefooter-1 { padding-left: 30px; padding-right: 30px; }
}

/* --- SERVICIOS --- */
/* MODIFICADO: Padding reducido a 30px */
.services { padding: 30px 5%; text-align: center; background-color: #ffffff; }
.services-title { font-size: 36px; font-weight: 700; margin-bottom: 40px; color: #000000; }
.services-container { display: flex; justify-content: center; gap: 30px; max-width: 1200px; margin: 0 auto; }
.service-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.service-card img { width: 100%; height: auto; border-radius: 10px; display: block; }
.btn-service { font-size: 16px; padding: 10px 20px; }

@media (max-width: 768px) {
    .services-container { flex-direction: column; align-items: center; gap: 50px; }
    .service-card { width: 100%; max-width: 400px; }
    
    .services-title,
    .titulo-marcas,
    .titulo-elegirnos,
    .titulo-testimonios {
        font-size: 36px !important;
    }
}

/* --- SECCIÓN MARCAS --- */
/* MODIFICADO: Padding reducido a 30px */
.seccion-marcas { padding: 30px 0; background-color: #ffffff; overflow: hidden; }
.titulo-marcas { font-size: 36px; font-weight: 700; color: var(--negro); text-align: center; margin-bottom: 50px; text-transform: none; }
.carrusel-container { width: 100%; display: flex; align-items: center; }
.carrusel-track { display: flex; width: calc(250px * 18); animation: scroll var(--velocidad-marcas) linear infinite; }
.carrusel-track:hover { animation-play-state: paused; }
.marca-slide { width: 200px; margin: 0 25px; display: flex; align-items: center; justify-content: center; }
.marca-slide img { width: 100%; height: auto; filter: grayscale(20%); transition: filter 0.3s; }
.marca-slide img:hover { filter: grayscale(0%); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 9)); }
}

@media (max-width: 768px) {
    .titulo-marcas { padding: 0 20px; }
    .marca-slide { width: 140px; margin: 0 15px; }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-170px * 9)); }
    }
}

/* --- SECCIÓN ELEGIRNOS --- */
/* MODIFICADO: Padding reducido a 30px */
.seccion-elegirnos { padding: 30px 20px; max-width: 1400px; margin: 0 auto; text-align: center; }
.titulo-elegirnos { font-size: 36px; font-weight: 700; color: var(--negro); margin-bottom: 50px; }
.grid-elegirnos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card-elegirnos { flex: 1; min-width: 280px; max-width: 320px; transition: transform 0.3s ease; }
.card-elegirnos:hover { transform: scale(1.05); }
.card-elegirnos img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

@media (max-width: 1024px) { .card-elegirnos { max-width: 45%; } }
@media (max-width: 650px) { 
    .card-elegirnos { max-width: 100%; min-width: 100%; } 
}

/* --- SECCIÓN TESTIMONIOS --- */
/* MODIFICADO: Padding reducido a 30px */
.seccion-testimonios { padding: 30px 20px; max-width: 1600px; margin: 0 auto; overflow: hidden; }
.titulo-testimonios { font-size: 36px; font-weight: 700; color: var(--negro); text-align: center; margin-bottom: 50px; }
.contenedor-feedback { display: flex; align-items: center; gap: 40px; }
.imagen-fija { flex: 0 0 320px; text-align: center; }
.imagen-fija img { width: 100%; height: auto; display: block; }
.carrusel-testimonios { flex: 1; overflow: hidden; display: flex; align-items: center; }
.track-testimonios { display: flex; gap: 30px; animation: scroll-testimonios var(--velocidad-test-web) linear infinite; }
.track-testimonios:hover { animation-play-state: paused; }
.testimonio-card { flex: 0 0 420px; }
.testimonio-card img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }

@keyframes scroll-testimonios {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-450px * 10)); }
}

@media (max-width: 768px) {
    .contenedor-feedback { flex-direction: column; gap: 30px; }
    .imagen-fija { flex: 0 0 auto; width: 250px; }
    .testimonio-card { flex: 0 0 85vw; }
    .track-testimonios { animation-duration: var(--velocidad-test-movil); }
    @keyframes scroll-testimonios {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-85vw * 10 - 300px)); }
    }
}

/* --- FOOTER --- */
.footer-principal { background-color: var(--negro); color: var(--blanco); padding: 60px 20px 0 20px; }
.footer-container { max-width: 1200px; margin: 0 auto 40px auto; display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; gap: 40px; align-items: start; }
.footer-logo img { max-width: 175px; height: auto; margin-bottom: 30px; display: block; }
.footer-info h3, .footer-pagos h3, .footer-direccion h3 { font-size: 20px; margin-bottom: 20px; font-weight: 700; }
.contacto-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; text-decoration: none; color: var(--blanco); transition: color 0.3s; font-size: 15px; }
.contacto-item i { color: var(--amarillo); font-size: 18px; }
.contacto-item:hover { color: var(--amarillo); }

/* MODIFICADO: Alineación de pagos a la izquierda (flex-start) */
.pagos-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; max-width: 320px; }
.pagos-grid img { height: 32px; width: auto; background: white; padding: 4px; border-radius: 4px; }

.mapa-box { width: 100%; height: 200px; border-radius: 12px; overflow: hidden; margin-bottom: 15px; border: 1px solid #333; }
.texto-direccion { font-size: 14px; line-height: 1.6; }
.texto-direccion p { margin: 5px 0; display: flex; align-items: center; }
.texto-direccion i { color: var(--amarillo); margin-right: 12px; font-size: 16px; }

/* FRANJA LEGAL FOOTER */
.footer-legal {
    border-top: 1px solid #333;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 14px;
    width: 100%;
}
.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.legal-link {
    color: var(--amarillo);
    text-decoration: none;
    font-weight: 600;
}
.copyright-text {
    color: #cccccc;
}
.author-link {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-logo img { margin: 0 auto 30px auto; }
    .contacto-item { justify-content: center; }
    /* MODIFICADO: Mantiene alineación izquierda en móvil también */
    .pagos-grid { margin: 0 auto 0 0; }
    .footer-pagos { text-align: left; }
    .footer-pagos h3 { text-align: left; }
    
    .legal-container { flex-direction: column; text-align: center; }
}

/* =========================================
   ESTILOS WIDGETS
   ========================================= */

/* --- JOINCHAT --- */
.joinchat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: bottom 0.3s ease;
}

@media (max-width: 768px) {
    .joinchat { display: none; }
}

.joinchat__tooltip {
    background: white;
    color: #4a4a4a;
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    position: relative;
}

.joinchat__tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.joinchat:hover .joinchat__tooltip, 
.joinchat__tooltip.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.joinchat__button {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    animation: joinchat_show 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards; 
    animation-delay: 1s; 
    transform: scale(0);
}

.joinchat__svg { width: 35px; height: 35px; fill: white; }
.joinchat__button:hover { background-color: #20b85a; transform: scale(1.05); }

@keyframes joinchat_show {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* --- BARRA INFERIOR (STICKY BAR) --- */
.lcb-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    display: flex;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (min-width: 769px) {
    .lcb-sticky-bar { display: none !important; }
}

.lcb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease;
}

.lcb-item svg { margin-bottom: 4px; stroke: white; width: 28px; height: 28px; }

.lcb-phone { background-color: #e60000; } 
.lcb-phone:hover { background-color: #cc0000; }

.lcb-whatsapp { background-color: #25D366; }
.lcb-whatsapp:hover { background-color: #1ebc59; }
/* PÁGINA POLÍTICA DE DATOS */
.legal-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
    color: #333;
}

.legal-container h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--negro);
}

.legal-container h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--negro);
    text-align: left;
}

.legal-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-container li {
    margin-bottom: 10px;
    line-height: 1.6;
}