/* ========== sistema.css ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #FFD700;
    --dark-green: #DAA520;
    --bg-dark: #0A0A0A;
    --bg-dark-green: #1A1A0A;
    --bg-card: #1A1A1A;
    --bg-card-light: #252525;
    --text-white: #FFFFFF;
    --text-gray: #999999;
    --text-light-gray: #CCCCCC;
    --pink: #FFB3D9;
    --pink-light: #FFD9E8;
    --purple: #4A148C;
    --yellow: #FFD700;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

.container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.header {
    background-color: var(--bg-dark);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #2A2A2A;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    min-width: 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    max-height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-weight: 800;
    font-size: 0.85rem;
}

.logo-green {
    color: var(--primary-green);
}

.logo-white {
    color: var(--text-white);
}

.btn-tickets {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-tickets:hover {
    background-color: var(--primary-green);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.desktop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.left-column {
    width: 100%;
    position: relative;
    z-index: 1;
}

.prize-card {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 100%);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: none;
    margin-bottom: var(--spacing-md);
    z-index: 0;
}

.prize-card:has(.prize-img) {
    background: transparent !important;
}

.prize-header {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
}

.status-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 2px solid var(--primary-green);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
        box-shadow: 
        0 4px 12px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge i {
    font-size: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 3px var(--primary-green));
}

.date-badge {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-badge i {
    font-size: 0.8rem;
    color: var(--primary-green);
}

.prize-badge-top {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 3;
}

.price-badge {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
    color: var(--primary-green);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1.1;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.price-main {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.price-sub {
    display: block;
    font-size: 0.6rem;
    color: var(--text-light-gray);
    font-weight: 700;
    margin-top: 0.2rem;
    letter-spacing: 1px;
}

.prize-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.prize-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.5);
}

.prize-image-placeholder i {
    font-size: 4rem;
    opacity: 0.6;
}

.prize-image-placeholder p {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
}

.prize-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    box-shadow: none;
    border: none;
    outline: none;
    position: relative;
    z-index: 0;
    margin: 0;
    padding: 0;
}

.hero-text {
    text-align: center;
    color: #555;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.hero-text p {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
}

.progress-section {
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.progress-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid #2A2A2A;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.progress-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
}

.progress-label i {
    color: var(--primary-green);
}

.progress-percentage {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1rem;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background-color: #333;
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border-radius: 50px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.right-column {
    width: 100%;
    position: relative;
    z-index: 2;
}

.ticket-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: none;
    box-shadow: none;
}

.ticket-card h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
}

.ticket-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.ticket-btn {
    background-color: var(--bg-card-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 80px;
}

.ticket-btn:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.ticket-btn.active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.best-value {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-white);
    color: var(--bg-dark);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.ticket-amount {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-top: 0.5rem;
}

.ticket-btn.active .ticket-amount {
    color: var(--bg-dark);
}

.ticket-btn:not(.active) .ticket-amount {
    color: var(--text-white);
}

.quantity-selector {
    background-color: var(--bg-card-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.quantity-selector.quantity-fixed {
    justify-content: center;
    gap: var(--spacing-md);
}

.gratis-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    color: var(--primary-green);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 2px solid var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-fixed-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
}

.gratis-text {
    color: var(--primary-green);
    font-weight: 900;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.gratis-text-small {
    color: var(--primary-green);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.quantity-label {
    color: var(--text-gray);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.qty-btn {
    background-color: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.qty-value {
    font-size: 1.4rem;
    font-weight: 800;
    min-width: 40px;
    text-align: center;
}

.total-section {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.total-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.total-amount {
    color: var(--primary-green);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.btn-pay {
    width: 100%;
    background-color: var(--primary-green);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.5px;
}

.btn-pay:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-pay i {
    font-size: 1rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid #2A2A2A;
}

.payment-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-logo:hover {
    opacity: 1;
}

.nequi-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: #FF0066;
}

.banco-icon {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-white);
}

.banco-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
}

.winners-section {
    padding: var(--spacing-xl) 0;
}

.winners-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 800;
}

.subtitle {
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.winners-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.winner-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-5px);
}

.winner-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-gray);
}

.winner-trophy {
    font-size: 4rem;
    color: var(--yellow);
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon-big {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
}

.logo-placeholder .logo-green {
    font-size: 1.3rem;
    font-weight: 900;
}

.logo-placeholder .logo-white {
    font-size: 1.3rem;
    font-weight: 900;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #444;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot:hover {
    background-color: #666;
}

.dot.active {
    background-color: var(--primary-green);
    width: 28px;
    border-radius: 5px;
}

.raffles-section {
    padding: var(--spacing-xl) 0;
}

.raffles-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 800;
}

.empty-state {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--text-gray);
    margin-top: var(--spacing-lg);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

.footer {
    background-color: var(--bg-card);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid #2A2A2A;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid #2A2A2A;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0;
}

.footer-logo .logo-img {
    height: 60px;
    max-height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
}

.footer-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: var(--spacing-sm);
    max-width: 300px;
}

.footer-title {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-light-gray);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-item i {
    color: var(--primary-green);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-item:hover {
    color: var(--text-white);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--bg-card-light);
    border: 2px solid #2A2A2A;
    border-radius: 50%;
    color: var(--text-light-gray);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
}

.footer-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .desktop-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .ticket-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .prize-image {
        height: auto;
    }
    
    .prize-img {
        height: auto;
    }
}

@media (min-width: 1025px) {
    .desktop-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: start;
    }
    
    .left-column {
        position: sticky;
        top: 100px;
        align-self: start;
        z-index: 1;
    }
    
    .ticket-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .prize-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .prize-image {
        height: auto;
    }
    
    .prize-img {
        height: auto;
    }
    
    .total-amount {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .container-full {
        padding: 0 var(--spacing-sm);
    }
    
    .header {
        padding: var(--spacing-sm) 0;
    }
    
    .desktop-layout {
        padding: var(--spacing-sm) var(--spacing-sm);
        gap: var(--spacing-md);
    }
    
    .logo {
        gap: 0.5rem;
        flex: 0 0 auto;
        min-width: 0;
    }
    
    .logo-img {
        height: 60px;
        max-height: 60px;
        max-width: 240px;
    }
    
    .header-content {
        gap: var(--spacing-sm);
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 0.7rem;
    }
    
    .btn-tickets span {
        display: none;
    }
    
    .btn-tickets {
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
        flex-shrink: 0;
        min-width: 44px;
    }
    
    .prize-image {
        height: auto;
    }
    
    .prize-img {
        height: auto;
    }
    
    .prize-header {
        top: var(--spacing-sm);
        left: var(--spacing-sm);
        gap: 0.35rem;
    }
    
    .status-badge,
    .date-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.75rem;
    }
    
    .status-badge i {
        font-size: 0.4rem;
    }
    
    .date-badge i {
        font-size: 0.65rem;
    }
    
    .prize-badge-top {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .price-badge {
        padding: 0.6rem 0.85rem;
    }
    
    .price-main {
        font-size: 1rem;
    }
    
    .price-sub {
        font-size: 0.5rem;
    }
    
    .prize-image-placeholder i {
        font-size: 2.5rem;
    }
    
    .prize-image-placeholder p {
        font-size: 0.8rem;
    }
    
    .hero-text {
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
        padding: 0 var(--spacing-xs);
    }
    
    .hero-text p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .progress-section {
        margin-top: var(--spacing-sm);
    }
    
    .progress-card {
        padding: var(--spacing-sm);
    }
    
    .progress-label,
    .progress-percentage {
        font-size: 0.9rem;
    }
    
    .progress-bar {
        height: 12px;
    }
    
    .ticket-card {
        padding: var(--spacing-sm);
        border-radius: var(--radius-lg);
    }
    
    .ticket-card h2 {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-md);
    }
    
    .ticket-options {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .ticket-btn {
        padding: var(--spacing-sm) var(--spacing-xs);
        min-height: 75px;
    }
    
    .ticket-amount {
        font-size: 1.5rem;
    }
    
    .best-value {
        font-size: 0.5rem;
        padding: 0.2rem 0.5rem;
        top: -6px;
    }
    
    .quantity-selector {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .quantity-label {
        font-size: 0.75rem;
    }
    
    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .qty-value {
        font-size: 1.2rem;
        min-width: 35px;
    }
    
    .total-section {
        margin-bottom: var(--spacing-md);
    }
    
    .total-label {
        font-size: 0.85rem;
    }
    
    .total-amount {
        font-size: 2rem;
    }
    
    .btn-pay {
        padding: var(--spacing-sm);
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .payment-methods {
        gap: var(--spacing-md);
        padding-top: var(--spacing-sm);
    }
    
    .payment-logo {
        gap: 0.3rem;
    }
    
    .payment-name {
        font-size: 0.8rem;
    }
    
    .winners-carousel {
        grid-template-columns: 1fr;
    }
    
    .winners-section h2,
    .raffles-section h2 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .raffles-section {
        padding: var(--spacing-lg) 0;
    }
    
    .raffles-grid {
        gap: var(--spacing-md);
    }
    
    .raffle-image {
        height: 160px;
    }
    
    .raffle-info {
        padding: var(--spacing-sm);
    }
    
    .raffle-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container-full {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 0.6rem 0;
    }
    
    .header-content {
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .desktop-layout {
        padding: 0.75rem;
        gap: var(--spacing-sm);
    }
    
    .logo {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 55px);
        overflow: visible;
    }
    
    .logo-img {
        height: 55px;
        max-height: 55px;
        max-width: 200px;
        width: auto;
        object-fit: contain;
    }
    
    .logo-icon {
        font-size: 1.3rem;
    }
    
    .logo-text {
        font-size: 0.65rem;
    }
    
    .btn-tickets {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .prize-image {
        height: auto;
    }
    
    .prize-img {
        height: auto;
    }
    
    .prize-header {
        top: 0.5rem;
        left: 0.5rem;
        gap: 0.3rem;
    }
    
    .status-badge,
    .date-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.65rem;
    }
    
    .status-badge i {
        font-size: 0.35rem;
    }
    
    .date-badge i {
        font-size: 0.6rem;
    }
    
    .prize-badge-top {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .price-badge {
        padding: 0.5rem 0.75rem;
    }
    
    .price-main {
        font-size: 0.9rem;
    }
    
    .price-sub {
        font-size: 0.45rem;
    }
    
    .prize-image-placeholder i {
        font-size: 2rem;
    }
    
    .prize-image-placeholder p {
        font-size: 0.75rem;
    }
    
    .hero-text p {
        font-size: 0.75rem;
    }
    
    .progress-card {
        padding: 0.75rem;
    }
    
    .progress-label,
    .progress-percentage {
        font-size: 0.85rem;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .ticket-card {
        padding: 0.75rem;
    }
    
    .ticket-card h2 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .ticket-options {
        gap: 0.5rem;
    }
    
    .ticket-btn {
        min-height: 65px;
        padding: 0.5rem;
    }
    
    .ticket-amount {
        font-size: 1.3rem;
    }
    
    .best-value {
        font-size: 0.45rem;
        padding: 0.15rem 0.4rem;
        top: -5px;
    }
    
    .quantity-selector {
        padding: 0.75rem;
    }
    
    .quantity-label {
        font-size: 0.7rem;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .qty-value {
        font-size: 1.1rem;
        min-width: 32px;
    }
    
    .total-label {
        font-size: 0.8rem;
    }
    
    .total-amount {
        font-size: 1.8rem;
    }
    
    .btn-pay {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
    
    .payment-methods {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .payment-name {
        font-size: 0.75rem;
    }
    
    .winners-section h2,
    .raffles-section h2 {
        font-size: 1.3rem;
    }
    
    .raffle-image {
        height: 140px;
    }
    
    .raffle-info h3 {
        font-size: 0.95rem;
    }
    
    .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        min-width: 32px;
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.left-column {
    animation: slideInLeft 0.6s ease-out;
}

.right-column {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

button:focus,
.ticket-btn:focus,
.qty-btn:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

.raffles-section {
    padding: var(--spacing-xl) 0;
}

.raffles-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 800;
    text-align: center;
}

.raffles-section .subtitle {
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    font-size: 1rem;
    text-align: center;
}

.raffles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.raffle-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #2A2A2A;
    transition: all 0.3s ease;
    cursor: pointer;
}

.raffle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.raffle-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card-light) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.raffle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.raffle-card:hover .raffle-image img {
    transform: scale(1.05);
}

.raffle-image i {
    font-size: 4rem;
    color: var(--text-gray);
    opacity: 0.3;
}

.raffle-info {
    padding: var(--spacing-md);
}

.raffle-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
    line-height: 1.3;
}

.raffle-winner {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
}

.raffle-winner i {
    font-size: 1rem;
    color: var(--yellow);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.page-link {
    background-color: var(--bg-card);
    color: var(--text-white);
    border: 1px solid #2A2A2A;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    background-color: var(--bg-card-light);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.page-link.active {
    background-color: var(--primary-green);
    color: var(--bg-dark);
    border-color: var(--primary-green);
    font-weight: 800;
}

.empty-state {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    color: var(--text-gray);
    margin-top: var(--spacing-lg);
    border: 1px solid #2A2A2A;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.4;
    color: var(--text-gray);
}

.empty-state p {
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .raffles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .raffles-section h2 {
        font-size: 1.6rem;
    }
    
    .raffle-image {
        height: 180px;
    }
    
    .raffle-info h3 {
        font-size: 1.1rem;
    }
    
    .pagination {
        gap: 0.5rem;
    }
    
    .page-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 36px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .raffles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .raffles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.raffle-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.raffle-card:nth-child(1) { animation-delay: 0.1s; }
.raffle-card:nth-child(2) { animation-delay: 0.2s; }
.raffle-card:nth-child(3) { animation-delay: 0.3s; }
.raffle-card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   NO HAY RIFA ACTIVA - ESTADO VACÍO
   ============================================ */

