/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores basados en el logo de Automundo KM */
    --primary: #E53E3E;
    --primary-dark: #C53030;
    --primary-light: #FC8181;
    --secondary: #1A202C;
    --white: #FFFFFF;
    --light-gray: #F7FAFC;
    --dark: #1A202C;
    
    /* Colores adicionales */
    --accent: #FFF5F5;
    --danger: #E53E3E;
    --warning: #ED8936;
    --success: #38A169;
    --gray: #718096;
    
    /* Sombras y efectos */
    --shadow: 0 4px 16px rgba(229, 62, 62, 0.15);
    --shadow-lg: 0 10px 32px rgba(229, 62, 62, 0.25);
    --shadow-xl: 0 20px 40px rgba(229, 62, 62, 0.35);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    --gradient-accent: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
    --gradient-dark: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #C3C3C3;
    overflow-x: hidden;
    position: relative;
}

/* Fondo animado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(229, 62, 62, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(229, 62, 62, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(197, 48, 48, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {

    font-weight: 700;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Rediseñado */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

.header-top {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-info span {
    margin: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.header-info i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.header-main {
    padding: 16px 0;
    background: var(--white);
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.02);
}

/* Logo Styles - Mejorado */
.logo-container {
    width: 160px;
    height: 110px;
    flex-shrink: 0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-link:hover .logo-container::after {
    opacity: 1;
}

.logo-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(229, 62, 62, 0.2));
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(229, 62, 62, 0.3));
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
    font-style: italic;
    line-height: 1.2;
}

/* Navigation - Rediseñada */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-nav a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.main-nav a:hover::before {
    width: 100%;
}

/* Header Actions - Rediseñados */
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-login, .btn-cart, .btn-check-tickets {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-check-tickets {
    background: var(--accent);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.btn-check-tickets:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-cart {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--primary);
    position: relative;
}

.btn-cart:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hero Section - Completamente rediseñada */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 22px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* Raffles Section - Completamente rediseñada */
.raffles-main {
    padding: 100px 0;
    position: relative;
}

.raffles-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
}

.raffles-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.raffles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

/* Raffle Cards - Completamente rediseñadas */
.raffle-card-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transform-origin: center;
}

.raffle-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 18px;
}

.raffle-card-main:hover::before {
    opacity: 0.03;
}

.raffle-card-main:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.raffle-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    animation: badgePulse 3s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.raffle-badge.new {
    background: linear-gradient(135deg, #38A169 0%, #2F855A 100%);
}

.raffle-badge.active {
    background: var(--gradient-primary);
}

.raffle-badge.cancelled {
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
}

.raffle-badge.paused {
    background: linear-gradient(135deg, #ED8936 0%, #DD6B20 100%);
}

.raffle-badge.completed {
    background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
}

.raffle-badge.sold-out {
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
}

.raffle-badge.last-tickets {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    animation: urgentPulse 1.5s infinite;
}

@keyframes urgentPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
    }
}

.raffle-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.raffle-card-main:hover .raffle-card-image {
    transform: scale(1.05);
}

.raffle-card-content {
    padding: 28px;
    position: relative;
    z-index: 2;
}

.raffle-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 500;
}

.raffle-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.4;
    color: var(--dark);
}

/* Progress - Rediseñado */
.raffle-progress {
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.progress-bar-main {
    background: #E2E8F0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill-main {
    background: var(--gradient-primary);
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
}

.progress-fill-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.raffle-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Raffle Button - Rediseñado */
.raffle-button {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

.raffle-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.raffle-button:hover::before {
    left: 100%;
}

.raffle-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.raffle-button:active {
    transform: translateY(0);
}

/* Detail View - Rediseñada */
.detail-view {
    display: none;
    min-height: 100vh;
    background: #C3C3C3;
}

.detail-view.show {
    display: block;
}

.detail-view-wrapper {
    max-width: 768px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(229, 62, 62, 0.1);
}

.header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-button, .share-button {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.back-button:hover, .share-button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

/* Gallery - Rediseñada */
.gallery {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 0 0 20px 20px;
}

.gallery-scroll {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-image {
    min-width: 100%;
    height: 400px;
    object-fit: cover;
    scroll-snap-align: center;
    transition: var(--transition);
}

.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.indicator.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

/* Detail Container - Rediseñado */
.detail-container {
    padding: 24px;
}

.details-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary);
    background: var(--gradient-accent);
    -webkit-background-clip: text;

    background-clip: text;
}

.prize-section {
    margin-bottom: 28px;
}

.prize-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 500;
}

.prize-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 18px;
}

