:root {
    /* Mantén estos que no son dinámicos */
    --dark: #1a1f27;
    --light: #f8f9fa;
    --gray: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Variables de compatibilidad (puedes eliminarlas luego de migrar todo) */
    --primary: var(--color-primary-500);
    --primary-light: var(--color-primary-300);
    --primary-dark: var(--color-primary-700);
    --secondary: var(--color-secondary-500);
}

body {
    font-family: "Inter", sans-serif;
    /* Cambiado a Inter para un look más moderno */
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Animación para el logo */
@keyframes pulse-attention {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-attention {
    animation: pulse-attention 1.5s infinite;
}

/* Animación para partículas */
@keyframes rise {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--color-primary-300);
    pointer-events: none;
    z-index: 0;
}

/* Ajustes para móviles */
@media (max-width: 640px) {
    .mobile-footer-padding {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .mobile-logo {
        height: 18vw;
        max-height: 80px;
    }

    .mobile-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.dark body {
    background-color: #111827;
    color: #f3f4f6;
}

.primary-footer,
.primary-soon {
    color: var(--color-primary-500);
}

.primary-footer:hover {
    color: var(--color-primary-400);
    text-decoration: underline;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--dark), #1a1f27);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgb(26, 31, 39, 0.95);
    backdrop-filter: blur(10px);
}

.logo-img {
    height: 60px;
    /* height: 70px; antes 60px */
    transition: all 0.3s ease;
    /* width: 210px; Ajusta el ancho según sea necesario */
}

.nav-link {
    color: white;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active {
    color: var(--color-primary-300);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary-300);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link:active::after {
    width: 70%;
}

.nav-link.active-touch {
    color: var(--color-primary-300) !important;
}

.nav-link.active-touch::after {
    width: 70% !important;
}

/* Hero Section */

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("https://images.unsplash.com/photo-1518544866330-95a2701237a3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
    padding: 0 1rem;
}

.hero-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-prize {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 300px;
}

.hero-prize:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.hero-prize-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-prize-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    color: white;
}

.hero-prize-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-prize-description {
    font-size: 1rem;
    opacity: 0.9;
}

/* Ticket Price Highlight */
.ticket-price-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    margin: 1rem 0 3rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-300);
    border: 2px solid var(--color-primary-300);
    box-shadow: 0 0 20px rgba(var(--color-primary-300-rgb), 0.3);
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    margin: 1.5rem 0;
    max-width: 100%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar {
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#0067ff,#cbc834);
    border-radius: 5px;
    transition: width 1s ease;
}

/* Countdown Container */
.countdown-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1.5rem;
    display: none;
    max-width: 100%;
}

.countdown-item {
    min-width: 60px;
    padding: 0.75rem;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-300);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Prize Carousel */
.prize-carousel {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary-300);
    opacity: 1;
}

/* Tickets Section */
.tickets-section {
    background: #f3f4f6;
    padding: 5rem 0;
}

.dark .tickets-section {
    background: #111827;
}

.ticket-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark .ticket-card {
    background: #1f2937;
    border: 1px solid #374151;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Todos los cards en modo oscuro */
.dark .prize-card,
.dark .ticket-card,
.dark .payment-method {
    background: #1f2937;
    border: 1px solid #374151;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Contenedor de información en tickets */
.dark .bg-gray-100 {
    background-color: #374151 !important;
    border: 1px solid #4b5563;
}

/* Textos en modo oscuro */
.dark .text-gray-600,
.dark .text-gray-500,
.dark .text-gray-300 {
    color: #d1d5db !important;
}

/* Inputs en modo oscuro */
.dark input,
.dark .file-upload {
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
    color: #f3f4f6 !important;
}

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

.ticket-quantity-btn,
.ticket-increment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    background: var(--color-primary-500);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-increment-btn {
    width: 10%;
}

.ticket-quantity-btn:hover,
.ticket-increment-btn:hover {
    background: var(--color-primary-600);
    transform: scale(1.05);
}

.ticket-quantity-btn.active,
.ticket-increment-btn.active {
    background: var(--color-primary-300);
    color: var(--dark);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--color-primary-300-rgb), 0.4);
}

.input-quantity {
    width: 100%;
    height: 60px;
    border: 2px solid var(--color-primary-500);
    border-radius: 0.5rem;
    padding: 0 1rem;
    font-size: 1.2rem;
    color: var(--dark);
    background: white;
    transition: all 0.3s ease;
    text-align: center;
    background-color: var(--color-primary-400);
}

