/* TICKET MODAL */
.ticket {
    background: #fff;
    padding: 40px 30px;
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    color: #222;
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}

.ticket::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background-size: 16px 8px;
    background-image: radial-gradient(circle at 8px 0, transparent 4px, #fff 4.5px);
}

.ticket::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background-size: 16px 8px;
    background-image: radial-gradient(circle at 8px 8px, transparent 4px, #fff 4.5px);
}

.ticket-shape {
    background: #fff;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.ticket-shape::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background-size: 24px 14px;
    background-image: radial-gradient(circle at 12px 0, transparent 8px, #fff 8.5px);
}

.ticket-shape::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background-size: 24px 14px;
    background-image: radial-gradient(circle at 12px 14px, transparent 8px, #fff 8.5px);
}

/* TICKET ACORDEON CARACTERISTICAS*/
.ticket-accordion .accordion-button:not(.collapsed) {
    color: #222 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.ticket-accordion .accordion-button:focus {
    box-shadow: none !important;
}

.ticket-accordion .accordion-button::after {
    filter: grayscale(1) brightness(0);
}

.ticket-header {
    text-align: center;
    font-weight: bold;
}

.ticket-logo {
    width: 180px;
    margin-bottom: 15px;
    filter: grayscale(100%);
}

.ticket-divider {
    border-top: 2px dashed #666;
    margin: 20px 0;
}

.ticket-form-group {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ticket-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95rem;
    white-space: nowrap;
    margin-right: 10px;
}

.ticket-input {
    border: none;
    border-bottom: 1px dotted #999;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: #000;
    width: 100%;
    outline: none;
    padding: 2px 0;
    text-align: right;
    font-weight: bold;
}

.ticket-input:focus {
    border-bottom: 1px dashed #000;
}

.ticket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    color: #fff;
}

.ticket-total * {
    color: #fff !important;
}

.ticket-total::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -2%;
    width: 0;
    height: 95%;
    background-color: #1d734d;
    border-radius: 15px 55px 12px 45px / 45px 12px 55px 15px;
    z-index: -1;
    transform: rotate(-1.5deg);
}

.ticket-total.animate-marker::after {
    animation: drawMarker 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.1s;
}

.col-md-6:nth-child(2) .ticket-total.animate-marker::after {
    animation-delay: 0.9s;
}

@keyframes drawMarker {
    0% {
        width: 0;
    }

    100% {
        width: 106%;
        /* Más ancho horizontalmente */
    }
}

/* Excluir el subrayador del ticket de demostración */
#demo .ticket-total::after {
    display: none;
}

#demo .ticket-total {
    color: #000;
}

#demo .ticket-total * {
    color: inherit !important;
}

.ticket-btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-btn:hover {
    background: #fff;
    color: #000;
}

/* ANIMACIONES TICKET ACORDEON CARACTERISTICAS */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.print-animation-active {
    animation: printUp 1.5s ease-in-out forwards;
}

@keyframes printUp {
    0% {
        transform: translateY(-100%);
    }

    20% {
        transform: translateY(-75%);
    }

    25% {
        transform: translateY(-75%);
    }

    45% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-50%);
    }

    70% {
        transform: translateY(-25%);
    }

    75% {
        transform: translateY(-25%);
    }

    95% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
    }
}

.blade-cut-active {
    animation: bladeSwipe 0.3s ease-in-out forwards;
}

@keyframes bladeSwipe {
    0% {
        left: 0%;
        width: 15%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        left: 100%;
        width: 15%;
        opacity: 0;
    }
}

.ticket-cut-drop {
    animation: ticketDrop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

/* RESPONSIVE */
@keyframes ticketDrop {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(15px);
    }
}

.printer-container {
    max-width: 500px;
    padding-top: 105px;
    margin-bottom: 20px;
}

.ticket-mask {
    padding-top: 5px;
    padding-bottom: 40px;
    margin-top: -20px;
    margin-bottom: -30px;
}

#features-ticket {
    font-family: 'Courier New', Courier, monospace;
    color: #222;
    margin-top: 0;
    margin-bottom: 15px;
    width: 90%;
    max-width: 400px;
    transform: translateY(-100%);
}

.ticket-logo-bg {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 80px;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    filter: grayscale(100%);
}

.ticket-header-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    border-bottom: 2px dashed #666;
    padding-bottom: 15px;
}

.printer-body {
    top: 0;
    height: 110px;
    background: linear-gradient(180deg, #1f1f1f 0%, #2b2b2b 100%);
    border-radius: 12px;
    border: 1px solid #111;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column-reverse;
}

.printer-top {
    height: 55px;
    background: #262626;
    border-radius: 0 0 12px 12px;
    border-top: 2px solid #151515;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.printer-front {
    height: 55px;
}

@media (min-width: 768px) {
    .printer-container {
        padding-top: 110px;
    }

    #features-ticket {
        width: 80%;
    }

    .ticket-logo-bg {
        width: 120px;
    }

    .ticket-header-title {
        font-size: 1.25rem;
    }

    .printer-body {
        height: 110px;
        border-radius: 16px;
    }

    .printer-top {
        height: 55px;
        border-radius: 0 0 16px 16px;
    }

    .printer-front {
        height: 55px;
    }
}

.rail-ticket {
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.15));
}

.rail-ticket::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background-size: 10px 5px;
    background-image: radial-gradient(circle at 5px 5px, transparent 2.5px, #fff 3px);
}

.celo {
    position: absolute;
    width: 28px;
    height: 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    top: -10px;
    left: 50%;
    z-index: 10;
    backdrop-filter: blur(1px);
}

@keyframes rail-swing-1 {
    0% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(1deg);
    }
}

@keyframes rail-swing-2 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(3deg);
    }
}

@keyframes rail-swing-3 {
    0% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(2deg);
    }
}

/* Toggle Switch de Precios */
#billingSwitch:checked {
    background-color: var(--tk-green);
    border-color: var(--tk-green);
}