/* ============================================================
   KREÄR — ESTUDIO ESTRATÉGICO CREATIVO
   styles.css · Dark Luxury Creative Design System
   Colores: #00024D (Navy) + #D9E73C (Lima/Chartreuse)
   ============================================================ */

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

:root {
    /* --- Brand Colors --- */
    --primary-900: #00011a;
    --primary-800: #000230;
    --primary-700: #000240;
    --primary-600: #00024D;
    /* Navy principal */
    --primary-500: #000466;
    --primary-400: #000880;
    --primary-300: #0010a0;
    --primary-200: #001ccc;

    --accent-900: #3d4200;
    --accent-800: #6b7300;
    --accent-700: #99a500;
    --accent-600: #bdd400;
    --accent-500: #D9E73C;
    /* Lima principal */
    --accent-400: #e2ed60;
    --accent-300: #eaf283;
    --accent-200: #f2f7b0;

    /* --- Backgrounds --- */
    --bg-primary: #00024D;
    --bg-secondary: #00024D;
    /* Unified to primary */
    --bg-tertiary: #00024D;
    /* Unified to primary */
    --bg-card: rgba(255, 255, 255, 0.05);
    /* Transparent cards for better flow */

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

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

    /* --- RGB values for rgba() --- */
    --primary-rgb: 0, 2, 77;
    --accent-rgb: 217, 231, 60;

    /* --- Spacing --- */
    --section-padding: 120px;
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* --- Transitions --- */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: "mundial", system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   1. UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.text-accent {
    color: var(--accent-500);
}

.glass-card {
    background: linear-gradient(135deg,
            rgba(var(--accent-rgb), 0.05) 0%,
            rgba(var(--primary-rgb), 0.08) 50%,
            rgba(var(--accent-rgb), 0.04) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.5),
        0 2px 4px -2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(var(--accent-rgb), 0.28);
    box-shadow:
        0 25px 50px -12px rgba(var(--primary-rgb), 0.5),
        0 0 40px rgba(var(--accent-rgb), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-500) 40%, var(--accent-400) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #000;
    font-family: "mundial", sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow:
        0 0 0 1px rgba(var(--accent-rgb), 0.5),
        0 4px 24px rgba(var(--accent-rgb), 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
    box-shadow:
        0 0 0 2px rgba(var(--accent-rgb), 0.8),
        0 8px 40px rgba(var(--accent-rgb), 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-family: "mundial", sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 15px 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    border-color: rgba(var(--accent-rgb), 0.8);
    background: rgba(var(--accent-rgb), 0.06);
    color: var(--accent-500);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 17px;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-family: "mundial", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-500);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-title {
    font-family: "new-order", sans-serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.glow-primary {
    filter:
        drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.4)) drop-shadow(0 0 50px rgba(var(--accent-rgb), 0.2)) drop-shadow(0 0 80px rgba(var(--primary-rgb), 0.4));
}

/* ============================================================
   2. ANIMATIONS
   ============================================================ */
@keyframes gradient-shift {

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

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

@keyframes float {

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

    25% {
        transform: translateY(-16px) rotate(1.5deg);
    }

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

    75% {
        transform: translateY(-22px) rotate(0.8deg);
    }
}

@keyframes float-particle {

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

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

    50% {
        transform: translate(-40px, -160px) scale(0.8);
        opacity: 0.5;
    }

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

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(var(--accent-rgb), 0.5),
            0 4px 24px rgba(var(--accent-rgb), 0.35),
            0 0 60px rgba(var(--accent-rgb), 0.2);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(var(--accent-rgb), 0.9),
            0 8px 40px rgba(var(--accent-rgb), 0.6),
            0 0 80px rgba(var(--accent-rgb), 0.4);
    }
}

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

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

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

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

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: perspective(800px) rotateX(20deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) scale(1);
    }
}

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

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

