/* ============================================================
   LH Maps — Custom Styles
   Brand: #3B82F6 (Electric Blue) | #D9F99D (Fresh Lime) | #F8FAFC (Surface)
   Font: Poppins
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --brand: #3B82F6;
    --brand-dark: #2563EB;
    --brand-darker: #1D4ED8;
    --brand-light: #60A5FA;
    --brand-pale: rgba(59, 130, 246, 0.08);
    --accent: #D9F99D;
    --accent-dark: #BEF264;
    --accent-text: #365314;
    --surface: #F8FAFC;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --shadow-card: 0 4px 24px rgba(59, 130, 246, 0.08);
    --shadow-btn: 0 8px 24px rgba(59, 130, 246, 0.2);
    --transition: 0.3s ease;
}

/* ---------- Global ---------- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--surface);
    color: var(--slate-800);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Navbar ---------- */
.navbar-lh {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--slate-100);
    padding: 0.5rem 0;
    transition: background var(--transition);
}

.navbar-lh .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--slate-900);
}

.navbar-lh .navbar-brand img {
    height: 36px;
    width: auto;
}

.navbar-lh .nav-link {
    color: var(--slate-500);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition);
}

.navbar-lh .nav-link:hover {
    color: var(--brand);
}

/* ---------- Buttons ---------- */
.btn-brand {
    background-color: var(--brand);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.7rem 1.8rem;
    box-shadow: var(--shadow-btn);
    transition: all var(--transition);
}

.btn-brand:hover {
    background-color: var(--brand-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.25);
}

.btn-brand:active {
    background-color: var(--brand-darker);
    transform: translateY(0);
}

.btn-outline-brand {
    background-color: var(--white);
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.7rem 1.8rem;
    transition: all var(--transition);
}

.btn-outline-brand:hover {
    border-color: var(--brand);
    color: var(--brand);
    background-color: var(--brand-pale);
}

/* ---------- Badge ---------- */
.badge-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-pale);
    color: var(--brand);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.hero-section .hero-glow {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-section .hero-glow-lime {
    position: absolute;
    top: 8rem;
    right: 5%;
    width: 300px;
    height: 300px;
    background: rgba(217, 249, 157, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(217, 249, 157, 0.2));
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #D9F99D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--slate-500);
    font-weight: 300;
    line-height: 1.7;
}

.hero-subtitle strong {
    font-weight: 500;
    color: var(--slate-700);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.2rem;
    }
}

/* ---------- Trust bar ---------- */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
}

.trust-bar i {
    color: var(--brand);
    margin-right: 0.3rem;
}

/* ---------- Section headings ---------- */
.section-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.section-badge-lime {
    background: rgba(217, 249, 157, 0.3);
    color: var(--brand);
}

.section-badge-blue {
    background: var(--brand-pale);
    color: var(--brand);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.section-subtitle {
    color: var(--slate-500);
    font-weight: 300;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.8rem;
    }
}

/* ---------- Feature cards ---------- */
.feature-card {
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
}

.feature-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand);
}

.feature-icon-lime {
    background: rgba(217, 249, 157, 0.35);
    color: #65A30D;
}

.feature-icon-violet {
    background: rgba(139, 92, 246, 0.08);
    color: #8B5CF6;
}

.feature-card h5 {
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.7;
}

.tech-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--slate-50);
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: 0.3rem;
    margin-top: 0.3rem;
}

/* ---------- Steps ---------- */
.step-number {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.2rem;
    color: var(--white);
}

.step-number-blue {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
}

.step-number-lime {
    background: linear-gradient(135deg, #BEF264, #D9F99D);
    color: var(--accent-text);
    box-shadow: 0 12px 24px rgba(190, 242, 100, 0.2);
}

.step-number-violet {
    background: linear-gradient(135deg, #A78BFA, #C4B5FD);
    box-shadow: 0 12px 24px rgba(167, 139, 250, 0.2);
}

/* ---------- Category cards ---------- */
.category-card {
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-2xl);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.1rem;
}

.category-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
}

/* ---------- Map preview dark ---------- */
.map-preview {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
    border-radius: var(--radius-3xl);
    position: relative;
    overflow: hidden;
}

.map-preview .glow-blue {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.map-preview .glow-lime {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: rgba(217, 249, 157, 0.08);
    border-radius: 50%;
    filter: blur(80px);
}

.map-check {
    width: 24px;
    height: 24px;
    background: var(--brand);
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.65rem;
    color: var(--white);
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-pin {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    z-index: 1000;
}

.floating-pin-blue {
    top: -12px;
    right: -12px;
    background: var(--brand);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    color: var(--white);
}

.floating-pin-lime {
    bottom: -12px;
    left: -12px;
    background: var(--accent);
    box-shadow: 0 8px 20px rgba(217, 249, 157, 0.3);
    color: var(--accent-text);
    animation-delay: 2s;
}

/* ---------- CTA section ---------- */
.cta-box {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, var(--white) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-3xl);
    position: relative;
    overflow: hidden;
}

.cta-box .cta-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: rgba(217, 249, 157, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.cta-logo {
    width: 70px;
    height: auto;
}

/* ---------- Footer ---------- */
.footer-lh {
    background: var(--white);
    border-top: 1px solid var(--slate-100);
}

.footer-lh .footer-logo img {
    height: 24px;
    width: auto;
}

.footer-lh .tech-stack {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
}

.footer-lh .tech-stack span {
    margin: 0 0.5rem;
}

/* ---------- Auth page — Split layout + animated bg ---------- */

/* Prevent scroll */
.auth-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated background */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f5ff 0%, var(--surface) 40%, #f0fdf4 100%);
}

.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    will-change: transform;
    transform: translateZ(0);
}

