/* --- SOCIAL PROOF CAROUSEL --- */
.social-proof-section {
    padding: 60px 0;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    overflow: hidden;
}

.section-title-small {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logos-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.logos-track:hover {
    animation-play-state: paused;
}

.logo-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e0e0e0;
    white-space: nowrap;
    font-family: 'Oswald', sans-serif;
    user-select: none;
    transition: color 0.3s;
}

.logo-item:hover {
    color: var(--primary-color);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- CORPORATE FOOTER (Refined & Centered) --- */
.main-footer {
    background-color: #2C2C2C;
    color: #fff;
    padding: 80px 0 0;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    padding-bottom: 60px;
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Col 1: Branding & Social */
.footer-logo {
    margin-bottom: 20px;
    display: block;
}

.footer-slogan {
    color: #94a3b8;
    /* text-gray-400 equivalent */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #00ecff;
    /* Cyan accent */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon.orange {
    color: #ff9d00;
    /* Orange accent */
}

.social-icon:hover {
    background: #fff;
    color: #2C2C2C;
    transform: translateY(-3px);
}

/* Col 2: Navigation */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

/* Col 3: Contact & Maps */
.contact-info {
    color: #94a3b8;
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-item svg {
    color: #00ecff;
    flex-shrink: 0;
}

.maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00ecff;
    color: #2C2C2C;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 15px;
    transition: all 0.3s;
}

.maps-btn:hover {
    background: #fff;
    transform: scale(1.02);
}

/* Col 4: Schedule & Trust */
.schedule-info {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.trust-badges {
    display: flex;
    gap: 15px;
}

.trust-badge {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-icon {
    display: block;
    font-size: 1.2rem;
    color: #ff9d00;
    margin-bottom: 5px;
    font-style: normal;
}

/* --- SUB-FOOTER --- */
.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    background-color: #2C2C2C;
}

.sub-footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-methods span {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    gap: 12px;
    opacity: 1;
    filter: invert(1) brightness(0.8);
}

.legal-copy {
    text-align: right;
}

.legal-links {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
    justify-content: flex-end;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

.copyright {
    color: #64748b;
    font-size: 0.8rem;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .sub-footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }

    .legal-copy {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }
}

/* --- DISPOSITIVOS MÓVILES: CORRECCIONES DE AUDITORÍA --- */
@media (max-width: 768px) {

    /* Forzado de Botones Hero */
    body .cta-area {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
    }

    body .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    /* Centrado de Secciones Estratégicas */
    body #servicios,
    body #tienda,
    body #metodologia {
        text-align: center !important;
    }

    body .section-header-simple,
    body .section-title,
    body .section-desc {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Ajuste de Grid para Servicios */
    body .hybrid-container {
        grid-template-columns: 1fr !important;
    }

    body .hybrid-block {
        text-align: left !important;
        /* El contenido interno del bloque se mantiene legible */
        align-items: center !important;
        padding: 40px 20px !important;
    }

    body .service-cta {
        align-self: center !important;
    }
}

/* --- CORRECCIONES MANUALES: CENTRADO Y LOGOS --- */

/* Corregir solapamiento en Servicios (Branding & Diseño) */
#servicios .service-box,
.hybrid-block {
    padding: 40px 20px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* Metodología: Forzar 4 elementos en una sola fila en Desktop */
@media (min-width: 992px) {
    #metodologia .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
    }

    #metodologia .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Estilos para la nueva sección de Logos */
/* Removed logo overrides to allow main.css size/gap settings */

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 6));
    }

    /* Se detiene justo al terminar el primer set */
}

/* Pausar al pasar el mouse */
.logos-slider:hover .logos-track {
    animation-play-state: paused;
}

/* --- UNIFICACIÓN DE SERVICIOS Y TÍTULOS --- */

/* Forzar que todos los cuadros de servicio tengan la misma altura */
#servicios .service-box,
.hybrid-block {
    min-height: 450px !important;
    /* Ajusta este valor si necesitas más espacio */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 40px 25px !important;
}

/* Controlar que los títulos largos se dividan en 2 líneas de forma elegante */
#servicios h4,
.hybrid-block h4 {
    min-height: 60px !important;
    /* Espacio reservado para 2 líneas */
    max-width: 200px !important;
    /* Fuerza el quiebre de palabras largas */
    margin: 0 auto 20px auto !important;
    line-height: 1.2 !important;
    font-size: 1.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Ajuste específico para Branding & Diseño para que no se vea apretado */
.service-box ul {
    text-align: left !important;
    margin-bottom: auto !important;
}

/* --- UNIFICACIÓN DEFINITIVA DE SERVICIOS --- */

/* 1. Forzar altura idéntica en todos los contenedores */
#servicios .service-box,
.hybrid-block {
    min-height: 500px !important;
    /* Aumentamos a 500px para dar más aire */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    /* Empuja el botón al final */
    padding: 40px 30px !important;
    height: 100% !important;
}

/* 2. Forzar títulos en DOS LÍNEAS (Una palabra por línea) */
#servicios h4,
.hybrid-block h4 {
    min-height: 80px !important;
    max-width: 180px !important;
    /* Estrechamos el ancho para obligar el quiebre */
    margin: 0 auto 20px auto !important;
    line-height: 1.1 !important;
    font-size: 1.5rem !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* 3. Alinear las listas de beneficios para que no floten */
#servicios ul,
.hybrid-block ul {
    text-align: left !important;
    margin: 0 auto 30px auto !important;
    display: inline-block !important;
    min-height: 120px !important;
    /* Espacio reservado para los puntos */
}

/* 4. Ajuste final del botón para que todos queden en la misma fila */
.service-cta,
#servicios .btn {
    margin-top: auto !important;
    align-self: center !important;
}

/* --- UNIFICACIÓN DE BLOQUES DE SERVICIO --- */

/* 1. Altura igual para las 4 cajas */
#servicios .service-box {
    min-height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 40px 25px !important;
    text-align: center !important;
}

/* 2. Títulos en dos líneas (Una palabra arriba y otra abajo) */
#servicios .service-box h4 {
    font-size: 1.4rem !important;
    line-height: 1.1 !important;
    margin: 20px auto !important;
    min-height: 70px !important;
    /* Espacio reservado para 2 líneas */
    max-width: 160px !important;
    /* Esto fuerza el quiebre de palabra */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 3. Alineación de las listas de servicios */
#servicios .service-box ul {
    text-align: left !important;
    display: inline-block !important;
    margin: 0 auto 30px auto !important;
    padding: 0 !important;
    list-style: none !important;
}

