/* ================================================================
   MDAI CREATIVO - Premium Dark Mode Landing Page
   Color System: Blue → Purple → Magenta → Orange (Brand Gradient)
   ================================================================ */

/* ============ CSS VARIABLES ============ */
:root {
    /* Brand Multi-Gradient Colors */
    --blue: #3B82F6;
    --blue-light: #60A5FA;
    --blue-dark: #1D4ED8;

    --purple: #A855F7;
    --purple-light: #C084FC;
    --purple-dark: #7C3AED;

    --magenta: #EC4899;
    --magenta-light: #F472B6;
    --magenta-dark: #DB2777;

    --orange: #F97316;
    --orange-light: #FB923C;
    --orange-dark: #EA580C;

    --red: #EF4444;

    /* RGB values for rgba() */
    --blue-rgb: 59, 130, 246;
    --purple-rgb: 168, 85, 247;
    --magenta-rgb: 236, 72, 153;
    --orange-rgb: 249, 115, 22;

    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;
    --bg-card: #1C1C1F;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Status */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--blue) 0%, var(--purple) 35%, var(--magenta) 65%, var(--orange) 100%);
    --brand-gradient-rev: linear-gradient(135deg, var(--orange) 0%, var(--magenta) 35%, var(--purple) 65%, var(--blue) 100%);
    --hero-glow: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.1) 40%, transparent 70%);

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1280px;

    /* Transitions */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-smooth);
}

ul {
    list-style: none;
}

section {
    position: relative;
    overflow: hidden;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ TYPOGRAPHY ============ */
.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.gradient-text {
    background: var(--brand-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ PARTICLES BG ============ */
.particles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--purple);
    opacity: 0;
    animation: float-particle 20s infinite ease-in-out;
    will-change: transform, opacity;
}

.particle:nth-child(3n) {
    background: var(--blue);
    width: 3px;
    height: 3px;
}

.particle:nth-child(3n+1) {
    background: var(--magenta);
    width: 2px;
    height: 2px;
}

.particle:nth-child(3n+2) {
    background: var(--orange);
    width: 1px;
    height: 1px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 14px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.5));
    transition: filter 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s var(--ease-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 2px;
    transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.08);
}

.nav-link:hover::after {
    width: calc(100% - 28px);
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
    transition: all 0.3s var(--ease-smooth);
    margin-left: 8px;
}

.btn-nav:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.mobile-nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

.btn-mobile-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 36px;
    background: var(--brand-gradient);
    border-radius: 12px;
    font-size: 1.1rem !important;
    color: #fff !important;
}

/* ============ HERO SECTION ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 90%, rgba(249, 115, 22, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--purple-light);
    width: fit-content;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--purple-light);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.badge-arrow {
    opacity: 0.6;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 480px;
}

.hero-subtitle strong {
    color: var(--text-secondary);
}

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

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

.stat-value {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-number,
.stat-suffix {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-quaternary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(168, 85, 247, 0.2);
}

/* CTAs */
.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.4),
        0 4px 24px rgba(168, 85, 247, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s var(--ease-smooth);
    will-change: transform;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 2px rgba(168, 85, 247, 0.7),
        0 8px 40px rgba(168, 85, 247, 0.55),
        0 0 60px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.08);
}

