/* =====================================================
   CITY CAPITAL - PREMIUM LANDING PAGE STYLES
   Dark Luxury Corporate Aesthetic
   ===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Backgrounds (Dark Luxury) */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Electric Blue Accent Scale */
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-300: #93C5FD;
    --primary-400: #60A5FA;
    --primary-500: #3B82F6;
    /* Main Electric Blue */
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;
    --primary-800: #1E40AF;
    --primary-900: #1E3A8A;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Accent Colors */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Spacing */
    --container-width: 1280px;
    --section-padding: 120px;
    --section-padding-mobile: 60px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-primary {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6)) drop-shadow(0 0 40px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 60px rgba(59, 130, 246, 0.3));
}

.glow-text {
    text-shadow:
        0 0 10px rgba(59, 130, 246, 0.8),
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(59, 130, 246, 0.4);
}

/* ===== GLASSMORPHISM CARD ===== */
.glass-card {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.08) 0%,
            rgba(59, 130, 246, 0.04) 50%,
            rgba(59, 130, 246, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.35);
    transform: translateY(-4px);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg,
            var(--primary-600) 0%,
            var(--primary-500) 30%,
            var(--primary-400) 60%,
            var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.5),
        0 4px 24px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.8),
        0 8px 40px rgba(59, 130, 246, 0.6);
}

.btn-primary-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.8;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 0;
    /* More padding for larger logo */
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 12px 0;
    /* Compact on scroll */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 24px;
    /* Space between logo and text */
}

.brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center tagline below name */
    transition: all 0.4s ease;
}

.brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 32px;
    /* Large and bold */
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    /* Space between name and tagline */
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    /* Pop against background */
}

.brand-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--success);
    /* Electric Blue accent */
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Adjust sizes on scroll for compact header */
.navbar.scrolled .brand-name {
    font-size: 22px;
}

.navbar.scrolled .brand-tagline {
    font-size: 12px;
}

.nav-brand .logo-full {
    height: 140px;
    /* Massive logo - 3x larger */
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother resize animation */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    /* Make it pop */
}

/* Shrink logo significantly on scroll */
.navbar.scrolled .nav-brand .logo-full {
    height: 60px;
}

.nav-brand .logo-icon {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 200px 0 80px;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 76px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(59, 130, 246, 0.2);
}

/* ===== HERO VISUAL (3D SPHERE) ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.sphere {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.sphere-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere-ring {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: rotate-ring 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    box-shadow:
        0 0 60px rgba(59, 130, 246, 0.4),
        0 0 120px rgba(59, 130, 246, 0.3),
        inset 0 0 60px rgba(59, 130, 246, 0.2);
}

.ring-2 {
    width: 70%;
    height: 70%;
    border-color: rgba(59, 130, 246, 0.4);
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-3 {
    width: 40%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-color: rgba(59, 130, 246, 0.5);
    animation-duration: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

@keyframes rotate-ring {
    from {
        transform: rotateZ(0deg) rotateY(45deg);
    }

    to {
        transform: rotateZ(360deg) rotateY(45deg);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== SECTION HEADERS ===== */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-400);
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

/* ===== VERTICALES SECTION ===== */
.verticales {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.verticales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.vertical-card {
    position: relative;
    padding: 48px;
}

.vertical-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary-500);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.featured-vertical {
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.vertical-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-400);
    margin-bottom: 24px;
}

.vertical-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-400);
    margin-bottom: 8px;
}

