/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    --color-primario: #f9ed32;
    --color-secundario: #000000;
}

/* =========================================
   RESETEO BÁSICO Y TIPOGRAFÍA GENERAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333333;
}

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

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

/* Tipografía de Escritorio */
h1 { font-size: 50px; font-weight: 600; }
h2 { font-size: 40px; font-weight: 600; }
h3 { font-size: 35px; font-weight: 600; }
p  { font-size: 18px; font-weight: 400; }

.section-title {
    margin-bottom: 40px;
    color: var(--color-secundario);
}

/* Ocultar elementos móviles en Escritorio */
.hero-logo-mobile,
.hero-title-mobile {
    display: none;
}

/* =========================================
   PREHEADER
   ========================================= */
.preheader {
    background-color: var(--color-secundario);
    color: var(--color-primario);
    font-size: 16px;
    padding: 10px 0;
}

.preheader-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.contact-item i {
    margin-right: 8px;
    font-size: 18px;
}

/* =========================================
   HEADER PRINCIPAL
   ========================================= */
.main-header {
    background-color: #ffffff;
    padding: 0px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    max-width: 370px;
    width: 100%;
    height: auto;
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-secundario);
    font-weight: 600;
}

.btn-outline {
    display: inline-block;
    text-decoration: none;
    color: var(--color-secundario);
    background-color: transparent;
    border: 2px solid var(--color-secundario);
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--color-secundario);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-secundario);
    cursor: pointer;
}

/* =========================================
   SECCIÓN HÉROE
   ========================================= */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://landing.bateriaadomiciliomedellin.com/imagenes/fondo-virtual.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 120px 0 200px 0; 
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-col {
    flex: 1;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-secundario);
    background-color: var(--color-primario);
    border-radius: 50px;
    padding: 10px 25px; 
    font-size: 21px; 
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(249, 237, 50, 0.2);
    border: 2px solid transparent;
}

.btn-primary i {
    font-size: 22px;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primario);
    border: 2px solid var(--color-primario);
    box-shadow: 0 5px 15px rgba(249, 237, 50, 0.4);
}

.hero-batteries-img {
    max-width: 480px;
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   SECCIÓN POST-HÉROE (VIDEO DE FONDO)
   ========================================= */
.post-hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 80px 20px;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.post-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.post-hero-img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

/* =========================================
   SECCIÓN DE MARCAS
   ========================================= */
.brands-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 0; 
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    width: 100%;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 calc(100% / 5); 
    scroll-snap-align: start; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    max-width: 222px; 
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.05); 
}

.carousel-arrow {
    background-color: var(--color-secundario);
    color: var(--color-primario);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    top: 50%;
    transform: translateY(-50%);
}

.carousel-arrow:hover {
    background-color: var(--color-primario);
    color: var(--color-secundario);
}

.left-arrow { left: -20px; }
.right-arrow { right: -20px; }

/* =========================================
   SECCIÓN DE SERVICIOS
   ========================================= */
.services-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-img-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    background-color: #f4f4f4;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-img-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.service-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.btn-service {
    padding: 12px 30px;
    font-size: 16px;
}

/* =========================================
   SECCIÓN DE BENEFICIOS
   ========================================= */
.benefits-section {
    padding: 80px 0;
    background-color: var(--color-primario); 
}