.prize-price {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-align: center;
}

.prize-list {
    display: flex
;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.prize-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #232b39;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-card);
}

.prize-item:hover {
    border-color: var(--accent-pink);
    transform: translateX(8px) scale(1.02);
    box-shadow: var(--shadow);
    background: var(--primary);
    color: var(--light-gray);
}
.prize-icon {
    font-size: 36px;
    margin-right: 20px;
    color: var(--accent-yellow);
}

.prize-position {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-right: 20px;
    min-width: 40px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prize-item-info {
    flex: 1;
    color: var(--white);
}

.info-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(252, 52, 125, 0.1);
    border: 2px solid var(--accent-pink);
    border-radius: var(--radius);
    color: rgb(133, 100, 4);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-icon {
    font-size: 28px;
    color: var(--accent-yellow);
}

.info-text {
    font-size: 15px;
    font-weight: 600;
}

.raffle-description {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    color: #4A5568;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--accent);
    border-radius: 16px;
    border-left: 5px solid var(--primary);
    position: relative;
}

.raffle-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.02;
    border-radius: 16px;
}

/* Progress Section - Rediseñada */
.progress-section {
    background: var(--gradient-accent);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(229, 62, 62, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.05) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.progress-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 16px;
}

.progress-percentage {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.progress-bar {
    background: rgba(229, 62, 62, 0.1);
    height: 14px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.progress-fill {
    background: var(--gradient-primary);
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 14px;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: progressShimmer 2s infinite;
}

.progress-text {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Quick Buy Section - Rediseñada */
.quick-buy-section {
    background: white;
    padding: 28px 0;
    border-top: 2px solid var(--accent);
    margin-top: 28px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
    text-align: center;
}

.quick-buy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.quick-buy-btn {
    background: white;
    border: 3px solid var(--primary);
    padding: 20px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-buy-btn span {

    z-index: 2;
}

.quick-buy-btn:hover::before {
    opacity: 1;
}

.quick-buy-btn:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quick-buy-btn.popular {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.popular-tag {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 0px 0px 20px 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

/* Custom Amount - Rediseñado */
.custom-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--accent);
    border-radius: 16px;
}

.amount-control {
    width: 56px;
    height: 56px;
    border: 3px solid var(--primary);
    background: white;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.amount-control:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.amount-display {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    min-width: 80px;
    text-align: center;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
}

/* Buy Button - Rediseñado */
.buy-button {
    width: 100%;
    padding: 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.buy-button:hover::before {
    left: 100%;
}

.buy-button:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.buy-button.secondary {
    background: white;
    color: var(--primary);
    border: 3px solid var(--primary);
}

.buy-button.secondary:hover {
    background: var(--primary);
    color: white;
}

/* Copy buttons */
.copy-button {
    
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 35% !important;
}

.copy-button:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(0.95);
}

/* PagoAPago Button - Rediseñado */
.pagoapago-button {
    background: linear-gradient(135deg, #6F0BFF 0%, #AC3BF7 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 24px rgba(111, 11, 255, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.pagoapago-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pagoapago-button:hover::before {
    left: 100%;
}

.pagoapago-button:hover {
    background: linear-gradient(135deg, #5A09CC 0%, #8F30D4 100%) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(111, 11, 255, 0.4) !important;
}

.pagoapago-logo {
    height: 36px;
    width: auto;
    filter: brightness(1.1);
}

.pagoapago-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.pagoapago-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.pagoapago-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: block;
}

/* Payment Separator Modernizado */
.payment-separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.payment-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.payment-separator span {
    background: var(--white);
    padding: 0 20px;
    color: var(--primary);
    font-size: 14px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.terms-text {
    text-align: center;
}

/* Footer - Completamente rediseñado */
.site-footer {
    background: var(--gradient-dark);
    color: white;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-top {
    padding: 80px 0 60px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.footer-column h3 {
    margin-bottom: 24px;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.footer-column p {
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    font-size: 16px;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo-container {
    max-width: 180px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    padding: 8px;
    /*box-shadow: 0 4px 16px rgba(229, 62, 62, 0.2);*/
}

.footer-logo-img {
    display: block;
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
    font-size: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(229, 62, 62, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(8px);
}

.contact-item i {
    color: var(--primary);
    width: 24px;
    font-size: 18px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-signature {
    color: var(--primary);
    font-style: italic;
    font-weight: 600;
}

/* Modals - Rediseñados */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 32, 44, 0.8);
    z-index: 3000;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(229, 62, 62, 0.1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-accent);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(229, 62, 62, 0.1);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--accent);
}

/* Form Styles - Rediseñados */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 6px;
}

.form-group input, .form-group select {
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Toast - Rediseñado */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 20px 28px;
    background: white;
    color: var(--dark);
    border-radius: 16px;
    transform: translateY(100px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    max-width: 380px;
    box-shadow: var(--shadow-xl);
    border-left: 5px solid var(--primary);
    font-weight: 600;
}

.toast.show {
    transform: translateY(0);
}

.toast.success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, #F0FFF4 0%, #C6F6D5 100%);
}

.toast.error {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
}

.toast.warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #FFFAF0 0%, #FEEBC8 100%);
}

.toast.info {
    border-left-color: var(--primary);
    background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
}

/* WhatsApp Float - Rediseñado */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 1000;
    animation: whatsappPulse 3s infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

/* Tickets */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.ticket-item {
    background: var(--gradient-accent);
    border: 3px solid var(--primary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.ticket-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ticket-item:hover::before {
    opacity: 0.1;
}

.ticket-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ticket-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(229, 62, 62, 0.2);
}

.ticket-info {
    font-size: 12px;
    color: var(--gray);
    margin-top: 8px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Loading */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Section - Rediseñada */
.search-section {
    margin-bottom: 32px;
}

.search-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.6;
}

.search-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--accent);
    background: var(--accent);
    border-radius: 12px 12px 0 0;
}

.search-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px 12px 0 0;
}

.search-tab.active {
    color: var(--primary);
    background: white;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.search-input-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.search-input-group input {
    padding: 16px 20px;
    border: 3px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.search-button {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.search-button:hover::before {
    left: 100%;
}

.search-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.search-button-text {
    display: flex !important;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Search Results - Rediseñadas */
.search-results {
    animation: fadeIn 0.6s ease;
}

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

.search-summary {
    background: var(--gradient-accent);
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 32px;
    border: 2px solid rgba(229, 62, 62, 0.1);
    position: relative;
    overflow: hidden;
}

.search-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.02;
    border-radius: 18px;
}

.search-summary h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.summary-item {
    display: flex;
    text-align: center;
    background: white;
    padding: 10px 0px;
    border-radius: 0;
    border-bottom: 1px solid #e53e3e;
    box-shadow: var(--shadow);
    transition: var(--transition);
    /* border: 2px solid transparent; */
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-item:hover::before {
    opacity: 0.05;
}

.summary-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.summary-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    position: relative;
    z-index: 2;
}

.summary-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.summary-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    display: block;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* Raffle Groups - Rediseñados */
.raffle-group {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.raffle-group:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.raffle-group-header {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.raffle-group-header:hover {
    background: linear-gradient(135deg, #C53030 0%, #E53E3E 100%);
}

.raffle-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.raffle-info {
    flex: 1;
}

.raffle-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.raffle-meta {
    opacity: 0.9;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

.raffle-stats {
    text-align: right;
}

.ticket-count {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.ticket-count-label {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1;
    font-weight: 500;
}

.expand-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.raffle-group.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Tickets Grid - Rediseñado */
.raffle-tickets {
    padding: 20px;
    background: var(--light-gray);
    display: none;
}

.raffle-group.expanded .raffle-tickets {
    display: block;
}

.ticket-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ticket-card:hover::before {
    opacity: 0.05;
}

.ticket-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.ticket-card.winner {
    border-color: var(--success);
    background: linear-gradient(135deg, #fff, #f0fff4);
    animation: winnerGlow 2s ease-in-out infinite;
}

@keyframes winnerGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(56, 161, 105, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(56, 161, 105, 0.5);
    }
}

.ticket-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    text-align: center;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.ticket-info {
    font-size: 11px;
    color: var(--gray);
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* No Results - Rediseñado */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
    color: var(--primary);
}

.no-results h3 {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: 24px;
    font-weight: 700;
}

.no-results p {
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .raffles-grid {
        grid-template-columns: 1fr;
    }
    
    .raffles-title {
        font-size: 32px;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .header-actions span {
        display: none;
    }
    
    .logo-container {
        width: 140px;
        height: 95px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .quick-buy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .raffles-title {
        font-size: 28px;
    }
    
    .prize-title {
        font-size: 24px;
    }
    
    .prize-price {
        font-size: 28px;
    }
    
    
    .logo-container {
        width: 120px;
        height: 85px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .raffle-description {
        font-size: 14px;
        padding: 16px;
    }
    
    .modal-content {
        margin: 12px;
        border-radius: 16px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Confetti */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    animation: confetti-fall 4s linear;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Estados especiales de raffle cards */
.raffle-card-main.sold-out {
    opacity: 0.7;
    cursor: not-allowed;
}

.raffle-card-main.sold-out:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.raffle-card-image.grayscale {
    filter: grayscale(100%) opacity(0.8);
}

.raffle-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none !important;
}

.raffle-button:disabled:hover {
    background: #ccc;
    box-shadow: var(--shadow);
}

/* Payment iframe styles */
.payment-iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 32, 44, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.payment-iframe-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary);
}

.payment-iframe-header {
    padding: 24px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-accent);
}

.payment-iframe-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.payment-iframe-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-iframe-close:hover {
    color: var(--primary);
    background: rgba(229, 62, 62, 0.1);
    transform: rotate(90deg);
}

.payment-iframe-info {
    padding: 16px 24px;
    background: var(--light-gray);
    border-bottom: 1px solid #E2E8F0;
}

.payment-info-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.info-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.info-item span {
    color: var(--gray);
    font-size: 12px;
    font-weight: 500;
}

.info-item strong {
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
}

.info-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid #E2E8F0;
    background: white;
    color: var(--gray);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.payment-iframe-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.payment-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.payment-iframe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.payment-iframe-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Responsive para payment iframe */
@media (max-width: 768px) {
    .payment-iframe-container {
        max-height: 90vh;
        border-radius: 16px;
        margin: 20px 0;
    }
    
    .payment-iframe-overlay {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .payment-iframe-header {
        padding: 20px;
        position: sticky;
        top: 0;
        background: var(--gradient-accent);
        z-index: 20;
    }
    
    .payment-iframe-title {
        font-size: 16px;
    }
    
    .payment-iframe-info {
        padding: 12px 20px;
        position: sticky;
        top: 72px;
        z-index: 15;
    }
    
    .payment-info-compact {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .info-group {
        gap: 12px;
        flex: 1 1 100%;
        justify-content: space-between;
    }
    
    .info-item {
        font-size: 12px;
        gap: 4px;
    }
    
    .info-item span {
        font-size: 11px;
    }
    
    .info-item strong {
        font-size: 12px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .payment-iframe-wrapper {
        min-height: 500px;
    }
}