/* ============================================
   ESTILOS PERSONALIZADOS CON BOOTSTRAP
   ============================================ */

* {
    font-family: 'Inter', sans-serif;
}

/* Variables corporativas */
:root {
    --brand-blue: #268bf3;
    --brand-purple: #7775d9;
    --brand-green: #17ce7b;
    --brand-orange: #feaa55;
    --brand-teal: #0dd5aa;
    --brand-yellow: #EAB308;
    --brand-dark: #1B4469;
    --brand-dark-navy: #0F2A43;
}

body {
    background: 
        radial-gradient(circle at 0% 0%, rgba(38,139,243,0.12), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(119,117,217,0.12), transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Partículas */
.particle {
    position: absolute;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple), var(--brand-green));
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
    animation: float 20s infinite ease-in-out;
}

@media (max-width: 768px) {
    .particle {
        opacity: 0.05;
        animation-duration: 15s;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(0) translateX(40px) rotate(180deg); }
    75% { transform: translateY(30px) translateX(20px) rotate(270deg); }
}

/* Glassmorphism */
.glass {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
}

@media (min-width: 992px) {
    .glass {
        border-radius: 1.5rem;
    }
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(0,0,0,0.3);
}

/* Gradiente texto */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple), var(--brand-green));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { background-position: 0% center;
    }
    50% { background-position: 100% center;
    }
    100% { background-position: 0% center;
    }
}
/* ============================================
   BOTONES PERSONALIZADOS
   ============================================ */

/* Botón primario */
.btn-custom-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-custom-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-custom-primary:hover::before {
    left: 100%;
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(38,139,243,0.4);
    color: white;
}

/* Botón outline */
.btn-custom-outline {
    transition: all 0.3s ease;
    border: 2px solid #d1d5db;
    background: white;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-custom-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.1);
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    background: white;
}

/* Iconos SVG dentro de botones */
.btn-custom-primary svg,
.btn-custom-outline svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.btn-custom-primary:hover svg,
.btn-custom-outline:hover svg {
    transform: translateX(3px);
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */

@media (max-width: 768px) {
    /* Botones ocupan todo el ancho */
    .btn-custom-primary,
    .btn-custom-outline {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Contenedor de botones en columna */
    .d-flex.flex-wrap.gap-3 {
        flex-direction: column !important;
        width: 100%;
        gap: 0.75rem !important;
    }
    
    /* Iconos en móvil */
    .btn-custom-primary svg,
    .btn-custom-outline svg {
        width: 0.9rem;
        height: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE - ESCRITORIO
   ============================================ */

@media (min-width: 769px) {
    /* Botones tamaño natural */
    .btn-custom-primary,
    .btn-custom-outline {
        width: auto;
        padding: 0.5rem 1.2rem;
    }
    
    /* Contenedor de botones en fila */
    .d-flex.flex-wrap.gap-3 {
        flex-direction: row !important;
        gap: 0.75rem !important;
    }
}

/* ============================================
   TABLET (ajuste opcional)
   ============================================ */

@media (min-width: 769px) and (max-width: 992px) {
    .btn-custom-primary,
    .btn-custom-outline {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   MÓVIL MUY PEQUEÑO
   ============================================ */

@media (max-width: 480px) {
    .btn-custom-primary,
    .btn-custom-outline {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .btn-custom-primary svg,
    .btn-custom-outline svg {
        width: 0.8rem;
        height: 0.8rem;
    }
}

/* Feature card */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.feature-card:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.15);
}

/* Stat number */
.stat-number {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    border-radius: 4px;
}

/* Animación entrada */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Badge personalizado */
.badge-custom {
    background-color: rgba(38,139,243,0.1);
    color: var(--brand-blue);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Gradiente de fondo */
.bg-gradient-custom {
    background: linear-gradient(135deg, #268bf3, #7775d9, #17ce7b);
}

/* Texto color brand */
.text-brand-blue {
    color: var(--brand-blue);
}

/* Ajustes responsivos para móvil */
@media (max-width: 768px) {
    .glass {
        margin: 0.5rem;
    }
    
    .feature-card {
        padding: 0.5rem;
    }
    
    .feature-card:hover {
        transform: translateX(5px);
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
}