/* ============================================
   ¡Lotería! App Landing Page Styles
   Add this to: Appearance → Customize → Additional CSS
   ============================================ */

/* Base Reset for Landing Page */
.loteria-landing * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.loteria-landing {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1F2937;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.loteria-landing section {
    width: 100%;
}

.loteria-landing h1, 
.loteria-landing h2, 
.loteria-landing h3, 
.loteria-landing h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Hero Section */
.loteria-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 50%, #3d5a7f 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    width: 100%;
}

.loteria-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 168, 157, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.loteria-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.loteria-hero-content {
    color: #ffffff;
}

.loteria-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 168, 157, 0.2);
    border: 1px solid rgba(0, 168, 157, 0.4);
    color: #5EEAD4;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: loteria-pulse 2s ease-in-out infinite;
}

@keyframes loteria-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 157, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(0, 168, 157, 0.2); }
}

.loteria-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
}

.loteria-hero-title .accent {
    color: #00A89D;
}

.loteria-hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.loteria-hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 540px;
}

.loteria-store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.loteria-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #1F2937 !important;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    justify-content: center;
}

.loteria-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #1F2937 !important;
}

.loteria-store-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.loteria-store-btn .store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Mobile: stack buttons and make full width */
@media (max-width: 640px) {
    .loteria-store-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .loteria-store-btn {
        width: 100%;
        min-width: unset;
        justify-content: center;
    }
}

.loteria-store-btn .store-text small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6B7280;
}

.loteria-store-btn .store-text span {
    font-size: 1rem;
}

/* Phone Showcase */
.loteria-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.loteria-phone {
    position: relative;
    width: 280px;
    height: auto;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 30px 60px -30px rgba(0, 0, 0, 0.3);
}

.loteria-phone img {
    width: 100%;
    height: auto;
    display: block;
}

.loteria-phone.main {
    z-index: 3;
    animation: loteria-float 6s ease-in-out infinite;
}

.loteria-phone.secondary {
    position: absolute;
    width: 240px;
    z-index: 2;
    opacity: 0.9;
}

.loteria-phone.left {
    left: -80px;
    top: 60px;
    transform: rotate(-8deg) scale(0.9);
}

.loteria-phone.right {
    right: -80px;
    top: 60px;
    transform: rotate(8deg) scale(0.9);
}

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

/* QR Section */
.loteria-qr-section {
    background: linear-gradient(180deg, #F5F5F5 0%, #FFFFFF 100%);
    padding: 80px 20px;
    width: 100%;
}

.loteria-qr-container {
    max-width: 1200px;
    margin: 0 auto;
}

.loteria-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.loteria-section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #1e3a5f;
    margin-bottom: 16px;
}

.loteria-section-header p {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

.loteria-qr-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.loteria-qr-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.loteria-qr-card.ios {
    border-top: 4px solid #007AFF;
}

.loteria-qr-card.android {
    border-top: 4px solid #34A853;
}

.loteria-platform-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.loteria-qr-card.ios .loteria-platform-icon {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
}

.loteria-qr-card.android .loteria-platform-icon {
    background: linear-gradient(135deg, #34A853 0%, #4285F4 100%);
}

.loteria-platform-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.loteria-qr-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1F2937;
}

.loteria-qr-card > p {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.loteria-qr-wrapper {
    background: white;
    padding: 16px;
    border-radius: 16px;
    display: inline-block;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.loteria-qr-wrapper img {
    width: 160px;
    height: 160px;
    display: block;
}

.loteria-store-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #008B82 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.loteria-store-link:hover {
    color: #F7931E !important;
}

/* Features Section */
.loteria-features {
    padding: 100px 20px;
    background: #ffffff;
    width: 100%;
}

.loteria-features-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.loteria-feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.loteria-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #00A89D;
}

.loteria-feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #E6F7F6 0%, rgba(0, 168, 157, 0.1) 100%);
    font-size: 2rem;
}

.loteria-feature-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.loteria-feature-card p {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Screenshots Section */
.loteria-screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, #1e3a5f 0%, #2d4a6f 100%);
    position: relative;
    width: 100%;
}

.loteria-screenshots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 168, 157, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(247, 147, 30, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.loteria-screenshots-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.loteria-screenshots .loteria-section-header h2 {
    color: #ffffff;
}

.loteria-screenshots .loteria-section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.loteria-carousel {
    display: flex;
    gap: 32px;
    justify-content: center;
    padding: 20px 0;
}

.loteria-screenshot-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loteria-screenshot-item img {
    width: 220px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: block;
}

.loteria-screenshot-item:hover img {
    transform: scale(1.03);
}

.loteria-screenshot-item .caption {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Mobile carousel for screenshots */
@media (max-width: 1200px) {
    .loteria-carousel {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        gap: 24px;
    }
    
    .loteria-carousel::-webkit-scrollbar {
        display: none;
    }
    
    .loteria-screenshot-item {
        scroll-snap-align: center;
    }
    
    .loteria-screenshot-item img {
        width: 260px;
    }
}

/* Libraries Section */
.loteria-libraries {
    padding: 100px 20px;
    background: #ffffff;
    width: 100%;
}

.loteria-libraries-container {
    max-width: 1200px;
    margin: 0 auto;
}

.loteria-library-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.loteria-library-card {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.loteria-library-card:hover {
    border-color: #00A89D;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateY(-4px);
}

.loteria-library-card .emoji {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.loteria-library-card h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.loteria-library-card p {
    font-size: 0.85rem;
    color: #6B7280;
}

.loteria-coming-soon {
    display: inline-block;
    background: #F7931E;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.loteria-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, #00A89D 0%, #008B82 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.loteria-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: loteria-pulse-bg 10s ease-in-out infinite;
}

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

.loteria-cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.loteria-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #ffffff !important;
    margin-bottom: 16px;
}

.loteria-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.loteria-cta .loteria-store-buttons {
    justify-content: center;
}

/* Footer */
.loteria-footer {
    background: #1e3a5f;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
}

.loteria-footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.loteria-footer-logo {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.loteria-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.loteria-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.loteria-footer-links a {
    color: #00A89D !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.loteria-footer-links a:hover {
    color: #F7931E !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .loteria-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .loteria-hero-content {
        order: 1;
    }
    
    .loteria-phones {
        order: 2;
    }
    
    .loteria-hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .loteria-store-buttons {
        justify-content: center;
    }
    
    .loteria-phone.secondary {
        display: none;
    }
    
    .loteria-phone.main {
        width: 260px;
    }
}

@media (max-width: 640px) {
    .loteria-hero {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .loteria-phones {
        min-height: 400px;
    }
    
    .loteria-phone.main {
        width: 220px;
    }
    
    .loteria-store-btn {
        padding: 10px 18px;
    }
    
    .loteria-qr-cards {
        grid-template-columns: 1fr;
    }
    
    .loteria-screenshot-item img {
        width: 200px;
    }
}

/* Google Fonts Import - Add at TOP of Additional CSS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');