.btn-glow {
    animation: gradient-shift 4s ease infinite, pulse-glow 3s ease-in-out infinite;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    border-color: rgba(168, 85, 247, 0.7);
    background: rgba(168, 85, 247, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-whatsapp {
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.btn-whatsapp:hover {
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

/* ============ HERO VISUAL ============ */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 7s ease-in-out infinite;
    will-change: transform;
}

.hero-visual-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-img {
    width: 100%;
    max-width: 520px;
    border-radius: 24px;
    filter:
        drop-shadow(0 0 30px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 60px rgba(236, 72, 153, 0.3)) drop-shadow(0 0 100px rgba(59, 130, 246, 0.2));
    position: relative;
    z-index: 2;
}

/* Orbital rings */
.hero-visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    animation: spin-slow 20s linear infinite;
    pointer-events: none;
}

.ring-1 {
    width: 110%;
    height: 110%;
    border-color: rgba(168, 85, 247, 0.15) transparent rgba(168, 85, 247, 0.15) transparent;
    animation-duration: 15s;
}

.ring-2 {
    width: 130%;
    height: 130%;
    border-color: transparent rgba(236, 72, 153, 0.1) transparent rgba(59, 130, 246, 0.1);
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-3 {
    width: 150%;
    height: 150%;
    border-color: rgba(249, 115, 22, 0.08) transparent rgba(249, 115, 22, 0.08) transparent;
    animation-duration: 35s;
}

/* Floating badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(18, 18, 22, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.25);
    backdrop-filter: blur(16px);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: float-badge 6s ease-in-out infinite;
}

.fb-1 {
    top: 8%;
    left: -5%;
    animation-delay: 0s;
}

.fb-2 {
    top: 75%;
    left: -8%;
    animation-delay: 2s;
}

.fb-3 {
    top: 15%;
    right: -5%;
    animation-delay: 4s;
}

.fb-icon {
    font-size: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0.5;
    animation: fade-in-up 1s var(--ease-spring) 1s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--purple), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

/* ============ SOCIAL PROOF ============ */
.social-proof {
    padding: 40px 0;
    border-top: 1px solid rgba(168, 85, 247, 0.08);
    border-bottom: 1px solid rgba(168, 85, 247, 0.08);
    background: rgba(9, 9, 11, 0.6);
    position: relative;
    z-index: 1;
}

.proof-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.proof-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-quaternary);
    margin-bottom: 24px;
}

.proof-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.proof-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    background: rgba(24, 24, 27, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-quaternary);
    transition: all 0.3s var(--ease-smooth);
    cursor: default;
}

.tech-icon {
    font-size: 1.1rem;
}

.proof-logo:hover {
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-2px);
}

/* ============ SECTION HEADERS ============ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 16px;
}

/* ============ GLASSMORPHISM CARD ============ */
.glass-card {
    background: linear-gradient(135deg,
            rgba(168, 85, 247, 0.07) 0%,
            rgba(24, 24, 27, 0.6) 50%,
            rgba(236, 72, 153, 0.05) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.14);
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 2px 4px -2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s var(--ease-smooth);
}

.glass-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow:
        0 25px 50px -12px rgba(168, 85, 247, 0.25),
        0 0 0 1px rgba(168, 85, 247, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

/* ============ SERVICIOS / FLIP CARDS ============ */
.servicios {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 3D Flip Card */
.service-card-flip {
    perspective: 1000px;
    height: 340px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Flip on hover - stays flipped while mouse is on card */
.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-flip:hover .service-image {
    transform: scale(1.06);
}

/* Mobile: use JS to toggle flipped class */
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-flip.flipped .service-image {
    transform: scale(1.06);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .service-card-inner,
    .service-image {
        transition: none !important;
    }
}

.service-card-front,
.service-card-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
}

/* Front */
.service-card-front {
    background: var(--bg-tertiary);
    border: 1px solid rgba(168, 85, 247, 0.1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
    will-change: transform;
}

.service-card-flip:hover .service-image {
    transform: scale(1.06);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
}

.service-image {
    filter: brightness(0.85) saturate(1.2);
}

.service-icon-front {
    font-size: 1.8rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.8));
}

.service-title-front {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Back */
.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px;
    gap: 12px;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.back-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.7));
}

.service-title-back {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.service-description {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.feature-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-light);
    border-radius: 100px;
    padding: 4px 10px;
    transition: all 0.3s var(--ease-smooth);
}

.feature-tag:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

/* ============ RESULTADOS ============ */
.resultados {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.resultados-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center,
            rgba(168, 85, 247, 0.08) 0%,
            rgba(236, 72, 153, 0.04) 40%,
            transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.5));
}

.big-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    line-height: 1;
}

.stat-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-quaternary);
    line-height: 1.5;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.stat-bar-fill {
    height: 100%;
    background: var(--brand-gradient);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: gradient-shift 3s ease infinite;
    transform-origin: left;
    animation: bar-fill 2s var(--ease-spring) forwards, gradient-shift 3s ease infinite;
}

