﻿/* ============================================================
   ONIX BUSINESS - Estilos personalizados
   ============================================================ */

/* ========== GLOBAL ========== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    color: #696969;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #32373c;
    font-weight: 600;
}

a {
    color: #cc1414;
    text-decoration: none;
}

a:hover {
    color: #a01010;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #cc1414;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

section {
    padding: 5rem 0;
}

/* ========== NAVBAR ========== */
#navbar-principal {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background: transparent !important;
    z-index: 1030;
}

#navbar-principal.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar-principal .nav-link {
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    font-size: 1.05rem;
    transition: color 0.3s;
}

#navbar-principal.scrolled .nav-link {
    color: #32373c !important;
}

#navbar-principal.scrolled .nav-link:hover,
#navbar-principal.scrolled .nav-link.active {
    color: #cc1414 !important;
}

#logo-dark {
    display: none;
}

#navbar-principal.scrolled #logo-white {
    display: none !important;
}

#navbar-principal.scrolled #logo-dark {
    display: inline-block !important;
}

/* ========== HERO (#inicio) ========== */
#inicio {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 8rem;
    background: url('/images/misc/cta-bg.jpg') center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    z-index: 10;
}

#inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(160, 16, 16, 0.93);
    z-index: 0;
}

#inicio > .container {
    position: relative;
    z-index: 3;
}

.hero-transition {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.hero-transition svg {
    display: block;
    width: 100%;
    height: 280px;
}

#inicio h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#inicio p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-img-wrapper {
    position: relative;
    z-index: 10;
}

.hero-img {
    max-width: 110%;
    max-height: 750px;
    display: block;
    margin: 0 auto;
    margin-bottom: -250px;
    position: relative;
}

.btn-tienda {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.btn-tienda:hover {
    transform: scale(1.05);
}

.btn-tienda img {
    height: 55px;
    border-radius: 8px;
}

/* ========== NOSOTROS (#nosotros) ========== */
#nosotros {
    background: #fff;
    padding-top: 14rem;
    position: relative;
    z-index: 1;
}

.bot-img {
    max-width: 420px;
    display: block;
    margin: 0 auto;
}

.logictool-logo-nosotros {
    max-height: 80px;
}

.nosotros-texto {
    text-align: justify;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.25rem;
    line-height: 2;
    color: #555;
}

.modulo-badge {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid #cc1414;
    border-radius: 25px;
    color: #cc1414;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 4px;
    transition: all 0.3s;
}

.modulo-badge:hover {
    background: #cc1414;
    color: #fff;
}

.logictool-tag {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1.5rem;
}

/* ========== CARACTERISTICAS (#feature) ========== */
#feature {
    background: #f8f9fa;
}

.feature-card {
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 1.5rem;
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #cc1414;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 1rem;
}

.feature-card h5 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== CAROUSELES ========== */
.seccion-capturas {
    padding: 5rem 0;
}

.seccion-capturas.bg-white {
    background: #fff;
}

.seccion-capturas.bg-light {
    background: #f8f9fa;
}

/* ========== GALERIA GRID ========== */
.galeria-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.galeria-thumb {
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.galeria-thumb:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.galeria-movil .galeria-thumb {
    width: 220px;
    height: 460px;
    object-fit: contain;
    border-radius: 12px;
}

.galeria-desktop .galeria-thumb {
    width: 350px;
    height: 220px;
}

/* ========== CAROUSEL DESKTOP ========== */
.carousel-desktop-img {
    max-height: 700px;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#carouselDesktop .carousel-control-prev,
#carouselDesktop .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s;
}

#carouselDesktop:hover .carousel-control-prev,
#carouselDesktop:hover .carousel-control-next {
    opacity: 1;
}

#carouselDesktop .carousel-indicators {
    opacity: 0;
    transition: opacity 0.3s;
}

#carouselDesktop:hover .carousel-indicators {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(204, 20, 20, 0.7);
    border-radius: 50%;
    padding: 1.2rem;
    background-size: 50%;
}

.carousel-indicators [data-bs-target] {
    background-color: #cc1414;
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.activo {
    display: flex;
}

.lightbox-overlay img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}

.lightbox-cerrar:hover {
    transform: scale(1.2);
}

