/* assets/css/landing.css */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --gold: #ffc107;
    --gold-dark: #b48608;
    --gold-light: #ffe082;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden; /* Evitar scroll horizontal accidental */
    width: 100%;
}

img {
    max-width: 100%; /* Garantizar que ninguna imagen se desborde */
    height: auto;
}

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

/* Flex Utilities */
.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.text-center { text-align: center !important; }


/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

/* Banner Promocional */
.banner-promo {
    background: linear-gradient(135deg, #000 0%, #1e293b 100%);
    color: var(--gold);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
    position: relative;
}

.banner-promo .promo-badge {
    font-weight: 800;
    background: var(--gold);
    color: #000;
    padding: 3px 10px;
    border-radius: 6px;
    margin: 0 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.banner-promo .bi-gift-fill {
    color: var(--gold);
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.5));
}


.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 48px;
    border-radius: 50%;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.header-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

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

.btn-accent {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

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

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

/* Features */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.4);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.feature-card.premium {
    border: 1px solid var(--gold-dark);
    background: #161e2e;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 10%, var(--gold) 50%, transparent 90%);
    box-shadow: 0 0 15px var(--gold);
    z-index: 2;
}

.feature-card.premium .feature-icon {
    background: #232936 !important;
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 14px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-card.premium h3 {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 800;
}

.feature-card.premium p {
    color: #fff !important;
    font-size: 1rem;
    line-height: 1.6;
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: #ffc107;
    color: #000;
    padding: 6px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    z-index: 5;
}


/* QR Section */
.qr-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(79,70,229,0.05));
    text-align: center;
}

.qr-box {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}

.qr-box img {
    width: 200px;
    display: block;
}

/* Sync Animation Section */
.sync-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(79,70,229,0.05) 100%);
    overflow: hidden;
}

.sync-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-compare-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
    border: 4px solid #1e293b;
    background: #000;
}

.compare-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 1.5s ease-in-out;
}

.img-overlay {
    opacity: 0;
    z-index: 2;
}

/* Base animation loop if no JS */
.image-compare-container:hover .img-overlay {
    opacity: 1;
}

.sync-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(79,70,229,0.2);
    border: 1px solid rgba(79,70,229,0.3);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-grid, .sync-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        margin: 1.5rem auto 2.5rem;
    }
    .hero-btns {
        justify-content: center;
    }
    .sync-grid .hero-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 1rem;
    }
    .header-nav {
        display: none; 
    }
    .logo-area span {
        font-size: 0.9rem;
    }
    .logo-area img {
        height: 38px;
    }
    .hero {
        padding: 60px 0 40px;
    }
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    /* Mejoras específicas para que la imagen se vea grande y el texto centrado */
    .hero-grid, .sync-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .hero-image, .sync-grid .hero-image {
        order: -1;
        width: 100%;
        max-width: 320px; /* Tamaño ideal para que se entienda en móvil */
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
        width: 100%;
    }

    .hero-content h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .hero-content ul {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    .sync-section {
        padding: 50px 0;
    }
    .image-compare-container {
        border-width: 2px;
        margin-top: 1rem;
        max-width: 100%;
        width: 100%;
    }
    .qr-box img {
        width: 160px;
    }

    /* Ajustes Banner en móvil */
    .banner-promo {
        padding: 10px 0;
    }
    
    .banner-promo span {
        font-size: 0.85rem !important;
        line-height: 1.4;
        display: block;
        max-width: 90%;
        margin: 0 auto;
    }

    .banner-promo .promo-badge {
        display: inline-block;
        margin: 5px 0;
        font-size: 0.75rem;
    }

    /* Ajuste Tarjeta Premium en móvil */
    .feature-card.premium {
        padding: 2.5rem 2rem !important;
        text-align: left;
    }

    .feature-card.premium .feature-icon {
        margin-left: 0;
        margin-right: auto;
    }

    .ribbon {
        font-size: 0.65rem;
        top: 15px;
        right: -38px;
        padding: 5px 40px;
    }
}