#servicios .service-box ul li::before {
    content: "•";
    color: #ff6b00;
    /* Color naranja de tu marca */
    padding-right: 8px;
    font-weight: bold;
}

/* 4. Botones siempre en la misma fila horizontal */
#servicios .service-box .btn {
    margin-top: auto !important;
    width: 100% !important;
}

/* --- ALINEACIÓN MAESTRA DE SERVICIOS --- */

/* 1. Unifica el tamaño de las 4 cajas */
#servicios .service-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    min-height: 520px !important;
    /* Esto iguala la altura de todos los cuadros */
    background: #ffffff !important;
    padding: 35px 20px !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease !important;
}

/* 2. Alinea los títulos (fuerza 2 líneas para que no se muevan) */
#servicios .service-box h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #2C2C2C !important;
    min-height: 55px !important;
    /* Espacio reservado para el título */
    max-width: 180px !important;
    /* Fuerza el quiebre de texto si es largo */
    margin: 0 auto 15px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
}

/* 3. Estilo de las listas de beneficios */
#servicios .service-box ul {
    text-align: left !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto 25px auto !important;
    display: inline-block !important;
}

#servicios .service-box ul li {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
    color: #555 !important;
}

#servicios .service-box ul li::before {
    content: "•" !important;
    color: #ff6b00 !important;
    /* Color naranja de tu marca */
    font-weight: bold !important;
    padding-right: 8px !important;
}

/* 4. Alineación horizontal de los botones */
#servicios .service-box .btn {
    margin-top: auto !important;
    /* Empuja el botón siempre al fondo */
    width: 100% !important;
    font-weight: 600 !important;
    padding: 12px 10px !important;
    border-radius: 6px !important;
}

/* 5. Ajustes para Slider Dinámico */
.hero-subtitle span {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color, #ff6b00);
}

/* --- STORE SLIDER (Infinite) - REDESIGN 2026 --- */
.store-slider-container {
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    padding: 60px 0;
    position: relative;
    background: #fff;
    margin: 0 auto !important;
}

.store-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 20px 0;
    will-change: transform;
}

/* Updated .product-card to override main.css */
.product-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    min-height: 420px;
    /* Ensure uniform height */
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* --- ICON WRAPPER (Matte Black) --- */
.product-icon-wrapper {
    width: 90px;
    height: 90px;
    /* Matte Black BG REMOVED for clean icon look */
    /* background-color: #1a1a1a; */
    /* border-radius: 20px; */

    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); */
    transition: transform 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    /* No padding needed if no bg */
}

.product-card:hover .product-icon-wrapper {
    transform: scale(1.05);
}

/* Removed product-icon-img override to allow main.css orange filter */

