/* Fidelio - Sistema Inteligente de Fidelización */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 2rem;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.navbar-nav .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Espacio para la navbar fija */
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134 7 7 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 1.343 3 3 3 3 3zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343 3 3 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343 3 3 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343 3 3 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343 3 3 3 3 3zm12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79 4 4 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79 4 4 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24 5 5 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79 4 4 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24 5 5 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24 5 5 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24 5 5 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895 2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895 2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895 2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895 2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none; /* No interfiere con los clics */
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10; /* Asegura que esté por encima del fondo */
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra más visible */
    border: 2px solid transparent;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.hero-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

.hero-buttons .btn-outline-primary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero-buttons .btn-outline-primary:hover {
    background: var(--white);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10; /* Asegura que esté por encima del fondo */
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--warning);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5; /* Por encima del fondo pero debajo del contenido */
}

.qr-showcase {
    position: relative;
    width: 300px;
    height: 300px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.qr-code i {
    font-size: 4rem;
    color: var(--primary);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    animation: float 6s ease-in-out infinite;
    z-index: 15; /* Por encima de todo */
}

.floating-card.card-1 {
    top: 0;
    left: 0;
    animation-delay: -2s;
}

.floating-card.card-2 {
    bottom: 0;
    right: 0;
    animation-delay: -4s;
}

.floating-card i {
    color: var(--warning);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray);
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    background: var(--light);
}

.step-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-card.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.step-card.active p {
    color: rgba(255, 255, 255, 0.9);
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.step-card.active .step-number {
    background: var(--white);
    color: var(--primary);
}

.step-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.step-card.active .step-icon {
    background: rgba(255, 255, 255, 0.2);
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.step-card.active .step-icon i {
    color: var(--white);
}

/* Features */
.features {
    padding: 6rem 0;
}

.feature-group h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-group h3 i {
    font-size: 1.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-content p {
    margin-bottom: 0;
    color: var(--gray);
}

/* Registration Sections */
.registration {
    padding: 6rem 0;
}

.customer-reg {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.shop-reg {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
}

.registration-content h2 {
    margin-bottom: 1.5rem;
}

.registration-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.benefits-list i {
    color: var(--warning);
}

.registration-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    color: var(--dark);
}

.registration-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-light);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.registration-form .btn {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.registration-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Pricing */
.pricing {
    padding: 6rem 0;
    background: var(--light);
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.price span {
    font-size: 1.125rem;
    color: var(--gray);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success);
}

.pricing-card .btn {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Contact */
.contact {
    padding: 6rem 0;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.contact-form .btn {
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .qr-showcase {
        width: 250px;
        height: 250px;
    }
    
    .floating-card {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .registration-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-nav .btn {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        width: 100%;
    }
}
