/* =========================================
   VARIABLES & THEME CONFIGURATION
   ========================================= */
:root {
    /* Colors - Cyan #06B6D4 Theme */
    --primary-50: #ECFEFF;
    --primary-100: #CFFAFE;
    --primary-200: #A5F3FC;
    --primary-300: #67E8F9;
    --primary-400: #22D3EE;
    --primary-500: #06B6D4;
    /* MAIN COLOR */
    --primary-600: #0891B2;
    --primary-700: #0E7490;
    --primary-800: #155E75;
    --primary-900: #164E63;

    /* Backgrounds - Dark by default */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Text - Dark by default */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;

    /* Components */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --container-width: 1200px;
}

[data-theme="light"] {
    /* Backgrounds - Light */
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;

    /* Text - Light */
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-tertiary: #64748B;

    /* Components - Light */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.highlight {
    color: var(--primary-500);
}

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

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-500);
    color: var(--primary-500);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Glow Effects */
.glow-primary {
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
}

.glow-text {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

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

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-weight: 600;
    transition: color 0.2s;
    padding: 2px;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--text-primary);
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: white;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 20px;
    display: none;
    /* Toggled via JS */
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    background-color: var(--bg-primary);
}

.particles-container {
    position: absolute;
    background: var(--primary-400);
    /* Usa tu cyan */
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
    /* Importante: para que no bloqueen los clicks en botones */
    transition: left 0.3s ease-out, top 0.3s ease-out;
    /* Suaviza el movimiento */
    filter: blur(1px);
    box-shadow: 0 0 10px var(--primary-500);
}

.hero-container {
    display: flex;
    /* Cambiado de grid a flex para mejor control lateral */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
    text-align: left;
}



.hero-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-400);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Ajuste para que la imagen se fusione en Dark Mode */
.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Creamos un resplandor detrás para suavizar bordes */
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}


.sphere-container img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}


/* El span dentro del título para el efecto cyan */
.hero-title span {
    color: var(--primary-400);
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    /* Esta línea es clave: mezcla el fondo de la imagen con el del sitio */
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 30px rgba(7, 7, 7, 0.2));
    animation: float-rocket 6s ease-in-out infinite;
}

/* En modo claro, quitamos el mix-blend-mode si no queda bien */
[data-theme="light"] .hero-image {
    mix-blend-mode: normal;
    filter: none;
}


/* Animación específica para el cohete con un leve balanceo */
@keyframes float-rocket {

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

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



/* ===============================
   CLIENTES - TECH STARTUP STYLE
================================= */

.clients-section {
    padding: 100px 0;

    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    position: relative;
}

.clients-label {
    text-align: center;
    font-size: 14px;
    letter-spacing: 3px;
    color: #38bdf8;
    margin-bottom: 50px;
    font-weight: 600;
}

/* CONTENEDOR PRINCIPAL */
.clients-grid {
    display: flex;
    flex-wrap: wrap; /* Cambiamos a wrap para que si son muchos, bajen con elegancia */
    justify-content: center; /* Centra los logos si hay pocos */
    align-items: center;
    gap: 15px; /* Espacio equilibrado entre tarjetas */
    max-width: 1400px; /* Ampliamos el ancho máximo para pantallas grandes */
    margin: 0 auto;
    padding: 20px;
}


/* CARD MÁS COMPACTA */
.client-logo-card {
    flex: 0 1 130px; /* Tamaño base de 130px, puede encogerse un poco */
    height: 130px;   /* Hacemos la card cuadrada más pequeña */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px; /* Bordes un poco menos redondeados para el nuevo tamaño */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glow background animado */
.client-logo-card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* MODIFICAR LAS IMANGES DEL CLIENTE */

/* LOGO AJUSTADO */
.client-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Esto asegura que el logo no se deforme */
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* EFECTO HOVER */
.client-logo-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(56, 189, 248, 0.5);
}

.client-logo-card:hover::before {
    opacity: 1;
}

.client-logo-card:hover .client-logo-img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* Animación entrada */
.fade-in-startup {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   SERVICES (FLIP CARDS)
   ========================================= */
.services-section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
}

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

.service-card-flip {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    /* 3D effect */
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 20px;
}

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

/* Front & Back standard styles */
.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

/* Front */
.service-card-front {
    background-color: var(--bg-tertiary);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 24px;
    text-align: left;
}

.service-title-front {
    font-size: 1.5rem;
    color: white;
}

/* Back */
.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--primary-500);
    /* Highlight border on back */
}

.service-title-back {
    margin-bottom: 12px;
    color: var(--primary-400);
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.feature-tag {
    font-size: 0.75rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--primary-300);
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
}

/* =========================================
   TECH SECTION
   ========================================= */
.tech-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech-badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

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

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-card:nth-child(3) {
    grid-column: span 2;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
}

.stat-symbol {
    font-size: 1.5rem;
    color: var(--primary-500);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 8px;
}



/* =========================================
   ABOUT SECTION - ESTILO CIRCULAR MEJORADO
   ========================================= */
.about-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

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

/* --- Contenedor de la Imagen (¡NUEVO AJUSTE!) --- */
.about-image-wrapper {
    position: relative;
    width: 100%;
    /* Mantiene el contenedor perfectamente cuadrado (1:1) */
    aspect-ratio: 1 / 1; 
    
    /* Fondo oscuro para que el gráfico resalte */
    background: #09090B; 
    
    /* --- HACE EL CONTENEDOR CIRCULAR --- */
    border-radius: 70%;
    
    /* El borde celeste fino y sutil que ya tenías */
    border: 1px solid rgba(6, 182, 212, 0.4);
    
    /* Resplandor azulado muy sutil detrás */
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.1);
    
    /* Centrado de la imagen dentro del círculo */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1%; /* Espaciado interno para que la imagen no toque el borde */
    overflow: hidden; /* Asegura que la imagen no sobresalga del círculo */
}

/* --- Estilos para la Imagen (Gráfico) --- */
.about-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    
    /* Filtro para que el gráfico resalte sutilmente */
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.15));
}

/* --- Estilos para el Texto --- */
.about-content {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

/* Resaltado Cyan */
.about-content .highlight {
    color: #06B6D4;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 500px;
}

/* Enlace "Conoce más" */
.link-arrow {
    display: inline-block;
    margin-top: 10px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    transform: translateX(5px);
    color: var(--primary-400);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .about-image-wrapper {
        max-width: 450px; /* Reduce el tamaño máximo en móviles */
        margin: 0 auto;
    }
}




/* =========================================
   CTA SECTION - PREMIUM VERSION
   ========================================= */

.cta-section {
    padding: 120px 0;
}

.cta-container {
    padding: 70px 60px;
    text-align: center;
    position: relative;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.full {
    flex-direction: column;
}

.form-row.center {
    justify-content: center;
}

.form-input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.textarea {
    min-height: 120px;
    resize: none;
}

.cta-btn {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Responsive */

@media (max-width: 768px) {

    .cta-container {
        padding: 50px 30px;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .form-row {
        flex-direction: column;
    }
}
.cta-container::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

/* =========================================
   WHATSAPP BUTTON
   ========================================= */

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1ebe5b 100%);
    color: white;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
    border: none;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}
/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-heading {
    color: white;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    gap: 20px;
}