.vertical-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.vertical-description {
    color: var(--text-tertiary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.vertical-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vertical-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

.vertical-features li::before {
    content: '✓';
    color: var(--primary-500);
    font-weight: 700;
    font-size: 18px;
}

/* ===== SERVICIOS SECTION (FLIP CARDS) ===== */
.servicios {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-flip {
    perspective: 1000px;
    height: 320px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Safari support */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-card-front {
    background: rgba(17, 24, 39, 1);
    /* Solid dark background base */
    border: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 2;
    transform: rotateY(0deg);
    overflow: hidden;
    /* Clips the background image */
}

.service-card-back {
    transform: rotateY(180deg);
    background: rgba(59, 130, 246, 0.15);
    /* Slightly lighter/blue tinted back */
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 32px;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: var(--primary-400);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card-flip:hover .service-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

/* Image as full background */
.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    z-index: 0;
    opacity: 0.4;
    /* Dimmed background */
    transition: transform 0.8s ease;
    filter: grayscale(40%);
    /* Elegant monochrome touch */
}

.service-card-flip:hover .service-img {
    transform: scale(1.1);
    opacity: 0.2;
    /* Fade slightly on flip */
}

/* Ensure content sits on top */
.service-icon,
.service-title-front,
.service-overlay-icon {
    position: relative;
    z-index: 1;
}

.service-title-front {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.service-overlay-icon {
    margin-top: auto;
    font-size: 32px;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-title-back {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-400);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ===== PROCESO SECTION ===== */
.proceso {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.proceso-step {
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== PROYECTOS DESTACADOS SECTION ===== */
.proyectos-destacados {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.proyecto-card {
    position: relative;
    padding: 40px 32px;
    transition: var(--transition-smooth);
}

.proyecto-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 30px 60px -15px rgba(59, 130, 246, 0.4);
}

.proyecto-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

.proyecto-badge-city {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-400);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.proyecto-badge-capital {
    background: rgba(59, 130, 246, 0.3);
    color: var(--primary-300);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.proyecto-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-400);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.proyecto-card:hover .proyecto-icon {
    transform: scale(1.1) rotateY(15deg);
    filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.6));
}

.proyecto-titulo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.proyecto-descripcion {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    min-height: 70px;
}

.proyecto-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.proyecto-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-valor {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-concepto {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proyecto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proyecto-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-400);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: var(--transition-smooth);
}

.proyecto-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

/* ===== TESTIMONIOS SECTION ===== */
.testimonios {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonio-card {
    padding: 40px;
}

.quote-icon {
    color: var(--primary-500);
    margin-bottom: 20px;
}

.testimonio-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-400);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.testimonio-rating {
    display: flex;
    gap: 4px;
}

.star {
    color: var(--warning);
    font-size: 20px;
}

/* ===== NOSOTROS SECTION ===== */
.nosotros {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.nosotros-image-container {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nosotros-logo {
    max-width: 200px;
    animation: float 6s ease-in-out infinite;
}

.nosotros-content {
    text-align: left;
}

.nosotros-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.nosotros-text strong {
    color: var(--primary-400);
    font-weight: 600;
}

.nosotros-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    font-weight: 700;
    flex-shrink: 0;
}

.value-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.value-text strong {
    color: var(--text-primary);
}

/* ===== CTA FINAL SECTION ===== */
.cta-final {
    padding: var(--section-padding) 0;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.cta-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.cta-note svg {
    stroke: var(--primary-400);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 32px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: var(--primary-400);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-400);
    padding-left: 4px;
}

.footer-links li {
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.footer-copyright {
    color: var(--text-quaternary);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
}

.footer-legal a {
    color: var(--text-tertiary);
}

.footer-legal a:hover {
    color: var(--primary-400);
}

.separator {
    color: var(--text-quaternary);
}

/* ===== FORMULARIO DE CONTACTO ===== */
.contacto-form {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.contacto-info {
    position: sticky;
    top: 120px;
}

.contacto-intro {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contacto-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-quaternary);
    margin-bottom: 4px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.detail-value:hover {
    color: var(--primary-400);
}

.contacto-form-container {
    padding: 48px 40px;
}

.form-contacto {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-quaternary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-input option {
    background-color: #111827;
    /* Dark background for options */
    color: #ffffff;
    /* White text */
    padding: 10px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-500);
}

.form-link {
    color: var(--primary-400);
    text-decoration: underline;
}

.form-link:hover {
    color: var(--primary-300);
}

.btn-block {
    width: 100%;
}

.form-status {
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ===== MAPA DE UBICACIÓN ===== */
.mapa-ubicacion {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
}

.mapa-overlay {
    position: absolute;
    bottom: 32px;
    left: 32px;
    padding: 24px 28px;
    max-width: 300px;
    animation: fade-in-up 0.6s ease;
}

.mapa-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.mapa-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: fade-in-up 0.6s ease 0.5s both;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: translateY(-2px) scale(1.02);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    .hero-container {
        gap: 60px;
    }

    .sphere-container {
        width: 400px;
        height: 400px;
    }

    .verticales-grid {
        gap: 24px;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proceso-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nosotros-grid {
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-brand .logo-full {
        display: none;
    }

    .nav-brand .logo-icon {
        display: block;
        height: 40px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(59, 130, 246, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-divider {
        display: none;
    }

    .sphere-container {
        width: 280px;
        height: 280px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .verticales-grid {
        grid-template-columns: 1fr;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: auto;
        min-height: 280px;
    }

    .proceso-grid {
        grid-template-columns: 1fr;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .proyecto-card {
        padding: 32px 24px;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nosotros-image-container {
        padding: 40px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacto-info {
        position: static;
    }

    .contacto-form-container {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mapa-overlay {
        position: static;
        margin-top: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .particle:nth-child(n+20) {
        display: none;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 28px;
    }
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.lang-toggle:hover {
    border-color: var(--primary-500);
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.lang-toggle:active {
    transform: translateY(0);
}

/* Adjust specifically for mobile menu */
@media (max-width: 768px) {
    .lang-toggle {
        width: 100%;
        max-width: 200px;
        padding: 12px;
        font-size: 16px;
        border-color: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
    }
    
    .lang-toggle:hover {
        background: rgba(59, 130, 246, 0.1);
    }
}