@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-variable.woff2') format('woff2');
}

:root {
    --tk-green: #1d734d;
    --tk-green-dark: #145939;
    --tk-dark: #2c3136;
    --tk-gray-light: #f2f4f7;
    --tk-border: #e9ecef;
    --tk-white: #ffffff;
}

html {
    overflow-x: hidden;
    background-color: var(--tk-dark);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--tk-dark);
    background-color: var(--tk-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 87px;
}

.ticker-icons i svg {
    width: 3rem;
    height: 3rem;
    fill: currentColor;
}

.text-tk-green {
    color: var(--tk-green) !important;
}

.bg-tk-green {
    background-color: var(--tk-green) !important;
}

.bg-tk-dark {
    background-color: var(--tk-dark) !important;
}

footer {
    box-shadow: 0 50vh 0 50vh var(--tk-dark);
}

.bg-tk-gray {
    background-color: var(--tk-gray-light) !important;
}

.btn-primary {
    background-color: var(--tk-green);
    border-color: var(--tk-green);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(31, 120, 68, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tk-green-dark);
    border-color: var(--tk-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(31, 120, 68, 0.3);
}

.btn-outline-dark {
    font-weight: 500;
    border-width: 2px;
    padding: 8px 24px;
    border-radius: 8px;
}

.bg-elegant-gray {
    background-color: #f4f5f7 !important;
}

.bg-tk-green-light {
    background-color: rgba(31, 120, 68, 0.12) !important;
}

.bi {
    line-height: 1;
}

.bi svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 55px;
}

.nav-link {
    font-weight: 500;
    color: var(--tk-dark);
}

.hero-section {
    padding: 0px 0 80px;
    background-color: var(--tk-white);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #5a6066;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.form-control-lg {
    font-size: 1rem;
    border-radius: 8px;
    padding: 12px 16px;
    border: 2px solid var(--tk-border);
}

a.btn[href="#demo"] {
    display: inline-block;
    /* Required for transform to work perfectly */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center;
}

a.btn[href="#demo"]:hover {
    transform: scale(1.08) rotate(-3deg);
}

.form-control-lg:focus {
    border-color: var(--tk-green);
    box-shadow: 0 0 0 0.25rem rgba(31, 120, 68, 0.15);
}

.hardware-logos img {
    max-height: 35px;
    filter: grayscale(100%) opacity(60%);
    transition: all 0.3s ease;
}

.hardware-logos img:hover {
    filter: grayscale(0%) opacity(100%);
}

.feature-card {
    background: var(--tk-white);
    padding: 32px;
    border-radius: 12px;
    height: 100%;
    border: 1px solid var(--tk-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--tk-dark);
    margin-bottom: 16px;
    display: inline-block;
    background: var(--tk-gray-light);
    padding: 12px;
    border-radius: 12px;
}

.feature-card.highlight {
    border-color: rgba(31, 120, 68, 0.3);
    background: linear-gradient(to bottom, #ffffff, #fcfdfc);
    position: relative;
    overflow: hidden;
}

.ribbon-verifactu {
    position: absolute;
    top: 12px;
    right: -62px;
    background: var(--tk-green);
    border-top: 1px solid var(--tk-green-dark);
    border-bottom: 1px solid var(--tk-green-dark);
    transform: rotate(30deg);
    padding: 8px 0;
    box-shadow: 0 4px 15px rgba(31, 120, 68, 0.3);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
}

.ribbon-verifactu img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    position: relative;
    top: -2px;
    left: 15px;
}

