/* ==========================================================================
   CONNECTING REMOTE DESKTOP - CLEAN ENTERPRISE RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* PALETA PROFESIONAL LIMPIA */
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.98);
    
    /* MARCA CIAN */
    --cyan-primary: #00acc1;
    --cyan-dark: #00838f;
    --cyan-light: #e0f7fa;
    --cyan-glow: rgba(0, 172, 193, 0.15);
    
    /* TIPOGRAFÍA */
    --text-primary: #0f172a;    /* Slate 900 */
    --text-muted: #475569;      /* Slate 600 */
    --text-light: #64748b;      /* Slate 500 */
    
    /* BORDES Y SOMBRAS */
    --border-color: #e2e8f0;    /* Slate 200 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN (0% CHUECO / DESBORDAMIENTO EN MÓVILES)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--cyan-light);
    border: 2px solid var(--cyan-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--cyan-dark);
    stroke-width: 2.2;
    fill: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 1;
}

.nav-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    transition: color 0.2s ease;
}

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

.lang-select {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    max-width: 110px;
}

.btn-nav {
    background: var(--cyan-primary);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-nav:hover {
    background: var(--cyan-dark);
}

/* ==========================================================================
   HERO SECCIÓN
   ========================================================================== */
.hero {
    padding: 95px 16px 50px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    text-align: center;
    width: 100%;
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.badge-open-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--cyan-light);
    border: 1px solid var(--cyan-primary);
    color: var(--cyan-dark);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.18;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto 28px;
    font-weight: 400;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    width: 100%;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--cyan-primary);
    color: #ffffff;
    padding: 13px 26px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
    max-width: 100%;
    box-shadow: 0 4px 12px var(--cyan-glow);
}

.btn-hero:hover {
    background: var(--cyan-dark);
}

.btn-hero svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    flex-shrink: 0;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   MAQUETA DE CAPTURAS RESPONSIVA (ALIGN-ITEMS: START - SIN ESPACIO BLANCO)
   ========================================================================== */
.mockup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
}

.app-window-mockup {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    align-self: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-window-mockup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.window-titlebar {
    background: #f1f5f9;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-body {
    padding: 0;
    margin: 0;
    background: #ffffff;
    width: 100%;
    display: block;
}

.window-body img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 9px 9px;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   SECCIONES ENTERPRISE Y TECNOLOGÍA
   ========================================================================== */
.section-enterprise, .section-tech, .section-comparison {
    padding: 60px 16px;
    width: 100%;
}

.section-tech {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 36px;
    width: 100%;
}

.section-subtitle {
    color: var(--cyan-dark);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.section-enterprise .feature-card {
    background: #ffffff;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
}

.tech-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
}

.tech-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan-dark);
    margin-bottom: 6px;
}

.tech-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TABLA COMPARATIVA CON SCROLL HORIZONTAL INTERNO
   ========================================================================== */
.table-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 550px;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, 
.comparison-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    white-space: nowrap;
}

.comparison-table th {
    background: #f1f5f9;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-col {
    background: var(--cyan-light) !important;
    color: var(--cyan-dark) !important;
    font-weight: 800 !important;
}

.check-yes { color: #059669; font-weight: 700; }
.check-no { color: #dc2626; font-weight: 500; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 30px 16px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    width: 100%;
}

.footer a {
    color: var(--cyan-dark);
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN Y MENÚ MÓVIL (HAMBURGER / SANDWICH)
   ========================================================================== */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-toggle:hover, .mobile-toggle:active {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-right {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        padding: 18px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        z-index: 999;
    }

    .nav-right.active {
        display: flex !important;
    }

    .nav-link {
        display: block !important;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        padding: 10px 14px;
        border-radius: 8px;
        background: var(--bg-alt);
    }

    .lang-select {
        width: 100%;
        max-width: 100%;
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
        background: var(--bg-alt);
        border: 1px solid var(--border-color);
    }

    .btn-nav {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .hero {
        padding-top: 85px;
    }

    .btn-hero {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}