.input-quantity:focus {
    outline: none;
    border-color: var(--color-primary-600);
    box-shadow: 0 0 5px rgba(var(--color-primary-500-rgb), 0.3);
}

.input-quantity:hover {
    background: var(--color-primary-300);
}

/* Payment Section */
.payment-section {
    padding: 5rem 0;
    background: white;
}

.dark .payment-section {
    background: #1f2937;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.dark .payment-method {
    border-color: #4b5563;
    background: #374151;
}

.payment-method:hover {
    border-color: var(--color-primary-500);
    transform: translateY(-3px);
}

.payment-method.selected {
    border-color: var(--color-primary-500);
    background: rgba(var(--color-primary-500-rgb), 0.1);
}

.dark .payment-method.selected {
    background: rgba(var(--color-primary-300-rgb), 0.1);
}

.payment-method-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 1rem;
}

.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .file-upload {
    border-color: #4b5563;
    background: #374151;
}

.file-upload:hover {
    border-color: var(--color-primary-500);
    background: rgba(var(--color-primary-500-rgb), 0.05);
}

.dark .file-upload:hover {
    background: rgba(var(--color-primary-300-rgb), 0.05);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--dark), #2a2a3a);
    color: white;
    padding: 4rem 0 2rem;
}

.main-footer-soon {
    background: linear-gradient(135deg, var(--dark), #2a2a3a);
    color: white;
    padding: 2rem 0 2rem;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-link {
    color: #d1d5db;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary-300);
    text-decoration: none;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-primary-500);
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background: var(--color-primary-500);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--color-primary-600);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--color-primary-500-rgb), 0.3);
}

.btn-secondary {
    background: var(--color-secondary-500);
    /* color: var(--dark); */
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: var(--color-secondary-400);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--color-secondary-500-rgb), 0.3);
}

/* Utility Classes */
.section-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary-500);
    border-radius: 2px;
}

