:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --border-color: #404040;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Theme Switch */
.floating-controls {
    position: fixed;
    bottom: 130px;  /* Changed from 80px to 130px */
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* For mobile devices */
@media screen and (max-width: 767px) {
    .floating-controls {
        bottom: 100px;  /* Adjusted for mobile */
        right: 20px;
    }
}
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    background: var(--bs-primary);
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0 8px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-icon {
    color: white;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "☀️";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

input:checked + .slider {
    background-color: #66bb6a;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 8px;
    border-radius: 30px;
}

.slider {
    background-color: #404040;
    transition: .4s;
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
    background-color: #343a40;
}

/* Form elements dark mode styles */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #363636;
    border-color: #505050;
    color: #ffffff;
}

[data-theme="dark"] .form-control::placeholder {
    color: #aaaaaa;
}

[data-theme="dark"] .form-select option {
    background-color: #2d2d2d;
    color: #ffffff;
}

[data-theme="dark"] .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .card-title {
    color: #ffffff;
}

[data-theme="dark"] .alert-info {
    background-color: #1c3a4e;
    border-color: #235a80;
    color: #ffffff;
}

/* Add these styles to your existing CSS */
.banner-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/bannerifa.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;  /* This enables the parallax effect */
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;  /* Added for better parallax performance */
    overflow: hidden;    /* Prevents potential scrolling issues */
    will-change: transform;  /* Optimizes performance */
}

/* Add specific mobile handling for the parallax effect */
@media screen and (max-width: 768px) {
    .banner-section {
        background-attachment: scroll; /* Disable parallax on mobile for better performance */
    }
}
.banner-section h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-section p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.ticket-qty {
    min-width: 120px;
    transition: all 0.3s ease;
}

.ticket-qty:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ticket-qty.active {
    transform: translateY(1px);
    box-shadow: none;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.theme-switch-wrapper {
    margin: 0;
    padding: 0;
}

.theme-switch {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .navbar-nav {
        gap: 1rem;
        padding: 1rem 0;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

footer {
    border-top: 4px solid var(--bs-primary);
}

.footer-logo {
    filter: none;
    max-height: 150px;  /* Increased from 80px */
    width: auto;
    display: block;
    margin: 0 auto;  /* Centers the logo horizontally */
    margin-bottom: 1.5rem;  /* Added more space below the logo */
}

/* Add this to center the text below the logo */
.footer-logo + p {
    text-align: center;
}

.social-icons a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: var(--bs-primary) !important;
    text-decoration: underline !important;
}

@media (max-width: 767px) {
    .social-icons {
        text-align: center;
    }
}.theme-switch-float {
    position: fixed;
    bottom: 30px;
    right: 110px;
    z-index: 100;
}

@media screen and (max-width: 767px) {
    .theme-switch-float {
        bottom: 20px;
        right: 90px;
    }
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--bs-primary);
}

.form-floating > .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

#validationResult {
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

/* Add after your banner-section styles */
.sorteo-image {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease;
}

.sorteo-image:hover {
    transform: scale(1.02);
}

.logo-text {
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

.logo-letters {
    fill: white;
    font-size: 75px;  /* Reduced from 80px */
    font-weight: bold;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 2px rgba(255,255,255,0.8));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
    }
}

/* Raffle card styles to ensure consistent design regardless of image size */
.raffle-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.raffle-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
    .raffle-card-img { height: 220px; }
}

.raffle-card-body { padding: 1rem 1.25rem; }

.raffle-card-title {
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.raffle-card-subtitle {
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.raffle-card-footer { padding-top: 0.5rem; }

.raffle-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-buy {
    background-color: #343a40;
    color: #fff;
    border: 0;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.btn-buy:hover {
    background-color: #212529;
    color: #fff;
}

/* Dark theme adjustments for raffle card */
[data-theme="dark"] .raffle-card {
    border-color: #404040;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
[data-theme="dark"] .raffle-card-subtitle { color: #bbbbbb; }