﻿/* ============================================================
   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;
}

/* ========== TARJETA DESTACADA: ONIX e-CF API (PSFE/DGII) ========== */
.feature-card-highlight {
    background: linear-gradient(135deg, #fff 0%, #fef3f2 100%);
    border: 2px solid #cc1414;
    border-radius: 16px;
    padding: 30px 32px;
    margin-top: 30px;
    box-shadow: 0 12px 32px rgba(204, 20, 20, 0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(204, 20, 20, 0.18);
}

.feature-card-highlight h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #32373c;
    margin: 6px 0 8px;
}

.feature-card-highlight p {
    color: #696969;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.feature-highlight-icon {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, #cc1414, #a30f0f);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
    box-shadow: 0 8px 20px rgba(204, 20, 20, 0.35);
}

.feature-highlight-icon i {
    font-size: 2rem;
}

.feature-highlight-badge {
    display: inline-flex;
    align-items: center;
    background: #cc1414;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.btn-conocer-mas {
    display: inline-flex;
    align-items: center;
    background: #cc1414;
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(204, 20, 20, 0.3);
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-conocer-mas:hover {
    background: #a30f0f;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(204, 20, 20, 0.4);
}

.btn-conocer-mas:active {
    transform: scale(0.97);
}

@@media (max-width: 768px) {
    .feature-card-highlight {
        padding: 24px 20px;
        text-align: center;
    }

    .feature-card-highlight h4 {
        font-size: 1.2rem;
    }

    .feature-highlight-icon {
        width: 64px;
        height: 64px;
    }

    .feature-highlight-icon i {
        font-size: 1.6rem;
    }
}

/* ========== 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);
}

/* Disclaimer DGII / PSFE en el footer */
.footer-disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.7;
    margin-top: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.footer-disclaimer strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ========== 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;
    }
}

/* ==========================================================================
   PAGINAS LEGALES Y DE CONTENIDO (Politica Privacidad, Terminos, Cookies,
   ONIX e-CF API, Soporte e-CF, Estado del servicio).
   Clase reutilizable: .legal-content
   ========================================================================== */

.legal-content {
    max-width: 920px;
    margin: 110px auto 60px;
    padding: 0 22px;
    color: #32373c;
    font-size: 0.97rem;
    line-height: 1.75;
}

.legal-content .legal-header {
    border-bottom: 3px solid #cc1414;
    padding-bottom: 18px;
    margin-bottom: 28px;
}

.legal-content h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #32373c;
    margin: 0 0 8px;
}

.legal-content .legal-meta {
    color: #696969;
    font-size: 0.9rem;
    margin: 0;
}

.legal-content .legal-toc {
    background: #f8fafc;
    border-left: 4px solid #cc1414;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 36px;
}

.legal-content .legal-toc h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #696969;
    margin: 0 0 12px;
    border: none;
    padding: 0;
}

.legal-content .legal-toc ol {
    columns: 2;
    column-gap: 28px;
    margin: 0;
    padding-left: 22px;
    font-size: 0.9rem;
}

.legal-content .legal-toc a {
    color: #32373c;
    text-decoration: none;
}

.legal-content .legal-toc a:hover {
    color: #cc1414;
    text-decoration: underline;
}

.legal-content section {
    margin-bottom: 36px;
    scroll-margin-top: 110px;
}

.legal-content h2 {
    font-size: 1.45rem;
    font-weight: 600;
    color: #32373c;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cc1414;
    margin: 22px 0 10px;
}

.legal-content p {
    margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.legal-content li {
    margin-bottom: 6px;
}

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

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content .legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    font-size: 0.92rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.legal-content .legal-table thead {
    background: #cc1414;
    color: #fff;
}

.legal-content .legal-table th,
.legal-content .legal-table td {
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.legal-content .legal-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.legal-content .legal-table tbody th {
    background: #f1f5f9;
    width: 40%;
    font-weight: 600;
}

.legal-content small {
    color: #696969;
}

@@media (max-width: 768px) {
    .legal-content {
        margin-top: 90px;
        font-size: 0.93rem;
    }

    .legal-content h1 {
        font-size: 1.65rem;
    }

    .legal-content .legal-toc ol {
        columns: 1;
    }

    .legal-content .legal-table {
        font-size: 0.85rem;
    }

    .legal-content .legal-table th,
    .legal-content .legal-table td {
        padding: 8px 10px;
    }
}

@@media print {
    .legal-content {
        max-width: 100%;
        margin: 0;
        padding: 0;
        font-size: 11pt;
    }

    .legal-content .legal-toc {
        page-break-after: always;
    }

    nav, footer, .whatsapp-float, #btn-subir, .cookie-banner {
        display: none !important;
    }
}

/* ==========================================================================
   PAGINA DEL PRODUCTO ONIX e-CF API (.ecf-page)
   Extiende .legal-content con elementos visuales de producto.
   ========================================================================== */

.ecf-page .ecf-hero {
    text-align: center;
    border-bottom: 3px solid #cc1414;
    padding-bottom: 30px;
    margin-bottom: 36px;
}

.ecf-page .ecf-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 12px 0 8px;
}