.lightbox-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.lightbox-flecha:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-contador {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .galeria-movil .galeria-thumb {
        width: 120px;
        height: 210px;
    }

    .galeria-desktop .galeria-thumb {
        width: 100%;
        height: auto;
    }

    .lightbox-overlay img {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox-flecha {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ========== PLANES (#pricing) ========== */
#pricing {
    background: #fff;
}

.toggle-precios {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.toggle-precios .btn {
    padding: 0.6rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    min-width: 130px;
}

.toggle-precios .btn-periodo.active {
    background: #cc1414;
    border-color: #cc1414;
    color: #fff;
}

.toggle-precios .btn-periodo:not(.active) {
    background: #fff;
    border-color: #cc1414;
    color: #cc1414;
}

.pricing-card {
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.pricing-card .plan-img {
    max-height: 100px;
    margin: 0 auto 1rem;
}

.pricing-card .plan-nombre {
    font-size: 1.5rem;
    font-weight: 700;
    color: #32373c;
    margin-bottom: 0.5rem;
}

.precio {
    font-size: 2.8rem;
    font-weight: 700;
    color: #cc1414;
}

.precio-periodo {
    font-size: 0.85rem;
    color: #696969;
}

.precio-anual {
    display: none;
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.pricing-card .plan-features li {
    padding: 0.5rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card .plan-features li:last-child {
    border-bottom: none;
}

.pricing-card .plan-features li i {
    color: #cc1414;
    margin-right: 6px;
}

.btn-plan {
    background: #cc1414;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.3s;
    width: 100%;
}

.btn-plan:hover {
    background: #a01010;
    color: #fff;
}

.btn-plan-outline {
    background: transparent;
    color: #cc1414;
    border: 2px solid #cc1414;
    border-radius: 25px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-plan-outline:hover {
    background: #cc1414;
    color: #fff;
}

/* ========== MAPA / COBERTURA ========== */
.mapa-container {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

/* ========== DESCARGA ========== */
.seccion-descarga {
    background: url('/images/misc/cta-bg.jpg') center/cover fixed;
    position: relative;
    padding: 5rem 0 8rem;
    overflow: visible;
    margin-bottom: 100px;
}

.seccion-descarga::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.seccion-descarga .container {
    position: relative;
    z-index: 1;
}

.seccion-descarga h2,
.seccion-descarga > .container > p {
    color: #fff;
}

.descarga-cards {
    margin-bottom: -100px;
}

.descarga-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.descarga-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.descarga-card-icono {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 1.2rem;
}

.descarga-card h4 {
    font-weight: 700;
    color: #32373c;
    margin-bottom: 0.8rem;
}

.descarga-card p {
    color: #696969;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-descarga {
    border: 2px solid #cc1414;
    color: #cc1414;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-descarga:hover {
    background: #cc1414;
    color: #fff;
}

.btn-descarga-disabled {
    border: 2px solid #ccc;
    color: #999;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    cursor: default;
}

/* ========== FAQ ========== */
#faq {
    background: #fff;
}

.faq-img {
    max-width: 100%;
    border-radius: 10px;
}

.accordion-item {
    border: none;
    background: #fff;
    border-radius: 12px !important;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    padding: 1.2rem 1.5rem;
    border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
    background-color: #cc1414;
    color: #fff;
    box-shadow: none;
    border-radius: 12px 12px 0 0 !important;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1.2rem 1.5rem;
    color: #696969;
    line-height: 1.7;
}

/* ========== CLIENTES ========== */
#clientes {
    background: #fff;
}

.clientes-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 1.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #cc1414 #f1f1f1;
    align-items: center;
    justify-content: center;
}

.clientes-slider::-webkit-scrollbar {
    height: 6px;
}

.clientes-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.clientes-slider::-webkit-scrollbar-thumb {
    background: #cc1414;
    border-radius: 10px;
}

.cliente-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cliente-logo {
    height: 180px;
    width: 250px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.cliente-logo:hover {
    transform: scale(1.05);
}

/* ========== CONTACTO (#contact) ========== */
#contact {
    background: #f8f9fa;
}

.contacto-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contacto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contacto-card-icono {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #cc1414, #a01010);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.contacto-card h5 {
    font-weight: 600;
    font-size: 1rem;
    color: #32373c;
    margin-bottom: 0.3rem;
}

.contacto-card p {
    color: #696969;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.contacto-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contacto-form-card .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #32373c;
    margin-bottom: 0.3rem;
}

.contacto-input {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
    background: #fff !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

.contacto-input:focus {
    border-color: #cc1414 !important;
    box-shadow: 0 0 0 3px rgba(204, 20, 20, 0.1) !important;
    background: #fff !important;
}

.btn-contacto {
    background: linear-gradient(135deg, #cc1414, #a01010);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(204, 20, 20, 0.3);
}

.btn-contacto:hover {
    background: linear-gradient(135deg, #a01010, #8b0e0e);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 20, 20, 0.4);
}

/* ========== MAPA COBERTURA ========== */
.mapa-tooltip {
    background: #cc1414;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mapa-tooltip::before {
    border-top-color: #cc1414 !important;
}

/* ========== FOOTER ========== */
#footer {
    background: rgba(0, 0, 0, 0.90);
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    max-height: 50px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s;
    font-size: 1rem;
}

.footer-social a:hover {
    background: #cc1414;
    border-color: #cc1414;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 1.5rem 0;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ========== BOTON SUBIR ========== */
.btn-subir {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: #cc1414;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-300px) scale(0.3);
}

.btn-subir.visible {
    opacity: 1;
    visibility: visible;
    animation: caerGota 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes caerGota {
    0% {
        opacity: 0;
        transform: translateY(-300px) scale(0.3);
    }
    60% {
        opacity: 1;
        transform: translateY(10px) scale(1.1);
    }
    80% {
        transform: translateY(-5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-subir:hover {
    background: #a01010;
    transform: scale(1.1);
}

/* ========== ANIMACIONES SCROLL ========== */
.animar {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animar[data-animacion="fade-up"] { transform: translateY(40px); }
.animar[data-animacion="fade-left"] { transform: translateX(-40px); }
.animar[data-animacion="fade-right"] { transform: translateX(40px); }
.animar[data-animacion="scale"] { transform: scale(0.85); }
.animar[data-animacion="fade"] { transform: none; }

.animar.animado {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .animar {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    #inicio {
        padding-top: 100px;
        padding-bottom: 6rem;
        text-align: center;
    }

    #inicio h1 {
        font-size: 2rem;
    }

    .hero-img {
        max-height: 500px;
        margin-bottom: -150px;
    }

    .hero-transition svg {
        height: 150px;
    }

    #nosotros {
        padding-top: 10rem;
    }

    .bot-img {
        max-width: 200px;
        margin-bottom: 2rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    #inicio h1 {
        font-size: 1.7rem;
    }

    .hero-img {
        max-height: 380px;
        max-width: 100%;
        margin-bottom: -100px;
    }

    .hero-transition svg {
        height: 100px;
    }

    #nosotros {
        padding-top: 7rem;
    }

    .precio {
        font-size: 2rem;
    }

    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .btn-tienda img {
        height: 42px;
    }

    .carousel-item img {
        max-height: 350px;
    }

    .faq-img {
        display: none;
    }
}
