:root {
    --primary-purple: #8B5CF6;
    --dark-purple: #7C3AED;
    --light-purple: #A78BFA;
    --accent-purple: #C084FC;
    --bg-light: #FAFBFF;
    --bg-section: #F8FAFF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(139, 92, 246, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-purple) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Highlighted Navigation Items */
.nav-item-highlight {
    margin: 0 0.5rem;
}

.nav-link-highlight {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple)) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 0.7rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.nav-link-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-link-highlight:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
    color: white !important;
}

.nav-link-highlight:hover i {
    color: white !important;
}

.nav-link-highlight:hover span {
    color: white !important;
}

.nav-link-highlight:hover::before {
    left: 100%;
}

.nav-link-highlight:hover::after {
    display: none;
}

.nav-link-highlight i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 50%, #EEF2FF 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23C084FC" fill-opacity="0.05" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.hero-image {
    margin-left: 30px;
    height: 460px;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-image:hover {
    transform: translateY(-4px) translateX(6px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.4);
    border-radius: 5px;
}

/* Buttons - Forzar redondeo */
.btn-primary-custom,
a.btn-primary-custom,
button.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%) !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.btn-primary-custom:hover,
a.btn-primary-custom:hover,
button.btn-primary-custom:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(107, 70, 193, 0.5) !important;
    color: white !important;
    border-radius: 50px !important;
}

.btn-outline-custom,
a.btn-outline-custom,
button.btn-outline-custom {
    border: 2px solid var(--primary-purple) !important;
    color: var(--primary-purple) !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 1rem !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.btn-outline-custom:hover,
a.btn-outline-custom:hover,
button.btn-outline-custom:hover {
    background: var(--primary-purple) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3) !important;
    border-radius: 50px !important;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: var(--bg-section);
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Section Styles */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.feature-item {
    text-align: center;
    padding: 2rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.5;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-content {
    text-align: center;
    padding: 2rem 0;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 10px 0 10px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Cambiar orden en móviles: imagen arriba, texto abajo */
    .hero .row {
        flex-direction: column;
    }
    
    .hero .col-lg-6:first-child {
        order: 2; /* Texto abajo */
    }
    
    .hero .col-lg-6:last-child {
        order: 1; /* Imagen arriba */
        margin-bottom: 2rem;
        margin-top: 0;
    }
    
    /* Centrar contenido en móviles */
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero h1 {
        text-align: center;
    }
    
    .hero p {
        text-align: center;
    }
    
    /* Botones hero uno debajo del otro estilizados */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: 2rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 85%;
        max-width: 300px;
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        text-align: center;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        position: relative;
        overflow: hidden;
    }
    
    /* Efecto hover mejorado para móviles */
    .btn-primary-custom {
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
    }
    
    .btn-outline-custom {
        box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2) !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-left: 0;
        height: 300px;
        width: 100%;
        object-fit: cover;
        max-width: 100%;
        border-radius: 15px !important;
        box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25) !important;
    }
    
    /* Ocultar botones destacados en móviles */
    .nav-item-highlight {
        display: none;
    }
    
    /* Mostrar solo links normales en móviles */
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(139, 92, 246, 0.1);
        transform: none;
    }
    
    /* Contenedor de imagen hero responsive */
    .hero .text-center {
        overflow: hidden;
        padding: 0 1rem;
    }

    .stats-section .col-lg-3 {
        width: 50% !important;           /* 50% de ancho = 2 por fila */
        flex: 0 0 50% !important;        /* Flex basis 50% */
        max-width: 50% !important;       /* Máximo ancho 50% */
        padding: 0.5rem !important;      /* Padding reducido */
    }
    
    .stat-item {
        padding: 1.5rem 1rem;          /* Padding optimizado */
        margin-bottom: 1rem;           /* Margen inferior */
    }
    
    .stat-number {
        font-size: 2.2rem;             /* Tamaño reducido pero legible */
        margin-bottom: 0.3rem;         /* Menos espacio debajo */
    }
    
    .stat-label {
        font-size: 0.9rem;             /* Texto más pequeño */
        line-height: 1.2;              /* Interlineado compacto */
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .btn-primary-custom,
    .btn-outline-custom {
        width: 95%;
        font-size: 0.9rem !important;
        padding: 0.9rem 1.8rem !important;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        height: 250px;
        border-radius: 12px !important;
    }
    
    .hero-buttons {
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;          /* Padding muy compacto */
    }
    
    .stat-number {
        font-size: 1.8rem;             /* Números más pequeños */
    }
    
    .stat-label {
        font-size: 0.8rem;             /* Texto aún más pequeño */
        line-height: 1.1;              /* Interlineado muy compacto */
    }
}

/* Override Bootstrap button styles - IMPORTANTE */
.btn.btn-primary-custom,
.btn.btn-outline-custom,
button.btn-primary-custom,
button.btn-outline-custom,
a.btn-primary-custom,
a.btn-outline-custom {
    border-radius: 50px !important;
    -webkit-border-radius: 50px !important;
    -moz-border-radius: 50px !important;
}

.btn.btn-primary-custom:hover,
.btn.btn-outline-custom:hover,
button.btn-primary-custom:hover,
button.btn-outline-custom:hover,
a.btn-primary-custom:hover,
a.btn-outline-custom:hover {
    border-radius: 50px !important;
    -webkit-border-radius: 50px !important;
    -moz-border-radius: 50px !important;
}

.stores-section {
    background: #2D3748;
    padding: 3rem 0;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 10px;
}

.store-item {
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

.store-info h5 {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.store-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.store-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .store-item {
        margin-bottom: 2rem;
    }
    
    .store-info h5 {
        font-size: 1rem;
    }
}