.feature-card.highlight .feature-icon {
    color: var(--tk-green);
    background: rgba(31, 120, 68, 0.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    color: #5a6066;
    font-size: 0.95rem;
    line-height: 1.6;
}

.adv-feature-box {
    padding: 24px;
    border-radius: 12px;
    background: var(--tk-white);
    border: 1px solid var(--tk-border);
    height: 100%;
}

.adv-feature-icon {
    font-size: 1.8rem;
    color: var(--tk-green);
    margin-bottom: 16px;
    display: inline-block;
}

.custom-nav-pills .nav-link {
    color: #5a6066;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background-color: transparent;
}

.custom-nav-pills .nav-link:hover {
    background-color: rgba(31, 120, 68, 0.05);
    color: var(--tk-green);
}

.custom-nav-pills .nav-link.active {
    background-color: var(--tk-green) !important;
    color: var(--tk-white) !important;
    box-shadow: 0 4px 15px rgba(31, 120, 68, 0.3);
}

.hero-mockup {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 992px) {
    .hero-mockup {
        position: absolute;
        bottom: -10%;
        right: 0%;
        height: 120%;
        width: 65vw;
        object-fit: contain;
        object-position: bottom right;
        z-index: 0;
        opacity: 0.95;
    }
}

@media (min-width: 1200px) {
    .hero-mockup {
        width: 72vw;
    }
}

@media (min-width: 1400px) {
    .hero-mockup {
        width: 80vw;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-mockup {
        margin-bottom: -40px;
        width: 100%;
        margin-left: 0;
    }

    .tablet-mockup {
        margin-top: 50px;
        transform: none;
    }

    .tablet-mockup:hover {
        transform: none;
    }
}


#caracteristicas {
    scroll-margin-top: 8vh;
}

@media (max-width: 767px) {
    #caracteristicas {
        scroll-margin-top: 18vh;
    }
}

/* MARK: REPRODUCTOR 
*/
.custom-video-controls::-webkit-media-controls-volume-slider,
.custom-video-controls::-webkit-media-controls-mute-button {
    display: none !important;
}

@media (min-width: 768px) {
    .custom-video-controls::-webkit-media-controls-fullscreen-button {
        display: none !important;
    }
}

.modal-video-custom {
    max-width: 70vw;
}

