/* =============================================
   ALCANCIA - LANDING PAGE (Dark Tech Style)
   ============================================= */

/* Hero Section */
.hero {
    position: relative;
    background: #0a0a1a;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    top: -100px;
    left: -100px;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    bottom: -80px;
    right: -80px;
}

.min-vh-80 {
    min-height: 80vh;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #facc15;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-outline-light-custom {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Code Window */
.hero-visual {
    position: relative;
    z-index: 2;
}

.code-window {
    background: #1e1e2e;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: floatUp 3s ease-in-out infinite alternate;
}

@keyframes floatUp {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.code-header {
    background: #181825;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #f38ba8; }
.code-dot.yellow { background: #f9e2af; }
.code-dot.green { background: #a6e3a1; }

.code-title {
    margin-left: 12px;
    color: #6c7086;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 20px;
}

.code-body pre {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.7;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    color: #cdd6f4;
}

.code-keyword { color: #cba6f7; font-weight: 700; }
.code-comment { color: #6c7086; font-style: italic; }
.code-key { color: #89b4fa; }
.code-string { color: #a6e3a1; }
.code-number { color: #fab387; }
.code-bool { color: #f9e2af; }

/* Trusted Section */
.trusted-section {
    background: #0f0f23;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trusted-label {
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    font-weight: 500;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trusted-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.trusted-item:hover {
    color: #818cf8;
}

.trusted-item i {
    font-size: 1.2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Solutions Section */
.solutions-section {
    background: #0a0a1a;
    padding: 100px 0;
}

.solution-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #818cf8;
    margin-bottom: 20px;
}

.solution-card h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.solution-card p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.solution-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.solution-tags span {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* How It Works Section */
.how-section {
    background: #0f0f23;
    padding: 100px 0;
}

.steps-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.step-content h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    opacity: 0.3;
    flex-shrink: 0;
}

/* Tech Section */
.tech-section {
    background: #0a0a1a;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 24px;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

.tech-item i {
    color: #818cf8;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.cta-section h2 {
    position: relative;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    position: relative;
    color: #a5b4fc;
    font-size: 1.15rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg-custom {
    padding: 16px 36px !important;
    font-size: 1.05rem !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding: 100px 0 60px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .step-connector {
        display: none;
    }
    .steps-timeline {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 16px;
    }
    .hero-stat-number {
        font-size: 1.4rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .trusted-logos {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
    }
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    .hero-stat-divider {
        display: none;
    }
}

/* --- Highlighted Solution Card (Seguros) --- */
.solution-card-highlight {
    border-color: rgba(99, 102, 241, 0.3) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05)) !important;
    position: relative;
    overflow: hidden;
}

.solution-card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
}

.solution-card-highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
}

.solution-icon-highlight {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.solution-featured-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
