/* =====================================================
   G2 GLOBAL INTELLIGENCE - PREMIUM DARK MODE STYLES
   ===================================================== */

/* =====================================================
   CSS VARIABLES - COLOR SYSTEM
   ===================================================== */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Primary Color - Electric Blue (adaptable) */
    --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 rgba 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-width: 1280px;
    --section-padding: 120px;
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
}

h1 {
    font-size: 76px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 48px;
    line-height: 1.2;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* =====================================================
   PARTICLE SYSTEM
   ===================================================== */
.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: radial-gradient(circle, rgba(var(--primary-rgb), 0.8) 0%, rgba(var(--primary-rgb), 0) 70%);
    border-radius: 50%;
    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: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
    -webkit-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-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    border-radius: 12px;
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.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%;
}

.nav-cta {
    margin-left: 24px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    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;
    padding: 16px 32px;
    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;
    font-size: 16px;
}

.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 {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

/* WhatsApp button specific styling */
.btn-whatsapp {
    gap: 6px;
}

.btn-whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.08);
    color: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

@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);
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.15) 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-block;
    padding: 8px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.glow-text {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.3);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-400);
    line-height: 1;
}

.stat-symbol {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-400);
}

.stat-label {
    font-size: 14px;
    color: var(--text-quaternary);
    margin-top: 8px;
}

/* Hero Visual - 3D Sphere */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.sphere {
    width: 500px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.sphere-inner {
    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);
    position: relative;
}

.sphere-ring {
    position: absolute;
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
}

.ring-1 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    animation: rotate-ring 20s linear infinite;
}

.ring-2 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    animation: rotate-ring 30s linear infinite reverse;
}

.ring-3 {
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    animation: rotate-ring 40s linear infinite;
}

@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: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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));
}

/* =====================================================
   SPHERE LOGO - Logo centrado dentro de la esfera
   ===================================================== */
.sphere-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55%;
    height: 55%;
    /* Counter-rotate to keep logo upright while sphere floats */
    animation: counter-float 6s ease-in-out infinite;
}

.sphere-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Subtle glow matching brand color */
    filter: drop-shadow(0 0 16px rgba(var(--primary-rgb), 0.8)) brightness(1.1);
    display: block;
}

.sphere-logo-fallback {
    display: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-400);
    text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.8);
    letter-spacing: -2px;
}

/* Counter-animation keeps logo visually stable while sphere floats */
@keyframes counter-float {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    25% {
        transform: translate(-50%, calc(-50% + 20px)) rotate(-2deg);
    }

    50% {
        transform: translate(-50%, calc(-50% + 10px)) rotate(2deg);
    }

    75% {
        transform: translate(-50%, calc(-50% + 30px)) rotate(-1deg);
    }
}

/* =====================================================
   SOCIAL PROOF
   ===================================================== */
.social-proof {
    padding: 80px 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.social-proof-text {
    text-align: center;
    color: var(--text-quaternary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-quaternary);
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    color: var(--primary-400);
    filter: grayscale(0%);
}

/* =====================================================
   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);
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-400);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Flip Card Styles */
.service-card-flip {
    perspective: 1000px;
    height: 400px;
}

.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;
}

/* Activar hover SOLO en computadoras (dispositivos con mouse) */
@media (hover: hover) {
    .service-card-flip:hover .service-card-inner {
        transform: rotateY(180deg);
    }

    .service-card-flip:hover .service-bg-image {
        transform: scale(1.05);
    }
}

/* Clase controlada por script.js para que gire suavemente en móviles */
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-front {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--bg-tertiary);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

/* =====================================================
   NUEVOS ESTILOS PARA IMÁGENES DE SERVICIOS
   ===================================================== */
.service-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegura que la imagen llene el espacio sin deformarse */
    z-index: 0;
    transition: transform 0.4s ease;
    filter: brightness(0.8);
    /* Oscurece un poco la imagen base para resaltar el texto */
}

/* Mantiene el efecto de zoom al pasar el mouse */
.service-card-flip:hover .service-bg-image {
    transform: scale(1.05);
}

.service-overlay {
    position: relative;
    z-index: 1;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.service-title-front {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-title-back {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 12px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 16px;
    font-size: 12px;
    color: var(--primary-400);
    font-weight: 500;
}

/* =====================================================
   SOLUTIONS SECTION
   ===================================================== */
.solutions {
    padding: var(--section-padding) 0;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.solution-card {
    text-align: center;
}

.solution-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.solution-card h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.solution-card p {
    color: var(--text-tertiary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.solution-metrics {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-400);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.metric-label {
    font-size: 12px;
    color: var(--text-quaternary);
    margin-top: 4px;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    padding: var(--section-padding) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--primary-rgb), 0.3);
}

.about-content .section-label {
    display: block;
    text-align: left;
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    color: var(--text-tertiary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-rgb), 0.15);
    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;
}

.about-feature h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.about-feature p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */
.testimonials {
    padding: var(--section-padding) 0;
    background: radial-gradient(ellipse at bottom, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    position: relative;
}

.quote-icon {
    font-size: 64px;
    color: var(--primary-500);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-quaternary);
}

.rating {
    color: var(--warning);
    font-size: 18px;
}

/* =====================================================
   CTA FINAL SECTION
   ===================================================== */
.cta-final {
    padding: var(--section-padding) 0;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    position: relative;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 56px;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cta-note {
    color: var(--text-quaternary);
    font-size: 14px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-description {
    color: var(--text-tertiary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-400);
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    color: var(--text-quaternary);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-quaternary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-400);
}

/* =====================================================
   CONTACT FORM MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-secondary);
}

.modal-close:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary-500);
    transform: rotate(90deg);
}

.modal-content {
    padding: 48px;
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    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: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-quaternary);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-500);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.form-link {
    color: var(--primary-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: var(--primary-300);
    text-decoration: underline;
}

.form-error {
    font-size: 13px;
    color: #EF4444;
    display: none;
    margin-top: 4px;
}

.form-error.active {
    display: block;
    animation: shake 0.3s ease;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.form-actions {
    margin-top: 8px;
}

.btn-submit {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 24px;
    height: 24px;
    animation: rotate 1s linear infinite;
}

.spinner circle {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: fade-in-up 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #16A34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 24px;
    animation: scale-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-success h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.form-success p {
    color: var(--text-tertiary);
    line-height: 1.6;
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-quaternary);
    margin-top: 16px;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablet */
@media (max-width: 1023px) {
    :root {
        --section-padding: 80px;
    }

    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .sphere {
        width: 400px;
        height: 400px;
    }

    .sphere-logo {
        width: 50%;
        height: 50%;
    }

    .sphere-logo-fallback {
        font-size: 52px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .sphere {
        width: 260px;
        height: 260px;
    }

    /* Logo inside sphere - scaled for mobile */
    .sphere-logo {
        width: 44%;
        height: 44%;
        /* Keep it centered precisely on small screens */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .sphere-logo-fallback {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 350px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .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;
    }

    /* Modal Responsive */
    .modal-content {
        padding: 32px 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}

/* Animations */
.animate-in {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   ESTILOS PARA LA IMAGEN DE 'SOBRE NOSOTROS'
   ===================================================== */
.about-image-container {
    width: 100%;
    aspect-ratio: 1;
    /* Mantiene la forma cuadrada/proporcionada */
    padding: 12px;
    /* Crea un marco delgado de cristal alrededor de la imagen */
    display: flex;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    /* Bordes redondeados para que coincida con el diseño */
    filter: brightness(0.9);
    /* Opcional: la oscurece un 10% para mantener el tono Dark Mode */
}