.auth-bg-orb--blue {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.2);
    top: -10%;
    right: -5%;
    animation: orbFloat1 14s ease-in-out infinite;
}

.auth-bg-orb--lime {
    width: 400px;
    height: 400px;
    background: rgba(217, 249, 157, 0.25);
    bottom: -8%;
    left: -5%;
    animation: orbFloat2 18s ease-in-out infinite;
}

.auth-bg-orb--cyan {
    width: 300px;
    height: 300px;
    background: rgba(96, 165, 250, 0.12);
    top: 50%;
    left: 40%;
    animation: orbFloat3 12s ease-in-out infinite;
}

.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 60px) scale(1.08); }
    66% { transform: translate(30px, -40px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.06); }
    66% { transform: translate(-30px, 50px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, -40px) scale(1.12); }
}

/* Split container */
.auth-split {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ---- Left panel (branding) ---- */
.auth-left {
    flex: 0 0 42%;
    max-width: 42%;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 50%, var(--slate-900) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(217, 249, 157, 0.1);
    top: -60px;
    right: -80px;
    filter: blur(60px);
    animation: orbFloat2 16s ease-in-out infinite;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.15);
    bottom: -40px;
    left: -40px;
    filter: blur(60px);
    animation: orbFloat1 12s ease-in-out infinite;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    color: var(--white);
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-brand-logo {
    height: 140px;
    width: auto;
    margin-bottom: 1.8rem;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.2));
}

.auth-brand-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-sub {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    line-height: 1.5;
    text-align: center;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.7rem;
    background: rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--accent);
    flex-shrink: 0;
}

.auth-brand-footer {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
    text-align: center;
}

/* ---- Right panel (form) ---- */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    position: relative;
}

.auth-back-btn {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    font-size: 0.85rem;
    transition: all var(--transition);
    z-index: 10;
}

.auth-back-btn:hover {
    background: var(--white);
    color: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
    transform: translateX(-2px);
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.7);
    /* -webkit-backdrop-filter: blur(24px); */
    /* backdrop-filter: blur(24px); */
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-2xl);
    box-shadow:
        0 8px 40px rgba(59, 130, 246, 0.06),
        0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--slate-100);
    background: rgba(248, 250, 252, 0.6);
}

.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-400);
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
}

.auth-tabs a:hover {
    color: var(--slate-600);
}

.auth-tabs a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    background: rgba(59, 130, 246, 0.03);
}

.auth-form-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.auth-form-body .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.35rem;
}

.auth-form-body .form-label i {
    color: var(--slate-400);
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.auth-form-body .form-control {
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    background: rgba(248,250,252,0.8);
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form-body .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: var(--white);
}

.auth-form-body .mb-3 {
    margin-bottom: 0.85rem !important;
}

.auth-form-body .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.auth-form-body .btn-brand {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* Responsive: on mobile stack vertically */
@media (max-width: 991.98px) {
    .auth-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .auth-right {
        padding: 2rem 1rem;
    }
    .auth-body {
        overflow: auto;
        height: auto;
    }
}

.link-brand {
    color: var(--brand);
    font-weight: 600;
}

.link-brand:hover {
    color: var(--brand-dark);
}

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

/* ---------- Utilities ---------- */
.bg-section-white {
    background-color: var(--white);
}

.text-brand {
    color: var(--brand) !important;
}

/* ---------- Migrar card ---------- */
.migrar-card-wrap {
    width: 100%;
    max-width: 420px;
}

.migrar-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.migrar-card-header {
    padding: 1.25rem 1rem 0.5rem;
}

.migrar-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fecaca;
    color: #7f1d1d;
    font-size: 1.2rem;
}

.migrar-card-content {
    text-align: center;
    padding: 0.5rem 1.25rem 0.25rem;
}

.migrar-card-title {
    color: var(--slate-900);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.migrar-card-message {
    margin-top: 0.65rem;
    margin-bottom: 0;
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.45;
}

.migrar-card-actions {
    padding: 1rem 1rem 1.1rem;
    background: var(--slate-50);
}

.migrar-card-actions .btn-brand {
    border-radius: 0.6rem;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
}

.migrar-back-link {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-500);
}

.migrar-back-link:hover {
    color: var(--brand);
}
