:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --accent-color: #10b981;
    --bg-dark: #0f172a;
    --text-main: #334155;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    cursor: default;
}

/* --- Cursor Personalizado Dinámico --- */
.custom-cursor {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.custom-cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(37, 99, 235, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, width 0.2s, height 0.2s;
}

/* --- Navbar Sticky Inteligente --- */
.custom-navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(10, 20, 45, 0.95) !important;
}

.custom-navbar.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.brand-logo {
    max-height: 38px;
    width: auto;
}

.brand-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
}

/* --- Estructura Parallax Garantizada --- */
.hero-section {
    min-height: 100vh;
    background: #0b1329;
    overflow: hidden;
}

.parallax-divider {
    min-height: 300px;
    background: #0b1329;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    will-change: transform;
}

/* Resguardo por CSS (por si Rellax se desactiva) */
@supports (background-attachment: fixed) {
    .parallax-bg {
        background-attachment: fixed;
    }
}

.hero-bg {
    opacity: 0.25;
}

.divider-bg-1, .divider-bg-2 {
    opacity: 0.4;
}

.overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.3) 0%, transparent 50%);
    z-index: 2;
}

.overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.75);
    z-index: 2;
}

.hero-content, .parallax-divider .container {
    z-index: 3;
}

.badge-custom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
}

/* Glassmorphism Cards */
.mockup-wrapper {
    position: relative;
    max-width: 450px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.sub-card-1 {
    position: absolute;
    top: -20px;
    left: -30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-card-2 {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Flotación Animada */
.floating { animation: float 4s ease-in-out infinite; }
.floating-slow { animation: float 6s ease-in-out infinite; }
.floating-fast { animation: float 3s ease-in-out infinite; }

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

/* --- Botones y Efectos Hover --- */
.btn-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
}

.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
}

.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* --- Feature Cards & Legibilidad Correcta --- */
.feature-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.feature-box .card-text {
    color: #64748b;
    transition: color 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-box.highlight {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #1e293b;
}

.feature-box.highlight h5 {
    color: #ffffff !important;
}

.feature-box.highlight .card-text {
    color: #cbd5e1 !important;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-box.highlight .icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    color: #38bdf8;
}

/* --- Swiper Solutions --- */
.solution-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.bg-primary-soft { background: #dbeafe; }
.bg-success-soft { background: #d1fae5; }
.bg-warning-soft { background: #fef3c7; }
.bg-danger-soft { background: #fee2e2; }

/* --- Tab Pills & Pricing --- */
.custom-pills .nav-link {
    color: var(--text-main) !important;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
}

.custom-pills .nav-link.active {
    background: var(--primary-color) !important;
    color: white !important;
}

.pricing-box {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.border-gradient {
    border: 2px solid var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 4px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-dark {
    background: var(--bg-dark);
}