@keyframes rotate-ring-reverse {
    from {
        transform: rotate(360deg);
    }

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

@keyframes badge-float {

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

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

@keyframes scroll-dot {

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

    50% {
        transform: translateY(16px);
        opacity: 1;
    }
}

@keyframes orb-pulse {

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

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Entry animation classes */
.animate-fade-up {
    opacity: 0;
    animation: fade-in-up var(--transition-slow) forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-fade-rotate {
    opacity: 0;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.anim-delay-1 {
    animation-delay: 0.1s;
}

.anim-delay-2 {
    animation-delay: 0.25s;
}

.anim-delay-3 {
    animation-delay: 0.45s;
}

.anim-delay-4 {
    animation-delay: 0.65s;
}

/* Reveal on scroll */
.reveal-item {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ============================================================
   4. NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(var(--primary-rgb), 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    font-family: "mundial", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-500);
    background: rgba(var(--accent-rgb), 0.06);
}

.nav-link.nav-link-cta {
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    color: var(--accent-400);
    font-weight: 600;
}

.nav-link.nav-link-cta:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.6);
    color: var(--accent-500);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

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

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(var(--primary-rgb), 0.95);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
    padding: 16px 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu .nav-link {
    display: block;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 0;
}

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

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(var(--primary-rgb), 0.5) 0%, rgba(var(--primary-rgb), 0) 60%),
        radial-gradient(ellipse at 70% 80%, rgba(var(--accent-rgb), 0.06) 0%, rgba(var(--primary-rgb), 0) 50%),
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.3) 0%, rgba(var(--primary-rgb), 0) 40%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-400);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-500);
    border-radius: 50%;
    animation: orb-pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: "new-order", sans-serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

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

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

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

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

.stat-number {
    font-family: "mundial", sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-500);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-value-group {
    display: flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
}

.stat-suffix,
.stat-prefix {
    font-family: "mundial", sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-500);
}

.stat-label {
    font-size: 12px;
    color: var(--text-quaternary);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(var(--accent-rgb), 0.15);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual-wrapper {
    position: relative;
    width: 520px;
    height: 520px;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
}

.hero-visual-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    animation: rotate-ring 20s linear infinite;
}

.ring-2 {
    inset: -45px;
    border-color: rgba(var(--accent-rgb), 0.08);
    animation: rotate-ring-reverse 30s linear infinite;
}

/* Floating badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "mundial", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(0, 0, 16, 0.8);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.fb-icon {
    font-size: 14px;
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation: badge-float 3s ease-in-out infinite;
}

.badge-2 {
    bottom: 20%;
    left: -14%;
    animation: badge-float 3.5s ease-in-out infinite 0.5s;
}

.badge-3 {
    top: 20%;
    right: -10%;
    animation: badge-float 4s ease-in-out infinite 1s;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.4), transparent);
    overflow: visible;
    display: flex;
    justify-content: center;
}

.scroll-dot {
    position: absolute;
    top: 0;
    width: 6px;
    height: 6px;
    background: var(--accent-500);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 2s ease-in-out infinite;
}

/* ============================================================
   6. SOCIAL PROOF — MARQUEE INFINITO
   ============================================================ */
.social-proof {
    padding: 60px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.proof-label {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    font-weight: 600;
    margin-bottom: 36px;
    font-family: "mundial", sans-serif;
}

/* Wrapper: clips the overflow and adds fade masks on edges */
.marquee-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    padding: 24px 0;
    /* Espacio para que no se corte el recuadro al hacer hover */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%);
    gap: 24px;
}

/* Each track scrolls indefinitely */
.marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
}

/* Pause on hover for readability */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 24px));
    }
}

/* Individual brand card */
.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: var(--radius-md);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: default;
    backdrop-filter: blur(8px);
    width: 200px;
    /* Fixed width for uniformity */
    height: 100px;
    /* Fixed height for uniformity */
}