.ecf-page .ecf-lead {
    font-size: 1.15rem;
    color: #cc1414;
    font-weight: 500;
    margin-bottom: 18px;
}

.ecf-page .ecf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #cc1414, #a30f0f);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(204, 20, 20, 0.25);
}

.ecf-page .ecf-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 18px 0 8px;
}

.ecf-page .ecf-feature {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ecf-page .ecf-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cc1414;
}

.ecf-page .ecf-feature i {
    font-size: 1.9rem;
    color: #cc1414;
    margin-bottom: 12px;
}

.ecf-page .ecf-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #32373c;
}

.ecf-page .ecf-feature p {
    font-size: 0.88rem;
    color: #696969;
    margin: 0;
    line-height: 1.5;
}

.ecf-page .ecf-checklist {
    list-style: none;
    padding-left: 0;
}

.ecf-page .ecf-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.ecf-page .ecf-checklist li::before {
    content: "\f00c"; /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
    font-size: 0.95rem;
}

.btn-ecf-primary,
.btn-ecf-secondary {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-ecf-primary {
    background: #cc1414;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(204, 20, 20, 0.25);
}

.btn-ecf-primary:hover {
    background: #a30f0f;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(204, 20, 20, 0.35);
}

.btn-ecf-secondary {
    background: transparent;
    color: #cc1414 !important;
    border: 2px solid #cc1414;
}

.btn-ecf-secondary:hover {
    background: #cc1414;
    color: #fff !important;
}

.btn-ecf-primary:active,
.btn-ecf-secondary:active {
    transform: scale(0.97);
}

.ecf-page .ecf-cta-final {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   STATUS PAGE (.status-banner, .status-pill, .status-dot)
   ========================================================================== */

.status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    border-radius: 14px;
    margin: 26px 0 36px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.status-banner i {
    font-size: 2rem;
    flex-shrink: 0;
}

.status-banner > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-banner strong {
    font-size: 1.05rem;
}

.status-banner-meta {
    font-size: 0.82rem;
    opacity: 0.8;
}

.status-banner.status-operational {
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    color: #064e3b;
}

.status-banner.status-operational i {
    color: #10b981;
}

.status-banner.status-degraded {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    color: #78350f;
}

.status-banner.status-degraded i {
    color: #f59e0b;
}

.status-banner.status-down {
    background: #fef2f2;
    border: 1.5px solid #ef4444;
    color: #7f1d1d;
}

.status-banner.status-down i {
    color: #ef4444;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-pill-ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

.status-pill-warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.status-pill-down {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: pulse-dot 2s infinite;
}

@@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.06); }
}

.status-table tbody td:nth-child(2) {
    width: 180px;
}

@@media (max-width: 768px) {
    .ecf-page .ecf-hero h1 {
        font-size: 1.9rem;
    }

    .ecf-page .ecf-lead {
        font-size: 1rem;
    }

    .ecf-page .ecf-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@@media (max-width: 480px) {
    .ecf-page .ecf-feature-grid {
        grid-template-columns: 1fr;
    }

    .ecf-page .ecf-cta-final {
        flex-direction: column;
    }

    .btn-ecf-primary,
    .btn-ecf-secondary {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   BANNER DE CONSENTIMIENTO DE COOKIES
   Oculto por defecto. La clase .mostrar lo activa (controlada por JS).
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 18px;
    left: 18px;
    right: 18px;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(20, 22, 30, 0.97);
    color: #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10000;
    display: none;
    flex-direction: column;
    gap: 14px;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner.mostrar {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.cookie-banner-text a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #cc1414;
    text-underline-offset: 3px;
}

.cookie-banner-text a:hover {
    color: #cc1414;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-cookie-accept,
.btn-cookie-reject {
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}

.btn-cookie-accept {
    background: #cc1414;
    color: #fff;
}

.btn-cookie-accept:hover {
    background: #a30f0f;
}

.btn-cookie-accept:active {
    transform: scale(0.97);
}

.btn-cookie-reject {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

@@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        gap: 22px;
    }

    .cookie-banner-text {
        flex: 1;
    }

    .cookie-banner-actions {
        flex-shrink: 0;
    }
}

@@media (max-width: 480px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 14px 16px;
    }

    .cookie-banner-text {
        font-size: 0.83rem;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .btn-cookie-accept,
    .btn-cookie-reject {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}