/* --- TYPOGRAPHY --- */
.product-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.2;
    min-height: 2.4em;
    /* Approx 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
}

/* --- CTA BUTTON (Orange) --- */
.btn-orange {
    display: block;
    width: 100%;
    background-color: #FF8C00;
    /* Fluency Orange */
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 14px 0;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
    margin-top: auto;
}

.btn-orange:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.4);
}

/* --- EDITORIAL HEADLINES (2 Lines En Bloque) --- */
#servicios .hybrid-block h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.85rem !important;
    line-height: 1.1 !important;
    /* Elegant spacing between lines */
    margin-bottom: 40px !important;
    /* Separation from tagline */
    text-transform: uppercase !important;
    display: block !important;
    color: #1a1a1a !important;
    letter-spacing: -1px !important;
}

#servicios .block-outline {
    -webkit-text-stroke: 1.2px #1a1a1a !important;
    color: transparent !important;
}

@media (max-width: 768px) {
    #servicios .hybrid-block h3 {
        font-size: 2.3rem !important;
        letter-spacing: -0.5px !important;
    }
}

/* --- MOBILE SAFE ZONE (24px Padding) --- */
@media (max-width: 768px) {

    #servicios,
    #noticias,
    .protocol-section,
    #metodologia,
    #tienda,
    .logos-section {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Clean reading: remove left floating buttons if any exist */
    .floating-left,
    .btn-paloma-float-left {
        display: none !important;
    }
}

/* --- UNIFIED FLOATING STACK (Centered Bottom) --- */
.mobile-stack-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

@media (max-width: 768px) {
    .mobile-stack-container {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        width: 100%;
        max-width: 320px;
        /* Contain width */
        bottom: 20px;
    }

    .unified-float-btn {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* --- MENU CLOSE BUTTON --- */
.menu-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    z-index: 10001;
    /* Above everything in overlay */
    padding: 10px;
    transition: transform 0.3s ease;
}

.menu-close-btn:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .menu-close-btn {
        top: 20px;
        right: 20px;
    }
}



.unified-float-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.unified-float-btn:hover {
    transform: translateX(-50%) scale(1.08) translateY(-3px);
}

.btn-whatsapp {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    bottom: 85px !important;
}

.btn-discount {
    background-color: #FF6B00;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 2px solid #fff;
    bottom: 20px !important;
    min-width: 280px;
    text-align: center;
}

/* --- THEME & CONTRAST (Unified Light Theme) --- */
#servicios,
#metodologia,
#noticias {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

#servicios .section-title,
#metodologia .section-title,
#noticias .section-title {
    color: #000000 !important;
}

#servicios .section-desc,
#metodologia .section-desc,
#noticias .section-desc {
    color: #555555 !important;
}

/* NOTICIAS (Light Section with Dark Island Cards) */
#noticias {
    background-color: #ffffff !important;
    /* General canvas */
    padding: 100px 0;
}

#noticias .news-card {
    background-color: #2C2C2C !important;
    /* Oxford Gray Island */
    border: none !important;
    color: #ffffff !important;
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#noticias .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

#noticias .news-card h3 {
    color: #ffffff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}

#noticias .news-card p {
    color: #cccccc !important;
}

#noticias .news-tag {
    background-color: #FF6B00 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.news-grid {
    gap: 32px !important;
    /* Generous air between cards */
}

/* OTHER SECTIONS */
#servicios .hybrid-block {
    background-color: #ffffff !important;
    border-color: #eeeeee !important;
}

#servicios .hybrid-tagline {
    color: #FF6B00 !important;
    font-weight: 700 !important;
}

#servicios .service-list li {
    color: #444444 !important;
}

#servicios .service-cta {
    color: #1a1a1a !important;
    border-bottom: 2px solid #FF6B00 !important;
}

#metodologia .protocol-step {
    background-color: #ffffff !important;
    border-top: 1px solid #eeeeee !important;
    color: #1a1a1a !important;
}

#metodologia .step-number {
    color: #FF6B00 !important;
    opacity: 0.25 !important;
}

.logos-section {
    background-color: #ffffff !important;
}

.logos-section p {
    color: #888888 !important;
}

/* Reset logo filter for light background */
.logo-item img {
    filter: grayscale(1) opacity(0.4) !important;
}




/* Icon overrides for Main Store */
.product-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.product-icon-img {
    width: 80% !important;
    height: 80% !important;
    object-fit: contain;
    filter: invert(56%) sepia(38%) saturate(3025%) hue-rotate(359deg) brightness(101%) contrast(106%);
}

.product-card:hover .product-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background-color: #FF6B00;
}

.product-card:hover .product-icon-img {
    filter: brightness(0) invert(1);
}

/* --- LIGHTBOX & GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-thumb:hover {
    border-color: #FF6B00;
}