.text-gradient {
    background: linear-gradient(90deg,
            var(--color-primary-500),
            var(--color-primary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

/*Search Tickets  */
/* Search Container Styles */
.search-container {
    margin-bottom: 2rem;
}

.search-flex-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .search-flex-container {
        flex-direction: row;
    }
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    background-color: var(--light);
    color: var(--dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-500-rgb), 0.2);
}

.dark .search-input {
    border-color: var(--gray-500);
    /* Ajustado a variable existente */
    background-color: var(--gray-800);
    /* Nueva variable */
    color: var(--light);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

/* Empty State Styles */
.search-empty-state {
    background-color: var(--gray-100);
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.dark .search-empty-state {
    background-color: var(--gray-700);
    border: 1px solid var(--gray-600);
}

.search-empty-icon {
    font-size: 1.75rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.dark .search-empty-icon {
    color: var(--gray-500);
}

.search-empty-text {
    color: var(--gray-600);
    margin: 0;
}

.dark .search-empty-text {
    color: var(--gray-400);
}

/* Search Results Styles */
.search-results-container {
    margin-bottom: 1.5rem;
}

.search-results-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.dark .search-results-title {
    color: var(--light);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-result-item {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--light);
}

.dark .search-result-item {
    border-color: var(--gray-600);
    background-color: var(--gray-700);
}

.search-result-item:hover {
    background-color: var(--gray-50);
}

.dark .search-result-item:hover {
    background-color: var(--gray-700);
}

.search-result-item-active {
    border-color: var(--color-primary-500);
    background-color: rgba(var(--color-primary-500-rgb), 0.1);
}

.dark .search-result-item-active {
    background-color: var(--gray-700);
    border-color: var(--color-primary-500);
}

.search-result-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.search-result-name {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.dark .search-result-name {
    color: var(--light);
}

.search-result-id {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.dark .search-result-id {
    color: var(--gray-400);
}

.search-result-badge {
    font-size: 0.75rem;
    background-color: var(--color-primary-400);
    color: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.dark .search-result-badge {
    background-color: var(--color-primary-600);
}

.search-pagination {
    margin-top: 1rem;
    color: var(--gray-300);
}

.dark .search-pagination {
    color: var(--gray-300);
}

@media (hover: none) {
    .nav-link:hover {
        color: white;
        /* Restablece el color normal */
    }

    .nav-link:active {
        color: var(--color-primary-300);
        /* Aplica el efecto al tocar */
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-prize {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
        min-height: 400px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-description,
    .progress-container {
        margin-left: auto;
        margin-right: auto;
    }

    .ticket-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .search-results-title {
        font-size: 1.1rem;
    }

    .search-result-name {
        font-size: 0.95rem;
    }

    .search-result-id {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text {
        order: 2;
        padding: 0;
    }

    .hero-prize {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .ticket-price-highlight {
        font-size: 1.3rem;
        padding: 0.4rem 1.2rem;
        margin: 0.75rem 0;
    }

    .progress-container,
    .countdown-container {
        padding: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    .hero-prize {
        min-height: 250px;
        height: auto;
        margin: 0 auto;
        width: 100%;
    }

    .hero-prize-image {
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .swiper-slide {
        /*padding: 0 15px;*/
        box-sizing: border-box;
    }

    .theme-toggle {
        position: relative;
        width: 40px;
        height: 40px;
    }

    .theme-toggle i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #detalles-rifa {
        padding: 1rem;
    }

    .ticket-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .search-input {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }

    .search-results-container {
        margin-bottom: 1rem;
    }

    .search-result-item {
        padding: 0.75rem;
    }

    /* Buyer info grid */
    .grid.grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Selected buyer info cards */
    .bg-white.dark\:bg-gray-800 {
        padding: 1rem;
    }

    h3.text-xl.font-bold {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .space-y-4>div {
        margin-bottom: 0.75rem;
    }

    .text-2xl.font-bold {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-prize {
        min-height: 300px;
    }

    .ticket-price-highlight {
        font-size: 1.1rem;
    }

    .countdown-item {
        min-width: 50px;
        padding: 0.5rem;
    }

    .countdown-value {
        font-size: 1.2rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding-left: 2.5rem;
    }

    .search-icon {
        left: 0.75rem;
        right: auto;
    }

    .search-result-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-result-badge {
        align-self: flex-start;
    }

    .search-empty-icon {
        font-size: 1.5rem;
    }

    .search-empty-text {
        font-size: 0.9rem;
    }

    /* Pagination */
    .search-pagination .flex.items-center {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-pagination .hidden {
        display: none;
    }

    .search-pagination .gap-2 {
        gap: 0.25rem;
    }

    .search-pagination .px-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--color-primary-300);
    transform: rotate(30deg);
}

#sunIcon,
#moonIcon,
#mobileSunIcon,
#mobileMoonIcon {
    transition: all 0.3s ease;
}

:root:not(.dark) #moonIcon,
:root:not(.dark) #mobileMoonIcon {
    display: block;
}

:root:not(.dark) #sunIcon,
:root:not(.dark) #mobileSunIcon {
    display: none;
}

.dark #moonIcon,
.dark #mobileMoonIcon {
    display: none;
}

.dark #sunIcon,
.dark #mobileSunIcon {
    display: block;
}

/* Prevenir scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* En tu archivo CSS */
.animate-pulse-once {
    animation: pulseOnce 0.5s ease-in-out;
}

@keyframes pulseOnce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Transición suave para el modal */
.modal-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-enter {
    opacity: 0;
    transform: translateY(-20px);
}

.modal-enter-active {
    opacity: 1;
    transform: translateY(0);
}

.modal-exit {
    opacity: 1;
    transform: translateY(0);
}

.modal-exit-active {
    opacity: 0;
    transform: translateY(-20px);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.opacity-0 {
    opacity: 0;
}

.translate-y-4 {
    transform: translateY(1rem);
}

/* Animación de spin para el ícono de carga */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

input.error,
select.error,
textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

@keyframes gradient-x {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse-intense {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes bounce-slow {

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

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

.animate-gradient-x {
    animation: gradient-x 3s ease infinite;
}

.animate-pulse-intense {
    animation: pulse-intense 2s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

.bg-300pct {
    background-size: 300% 300%;
}

.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Custom styles for Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    /* Ensures the arrow icons are white */
    background-color: rgba(0, 0, 0, 0.3);
    /* Semi-transparent black background */
    width: 44px;
    /* Default Swiper button size */
    height: 44px;
    /* Default Swiper button size */
    border-radius: 50%;
    /* Makes the buttons round */
    transition: background-color 0.3s ease;
    /* Smooth transition on hover */
    display: flex;
    /* Use flexbox for centering content */
    align-items: center;
    /* Vertically center content */
    justify-content: center;
    /* Horizontally center content */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.6);
    /* Darker background on hover */
}

/* Adjust icon size for better visibility */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem !important;
    /* Increase the size of the default Swiper arrow icons */
}

/* Ensure Swiper container and slides take full available width and height */
.swiper {
    width: 100%;
    height: 100%;
    /* Or a specific height if the parent has one */
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the entire area, cropping if necessary */
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #2d3748;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Animación del spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Efecto de entrada del modal */
.modal-enter {
    animation: modalEnter 0.3s ease-out forwards;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Loading en los enlaces de navegación */
.nav-link-loading {
    pointer-events: none;
    opacity: 0.7;
}

.pagination-custom>div>nav>div:nth-child(2)>div>p {
    font-size: 0.8rem;
}

/* Estilos para los tickets */
.ticket {
    border: 2px dashed #333;
    border-radius: 8px;
    text-align: center;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 8px;
    vertical-align: top;
}

/* Tamaño grande (20% más grande que normal-size) */
.ticket.large-size {
    width: 180px;
    padding: 20px;
}

/* Tamaño normal (base) */
.ticket.normal-size {
    width: 150px;
    padding: 16px;
}

/* Tamaño reducido (20% más pequeño que normal-size) */
.ticket.small-size {
    width: 100px;
    padding: 10px;
}

/* Estilo para badges (más de 150 tickets) */
.ticket.badge-size {
    width: 48px;
    padding: 4px;
    margin: 2px;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
}

/* Colores de tickets */
.orange {
    background-color: #ffa500;
    color: #000;
}

.pink {
    background-color: #ff69b4;
    color: #000;
}

.blue {
    background-color: #87ceeb;
    color: #000;
}

.green {
    background-color: rgb(84, 185, 114);
    color: #000;
}

.purple {
    background-color: rgb(159, 81, 190);
    color: #000;
}

.red {
    background-color: rgb(192, 88, 62);
    color: #000;
}

/* Tamaños de fuente para números (responsive) */
.ticket-number.large-size {
    font-size: 23px;
}

.ticket-number.normal-size {
    font-size: 19px;
}

.ticket-number.small-size {
    font-size: 14px;
}

.ticket-number.badge-size {
    font-size: 10px;
}

.ticket-number {
    font-weight: bold;
    color: #333;
}

/* Tamaños de label */
.ticket-label.large-size {
    font-size: 14px;
}

.ticket-label.normal-size {
    font-size: 12px;
}

.ticket-label.small-size {
    font-size: 10px;
}

.ticket-label.badge-size {
    display: none;
}

.ticket-label {
    color: #000;
    margin-top: 5px;
}

/* Contenedor de tickets con scroll */
.tickets-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
}

/* Resumen cuando hay muchos tickets */
.tickets-summary {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    border: 1px solid #e2e8f0;
}

/* Ícono del ticket (Font Awesome) */
.ticket .fa-ticket-alt {
    display: block;
    margin-bottom: 8px;
}

.ticket.large-size .fa-ticket-alt {
    font-size: 30px !important;
}

.ticket.normal-size .fa-ticket-alt {
    font-size: 25px !important;
}

.ticket.small-size .fa-ticket-alt {
    font-size: 20px !important;
}

.ticket.badge-size .fa-ticket-alt {
    display: none;
}

/* Estado del ticket */
.ticket-status {
    margin-top: 8px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Responsive para móviles */
@media (max-width: 600px) {
    .ticket.large-size {
        width: 140px;
        padding: 16px;
    }

    .ticket.normal-size {
        width: 120px;
        margin: 8px 0;
    }

    .ticket.small-size {
        width: calc(50% - 16px);
        margin: 5px;
    }

    .ticket.badge-size {
        width: 40px;
        padding: 3px;
    }
}

/* Transiciones suaves para los toggles */
.toggle-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.toggle-content.collapsed {
    max-height: 0;
    display: none;
}

.toggle-content.expanded {
    max-height: 1000px;
    /* Ajustar según necesidad */
    display: block;
}

#tickets-container {
    scroll-behavior: smooth;
    transition: scroll-top 0.3s ease;
}


@keyframes pulse-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}