/* ============================================
   DESARROLLO SITIOS CR SRL — Landing Page
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52E0;
    --primary-light: #8B83FF;
    --primary-glow: rgba(108, 99, 255, 0.3);
    --accent: #00D9FF;
    --accent-glow: rgba(0, 217, 255, 0.3);
    --success: #00C48C;
    --warning: #FFB800;
    --danger: #FF5C5C;

    --bg-dark: #0A0A1A;
    --bg-card: #12122A;
    --bg-card-hover: #1A1A3E;
    --bg-surface: #16162E;

    --text-primary: #FFFFFF;
    --text-secondary: #A0A0C0;
    --text-muted: #6B6B8D;

    --border: rgba(108, 99, 255, 0.15);
    --border-hover: rgba(108, 99, 255, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --nav-height: 72px;
    --container-max: 1200px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== LOADER ===== */
#loader {
    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.5s, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content { text-align: center; }

.loader-logo {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.loader-bracket { color: var(--accent); }
.loader-text { color: var(--text-primary); }

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    animation: loaderFill 1.5s ease forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background var(--transition-normal), box-shadow var(--transition-normal), backdrop-filter var(--transition-normal);
}

#navbar.scrolled {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket { color: var(--accent); }
.logo-text { color: var(--text-primary); }

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

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.1);
}

.nav-link.nav-cta {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
}

.nav-link.nav-cta:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.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);
}

/* ===== HERO ===== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 6s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
    50% { transform: translateY(-30px) translateX(15px); opacity: 0.6; }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 28px;
}

.hero-badge i { color: var(--accent); }

#hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-typed-wrapper {
    display: inline-block;
    min-height: 1.2em;
}

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

.typed-cursor {
    color: var(--accent);
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-sub strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

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

.btn-outline:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-full { width: 100%; justify-content: center; }

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ===== SECTION STYLES ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

/* ===== SERVICES ===== */
#servicios {
    background: var(--bg-dark);
}

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

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.service-card:hover .service-card-glow {
    opacity: 0.15;
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), var(--bg-card));
}

.service-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
}

.service-card.featured .service-number {
    right: auto;
    left: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-subtitle {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.service-list {
    margin-bottom: 20px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.service-list li i {
    color: var(--success);
    font-size: 0.7rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.service-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stag {
    padding: 4px 10px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===== PLATFORMS ===== */
#plataformas {
    background: var(--bg-surface);
}

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

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.platform-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.platform-card.full-width {
    grid-column: 1 / -1;
}

.platform-visual {
    padding: 32px 28px 0;
}

.platform-screen {
    background: #1A1A3E;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-bottom: none;
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

.screen-dots {
    display: flex;
    gap: 5px;
}

.screen-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

.screen-dots span:first-child { background: #FF5F57; opacity: 0.8; }
.screen-dots span:nth-child(2) { background: #FFBD2E; opacity: 0.8; }
.screen-dots span:nth-child(3) { background: #28CA41; opacity: 0.8; }

.screen-url {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.screen-body {
    padding: 20px;
}

/* Mini Chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    margin-bottom: 16px;
}

.chart-bar {
    flex: 1;
    background: rgba(108, 99, 255, 0.3);
    border-radius: 3px 3px 0 0;
    transition: background var(--transition-fast);
}

.chart-bar.active {
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

.mini-stats {
    display: flex;
    gap: 16px;
}

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

.ms-num {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ms-num.green { color: var(--success); }

.ms-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Vault UI */
.vault-ui {
    display: flex;
    gap: 12px;
    height: 120px;
}

.vault-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
}

.vault-menu-item {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.vault-menu-item.active {
    background: var(--primary);
    color: #fff;
}

.vault-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vault-card-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vault-card-mini.green i { color: var(--success); }
.vault-card-mini.orange i { color: var(--warning); }
.vault-card-mini.blue i { color: var(--accent); }

.vault-card-mini span { color: var(--text-secondary); }

/* Platform Info */
.platform-info {
    padding: 28px;
}

.platform-logo-badge {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
}

.platform-logo-badge.vault-badge {
    background: linear-gradient(135deg, #FF6B6B, #FFB800);
}

.platform-logo-badge.iot-badge {
    background: linear-gradient(135deg, #00C48C, #00D9FF);
}

.platform-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.platform-tagline {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.platform-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.platform-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.platform-features span i {
    color: var(--primary-light);
    font-size: 0.7rem;
}

/* IoT Visual */
.iot-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
    flex-wrap: wrap;
}

.iot-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.iot-node i {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
}

.iot-node.sensor i { background: linear-gradient(135deg, #FF6B6B, #FFB800); }
.iot-node.gateway i { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.iot-node.cloud i { background: linear-gradient(135deg, #00C48C, #00D9FF); }
.iot-node.dashboard i { background: linear-gradient(135deg, #8B83FF, #6C63FF); }

.iot-node span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.iot-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 8px;
    margin-bottom: 20px;
    position: relative;
}

.iot-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* ===== IoT SECTION ===== */
#iot {
    background: var(--bg-dark);
}

.iot-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
}

.iot-flow-diagram {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.iot-flow-step {
    text-align: center;
    max-width: 180px;
    flex-shrink: 0;
}

.flow-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 255, 0.15));
    border: 2px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 12px;
    transition: all var(--transition-normal);
}

.iot-flow-step:hover .flow-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: scale(1.1);
}

.iot-flow-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.iot-flow-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin: 20px 12px 0;
    opacity: 0.5;
}

.iot-integrations {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.iot-integrations h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.integration-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.int-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.int-badge:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.15);
}

.int-badge i {
    color: var(--accent);
}

/* ===== PROCESS ===== */
#proceso {
    background: var(--bg-surface);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    opacity: 0.3;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.process-step .process-content {
    width: calc(50% - 40px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
}

.process-step .process-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.process-step:not(.right) .process-content {
    margin-right: auto;
}

.process-step.right .process-content {
    margin-left: auto;
}

.process-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 0 20px var(--primary-glow);
}

.process-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.process-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.process-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.process-tags span {
    padding: 3px 10px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ===== INDUSTRIES ===== */
#industrias {
    background: var(--bg-dark);
    padding-bottom: 60px;
}

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

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    text-align: center;
}

.industry-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.industry-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
}

.industry-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== CONTACT ===== */
#contacto {
    background: var(--bg-surface);
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.contact-method:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.cm-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.cm-icon.whatsapp { background: #25D366; }
.cm-icon.email { background: var(--primary); }
.cm-icon.web { background: var(--accent); }

.contact-method strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-method span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--success);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B8D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-note i { color: var(--success); }

/* ===== FOOTER ===== */
#footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-links-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-cr i {
    color: #FF5F57;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: scale(0);
}

.whatsapp-float.visible {
    opacity: 1;
    transform: scale(1);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.wf-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.whatsapp-float:hover .wf-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .process-line { display: none; }

    .process-step,
    .process-step.right {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-step .process-content,
    .process-step.right .process-content {
        width: 100%;
        margin: 0;
    }

    .process-dot {
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: 16px;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateY(-120%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-toggle { display: flex; }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-stats {
        gap: 24px;
    }

    .stat-divider { display: none; }

    .iot-flow-diagram {
        flex-direction: column;
        align-items: center;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .iot-visual {
        flex-direction: column;
    }

    .iot-line {
        width: 2px;
        height: 30px;
        margin: 8px 0;
    }

    .iot-line::after {
        right: auto;
        left: -3px;
        top: auto;
        bottom: -4px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .iot-showcase {
        padding: 28px 20px;
    }

    .industries-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .industry-item {
        padding: 20px 12px;
    }
}