.no-raffle-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.no-raffle-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid #2A2A2A;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
}

.no-raffle-icon {
    font-size: 5rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.no-raffle-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
    line-height: 1.2;
}

.no-raffle-card p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.no-raffle-subtitle {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    font-size: 1rem;
}

.no-raffle-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #2A2A2A;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.3rem;
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-light-gray);
    font-weight: 600;
}

.raffles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.raffle-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #2A2A2A;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
}

.raffle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.raffle-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card-light) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.raffle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.raffle-card:hover .raffle-image img {
    transform: scale(1.05);
}

.raffle-image i {
    font-size: 4rem;
    color: var(--text-gray);
    opacity: 0.3;
}

.raffle-info {
    padding: var(--spacing-md);
}

.raffle-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.4;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.page-link {
    background-color: var(--bg-card);
    color: var(--text-white);
    border: 1px solid #2A2A2A;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.page-link:hover {
    background-color: var(--bg-card-light);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.page-link.active {
    background-color: var(--primary-green);
    color: var(--bg-dark);
    border-color: var(--primary-green);
    font-weight: 800;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .no-raffle-container {
        min-height: 50vh;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .no-raffle-card {
        padding: var(--spacing-lg);
        max-width: 550px;
    }

    .no-raffle-icon {
        font-size: 4.5rem;
    }

    .no-raffle-card h2 {
        font-size: 1.8rem;
    }

    .no-raffle-card p {
        font-size: 1rem;
    }

    .no-raffle-features {
        gap: var(--spacing-md);
    }

    .feature-item i {
        font-size: 1.8rem;
    }

    .raffles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .raffle-image {
        height: 180px;
    }

    .raffle-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .no-raffle-container {
        min-height: 50vh;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .no-raffle-card {
        padding: var(--spacing-md);
        max-width: 100%;
        border-radius: var(--radius-lg);
    }

    .no-raffle-icon {
        font-size: 3.5rem;
        margin-bottom: var(--spacing-md);
    }

    .no-raffle-card h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .no-raffle-card p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .no-raffle-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }

    .no-raffle-features {
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }

    .feature-item {
        flex: 1 1 calc(33.333% - var(--spacing-md));
        min-width: 80px;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    .feature-item span {
        font-size: 0.8rem;
    }

    .raffles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .raffle-image {
        height: 180px;
    }

    .raffle-info {
        padding: var(--spacing-sm);
    }

    .raffle-info h3 {
        font-size: 1.05rem;
    }

    .pagination {
        gap: 0.5rem;
        margin-top: var(--spacing-md);
    }

    .page-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 36px;
    }
}


@media (max-width: 480px) {
    .no-raffle-container {
        padding: var(--spacing-sm);
    }

    .no-raffle-card {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .no-raffle-icon {
        font-size: 3rem;
    }

    .no-raffle-card h2 {
        font-size: 1.3rem;
    }

    .no-raffle-card p {
        font-size: 0.9rem;
    }

    .no-raffle-subtitle {
        font-size: 0.85rem;
    }

    .no-raffle-features {
        gap: var(--spacing-sm);
    }

    .feature-item i {
        font-size: 1.3rem;
    }

    .feature-item span {
        font-size: 0.75rem;
    }

    .raffle-image {
        height: 160px;
    }

    .raffle-info h3 {
        font-size: 1rem;
    }

    .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        min-width: 32px;
    }
}


@media (min-width: 1025px) {
    .raffles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .raffle-image {
        height: 220px;
    }

    .no-raffle-card {
        padding: calc(var(--spacing-xl) * 1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.raffle-card:nth-child(1) { animation-delay: 0.1s; }
.raffle-card:nth-child(2) { animation-delay: 0.2s; }
.raffle-card:nth-child(3) { animation-delay: 0.3s; }
.raffle-card:nth-child(4) { animation-delay: 0.4s; }
.raffle-card:nth-child(5) { animation-delay: 0.5s; }
.raffle-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
    
    .footer-logo {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: var(--spacing-lg) 0;
    }
    
    .footer-content {
        gap: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo .logo-img {
        height: 40px;
    }
    
    .footer-description {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--spacing-md) 0;
    }
    
    .footer-content {
        gap: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-logo .logo-img {
        height: 55px;
        max-height: 55px;
        max-width: 200px;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }
}

/* ============================================
   MULTIRIFAS — SLIDER ESTILO APP
   ============================================ */

/* ── Sección ── */
.multirifas-section {
    padding: var(--spacing-xl) 0 var(--spacing-xxl, 5rem);
}

/* ── Header centrado ── */
.multirifas-header {
    text-align: center;
    margin-bottom: 2rem;
}

.multirifas-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.multirifas-header h2 i {
    color: var(--primary-green);
}

.multirifas-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ═══════════════════════════════════════════
   PILLS DE NAVEGACIÓN (móvil, encima del slider)
   ═══════════════════════════════════════════ */
.multirifa-pills {
    display: none;          /* oculto por defecto; visible solo en móvil */
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.multirifa-pill {
    flex: 1;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 100px;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.multirifa-pill:hover:not(:disabled) {
    transform: translateY(-2px);
    opacity: 0.9;
}

.multirifa-pill:disabled {
    opacity: 0.35;
    cursor: default;
}

.multirifa-pill-prev {
    background: linear-gradient(135deg, #e05535, #c0392b);
    color: #fff;
}

.multirifa-pill-next {
    background: linear-gradient(135deg, #27ae60, #1a8a49);
    color: #fff;
}

/* ═══════════════════════════════════════════
   OUTER: viewport + flechas circulares desktop
   ═══════════════════════════════════════════ */
.multirifa-slider-outer {
    position: relative;
    max-width: 580px;       /* ancho máximo de la tarjeta */
    margin: 0 auto;
}

/* Viewport (clip de overflow) */
.multirifa-slider-viewport {
    overflow: hidden;
    width: 100%;
    /* sin border-radius aquí – cada tarjeta tiene su propio radius */
}

/* Track deslizante */
.multirifa-slider-track {
    display: flex;
    gap: 0px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Slide – ancho 100% por defecto (JS lo sobreescribe con valor exacto en px) */
.multirifa-slide {
    flex: 0 0 100%;         /* evita colapso antes de que corra el JS */
    width: 100%;
    min-width: 0;
}

/* ── Flechas circulares (desktop) ── */
.multirifa-circle-arrow {
    position: absolute;
    top: 38%;               /* centrado visual en la imagen */
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.85);
    border: 2px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.multirifa-circle-arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.multirifa-circle-arrow.disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.multirifa-circle-prev {
    left: -70px;
}

.multirifa-circle-next {
    right: -70px;
}

/* ── Dots ── */
.multirifa-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.multirifa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #444;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.multirifa-dot:hover:not(.active) {
    background: #555;
}

.multirifa-dot.active {
    width: 28px;
    border-radius: 5px;
    background: var(--primary-green);
    border-color: var(--primary-green);
}

/* ═══════════════════════════════════════════
   TARJETA DE RIFA
   ═══════════════════════════════════════════ */
.multirifa-card {
    display: block;
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #222;
    animation: fadeInUp 0.5s ease-out both;
}

/* ── Banner: imagen completa ── */
.multirifa-banner {
    width: 100%;
    height: 300px;          /* altura fija siempre */
    background: #111;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}

/* La imagen ocupa exactamente el espacio del banner */
.multirifa-img {
    display: block;
    width: 100%;
    height: 300px;          /* igual que el padre */
    object-fit: cover;
    object-position: center;
}

.multirifa-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 3.5rem;
}

/* ── Info section ── */
.multirifa-info {
    padding: 1.1rem 1.25rem 1.25rem;
}

/* Fila fecha + precio */
.multirifa-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.multirifa-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.multirifa-date i {
    color: var(--primary-green);
}

.multirifa-price-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid #333;
    color: #ccc;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
}

.multirifa-price-tag.gratis-tag {
    background: rgba(39,174,96,0.15);
    border-color: rgba(39,174,96,0.4);
    color: var(--primary-green);
}

/* Título */
.multirifa-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* Progreso */
.multirifa-progress {
    margin-bottom: 1rem;
}

.multirifa-progress-bar {
    width: 100%;
    height: 8px;
    background: #2e2e2e;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.35rem;
    border: 1px solid #3a3a3a;
}

.multirifa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green, #FFD700) 0%, var(--dark-green, #b8a000) 100%);
    border-radius: 50px;
    width: 0%;
    transition: width 1s ease;
    min-width: 4px;            /* siempre visible aunque sea 0% */
}

.multirifa-progress-pct {
    color: var(--text-gray);
    font-size: 0.82rem;
    margin: 0;
}

/* Selector de cantidad */
.multirifa-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.9rem;
}

.multirifa-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #444;
    background: #222;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.qty-btn:hover {
    background: #333;
    border-color: #666;
}

.qty-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
}

.qty-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-val-multi {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.multirifa-total-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.multirifa-total-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.multirifa-total-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-green);
}

/* Botones de acción */
.multirifa-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.btn-comprar {
    background: var(--primary-green, #FFD700);
    color: var(--bg-dark, #0a0a0a);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.btn-comprar:hover:not(:disabled) {
    background: var(--dark-green, #b8a000);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.3);
}

.btn-comprar.btn-agotado,
.btn-comprar:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-verificar-multi {
    background: #222;
    color: #ccc;
    border: 1.5px solid #333;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.btn-verificar-multi:hover {
    background: #2a2a2a;
    border-color: #555;
    color: #fff;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Hasta 800px: ocultar flechas circulares, mostrar pills */
@media (max-width: 800px) {
    .multirifa-slider-outer {
        max-width: 100%;
    }

    .multirifa-circle-arrow {
        display: none;
    }

    .multirifa-pills {
        display: flex;
    }

    .multirifas-header h2 {
        font-size: 1.6rem;
    }
}

/* Móvil */
@media (max-width: 480px) {
    .multirifas-header h2 {
        font-size: 1.3rem;
    }

    .multirifa-banner {
        height: 240px;
    }

    .multirifa-info {
        padding: 0.9rem 1rem;
    }

    .multirifa-title {
        font-size: 1.15rem;
    }

    .multirifa-actions {
        gap: 0.5rem;
    }

    .btn-comprar,
    .btn-verificar-multi {
        font-size: 0.85rem;
        padding: 0.65rem 0.5rem;
    }
}

/* Desktop: flechas a 80px fuera de la tarjeta */
@media (min-width: 801px) {
    .multirifa-pills {
        display: none;
    }

    .multirifa-slider-outer {
        max-width: 580px;
        padding: 0; /* flechas absolutas no necesitan padding */
    }

    /* El section oculta el overflow-x para las flechas absolutas */
    .multirifas-section {
        overflow-x: clip;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .logo-img {
        height: 50px;
        max-height: 50px;
        max-width: 180px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        gap: 0.4rem;
    }
    
    .logo {
        max-width: calc(100% - 50px);
    }
    
    .btn-tickets {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .footer-logo .logo-img {
        height: 50px;
        max-height: 50px;
        max-width: 180px;
    }
}


/* ========== payment.css ========== */
/* ========================================
   MODAL DE PAGO - DISEÑO PROFESIONAL RESPONSIVE
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(13, 40, 24, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0;
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;   /* reducido de 900px para mejor proporción */
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    margin: 1rem;
}

/* ============================================
   INDICADOR DE RIFA SELECCIONADA (multirifas)
   ============================================ */
.modal-rifa-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.5rem;
    background: linear-gradient(90deg, rgba(0,200,100,0.12) 0%, rgba(0,200,100,0.05) 100%);
    border-bottom: 1px solid rgba(0, 200, 100, 0.2);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.modal-rifa-indicator i {
    color: #00c864;
    font-size: 0.9rem;
}

.modal-rifa-indicator span {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.modal-rifa-indicator strong {
    color: #fff;
    font-weight: 700;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header del Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.03) 0%, transparent 100%);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 1.3rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
    transform: rotate(90deg);
}

/* Indicador de Pasos Mejorado */
.payment-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    gap: 0.5rem;
    flex-shrink: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    border-color: #FFD700;
    color: #000;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    border-color: #DAA520;
    color: #fff;
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.step.active .step-label {
    color: #FFD700;
}

.step-line {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #333 0%, #222 100%);
    border-radius: 10px;
    margin: 0 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.step.completed + .step-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #DAA520 100%);
    animation: lineProgress 0.5s ease-out;
}

@keyframes lineProgress {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Contenido del Modal con Scroll Personalizado */
.modal-body {
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700 0%, #DAA520 100%);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

.payment-step-content {
    display: none;
}

.payment-step-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Grid de Métodos de Pago - 3 COLUMNAS RESPONSIVE */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method-card {
    background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.payment-method-card:hover::before {
    opacity: 1;
}

.payment-method-card.selected {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: #FFD700;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.payment-method-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #FFD700;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    animation: checkmark 0.3s ease-out;
}

.payment-method-card[data-method="gratis"] {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.payment-method-card[data-method="gratis"]:hover {
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.payment-method-card[data-method="gratis"].selected {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-color: #FFD700;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes checkmark {
    from {
        transform: scale(0) rotate(-180deg);
    }
    to {
        transform: scale(1) rotate(0);
    }
}

.payment-method-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #FFD700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.payment-method-card:hover .payment-method-icon {
    transform: scale(1.1) rotate(5deg);
}

.nequi-icon {
    background: linear-gradient(135deg, #FF0066 0%, #CC0052 100%);
    color: white;
    font-weight: 900;
    font-size: 1.8rem;
}

.banco-symbol {
    font-size: 2rem;
    font-weight: 900;
}

.payment-method-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: #fff;
    line-height: 1.2;
}

.payment-method-card p {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    line-height: 1.2;
}

/* Formulario Mejorado */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.3px;
}

.form-group label i {
    color: #FFD700;
    font-size: 1.1rem;
}

.form-group input {
    background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    outline: none;
    border-color: #FFD700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.05) 0%, #1a1a1a 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.form-group small {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

/* File Upload Mejorado */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
    border: 2px dashed #444;
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #FFD700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.05) 0%, #1a1a1a 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.file-upload-label i {
    font-size: 2.5rem;
    color: #FFD700;
}

.file-upload-label span {
    color: #ccc;
    font-weight: 600;
}

.image-preview {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.image-preview.active {
    display: block;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: #0f0f0f;
}

/* Resumen del Pedido Mejorado */
.order-summary {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-summary h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-summary h4::before {
    content: '📋';
    font-size: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: #ccc;
    font-weight: 600;
}

.summary-row strong {
    color: #fff;
    font-weight: 700;
}

.summary-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #FFD700;
    font-size: 1.2rem;
}

.summary-row.total strong {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: 900;
}

/* ============================================
   DATOS DE PAGO - PASO 3 CON BOTÓN COPIAR
   ============================================ */

.payment-details {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-details h4 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #FFD700;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.payment-info-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.payment-info-item:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.payment-info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.payment-info-label i {
    color: #FFD700;
    font-size: 0.9rem;
}

.payment-info-value-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.payment-info-value {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    flex: 1;
    word-break: break-all;
}

.btn-copy-field {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #FFD700;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.btn-copy-field:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateY(-2px);
}

.btn-copy-field:active {
    transform: translateY(0);
}

.btn-copy-field.copied {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
    animation: copyPulse 0.3s ease;
}

.btn-copy-field i {
    font-size: 1rem;
}

.payment-info-error {
    text-align: center;
    padding: 2rem;
    color: #ff6b6b;
}

.payment-info-error i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.payment-info-error p {
    font-size: 0.95rem;
    margin: 0;
}

/* Animación de copiado */
@keyframes copyPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Compatibilidad con payment-info-row (estilo antiguo) */
.payment-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.payment-info-row span {
    color: #ccc;
    font-weight: 600;
}

.payment-info-row strong {
    color: #FFD700;
    font-weight: 800;
}

/* Botones del Modal Mejorados */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-next,
.btn-back,
.btn-submit {
    flex: 1;
    padding: 1.1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-next:disabled {
    background: linear-gradient(145deg, #333 0%, #222 100%);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-back {
    background: transparent;
    border: 2px solid #444;
    color: #fff;
}

.btn-back:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* ========================================
   MODAL DE CONFIRMACIÓN
   ======================================== */

.confirmation-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.confirmation-header {
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 200, 0, 0.05) 100%);
    border-radius: 15px 15px 0 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

.success-icon i {
    font-size: 3rem;
    color: #000;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-header h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.confirmation-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Información del Usuario */
.user-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label i {
    color: #FFD700;
}

.info-row strong {
    color: #fff;
    font-size: 0.95rem;
}

/* Sección de Boletos */
.tickets-section {
    margin-bottom: 1.5rem;
}

.tickets-section h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tickets-section h3 i {
    color: #FFD700;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.8rem;
}

.ticket-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
}

.ticket-item:nth-child(1) { animation-delay: 0.1s; }
.ticket-item:nth-child(2) { animation-delay: 0.15s; }
.ticket-item:nth-child(3) { animation-delay: 0.2s; }
.ticket-item:nth-child(4) { animation-delay: 0.25s; }
.ticket-item:nth-child(5) { animation-delay: 0.3s; }
.ticket-item:nth-child(6) { animation-delay: 0.35s; }

.ticket-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.3);
}

.ticket-item.premiado {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: #FFD700;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0);
    }
}

.ticket-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFD700;
    display: block;
    margin-bottom: 0.3rem;
}

.ticket-item.premiado .ticket-number {
    color: #FFD700;
}

.ticket-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-item.premiado .ticket-label {
    color: #FFD700;
    font-weight: 700;
}

/* Alerta de Ganador */
.winner-alert {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.winner-alert i {
    font-size: 2rem;
    color: #FFD700;
    display: block;
    margin-bottom: 0.5rem;
}

.winner-alert p {
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Token Card */
.token-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.token-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.token-label i {
    color: #FFD700;
}

.token-card code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    color: #FFD700;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    word-break: break-all;
}

.btn-copy {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Mensaje Informativo */
.info-message {
    background: rgba(0, 150, 255, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.info-message i {
    color: #0096FF;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Footer del Modal */
.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(145deg, #FFD700 0%, #DAA520 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #DAA520 0%, #B8860B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.payment-logo .payment-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.payment-logo:hover .payment-icon {
    transform: scale(1.1);
}

.payment-logo .payment-icon[src*=".svg"] {
    mix-blend-mode: normal;
}

.payment-icon {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.payment-icon[src] {
    background: none;
    animation: none;
}

/* ========================================
   RESPONSIVE DESIGN - OPTIMIZADO
   ======================================== */

/* Tablets Grandes (1024px - 768px) */
@media (max-width: 1024px) {
    .modal-container {
        max-width: 620px;
    }

    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .payment-method-card {
        padding: 1rem 0.5rem;
        min-height: 130px;
    }

    .payment-method-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .payment-method-card h4 {
        font-size: 0.9rem;
    }

    .payment-method-card p {
        font-size: 0.7rem;
    }
}

/* Tablets (768px - 600px) */
@media (max-width: 768px) {
    .modal-container {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .payment-method-card {
        padding: 1.25rem 0.75rem;
        min-height: 140px;
    }

    .payment-method-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .payment-steps {
        padding: 1rem;
    }

    .step-number {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .step-line {
        width: 50px;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .confirmation-modal {
        max-width: 95%;
        margin: 1rem;
    }

    .tickets-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.6rem;
    }

    .ticket-number {
        font-size: 1.3rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon i {
        font-size: 2rem;
    }

    /* Datos de pago responsive */
    .payment-info-value {
        font-size: 1rem;
    }

    .payment-info-value-container {
        gap: 0.5rem;
    }

    .btn-copy-field {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem 0.6rem;
    }
}

/* ========================================
   MÓVIL - DISEÑO 2 COLUMNAS SIN HEADER
   ======================================== */

@media (max-width: 600px) {
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .modal-container {
        margin: 0;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    /* OCULTAR HEADER EN MÓVIL */
    .modal-header {
        display: none;
    }

    .payment-steps {
        padding: 0.85rem 1rem;
        flex-shrink: 0;
        background: #0f0f0f;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .step-line {
        width: 30px;
        margin-bottom: 0;
    }

    /* Modal body optimizado */
    .modal-body {
        padding: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* PASO 1: Contenedor sin scroll */
    #step1 {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .step-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
        flex-shrink: 0;
    }

    /* Grid de 2 COLUMNAS */
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        margin-bottom: 0;
        flex: 1;
        align-content: start;
        overflow: visible;
    }

    /* Tarjetas compactas verticales */
    .payment-method-card {
        padding: 0.85rem 0.4rem;
        min-height: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .payment-method-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin: 0 auto 0.5rem;
    }

    .nequi-icon {
        font-size: 1.5rem;
    }

    .banco-symbol {
        font-size: 1.6rem;
    }

    .payment-method-card h4 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }

    .payment-method-card p {
        font-size: 0.65rem;
        line-height: 1.1;
    }

    .payment-method-card.selected::after {
        top: 0.4rem;
        right: 0.4rem;
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    /* Botón continuar fijo abajo */
    .btn-next {
        width: 100%;
        padding: 0.9rem;
        font-size: 0.95rem;
        margin-top: 1rem;
        flex-shrink: 0;
    }

    /* Otros pasos */
    .modal-actions {
        flex-direction: column-reverse;
        gap: 0.65rem;
        margin-top: 1rem;
        flex-shrink: 0;
    }

    .btn-back,
    .btn-submit {
        width: 100%;
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .form-group {
        gap: 0.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 0.85rem 0.95rem;
        font-size: 0.9rem;
    }

    .order-summary,
    .payment-details {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .order-summary h4,
    .payment-details h4 {
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }

    .file-upload-label {
        padding: 1.25rem;
    }

    .file-upload-label i {
        font-size: 1.8rem;
    }

    .summary-row {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }

    .summary-row.total {
        font-size: 1rem;
        padding-top: 0.85rem;
    }

    .summary-row.total strong {
        font-size: 1.2rem;
    }

    .payment-info-item {
        padding: 0.85rem;
    }

    .payment-info-value {
        font-size: 0.95rem;
    }

    .btn-copy-field {
        min-width: 34px;
        height: 34px;
        padding: 0.35rem 0.55rem;
    }
}

/* Indicador de rifa en móvil */
@media (max-width: 600px) {
    .modal-rifa-indicator {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }

    .modal-rifa-indicator strong {
        max-width: 160px;
    }
}

/* Móviles Pequeños (< 380px) */
@media (max-width: 380px) {
    .payment-steps {
        padding: 0.75rem 0.85rem;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .step-line {
        width: 25px;
    }

    .modal-body {
        padding: 0.85rem;
    }

    .step-title {
        font-size: 1.05rem;
        margin-bottom: 0.85rem;
    }

    .payment-methods-grid {
        gap: 0.55rem;
    }

    .payment-method-card {
        padding: 0.75rem 0.35rem;
    }

    .payment-method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .nequi-icon {
        font-size: 1.3rem;
    }

    .banco-symbol {
        font-size: 1.4rem;
    }

    .payment-method-card h4 {
        font-size: 0.8rem;
    }

    .payment-method-card p {
        font-size: 0.6rem;
    }

    .payment-method-card.selected::after {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }

    .btn-next,
    .btn-back,
    .btn-submit {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }

    .order-summary,
    .payment-details {
        padding: 0.85rem;
    }

    .file-upload-label {
        padding: 1rem;
    }

    .file-upload-label i {
        font-size: 1.6rem;
    }

    .summary-row {
        font-size: 0.8rem;
        padding: 0.55rem 0;
    }

    .summary-row.total strong {
        font-size: 1.1rem;
    }
}

.payment-method-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.payment-method-card.disabled:hover {
    transform: translateY(-2px);
    border-color: #ff4444;
    box-shadow: 0 8px 24px rgba(255, 68, 68, 0.2);
}

.payment-min-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff3366;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 1;
}

.payment-min-badge.badge-disabled {
    background: #666;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   MODAL DE TÉRMINOS Y CONDICIONES
   ======================================== */

#termsModal {
    z-index: 2000;
}

#termsModal.modal-overlay {
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.terms-modal {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 215, 0, 0.1);
}

.terms-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
    flex-shrink: 0;
}

.terms-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terms-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terms-icon-wrapper i {
    color: #FFD700;
    font-size: 1.8rem;
}

.terms-title-wrapper {
    flex: 1;
}

.terms-title-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #FFD700;
    line-height: 1.2;
}

.terms-subtitle {
    font-size: 0.875rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.4;
}

.terms-body {
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.terms-content {
    margin-bottom: 2rem;
}

.terms-list {
    list-style: none;
    counter-reset: terms-counter;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.terms-list li {
    counter-increment: terms-counter;
    position: relative;
    padding-left: 3rem;
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.terms-list li::before {
    content: counter(terms-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.terms-checkbox-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.03);
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.terms-checkbox-label:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.terms-checkbox {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 6px;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.terms-checkbox:checked + .checkbox-custom {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    border-color: #FFD700;
}

.terms-checkbox:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a1a;
    font-size: 0.85rem;
}

.checkbox-text {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.checkbox-text strong {
    color: #FFD700;
    font-weight: 600;
}

.terms-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.03) 100%);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.terms-footer .btn-primary {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.terms-footer .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.terms-footer .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 215, 0, 0.2);
    color: rgba(26, 26, 26, 0.5);
}

/* ========================================
   RESPONSIVE - TÉRMINOS Y CONDICIONES
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    #termsModal.modal-overlay {
        padding: 0.5rem;
    }

    .terms-modal {
        max-width: 100%;
        max-height: 95vh;
    }

    .terms-modal .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .terms-modal .modal-header h2 {
        font-size: 1.3rem;
    }

    .terms-body {
        padding: 1.5rem 1.5rem;
    }

    .terms-list li {
        font-size: 0.9rem;
        padding-left: 2.75rem;
    }

    .terms-list li::before {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
}

/* Móviles */
@media (max-width: 600px) {
    #termsModal.modal-overlay {
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
    }

    .terms-modal {
        max-width: 100%;
        width: calc(100% - 1rem);
        max-height: 95vh;
        border-radius: 16px;
        margin: 0;
    }

    .terms-header {
        padding: 1.25rem 1rem;
    }

    .terms-header-content {
        gap: 0.875rem;
    }

    .terms-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .terms-icon-wrapper i {
        font-size: 1.5rem;
    }

    .terms-title-wrapper h2 {
        font-size: 1.2rem;
        margin-bottom: 0.375rem;
    }

    .terms-subtitle {
        font-size: 0.8rem;
    }

    .terms-body {
        padding: 1rem 1rem;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terms-content {
        margin-bottom: 1.5rem;
    }

    .terms-list {
        gap: 1rem;
    }

    .terms-list li {
        font-size: 0.875rem;
        padding-left: 2.5rem;
        line-height: 1.6;
    }

    .terms-list li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .terms-checkbox-container {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .terms-checkbox-label {
        padding: 0.875rem;
        gap: 0.875rem;
    }

    .checkbox-custom {
        width: 22px;
        height: 22px;
        margin-top: 1px;
    }

    .checkbox-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .terms-footer {
        padding: 1rem;
    }

    .terms-footer .btn-primary {
        min-width: 100%;
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    #termsModal.modal-overlay {
        padding: 0.5rem;
    }

    .terms-modal {
        max-height: 90vh;
        border-radius: 12px;
    }

    .terms-header {
        padding: 1rem 0.875rem;
    }

    .terms-header-content {
        gap: 0.75rem;
    }

    .terms-icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .terms-icon-wrapper i {
        font-size: 1.3rem;
    }

    .terms-title-wrapper h2 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .terms-subtitle {
        font-size: 0.75rem;
    }

    .terms-body {
        padding: 0.875rem 0.875rem;
    }

    .terms-list {
        gap: 0.875rem;
    }

    .terms-list li {
        font-size: 0.8rem;
        padding-left: 2.25rem;
        line-height: 1.55;
    }

    .terms-list li::before {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .terms-checkbox-label {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .checkbox-custom {
        width: 20px;
        height: 20px;
    }

    .checkbox-text {
        font-size: 0.8rem;
    }

    .terms-footer {
        padding: 0.875rem;
    }

    .terms-footer .btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 380px) {
    #termsModal.modal-overlay {
        padding: 0.375rem;
    }

    .terms-modal {
        max-height: 95vh;
        border-radius: 10px;
    }

    .terms-header {
        padding: 0.875rem 0.75rem;
    }

    .terms-header-content {
        gap: 0.625rem;
    }

    .terms-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .terms-icon-wrapper i {
        font-size: 1.2rem;
    }

    .terms-title-wrapper h2 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .terms-subtitle {
        font-size: 0.7rem;
    }

    .terms-body {
        padding: 0.75rem 0.75rem;
    }

    .terms-list li {
        font-size: 0.75rem;
        padding-left: 2rem;
    }

    .terms-list li::before {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .terms-checkbox-label {
        padding: 0.625rem;
        gap: 0.625rem;
    }

    .checkbox-custom {
        width: 18px;
        height: 18px;
    }

    .checkbox-text {
        font-size: 0.75rem;
    }

    .terms-footer .btn-primary {
        padding: 0.7rem 0.875rem;
        font-size: 0.85rem;
    }
}


/* ========== search.css ========== */
/* ============================================
   MODAL CONSULTAR MIS BOLETOS - FULLSCREEN
   ============================================ */

.tickets-search-modal {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: #000;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.tickets-search-modal .modal-header {
    background: transparent;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: none;
    flex-shrink: 0;
}

.search-header-icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.8rem;
    color: #FFD700;
}

.tickets-search-modal h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.tickets-search-modal .modal-close {
    position: static;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #666;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.tickets-search-modal .modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tickets-search-modal .modal-body {
    padding: 0 1.2rem 1.2rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.search-instruction {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.5;
}

.search-instruction strong {
    color: #b0b0b0;
    font-weight: 500;
}

.search-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FFD700;
    background: #1f1f1f;
}

.search-input::placeholder {
    color: #555;
}

.btn-search {
    width: 100%;
    padding: 1rem;
    background: #FFD700;
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-search:hover {
    background: #DAA520;
}

.btn-search:active {
    transform: scale(0.98);
}

/* Resultados de búsqueda */
.search-results {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.result-card {
    background: #141414;
    border: 1px solid #252525;
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: #2a2a2a;
    background: #181818;
}

.result-card-header {
    margin-bottom: 1rem;
}

.result-raffle-name {
    color: #FFD700;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.result-tickets {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #0a0a0a;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.result-tickets i {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.result-tickets-numbers {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.result-date {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #666;
    font-size: 0.85rem;
}

.result-date i {
    color: #555;
    font-size: 0.9rem;
}

/* Estado vacío */
.empty-search-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #555;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-search-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-search-state p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* Loading */
.search-loading {
    text-align: center;
    padding: 4rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.search-loading i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #FFD700;
}

.search-loading p {
    font-size: 1rem;
    margin: 0;
    color: #666;
}

/* Animación de entrada del modal */
.modal-overlay.active .tickets-search-modal {
    animation: slideInFromRight 0.3s ease forwards;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Animación de entrada de cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.1s; }
.result-card:nth-child(3) { animation-delay: 0.15s; }
.result-card:nth-child(4) { animation-delay: 0.2s; }
.result-card:nth-child(5) { animation-delay: 0.25s; }

/* Desktop - mantener centrado */
@media (min-width: 769px) {
    .tickets-search-modal {
        max-width: 540px;
        width: 92%;
        height: auto;
        max-height: 90vh;
        border-radius: 20px;
    }

    .modal-overlay.active .tickets-search-modal {
        animation: zoomIn 0.3s ease forwards;
    }

    @keyframes zoomIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* Mobile - fullscreen */
@media (max-width: 768px) {
    .tickets-search-modal {
        border-radius: 0;
    }

    .tickets-search-modal .modal-header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    .tickets-search-modal .modal-body {
        padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
    }
}


