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

:root {
    /* Colores de marca */
    --primary: #4B1F6F;
    --primary-dark: #3a1856;
    --primary-light: #6b3f9a;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark: #222222;
    
    /* Colores adicionales */
    --accent: #D8BFD8;
    --danger: #f44336;
    --warning: #ff9800;
    --success: #4CAF50;
    --gray: #757575;
    
    /* Sombras y efectos */
    --shadow: 0 2px 8px rgba(75, 31, 111, 0.1);
    --shadow-lg: 0 8px 24px rgba(75, 31, 111, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

/* Header Styles */
.site-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

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

.header-info span {
    margin: 0 15px;
}

.header-info i {
    margin-right: 5px;
    color: var(--accent);
}

.header-main {
    padding: 10px 0;
    overflow: hidden;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

/* Logo Styles - Final Version */
.logo-container {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.logo-text {
    flex: 1;
    min-width: 0;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1.2;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login, .btn-cart {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-cart:hover {
    background: var(--primary);
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 2000;
}

.mobile-nav.show {
    right: 0;
}

.mobile-nav-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-nav ul {
    list-style: none;
    margin-bottom: auto;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
}

.mobile-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.mobile-social a {
    color: var(--primary);
    font-size: 20px;
}

/* Hashtag Bar */
.hashtag-bar {
    background: var(--accent);
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.hashtag-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hashtag-content span {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
    font-weight: 300;
}

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

/* Raffles Section */
.raffles-main {
    padding: 80px 0;
}

.raffles-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary);
}

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

.raffle-card-main {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.raffle-card-main:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.raffle-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
    animation: pulse 2s infinite;
}

.raffle-badge.new {
    background: var(--primary);
    color: white;
}

.raffle-badge.active {
    background: var(--success);
    color: white;
}

.raffle-badge.cancelled {
    background: var(--danger);
    color: white;
}

.raffle-badge.paused {
    background: var(--warning);
    color: #333;
}

.raffle-badge.completed {
    background: var(--gray);
    color: white;
}

.raffle-badge.sold-out {
    background: #333;
    color: white;
}

.raffle-badge.last-tickets {
    background: #ff5722;
    color: white;
    animation: pulse 2s infinite;
}

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

.raffle-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.raffle-card-content {
    padding: 25px;
}

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

.raffle-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;

}

.raffle-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar-main {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-main {
    background: var(--primary);
    height: 100%;
    transition: width 0.5s ease;
    position: relative;
}

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

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

.raffle-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.raffle-button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.raffle-button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Detail View Styles */
.detail-view {
    display: none;
    min-height: 100vh;
    background: var(--light-gray);
}

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

.detail-view-wrapper {
    max-width: 768px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

.header {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.back-button, .share-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.back-button:hover, .share-button:hover {
    background: rgba(255,255,255,0.1);
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.header-title {
    font-size: 20px;
    font-weight: 600;
}

/* Gallery */
.gallery {
    position: relative;
    overflow: hidden;
    background: #000;
}

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

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

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

.gallery-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

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

.indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Detail Container */
.detail-container {
    padding: 20px;
}

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

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

.prize-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.prize-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 16px;
}

.raffle-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* Progress Section */
.progress-section {
    background: var(--light-gray);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    font-weight: 600;
    color: var(--dark);
}

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

.progress-bar {
    background: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    height: 100%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill.complete {
    background: var(--success);
}

.progress-fill.cancelled {
    background: var(--danger);
}

.progress-fill.paused {
    background: var(--warning);
}

.progress-text {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
}

/* Quick Buy Section */
.quick-buy-section {
    background: white;
    padding: 24px 0;
    border-top: 1px solid #eee;
    margin-top: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.quick-buy-btn {
    background: white;
    border: 2px solid var(--primary);
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.quick-buy-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.quick-buy-btn.popular {
    background: var(--primary);
    color: white;
}

.popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

/* Custom Amount */
.custom-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.amount-control {
    width: 48px;
    height: 48px;
    border: 2px solid var(--primary);
    background: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary);
}

.amount-control:hover {
    background: var(--primary);
    color: white;
}

.amount-display {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    min-width: 60px;
    text-align: center;
}

/* Buy Button */
.buy-button {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buy-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

/* PagoAPago Button */
.pagoapago-button {
    background: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
    position: relative;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 6px rgba(0, 180, 216, 0.3);
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 600;
}

.pagoapago-button:hover {
    background: linear-gradient(135deg, #0096C7 0%, #0077B6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 180, 216, 0.4);
}

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

.pagoapago-logo {
    height: 32px;
    width: auto;
  
}

.pagoapago-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

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

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

.pagoapago-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

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

.payment-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

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

/* Cash Payment Option */
.cash-payment-option {
    margin-top: 15px;
}

.cash-button {
    background: #28a745;
    color: white;
    border: none;
    margin-bottom: 10px;
}

.cash-button:hover {
    background: #218838;
}

.cash-button i {
    margin-right: 8px;
    font-size: 18px;
}

.cash-payment-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--gray);
    text-align: center;
    margin: 0;
}

.cash-payment-info i {
    color: var(--primary);
    margin-right: 8px;
}

.location-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.location-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(75, 31, 111, 0.3);
}

/* Payment Methods */
.payment-methods {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.payment-methods p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.payment-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Details Section */
.details-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.details-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.prize-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--light-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.prize-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.prize-icon {
    font-size: 32px;
    margin-right: 16px;
}

.prize-position {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-right: 16px;
    min-width: 30px;
}

.prize-item-info {
    flex: 1;
}

.prize-item-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.prize-item-time {
    font-size: 14px;
    color: var(--gray);
}

.info-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--accent);
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
}

.info-icon {
    font-size: 24px;
}

.info-text {
    font-size: 14px;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: white;
    margin-top: 80px;
}

.footer-top {
    padding: 60px 0 40px;
}

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

.footer-column h3 {
    margin-bottom: 20px;
    color: white;
}

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

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

.footer-logo-container {
    max-width: 160px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-logo-img {
    display: block;
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul a:hover {
    color: white;
}

.hashtag-list p {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

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

.contact-item {
    display: flex;
    gap: 12px;
}

.contact-item i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    background: var(--primary-dark);
    padding: 20px 0;
    text-align: center;
}

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

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

.footer-signature {
    color: var(--accent);
    font-style: italic;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 31, 111, 0.5);
    z-index: 3000;
    padding: 20px;
    overflow-y: auto;
}

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

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}

/* Estilos específicos para el modal de búsqueda de tickets */
#checkTicketsModal .modal-content {
    max-height: 80vh;
}

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

.modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.modal-body {
    padding: 16px 20px;
}

.modal-footer {
    padding: 12px 20px 20px;
    border-top: 1px solid #eee;
}

/* Order Summary */
.order-summary {
    margin: 0;
    padding: 0;
}

/* Summary Items in Modal */
.modal-body .summary-item,
.order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    line-height: 1.2;
    min-height: 22px;
    height: auto;
    text-align: left;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-direction: row;
    border-left: none;
    border-right: none;
    border-top: none;
}

.modal-body .summary-item span,
.order-summary .summary-item span {
    line-height: 1.2;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.modal-body .summary-item:hover,
.order-summary .summary-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.modal-body .summary-item.total,
.order-summary .summary-item.total {
    border-bottom: none;
    font-size: 15px;
    font-weight: bold;
    color: var(--primary);
    background: #f8f9fa;
    padding: 6px 8px;
    border-radius: 6px;
    margin-top: 3px;
    line-height: 1.2;
}

.terms-text {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    margin-top: 16px;
}

.terms-text a {
    color: var(--primary);
    text-decoration: none;
}

/* Lottery Modal */
.lottery-modal {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.lottery-modal .modal-header {
    border-bottom: none;
}

.lottery-modal .modal-title {
    color: white;
    text-align: center;
    width: 100%;
}

.lottery-container {
    padding: 40px 20px;
    text-align: center;
}

.lottery-machine {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}

.slot-machine {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.slot {
    width: 60px;
    height: 80px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.slot-numbers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: spin 1s ease-in-out;
}

.slot-number {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
}

@keyframes spin {
    0% { transform: translateY(-800px); }
    100% { transform: translateY(0); }
}

.lottery-text {
    font-size: 18px;
    opacity: 0.9;
}

/* Success Modal */
.success-message {
    text-align: center;
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 24px;
}

.tickets-display {
    margin-bottom: 24px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    background: #333;
    color: white;
    border-radius: 8px;
    transform: translateY(100px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 350px;
}

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

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}

.toast.info {
    background: var(--primary);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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

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

/* Auth Forms */
.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.auth-tab.active {
    color: var(--primary);
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
    font-size: 13px;
    margin-bottom: 4px;
}

.form-group input, .form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ID Input Group */
.id-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.id-type-select {
    width: 70px;
    flex-shrink: 0;
    padding: 12px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
}

.id-number-input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.id-type-select:focus,
.id-number-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buyer Info Section */
.buyer-info-section {
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.divider {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #f0f0f0;
    height: 0;
}

/* Payment Timer */
.payment-timer {
    background: var(--accent);
    border: 1px solid var(--primary);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.payment-details {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.payment-loading {
    text-align: center;
    margin-top: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Tickets Grid */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ticket-item {
    background: var(--light-gray);
    border: 2px dashed var(--primary);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ticket-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(75, 31, 111, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.ticket-item:hover::before {
    transform: translateX(100%);
}

.ticket-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ticket-item:hover::after {
    width: 300px;
    height: 300px;
}

.ticket-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    font-family: monospace;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(75, 31, 111, 0.3);
    animation: ticketPulse 3s ease-in-out infinite;
}

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

.ticket-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

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

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

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

/* Raffle Card States */
.raffle-card-main.sold-out {
    opacity: 0.7;
    cursor: not-allowed;
}

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

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

.sold-out-badge {
    background: var(--danger) !important;
    color: white !important;
    animation: none !important;
}

.warning-badge {
    background: var(--warning) !important;
    color: white !important;
}

.progress-fill-main.complete {
    background: var(--danger);
}

.tickets-remaining {
    text-align: center;
    color: var(--warning);
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

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

.raffle-button:disabled:hover {
    background: #ccc;
}

/* Payment Info Overlay */
.payment-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-info-overlay.show {
    opacity: 1;
}

.payment-info-card {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.payment-info-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-info-header h3 {
    margin: 0;
    color: var(--primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

.payment-info-body {
    padding: 30px;
}

.payment-info-icon {
    text-align: center;
    margin-bottom: 20px;
}

.payment-info-icon i {
    font-size: 48px;
    color: var(--primary);
}

.payment-info-details {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.payment-info-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.payment-info-help {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.retry-btn:hover {
    background: var(--primary-dark);
}

/* Blocked Popup Modal */
.blocked-popup-info {
    text-align: center;
    padding: 20px;
}

.blocked-popup-info ol {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
}

.payment-url-info {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.url-copy-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.url-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-logo-container {
        max-width: 140px;
        height: 45px;
    }
    
    .logo-container {
        width: 130px;
        height: 45px;
    }
    
    .logo-img {
        max-width: 130px;
        max-height: 100px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text p {
        font-size: 11px;
    }
    
    .logo-text p {
        font-size: 11px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions span {
        display: none;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .raffles-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .quick-buy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-image {
        height: 300px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .hashtag-content {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-logo-container {
        max-width: 120px;
        height: 40px;
    }
    
    .logo-container {
        width: 110px;
        height: 45px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .logo-img {
        max-width: 110px;
        max-height: 100px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .raffles-title {
        font-size: 28px;
    }

    .prize-title {
        font-size: 22px;
    }

    .prize-price {
        font-size: 24px;
    }
    
    .raffle-description {
        font-size: 14px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .modal-content {
        margin: 10px;
    }
    
    /* ID Input Group responsive */
    .id-input-group {
        gap: 6px;
    }
    
    .id-type-select {
        width: 60px;
        padding: 12px 6px;
        font-size: 14px;
    }
    
    .id-number-input {
        padding: 12px 10px;
        font-size: 14px;
    }
}
/* Botón de consultar tickets en header */
.btn-check-tickets {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Estilos para botones de copiar en Pago Móvil */
.copy-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 30% !important;
}

.copy-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

.copy-all-button {
    background: var(--success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.copy-all-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos adicionales para la info compacta de pago */
.payment-info-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.info-group {
    display: flex;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-item span {
    color: #666;
    font-size: 14px;
}

.info-item strong {
    color: var(--primary);
    font-size: 16px;
}

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

.action-btn {
    background: var(--light-gray);
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.action-btn:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 768px) {
    .payment-info-compact {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    
    .info-actions {
        justify-content: center;
    }
}

/* Animación de pulso para el concepto */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

/* Degradado para el botón de PagoAPago */
.pagoapago-button {
    background: linear-gradient(90deg, #6F0BFF 0%, #AC3BF7 100%) !important;
    border: none !important;
    color: white !important;
}

.pagoapago-button:hover {
    background: linear-gradient(90deg, #5A09CC 0%, #8F30D4 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 11, 255, 0.3);
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

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

.search-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.search-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

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

.search-input-group label {
    font-weight: 500;
    color: var(--dark);
}

.search-input-group input {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-button {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.search-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Ensure search button text is always visible */
.search-button-text {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.search-button-text i {
    flex-shrink: 0;
}

/* Search Results */
.search-results {
    animation: fadeIn 0.5s ease;
}

.search-summary {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.search-summary::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -4px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    opacity: 0.1;
    z-index: -1;
}

.search-summary h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
    width: 100%;
    max-width: 100%;
}

.summary-item {
    text-align: center;
    background: white;
    padding: 20px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
   
}

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.summary-item.highlight-winner {
    background: linear-gradient(135deg, #fff, #f0fff4);
    border-color: var(--success);
}

.summary-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

.summary-number {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
    line-height: 1.2;
}

.summary-item.highlight-winner .summary-number {
    color: var(--success);
}

.summary-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    display: block;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 5px;
}


/* Raffle Groups */
.raffle-group {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.raffle-group-header {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s;
    min-height: auto;
}

.raffle-group-header:hover {
    background: var(--primary-dark);
}

.raffle-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.raffle-info {
    flex: 1;
}

.raffle-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
}

.raffle-meta {
    opacity: 0.9;
    font-size: 11px;
    line-height: 1.2;
}

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

.ticket-count {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

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

.raffle-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
}

.raffle-status.active {
    background: var(--success);
    color: white;
}

.raffle-status.completed {
    background: var(--gray);
    color: white;
}

.raffle-status.cancelled {
    background: var(--danger);
    color: white;
}

.expand-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

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

/* Tickets Grid */
.raffle-tickets {
    padding: 12px;
    background: #fafafa;
    display: none;
}

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

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.ticket-card {
    background: white;
    border-radius: 6px;
    padding: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(75, 31, 111, 0.1), transparent);
    transition: left 0.5s;
}

.ticket-card:hover::before {
    left: 100%;
}

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

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

@keyframes winnerGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.3),
                    0 0 10px rgba(76, 175, 80, 0.2),
                    0 0 15px rgba(76, 175, 80, 0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5),
                    0 0 20px rgba(76, 175, 80, 0.3),
                    0 0 30px rgba(76, 175, 80, 0.2);
    }
}

.ticket-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    text-align: center;
    margin-bottom: 4px;
    line-height: 1;
}

.ticket-info {
    font-size: 10px;
    color: var(--gray);
    text-align: center;
    line-height: 1.2;
}

.winner-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

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

.no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.no-results p {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Ticket Detail Modal */
.ticket-detail-content {
    padding: 20px 0;
}

.ticket-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
}

.ticket-detail-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.ticket-detail-raffle {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 5px;
}

.ticket-detail-date {
    color: var(--gray);
    font-size: 14px;
}

.ticket-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 500;
    color: var(--gray);
    font-size: 14px;
}

.info-value {
    color: var(--dark);
    font-weight: 500;
}

.winner-announcement {
    background: linear-gradient(135deg, var(--success), #43a047);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.winner-announcement h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.winner-announcement p {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-check-tickets {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .btn-check-tickets i {
        font-size: 14px;
    }
    
    /* Ensure search button text is visible on mobile */
    .search-button {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .search-button-text {
        display: flex !important;
        align-items: center;
        gap: 6px;
        font-size: 14px;
    }
    
    .search-tabs {
        flex-direction: column;
    }
    
    .search-tab {
        border-bottom: 1px solid #eee;
    }
    
    .search-tab.active::after {
        display: none;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .summary-item {
        padding: 15px;
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }
    
    .summary-icon {
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .summary-number {
        font-size: 24px;
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    .summary-label {
        font-size: 13px;
        text-align: left;
        padding: 0;
    }
    
    .raffle-group-header {
        flex-direction: row;
        text-align: left;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .raffle-image {
        width: 35px;
        height: 35px;
    }
    
    .raffle-title {
        font-size: 13px;
    }
    
    .raffle-meta {
        font-size: 10px;
    }
    
    .ticket-count {
        font-size: 16px;
    }
    
    .raffle-stats {
        text-align: right;
    }
    
    .tickets-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
    }
    
    .ticket-card {
        padding: 6px;
    }
    
    .ticket-number {
        font-size: 14px;
    }
    
    .ticket-info {
        font-size: 9px;
    }
    
    .ticket-detail-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .search-summary {
        padding: 20px 15px;
    }
    
    .search-summary h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .summary-item {
        padding: 12px;
        gap: 10px;
    }
    
    .summary-icon {
        font-size: 24px;
    }
    
    .summary-number {
        font-size: 20px;
    }
    
    .summary-label {
        font-size: 12px;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
}

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

.payment-iframe-container {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-iframe-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-iframe-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.payment-iframe-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.payment-iframe-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.payment-iframe-info {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
    margin-top: 5px;
}

.payment-info-wrapper {
    width: 100%;
}

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

.info-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
}

.info-item span {
    color: #666;
    font-size: 12px;
}

.info-item strong {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

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

.action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.action-btn i {
    font-size: 14px;
}

.payment-iframe-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding-top: 10px;
}

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

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

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

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

/* Responsive para payment iframe */
@media (max-width: 768px) {
    .payment-iframe-container {
        max-height: 90vh;
        height: auto;
        max-width: 100%;
        border-radius: 0;
        margin: 20px 0;
    }
    
    .payment-iframe-overlay {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .payment-iframe-header {
        padding: 15px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 20;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .payment-iframe-title {
        font-size: 16px;
    }
    
    .payment-iframe-info {
        padding: 12px 15px;
        margin-top: 0;
        position: sticky;
        top: 60px;
        background: #f8f9fa;
        z-index: 15;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .payment-info-compact {
        gap: 10px;
        flex-wrap: wrap;
        padding: 5px 0;
    }
    
    .info-group {
        gap: 10px;
        flex: 1 1 100%;
        justify-content: space-between;
        margin-bottom: 8px;
    }
    
    .info-item {
        font-size: 12px;
        gap: 4px;
        flex: 0 0 auto;
    }
    
    .info-actions {
        flex: 0 0 auto;
        margin-left: 0;
    }
    
    .info-item span {
        font-size: 11px;
    }
    
    .info-item strong {
        font-size: 13px;
    }
    
    .info-item:first-child {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }
    
    .info-item:first-child strong {
        font-size: 11px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        display: block;
    }
    
    .info-actions {
        gap: 6px;
        flex: 0 0 auto;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        touch-action: manipulation;
    }
    
    .action-btn i {
        font-size: 13px;
    }
    
    .payment-iframe-wrapper {
        min-height: 500px;
    }
}