/* ══════════════════════════════════════════════════════════
   SINAPTY TECNOLÓGICA — Estilos principales
   Paleta: #0a0e27 (fondo), #00d4ff (cian), #00ff88 (verde neón)
   ══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────────────── */
:root {
    --bg-dark: #0a0e27;
    --bg-card: #0f1535;
    --bg-card-hover: #151d45;
    --cyan: #00d4ff;
    --green: #00ff88;
    --white: #ffffff;
    --gray-100: #e8eaf6;
    --gray-300: #9ba3c7;
    --gray-500: #5a6390;
    --gray-700: #2a3060;
    --gradient: linear-gradient(135deg, #00d4ff, #00ff88);
    --gradient-rev: linear-gradient(135deg, #00ff88, #00d4ff);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Preloader ─────────────────────────────────────────── */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    animation: preloaderSpin 3s linear infinite;
}

.preloader-core {
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-text {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dots {
    animation: dotsAnim 1.5s steps(4) infinite;
    display: inline-block;
    width: 1.5em;
    text-align: left;
}

@keyframes preloaderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.5; r: 5; }
    50% { opacity: 1; r: 8; }
}

@keyframes dotsAnim {
    0%   { content: ''; width: 0; }
    25%  { content: '.'; width: 0.5em; }
    50%  { content: '..'; width: 1em; }
    75%  { content: '...'; width: 1.5em; }
}

/* ── Navigation ────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding: 0.6rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.nav-cta {
    background: var(--gradient);
    color: var(--bg-dark) !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: var(--bg-dark);
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-cta.active::after {
    display: none;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Gradient Text Utility ─────────────────────────────── */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-main);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--gray-500);
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-dark) 70%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 850px;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: var(--gray-300);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-700);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease 1.2s both;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ecg-line {
    width: 120px;
    height: 24px;
    animation: ecgScroll 2s ease-in-out infinite;
}

@keyframes ecgScroll {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── ECG Divider ───────────────────────────────────────── */
.ecg-divider {
    width: 100%;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.ecg-svg {
    width: 100%;
    height: 100%;
}

.ecg-pulse {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: ecgDraw 3s ease-in-out infinite;
}

@keyframes ecgDraw {
    0% { stroke-dashoffset: 1500; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1500; }
}

/* ── Section Common ────────────────────────────────────── */
.section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* ── Data-animate ──────────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── SERVICIOS ─────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    border-color: rgba(0, 255, 136, 0.2);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), rgba(0, 212, 255, 0.03));
}

.service-card.featured::before {
    opacity: 1;
    background: var(--gradient-rev);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-rev);
    color: var(--bg-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cyan);
    transition: var(--transition);
}

.service-link:hover {
    gap: 0.75rem;
    color: var(--green);
}

/* ── SOFYLAB ───────────────────────────────────────────── */
.sofylab {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 21, 53, 0.5) 50%, var(--bg-dark) 100%);
}

.sofylab-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.08);
    border-radius: 10px;
    margin-top: 0.125rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--gray-300);
}

/* Mockup window */
.sofylab-visual {
    position: relative;
}

.mockup-window {
    background: #0d1117;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.mockup-title {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

.mockup-body {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-item {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.mock-item.active {
    background: var(--cyan);
    opacity: 0.6;
}

.mockup-content {
    flex: 1;
    padding: 1.25rem;
}

.mock-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mock-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: center;
    font-size: 0.75rem;
}

.mock-row.header {
    color: var(--gray-500);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.mock-text {
    display: block;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.mock-text.w60 { width: 60%; }
.mock-text.w55 { width: 55%; }
.mock-text.w50 { width: 50%; }
.mock-text.w45 { width: 45%; }
.mock-text.w40 { width: 40%; }
.mock-text.w35 { width: 35%; }
.mock-text.w70 { width: 70%; }

.mock-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--green);
    font-size: 0.8125rem;
}

.mock-value.alert {
    color: #ff6b6b;
}

.mock-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-align: center;
}

.mock-badge.valid {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
}

.mock-badge.pending {
    background: rgba(255, 189, 46, 0.1);
    color: #ffbd2e;
}

/* Floating cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 21, 53, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.fc1 {
    top: -20px;
    right: -30px;
    animation: floatY 4s ease-in-out infinite;
}

.fc2 {
    bottom: 30px;
    left: -40px;
    animation: floatY 4s ease-in-out 1s infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── INTEROPERABILIDAD ─────────────────────────────────── */
.interop {
    background: linear-gradient(180deg, var(--bg-dark), #0e1330, var(--bg-dark));
}

.interop-diagram {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 450px;
    margin: 0 auto 3rem;
}

.interop-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.interop-nodes {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.interop-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-300);
    font-weight: 500;
}

.node-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1.5px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    transition: var(--transition);
}

.node-icon span {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cyan);
}

.interop-node:hover .node-icon {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
}

/* Node positions */
.node-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.node-center .node-icon {
    width: 72px;
    height: 72px;
    border-color: var(--green);
    background: rgba(0, 255, 136, 0.05);
    border-radius: 20px;
}

.node-his { top: 5%; left: 50%; transform: translateX(-50%); }
.node-lis { top: 20%; right: 5%; }
.node-ris { bottom: 20%; right: 5%; }
.node-pacs { bottom: 5%; left: 50%; transform: translateX(-50%); }
.node-equip { bottom: 20%; left: 5%; }
.node-fhir { top: 20%; left: 5%; }

/* Protocols */
.interop-protocols {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.protocol-tag {
    padding: 0.5rem 1.25rem;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--cyan);
    transition: var(--transition);
}

.protocol-tag:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--cyan);
}

/* ── IA SECTION ────────────────────────────────────────── */
.ia-section {
    overflow: hidden;
}

.ia-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.brain-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
}

.brain-canvas {
    width: 100%;
    height: 100%;
}

.ia-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.ia-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.ia-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.ia-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.ia-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ia-card p {
    font-size: 0.8125rem;
    color: var(--gray-300);
    line-height: 1.6;
}

/* ── NOSOTROS ──────────────────────────────────────────── */
.nosotros {
    background: linear-gradient(180deg, var(--bg-dark), #0e1330, var(--bg-dark));
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
}

.value-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.value-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.value-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--gray-300);
    line-height: 1.6;
}

/* ── CONTACTO ──────────────────────────────────────────── */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
    font-size: 0.9375rem;
    color: var(--gray-300);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--cyan);
}

/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    color: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ba3c7' 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 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
    background: #060918;
    border-top: 1px solid rgba(0, 212, 255, 0.08);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.8125rem !important;
    color: var(--gray-500) !important;
    font-weight: 400 !important;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links a,
.footer-links span {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.625rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--cyan);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sofylab-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ia-layout {
        grid-template-columns: 1fr;
    }
    
    .ia-visual {
        order: 2;
    }
    
    .ia-content {
        order: 1;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(0, 212, 255, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 1rem;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        text-align: center;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .ia-cards {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .interop-diagram {
        height: 350px;
    }
    
    .node-icon {
        width: 44px;
        height: 44px;
    }
    
    .node-center .node-icon {
        width: 56px;
        height: 56px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .floating-card {
        display: none;
    }
    
    .brain-container {
        max-width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .mockup-body {
        min-height: 200px;
    }
    
    .mockup-sidebar {
        display: none;
    }
}