@media (max-width: 767px) {
    .modal-video-custom {
        max-width: 95vw;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991px) {
    .custom-nav-pills .nav-link {
        min-width: 140px;
    }
}

@media (max-width: 767px) {
    .ticker-icons {
        gap: 0.8rem !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    .ticker-icons i svg {
        width: 1.8rem;
        height: 1.8rem;
    }
}

#credito,
.copy-right-text a {
    margin: 1em;
    transition: 1s;
    color: white !important;
    font-family: helvetica;
    font-weight: bold;
    border: 1px solid white !important;
    border-radius: 1em .3em;
    padding: .5em;
}

:is(#credito, .copy-right-text a):where(:focus, :hover) {
    transition: 1s;
    border-radius: .3em 1em;
    color: #07a8a2 !important;
    background-color: white;
}

@media (max-width:500px) {

    #credito,
    .copy-right-text a {
        display: block;
    }
}

.hanging-ticket {
    position: absolute;
    width: 60px;
    z-index: 2;
    transform-origin: top center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.ticket-tape {
    width: 30px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    position: relative;
    top: 6px;
    z-index: 3;
    backdrop-filter: blur(2px);
    transform: rotate(-3deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ticket-body {
    background: #ffffff;
    width: 100%;
    height: 80px;
    padding: 12px 6px;
    clip-path: polygon(0% 0%, 100% 0%,
            100% 100%, 90% 92%, 80% 100%, 70% 92%,
            60% 100%, 50% 92%, 40% 100%, 30% 92%,
            20% 100%, 10% 92%, 0% 100%);
}

.ticket-line {
    height: 4px;
    background: #e9ecef;
    margin-bottom: 6px;
    border-radius: 2px;
}

.ticket-line.short {
    width: 60%;
}

.ticket-line.green {
    background: var(--tk-green);
    opacity: 0.5;
}

@keyframes swing-1 {
    0% {
        transform: translateX(-50%) rotate(-4deg);
    }

    100% {
        transform: translateX(-50%) rotate(2deg);
    }
}

@keyframes swing-2 {
    0% {
        transform: translateX(-50%) rotate(3deg);
    }

    100% {
        transform: translateX(-50%) rotate(-3deg);
    }
}

@keyframes swing-3 {
    0% {
        transform: translateX(-50%) rotate(-2deg);
    }

    100% {
        transform: translateX(-50%) rotate(4deg);
    }
}

.hanging-ticket.t1 {
    animation: swing-1 4s ease-in-out infinite alternate;
}

.hanging-ticket.t2 {
    animation: swing-2 5s ease-in-out infinite alternate;
}

.hanging-ticket.t3 {
    animation: swing-3 4.5s ease-in-out infinite alternate;
}

/* Floating Contacts Expandable */
.floating-contact-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    align-items: flex-end;
}

.floating-contact-container.wa-hidden {
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    pointer-events: none;
}

.floating-btn {
    display: flex;
    align-items: center;
    background-color: var(--tk-dark);
    color: white;
    height: 54px;
    border-radius: 50px;
    padding: 0 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    white-space: nowrap;
    width: 54px;
}

.floating-btn:hover {
    background-color: #111417;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.phone-btn:hover {
    width: 170px;
}

.email-btn:hover {
    width: 250px;
}

.whatsapp-btn:hover {
    width: 170px;
    background-color: #25D366;
}

.floating-btn svg {
    flex-shrink: 0;
    margin-right: 15px;
}

.floating-text {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    transition-delay: 0s;
}

.floating-btn:hover .floating-text {
    opacity: 1;
    transition-delay: 0.1s;
}

@media (max-width: 768px) {
    .floating-contact-container {
        bottom: 16px;
        right: 16px;
    }

    .floating-btn {
        height: 48px;
        width: 48px;
        padding: 0 14px;
    }

    .phone-btn:hover {
        width: 150px;
    }

    .email-btn:hover {
        width: 230px;
    }

    .whatsapp-btn:hover {
        width: 150px;
    }

    .floating-btn svg {
        width: 20px !important;
        height: 20px !important;
        margin-right: 12px;
    }

    .floating-text {
        font-size: 0.85rem;
    }
}

/* WhatsApp Widget Styles */
.wa-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 320px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.wa-widget.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.wa-header {
    background-color: var(--tk-green);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-body {
    padding: 20px;
    background-color: #f7f7f7;
}

.wa-msg-bubble {
    background-color: #fff;
    padding: 12px 16px;
    border-radius: 0 12px 12px 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    width: fit-content;
    
    /* Animación tipo chat real (escala desde la esquina superior izquierda) */
    opacity: 0;
    transform: scale(0.5);
    transform-origin: top left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.wa-widget.show .wa-msg-bubble {
    opacity: 1;
    transform: scale(1);
}

/* Cascada de aparición de mensajes simulando tiempos de escritura */
.wa-widget.show .wa-msg-bubble:nth-child(1) {
    transition-delay: 0.5s;
}
.wa-widget.show .wa-msg-bubble:nth-child(2) {
    transition-delay: 1.4s;
}

.wa-msg-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 0px solid transparent;
    border-right: 8px solid #fff;
    border-bottom: 12px solid transparent;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--tk-green);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    
    /* Animación inicial oculta */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.2s;
}

.wa-widget.show .wa-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 2.1s; /* Aparece después de que haya "terminado de escribir" */
}

.wa-btn:hover {
    background-color: var(--tk-green-dark);
}

@media (max-width: 768px) {
    .wa-widget {
        bottom: 80px;
        right: 16px;
        width: 300px;
    }
}

/* Custom Emoji Switch Styles */
#billingSwitch:checked+.emoji-track {
    background-color: var(--tk-green) !important;
}

#billingSwitch:checked+.emoji-track .emoji-thumb {
    left: 2.45rem !important;
    transform: rotate(360deg);
}

/* Animación de inclinación para botones */
.btn-tilt {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-tilt:hover {
    transform: rotate(-3deg) scale(1.05) translateY(-2px) !important;
}

/* Hover effect for footer links */
.hover-white {
    transition: color 0.3s ease, transform 0.3s ease;
}

.hover-white:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* --- PRICING CARDS --- */
.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    background: #ffffff;
    border: 2px solid var(--tk-green);
    box-shadow: 0 15px 35px rgba(29, 115, 77, 0.15);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
    box-shadow: 0 25px 45px rgba(29, 115, 77, 0.2);
}

.pricing-card.secondary {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

.popular-badge {
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.pricing-features li {
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

.ticket-card::before,
.ticket-card::after {
    display: none !important;
}

.ticket-card {
    font-family: 'Inter', sans-serif !important;
}