.title-benefits {
    color: var(--color-secundario);
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.benefit-card {
    width: 100%;
    display: flex;
    justify-content: center;
}

.benefit-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* =========================================
   SECCIÓN DE TESTIMONIOS
   ========================================= */
.testimonials-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.testimonials-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.test-col-img {
    width: 20%;
    display: flex;
    justify-content: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.test-col-slider {
    width: calc(80% - 40px);
    position: relative;
}

.test-item {
    flex: 0 0 calc((100% - (20px * 2)) / 3); 
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.test-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

#track-testimonios {
    gap: 20px;
}

/* =========================================
   SECCIÓN PREFOOTER
   ========================================= */
.prefooter-section {
    background-image: url('https://landing.bateriaadomiciliomedellin.com/imagenes/fondo-prefooter-virtual.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 80px;
    min-height: 550px; 
    overflow: hidden;
}

.prefooter-img {
    max-width: 69%; 
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; 
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: #000000;
    color: #ffffff;
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff !important;
}

.contact-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 12px;
}

.contact-list a {
    color: #ffffff !important;
    text-decoration: underline;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #f9ed32 !important;
}

.payment-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.map-container {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.address-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
}

.footer-bottom {
    background-color: #ffffff;
    color: #000000;
    padding: 20px 0;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}

.legal-link {
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    text-decoration: underline;
}

.copyright {
    margin: 0;
}

.agency-link {
    color: #f9ed32 !important;
    text-decoration: underline;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
}

/* =========================================
   WIDGETS FLOTANTES (JOINCHAT Y STICKY BAR)
   ========================================= */

/* --- Joinchat (Botón WhatsApp PC) --- */
.joinchat {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.joinchat__button {
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.joinchat__button:hover {
    transform: scale(1.1);
}

.joinchat__svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

.joinchat__tooltip {
    background-color: #ffffff;
    color: #333333;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.joinchat__tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sticky Bar (Barra de Contacto Móvil) --- */
.lcb-sticky-bar {
    display: none; /* Oculta en PC */
}


/* ==========================================================================
   ESTILOS EXCLUSIVOS PARA CELULAR (pantallas hasta 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Modificaciones Hero (Celular) */
    .hero-section {
        padding: 60px 0 80px 0 !important;
    }

    .hero-row {
        display: flex;
        flex-direction: column; 
        align-items: center;
        text-align: center;
        gap: 40px !important; 
    }

    .hero-text-col,
    .hero-image-col {
        display: contents; 
    }

    .hero-title-desktop {
        display: none !important;
    }

    .hero-logo-mobile {
        display: block !important;
        max-width: 280px !important; 
        margin: 0 auto !important; 
        order: 1; 
    }

    .hero-title-mobile {
        display: block !important;
        max-width: 95%;
        margin: 0 auto !important;
        order: 2; 
    }

    .hero-batteries-img {
        order: 3; 
        max-width: 95% !important; 
        margin: 0 auto !important;
    }

    .btn-primary {
        order: 4; 
        margin: 10px 0 0 0 !important;
    }

    /* 2. Quitar Header y Preheader */
    .preheader, 
    .main-header {
        display: none !important;
    }

    /* 3. Títulos h2 a 30px */
    h2, 
    .section-title {
        font-size: 30px !important;
    }

    /* 4. Sección Servicios a 1 columna */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    /* 5. Sección Beneficios a 1 columna */
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    /* 6. Testimonios a 1 columna */
    .testimonials-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .test-col-img {
        width: 100%;
        max-width: 180px; 
        margin-bottom: 20px;
    }
    .test-col-slider {
        width: 100%;
    }
    .test-item {
        flex: 0 0 100%; 
    }

    /* Carrusel de Marcas a 3 columnas en celular */
    .carousel-item {
        flex: 0 0 calc(100% / 3) !important; 
    }

    /* 7. Footer a 1 columna */
    .main-footer { 
        padding-top: 40px; 
    }
    .footer-top { 
        grid-template-columns: 1fr !important; 
        gap: 40px; 
        text-align: center; 
    }
    .footer-logo { 
        margin: 0 auto 30px auto; 
    }
    .contact-list a { 
        justify-content: center; 
    }
    .payment-img { 
        margin: 0 auto; 
    }
    .bottom-content { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }

    /* Ajustes Prefooter en celular */
    .prefooter-section { 
        justify-content: center; 
        padding-top: 50px; 
        min-height: 400px; 
    }
    .prefooter-img { 
        max-width: 85%; 
        margin-right: 0; 
    }

    /* --- Mostrar Sticky Bar en Móviles --- */
    .lcb-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    }

    .lcb-item {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 16px 0;
        color: #ffffff; /* Texto Blanco */
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
    }

    .lcb-item svg {
        width: 24px;
        height: 24px;
    }

    .lcb-phone {
        background-color: #e53935; /* Fondo Rojo */
    }

    .lcb-whatsapp {
        background-color: #25D366; /* Fondo Verde */
    }

    /* Añadimos padding al body para que el footer no quede tapado por la barra inferior */
    body {
        padding-bottom: 60px;
    }
}