/* ============ PROCESO ============ */
.proceso {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 11, 0.8) 50%, transparent 100%);
}

.proceso-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.proceso-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.step-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    margin-bottom: 12px;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(168, 85, 247, 0.6), rgba(236, 72, 153, 0.3));
    flex-shrink: 0;
}

.step-connector.last {
    opacity: 0.3;
}

.step-content {
    padding: 24px;
    width: 100%;
    flex: 1;
    margin-top: 12px;
}

.step-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.step-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.step-time {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--purple-light);
    background: rgba(168, 85, 247, 0.1);
    border-radius: 100px;
    padding: 3px 10px;
}

/* ============ TESTIMONIOS ============ */
.testimonios {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonio-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    position: absolute;
    top: 12px;
    left: 24px;
    opacity: 0.6;
}

.stars {
    font-size: 1rem;
    color: #F59E0B;
    letter-spacing: 2px;
    margin-top: 24px;
}

.testimonio-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.78rem;
    color: var(--text-quaternary);
}

/* ============ NOSOTROS ============ */
.nosotros {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
    background: rgba(9, 9, 11, 0.5);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.nosotros-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.nosotros-img-container {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nosotros-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.6));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.nosotros-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.1) 60%, transparent 80%);
    border-radius: 50%;
    filter: blur(20px);
}

.nosotros-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.25);
    animation: spin-slow 12s linear infinite;
}

.nosotros-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.n-badge {
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    padding: 7px 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.n-badge:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: scale(1.03);
}

.nosotros-content .section-badge {
    margin-bottom: 12px;
}

.nosotros-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.nosotros-text {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.nosotros-text strong {
    color: var(--text-secondary);
}

.nosotros-values {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.value-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.value-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.value-item p {
    font-size: 0.8rem;
    color: var(--text-quaternary);
    margin: 0;
}

.nosotros-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.3s var(--ease-smooth);
}

.social-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
    color: var(--purple-light);
    transform: translateY(-2px);
}

/* ============ CTA FINAL ============ */
.cta-final {
    padding: 140px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center,
            rgba(168, 85, 247, 0.2) 0%,
            rgba(236, 72, 153, 0.1) 40%,
            rgba(249, 115, 22, 0.05) 70%,
            transparent 100%);
    filter: blur(60px);
    pointer-events: none;
}

.cta-glow-2 {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 16px 0 20px;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    display: inline-flex;
    margin-bottom: 36px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-check {
    width: 20px;
    height: 20px;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-urgency {
    font-size: 0.82rem;
    color: var(--text-quaternary);
}

.cta-urgency strong {
    color: var(--orange-light);
}

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    position: relative;
    z-index: 1;
}

.footer-top {
    padding: 70px 0;
    background: rgba(9, 9, 11, 0.8);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-quaternary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-quaternary);
    transition: all 0.3s var(--ease-smooth);
}

.footer-social-link:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.12);
    color: var(--purple-light);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col ul a {
    font-size: 0.84rem;
    color: var(--text-quaternary);
    transition: color 0.3s;
    position: relative;
}

.footer-col ul a:hover {
    color: var(--purple-light);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(168, 85, 247, 0.06);
    background: rgba(0, 0, 0, 0.5);
}

.footer-bottom .footer-container {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-quaternary);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero load animations */
.animate-fade-up {
    opacity: 0;
    animation: fade-in-up 0.9s var(--ease-spring) forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scale-in 0.7s var(--ease-bounce) forwards;
}

.animate-fade-rotate {
    opacity: 0;
    animation: fade-in-rotate 1.2s var(--ease-spring) forwards;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-spring);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

/* ============ KEYFRAME ANIMATIONS ============ */

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: rotateY(-12deg) translateX(30px);
    }

    to {
        opacity: 1;
        transform: rotateY(0) translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-18px) rotate(2deg);
    }

    50% {
        transform: translateY(-8px) rotate(-2deg);
    }

    75% {
        transform: translateY(-24px) rotate(1deg);
    }
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.2;
    }

    25% {
        transform: translate(80px, -80px);
        opacity: 0.7;
    }

    50% {
        transform: translate(-40px, -180px);
        opacity: 0.4;
    }

    75% {
        transform: translate(-80px, -80px);
        opacity: 0.6;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(168, 85, 247, 0.5),
            0 4px 24px rgba(168, 85, 247, 0.4),
            0 0 60px rgba(236, 72, 153, 0.2);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(168, 85, 247, 0.8),
            0 8px 40px rgba(168, 85, 247, 0.6),
            0 0 80px rgba(236, 72, 153, 0.4),
            0 0 100px rgba(249, 115, 22, 0.2);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes scroll-line {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 1;
    }
}

