/* =====================================================
   TUESTANTE - PREMIUM DARK MODE LANDING PAGE
   Color Principal: Electric Blue #3B82F6
   ===================================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   CSS VARIABLES - COLOR SYSTEM
   ===================================================== */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Electric Blue Scale */
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-300: #93C5FD;
    --primary-400: #60A5FA;
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;
    --primary-800: #1E40AF;
    --primary-900: #1E3A8A;

    /* Primary RGB for alpha usage */
    --primary-rgb: 59, 130, 246;

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

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

    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 120px;
    --section-padding-mobile: 60px;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 4.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 50%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-primary {
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.6)) drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.4)) drop-shadow(0 0 60px rgba(var(--primary-rgb), 0.3));
}

.glow-text {
    text-shadow:
        0 0 10px rgba(var(--primary-rgb), 0.8),
        0 0 20px rgba(var(--primary-rgb), 0.6),
        0 0 40px rgba(var(--primary-rgb), 0.4);
}

/* =====================================================
   GLASS CARD COMPONENT
   ===================================================== */
.glass-card {
    background: linear-gradient(135deg,
            rgba(var(--primary-rgb), 0.08) 0%,
            rgba(var(--primary-rgb), 0.04) 50%,
            rgba(var(--primary-rgb), 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 24px;
    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: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.35);
    transform: translateY(-4px);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    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: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.5),
        0 4px 24px rgba(var(--primary-rgb), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.6);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

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

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

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

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

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(var(--primary-rgb), 0.5),
            0 4px 24px rgba(var(--primary-rgb), 0.4),
            0 0 60px rgba(var(--primary-rgb), 0.3);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(var(--primary-rgb), 0.8),
            0 8px 40px rgba(var(--primary-rgb), 0.6),
            0 0 80px rgba(var(--primary-rgb), 0.5);
    }
}

@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 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;
    }
}

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

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

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

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

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* =====================================================
   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;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8);
}

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

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

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

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

.logo-image {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    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%;
}

.nav-cta {
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

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

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-text {
    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(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 24px;
}

.label-icon {
    font-size: 1.25rem;
}

.hero-title {
    margin-bottom: 24px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s forwards;
    opacity: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-500);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Hero Visual - Image */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-image {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 24px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(var(--primary-rgb), 0.4));
}

.sphere {
    position: relative;
    width: 500px;
    height: 500px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.sphere-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    border-radius: 50%;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    box-shadow:
        0 0 60px rgba(var(--primary-rgb), 0.4),
        0 0 120px rgba(var(--primary-rgb), 0.3),
        inset 0 0 60px rgba(var(--primary-rgb), 0.2);
    backdrop-filter: blur(10px);
}

.sphere-ring {
    position: absolute;
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.ring-1 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    animation-delay: -1s;
}

.ring-2 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    animation-delay: -2s;
}

.ring-3 {
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    animation-delay: -3s;
}

/* =====================================================
   SOCIAL PROOF SECTION
   ===================================================== */
.social-proof {
    padding: 60px 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.social-proof-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    font-weight: 500;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-quaternary);
    opacity: 0.5;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.client-logo:hover {
    opacity: 1;
    color: var(--primary-500);
    transform: scale(1.1);
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 24px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
}

/* =====================================================
   SERVICES SECTION (3D OPTIMIZED)
   ===================================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* --- 3D FLIP CARD COMPONENT --- */

/* 1. Scene Container */
.service-card-flip {
    perspective: 2000px;
    height: 480px;
    width: 100%;
    cursor: pointer;
}

/* 2. 3D Object Wrapper */
.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);
    will-change: transform;
}

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

/* 3. Faces (Shared Styles) */
.service-card-front,
.service-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* 4. Front Face */
.service-card-front {
    background: var(--bg-tertiary);
    transform: rotateY(0deg) translateZ(1px);
    /* Layer Hack */
    z-index: 2;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 32px;
    z-index: 10;
}

.service-title-front {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

/* 5. Back Face */
.service-card-back {
    /* Fondo semitransparente para efecto glass */
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transform: rotateY(180deg) translateZ(1px);
    /* Layer Hack */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 1;
}

.service-card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    /* Asegura que esté sobre el fondo pero bajo el texto */
    mix-blend-mode: overlay;
    /* Mejora la integración */
}

/* Back Background Images */
.service-card-flip:nth-child(1) .service-card-back::before {
    background-image: url('images/service_1.png');
}

.service-card-flip:nth-child(2) .service-card-back::before {
    background-image: url('images/service_2.png');
}

.service-card-flip:nth-child(3) .service-card-back::before {
    background-image: url('images/service_3.png');
}

.service-card-flip:nth-child(4) .service-card-back::before {
    background-image: url('images/service_4.png');
}

.service-card-flip:nth-child(5) .service-card-back::before {
    background-image: url('images/service_5.png');
}

.service-card-flip:nth-child(6) .service-card-back::before {
    background-image: url('images/service_6.png');
}

/* Back Content */
.service-icon,
.service-title-back,
.service-description,
.service-features {
    position: relative;
    z-index: 2;
    /* Encima de la imagen de fondo */
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-500);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.service-title-back {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-description {
    color: #A1A1AA;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-400);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* =====================================================
   SOLUTIONS SECTION
   ===================================================== */
.solutions {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.solution-card {
    padding: 0;
    overflow: hidden;
}

.solution-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.solution-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease;
}

.solution-card:hover .solution-image-placeholder {
    transform: scale(1.10);
}

.solution-content {
    padding: 32px;
}

.solution-content h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.solution-content p {
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.solution-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

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

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-quaternary);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    padding: var(--section-padding) 0;
}

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

.about-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.about-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.about-text .section-label {
    margin-bottom: 24px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-paragraph {
    margin-bottom: 24px;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-rgb), 0.2);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    font-weight: 700;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.cta-bg-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

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

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

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.footer-description {
    color: var(--text-tertiary);
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary-400);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    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);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

.footer-contact svg {
    color: var(--primary-400);
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.footer-copyright {
    color: var(--text-quaternary);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-quaternary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-400);
}

/* =====================================================
   RESPONSIVE - TABLET
   ===================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

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

    .hero-visual {
        order: -1;
    }

    .sphere {
        width: 350px;
        height: 350px;
    }

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

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

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

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

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 16px;
    }

    /* Navbar Mobile */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-cta {
        display: none;
    }

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

    /* Hero Mobile */
    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-visual {
        order: -1;
    }

    .sphere {
        width: 250px;
        height: 250px;
    }

    .hero-image {
        width: 300px;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .stat-number {
        font-size: 2rem;
    }

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

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

    /* Solutions Mobile */
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-wrapper {
        padding: 40px;
    }

    /* CTA Mobile */
    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.0625rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }

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

/* =====================================================
   UTILITY - SCROLL ANIMATIONS
   ===================================================== */
.animate-in {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =====================================================
   PERFORMANCE OPTIMIZATIONS
   ===================================================== */
.animated-element {
    will-change: transform, opacity;
}

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

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

/* PASO 1: Tamaño de los iconos de soluciones */
.placeholder-icon {
    font-size: 5rem !important;
    /* Ajusta este número para más o menos tamaño */
    display: block;
    line-height: 1;
}