html {
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--bs-primary, #6366f1);
    color: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', sans-serif;
}

.gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.gradient-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

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

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 4px 4px 16px rgba(0, 0, 0, 0.7);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
    padding: 0.65rem 1.65rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #6366f1;
    color: #ffffff;
    transform: translateY(-2px);
}

.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

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

.card img {
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.08);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(139, 92, 246, 0.75) 50%, rgba(168, 85, 247, 0.65) 100%);
    z-index: 1;
}

.hero-section.parallax::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.85) 100%);
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.counter {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.counter-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 0.5rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(99, 102, 241, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #6366f1;
    width: 32px;
    border-radius: 6px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #6366f1;
    background-color: rgba(255, 255, 255, 0.9);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem;
    font-weight: 700;
}

[data-aos] {
    transition-duration: 700ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: #9ca3af;
    padding: 0 0.75rem;
}

.breadcrumb-item a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6b7280;
    font-weight: 500;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.6s ease;
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-lightbox-overlay.active {
    display: flex;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10000;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.gallery-lightbox-close {
    top: 2rem;
    right: 2rem;
}

.gallery-lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.gallery-lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

.gallery-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #111827;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    z-index: 9995;
    max-width: 380px;
    animation: slideUpCookies 0.4s ease;
}

@keyframes slideUpCookies {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-banner.hidden {
    display: none;
}

.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.55);
}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.75rem;
    text-decoration: none;
    animation: whatsappPulse 2s ease infinite;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
}

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

.progress {
    height: 0.625rem;
    border-radius: 999px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 999px;
    transition: width 1s ease;
}

.form-control,
.form-select {
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
    display: block;
    font-size: 0.925rem;
}

.pagination {
    gap: 0.35rem;
}

.page-link {
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    font-weight: 500;
}

.page-link:hover {
    border-color: #6366f1;
    color: #6366f1;
    background-color: rgba(99, 102, 241, 0.05);
}

.page-item.active .page-link {
    background-color: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    border-radius: 0.5rem;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.dark .navbar,
.dark .navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.98) !important;
}

.dark .card {
    background-color: #1f2937;
    color: #f3f4f6;
}

.dark .card .text-muted,
.dark .text-muted {
    color: #9ca3af !important;
}

.dark .form-control,
.dark .form-select {
    background-color: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

.dark .form-control:focus,
.dark .form-select:focus {
    background-color: #1f2937;
    border-color: #6366f1;
}

.dark .page-link {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

.dark .breadcrumb-item.active {
    color: #d1d5db;
}

.animate-float {
    animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-float {
        animation: none;
    }
}

.rich-text-content ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0.75rem 0;
}

.rich-text-content ol {
    list-style: decimal;
    padding-left: 1.4rem;
    margin: 0.75rem 0;
}

.rich-text-content li {
    margin-bottom: 0.4rem;
}

.masonry-grid {
    column-count: 1;
    column-gap: 1rem;
}

.masonry-grid > * {
    break-inside: avoid;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 4;
    }
}

.table-striped.admin-table tbody tr:nth-of-type(odd) {
    background-color: rgba(99, 102, 241, 0.04);
}

.table-striped.admin-table thead th {
    background-color: #6366f1;
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table-striped.admin-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #e5e7eb;
}

.admin-table .badge {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -ms-backdrop-filter: blur(10px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    -moz-backdrop-filter: blur(4px);
    -ms-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    -ms-backdrop-filter: blur(20px);
}

@media print {
    .no-print,
    .navbar,
    .sidebar,
    .scroll-to-top,
    .whatsapp-float,
    .cookie-banner,
    footer,
    .btn,
    .pagination {
        display: none !important;
    }

    body {
        font-family: 'Times New Roman', serif;
        font-size: 12pt;
        color: #000000;
        background: #ffffff;
    }

    .receipt-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
        box-shadow: none;
    }

    .receipt-header {
        text-align: center;
        border-bottom: 2px double #000;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .receipt-footer {
        text-align: center;
        border-top: 1px solid #000;
        padding-top: 1.5rem;
        margin-top: 2rem;
        font-size: 10pt;
    }

    .receipt-table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
    }

    .receipt-table th,
    .receipt-table td {
        border: 1px solid #000;
        padding: 0.5rem;
        text-align: left;
    }

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

    @page {
        margin: 2cm;
    }
}

.countdown {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #6366f1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.faq-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.25s ease;
}

.faq-header:hover {
    background-color: rgba(99, 102, 241, 0.03);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #6366f1;
    font-size: 1.25rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-content {
    max-height: 600px;
}

.faq-body {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.7;
}

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    min-width: 320px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInToast 0.35s ease;
    border-left: 4px solid transparent;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }
.toast.warning { border-left-color: #f59e0b; }

@keyframes slideInToast {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.fading {
    animation: slideOutToast 0.35s ease forwards;
}

@keyframes slideOutToast {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

.admin-sidebar {
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed {
    width: 0;
    margin-left: -80px;
    overflow: hidden;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.char-count {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.25rem;
}

.char-count.near-limit {
    color: #f59e0b;
}

.char-count.at-limit {
    color: #ef4444;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .counter {
        font-size: 2.25rem;
    }
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: toastSlideIn 0.3s ease;
    border-left: 4px solid #6366f1;
}

.dark .toast {
    background: #1e293b;
    color: #e2e8f0;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }
.toast.info { border-left-color: #3b82f6; }

.toast.fading {
    animation: toastSlideOut 0.35s ease forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 640px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}