@keyframes bar-fill {
    from {
        width: 0;
    }

    to {
        width: var(--target-width, 90%);
    }
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-visual {
        order: -1;
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-img {
        max-width: 340px;
    }

    .fb-1,
    .fb-2,
    .fb-3 {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proceso-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .nosotros-content .section-title {
        text-align: center;
    }

    .nosotros-social {
        justify-content: center;
    }

    .nosotros-values {
        text-align: left;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-bottom .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .big-number {
        font-size: 2.2rem;
    }

    .proceso-timeline {
        grid-template-columns: 1fr;
    }

    .nosotros-img-container {
        width: 200px;
        height: 200px;
    }

    .nosotros-logo {
        width: 150px;
    }

    .cta-final {
        padding: 80px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    /* Reduce particles on mobile */
    .particle:nth-child(n+20) {
        display: none;
    }
}

/* XL Desktop */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 3.4rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============ FORMULARIO DE CONTACTO ============ */

.form-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
    background: rgba(9, 9, 11, 0.6);
}

.form-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center,
            rgba(59, 130, 246, 0.08) 0%,
            rgba(168, 85, 247, 0.06) 40%,
            transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

/* Left Info Panel */
.form-info .section-title {
    text-align: left;
}

.form-info-text {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin: 16px 0 32px;
}

.form-contact-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 14px;
    transition: all 0.3s var(--ease-smooth);
    cursor: default;
}

a.form-contact-item {
    cursor: pointer;
}

a.form-contact-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.06);
    transform: translateX(4px);
}

.form-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    flex-shrink: 0;
}

.form-contact-icon--green {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.form-contact-icon--orange {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.25);
    color: var(--orange-light);
}

.form-contact-icon--blue {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--blue-light);
}

.form-contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-quaternary);
    margin-bottom: 2px;
}

.form-contact-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Form Card */
.form-card {
    padding: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.required {
    color: var(--magenta);
}

/* Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(9, 9, 11, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s var(--ease-smooth);
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-quaternary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.04);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
    max-height: 240px;
    line-height: 1.6;
}

/* Select wrapper */
.select-wrapper {
    position: relative;
}

.form-select {
    cursor: pointer;
    padding-right: 36px;
    background-color: rgba(9, 9, 11, 0.7);
}

.form-select option {
    background: #18181B;
    color: var(--text-primary);
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-quaternary);
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Budget radio options */
.budget-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.budget-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(9, 9, 11, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.budget-option:hover {
    border-color: rgba(168, 85, 247, 0.35);
    color: var(--text-secondary);
}

.budget-option input[type="radio"] {
    accent-color: var(--purple);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.budget-option:has(input:checked) {
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.08);
    color: var(--purple-light);
}

/* Error & counter */
.form-error {
    font-size: 0.75rem;
    color: #f87171;
    min-height: 16px;
    display: block;
}

.char-counter {
    font-size: 0.72rem;
    color: var(--text-quaternary);
    text-align: right;
    display: block;
    margin-top: -2px;
}

/* Submit button */
.form-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
    margin-top: 4px;
    border: none;
    cursor: pointer;
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Success state */
.form-success {
    display: none;
    text-align: center;
    padding: 32px 20px;
    animation: fade-in-up 0.6s var(--ease-spring) forwards;
    min-height: 200px; /* Ensure minimum height for visibility */
    background-color: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.form-success.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.success-icon {
    font-size: 3rem;
}

.form-success h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.form-success p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============ RESPONSIVE — FORM ============ */
@media (max-width: 1023px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-info .section-title {
        text-align: center;
    }

    .form-info-text {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .form-card {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .budget-options {
        grid-template-columns: 1fr;
    }
}