.brand-logo-card:hover {
    background: rgba(var(--accent-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
}

/* Brand logo image */
.brand-logo-img {
    max-height: 48px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%) opacity(0.7);
    /* Optional logic: Make logos whiteish if they aren't */
    transition: all 0.3s ease;
}

.brand-logo-card:hover .brand-logo-img {
    filter: grayscale(0%) brightness(100%) opacity(1);
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* ============================================================
   7. SERVICES — FLIP CARDS
   ============================================================ */
.services {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

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

/* Flip Card Wrapper */
.service-card-flip {
    perspective: 1200px;
    height: 380px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-flip:hover .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

/* Front */
.service-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    transform: rotateY(0deg) translateZ(1px);
    overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-flip:hover .service-card-front {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: inset 0 0 40px rgba(var(--accent-rgb), 0.05);
}

.service-overlay {
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.service-icon-front {
    font-size: 36px;
    margin-bottom: 8px;
    transition: transform 0.6s ease;
}

.service-card-flip:hover .service-icon-front {
    transform: translateY(-4px) scale(1.1);
}

.service-title-front {
    font-family: "new-order", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: center;
}



/* Back */
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg) translateZ(1px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 32px;
}

/* Fix al glitch de transparencia en 3D (webkit) */
.service-card-back.glass-card {
    background-color: var(--bg-card);
    /* Fondo sólido oscuro */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Previene que el hover base de .glass-card sobreescriba el rotateY */
.service-card-back.glass-card:hover {
    transform: rotateY(180deg) translateZ(1px) translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-icon-back {
    font-size: 36px;
    margin-bottom: 4px;
}

.service-title-back {
    font-family: "new-order", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-description {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.7;
}

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

.feature-tag {
    font-size: 11px;
    font-weight: 600;
    font-family: "mundial", sans-serif;
    letter-spacing: 0.05em;
    color: var(--accent-500);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* ============================================================
   8. METHODOLOGY
   ============================================================ */
.methodology {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.methodology::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.3) 0%, rgba(var(--primary-rgb), 0) 70%);
    pointer-events: none;
}

.methodology-flow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.method-step {
    flex: 1;
    min-width: 200px;
    position: relative;
    padding: 32px;
    background: #EFEEEA;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    text-align: left;
}

.method-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.method-number {
    font-family: "mundial", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #D5B4FB;
    margin-bottom: 8px;
}

.method-icon {
    display: none;
}

.method-title {
    font-family: "new-order", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 10px;
}

.method-desc {
    font-size: 14px;
    color: var(--primary-600);
    line-height: 1.7;
    opacity: 0.9;
}

.method-arrow {
    font-size: 24px;
    color: var(--accent-500);
    font-weight: 300;
    flex-shrink: 0;
    opacity: 0.4;
}

/* Diferencial box */
.differencial-box {
    position: relative;
    background: #EFEEEA;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.differencial-box strong {
    color: #D5B4FB;
}

.diff-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.diff-quote {
    font-family: "new-order", sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-600);
}

.diff-quote.accent {
    color: #D5B4FB;
}

.diff-vs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.diff-col h4 {
    font-family: "new-order", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-400);
    margin-bottom: 16px;
}

.diff-col.kreär-col h4 {
    color: var(--primary-600);
    background: #D5B4FB;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.diff-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diff-col li {
    font-size: 14px;
    color: var(--primary-600);
    opacity: 0.8;
}

.kreär-col li {
    color: var(--primary-600);
    font-weight: 500;
    opacity: 1;
}

/* ============================================================
   9. ABOUT
   ============================================================ */
.about {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

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

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

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

.about-logo-large {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

.about-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.25) 0%, rgba(var(--primary-rgb), 0) 70%);
    border-radius: 50%;
    animation: orb-pulse 3s ease-in-out infinite;
}

.about-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    animation: rotate-ring 15s linear infinite;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.about-tag {
    font-family: "mundial", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-400);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.about-text {
    color: var(--text-tertiary);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-philosophy {
    margin: 28px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--accent-500);
    background: rgba(var(--accent-rgb), 0.04);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.philosophy-quote {
    font-family: "new-order", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-500);
    font-style: italic;
}

.about-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.about-location {
    font-size: 14px;
    color: var(--text-quaternary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   10. TESTIMONIALS
   ============================================================ */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

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

.testimonial-card {
    background: #EFEEEA;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.test-stars {
    color: #D5B4FB;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(213, 180, 251, 0.4);
}

.test-quote {
    font-size: 16px;
    color: var(--primary-600);
    line-height: 1.8;
    font-style: italic;
    flex: 1;
}

.test-quote strong {
    color: var(--primary-600);
    font-weight: 700;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.test-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.8), rgba(var(--accent-rgb), 0.3));
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "mundial", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-400);
    flex-shrink: 0;
}

.test-info strong {
    display: block;
    font-family: "mundial", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.test-info span {
    font-size: 12px;
    color: var(--text-quaternary);
}

/* ============================================================
   11. FINAL CTA
   ============================================================ */
.final-cta {
    padding: 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 600px;
    background:
        radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.6) 0%, rgba(var(--primary-rgb), 0) 60%),
        radial-gradient(ellipse at 40% 60%, rgba(var(--accent-rgb), 0.06) 0%, rgba(var(--primary-rgb), 0) 50%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cta-title {
    font-family: "new-order", sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 700px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 500px;
    line-height: 1.65;
}

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

.cta-note {
    font-size: 13px;
    color: var(--text-quaternary);
    letter-spacing: 0.05em;
}

.cta-contact-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 20px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-chip .chip-text {
    display: none;
}

.contact-chip:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
    color: var(--accent-400);
    background: rgba(var(--accent-rgb), 0.06);
    transform: translateY(-2px);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
    background: var(--bg-primary);
    padding-top: 72px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-quaternary);
    margin: 16px 0 24px;
    line-height: 1.6;
}

.footer-tagline em {
    color: var(--accent-500);
    font-style: italic;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: "mundial", sans-serif;
    color: var(--text-quaternary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
    color: var(--accent-500);
    background: rgba(var(--accent-rgb), 0.06);
}

.footer-col-title {
    font-family: "new-order", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col li a,
.footer-col li span {
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col li a:hover {
    color: var(--accent-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-credits {
    font-family: "mundial", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--accent-rgb), 0.4);
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual-wrapper {
        width: 420px;
        height: 420px;
    }
}

@media (max-width: 1023px) {
    :root {
        --section-padding: 80px;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-visual-wrapper {
        width: 360px;
        height: 360px;
    }

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

    .hero-badge {
        margin: 0 auto 28px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .about-visual {
        order: -1;
    }

    .about-content {
        text-align: center;
    }

    .about-philosophy {
        text-align: left;
    }

    .about-cta {
        justify-content: center;
    }

    .diff-inner {
        grid-template-columns: 1fr;
    }

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

    .methodology-flow {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 16px;
    }

    .method-step {
        min-width: 180px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 64px;
    }

    .container {
        padding: 0 20px;
    }

    /* Nav */
    .nav-links {
        display: none;
    }

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

    .mobile-menu {
        display: block;
    }

    /* Hero */
    .hero-title {
        font-size: 38px;
    }

    .hero-visual-wrapper {
        width: 280px;
        height: 280px;
    }

    .floating-badge {
        display: none;
    }

    .hero-stats {
        flex-direction: row;
        gap: 4px;
        text-align: center;
        justify-content: center;
        margin-top: 32px;
        width: 100%;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
    }

    .stat-value-group {
        justify-content: center;
        gap: 2px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-suffix,
    .stat-prefix {
        font-size: 16px;
    }

    .stat-label {
        font-size: 9px;
        max-width: 100%;
        margin: 4px auto 0;
        line-height: 1.1;
        display: block;
    }

    .stat-divider {
        width: 1px;
        height: 25px;
    }

    .scroll-indicator {
        display: none;
    }

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

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

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Methodology */
    .methodology-flow {
        flex-direction: column;
    }

    .method-arrow {
        transform: rotate(90deg);
    }

    .diff-vs {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-title {
        font-size: 30px;
    }

    /* Centering Headings */
    h2,
    h3,
    h4,
    .section-title {
        text-align: center !important;
    }

    .method-title,
    .method-desc,
    .test-quote,
    .testimonial-card,
    .method-step {
        text-align: left !important;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cta-contact-options {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }

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

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Global Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "new-order", sans-serif;
}