/* ============================================================
   TECNOVASISTEMAS.COM — ESTILOS MODERNOS & RESPONSIVE
   Ingeniero de Sistemas en Perú — Diseño Ejecutivo Tipo Google
   ============================================================ */

:root {
    /* Google / Modern SaaS Palette (Sin Color Negro) */
    --primary:          #1a73e8;
    --primary-hover:    #1557b0;
    --primary-dark:     #174ea6;
    --primary-light:    #e8f0fe;
    --primary-border:   #c2e7ff;
    --primary-glow:     rgba(26, 115, 232, 0.18);

    --accent-emerald:   #10b981;
    --accent-emerald-lt:#ecfdf5;
    --accent-indigo:    #4f46e5;
    --accent-indigo-lt: #eef2ff;
    --accent-cyan:      #0284c7;
    --accent-cyan-lt:   #e0f2fe;
    --accent-amber:     #d97706;
    --accent-amber-lt:  #fef3c7;
    --accent-purple:    #7c3aed;
    --accent-purple-lt: #f5f3ff;

    /* Neutros Claros y Textos en Slate/Grafito */
    --bg-page:          #ffffff;
    --bg-surface:       #f8fafc;
    --bg-subtle:        #f1f5f9;
    --bg-card:          #ffffff;

    --ink-900:          #0f172a;
    --ink-800:          #1e293b;
    --ink-700:          #334155;
    --ink-600:          #475569;
    --ink-500:          #64748b;
    --ink-400:          #94a3b8;
    --ink-300:          #cbd5e1;
    --ink-200:          #e2e8f0;
    --ink-100:          #f1f5f9;
    --ink-50:           #f8fafc;
    --white:            #ffffff;

    /* Tipografía */
    --font:             'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:        'Menlo', 'Monaco', 'Courier New', monospace;

    /* Radios */
    --r-xs:   6px;
    --r-sm:   10px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   26px;
    --r-pill: 9999px;

    /* Sombras Suaves Tipo Google */
    --shadow-xs:   0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm:   0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-md:   0 6px 18px -3px rgba(15, 23, 42, 0.08), 0 3px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg:   0 14px 30px -5px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
    --shadow-xl:   0 20px 40px -8px rgba(15, 23, 42, 0.12);

    /* Transición */
    --t:           0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --t-smooth:    0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================
   RESETS & GLOBAL SETUP
   ============================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font);
    background-color: var(--bg-page);
    color: var(--ink-700);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--t);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
}

/* Container Fluido & Responsive */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

/* ==============================================================
   ENCABEZADOS DE SECCIÓN
   ============================================================== */
.sec-header {
    margin-bottom: 3.5rem;
}

.sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 0.38rem 1rem;
    border-radius: var(--r-pill);
    margin-bottom: 0.85rem;
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.08);
}

.sec-header h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.sec-header p {
    font-size: 1.05rem;
    color: var(--ink-600);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ==============================================================
   CABECERA & NAVEGACIÓN PRINCIPAL
   ============================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    transition: all var(--t);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.08);
    border-bottom-color: rgba(203, 213, 225, 0.9);
}

.hdr-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.25rem;
}

/* LOGO TECNOVASISTEMAS.COM */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--t), filter var(--t);
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.15));
}

.site-logo:hover .logo-mark {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 6px 16px rgba(26, 115, 232, 0.28));
}

.logo-words {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-brand {
    display: flex;
    align-items: baseline;
    line-height: 1.15;
    flex-wrap: nowrap;
}

.logo-brand strong {
    font-size: 1.24rem;
    font-weight: 850;
    color: var(--ink-900);
    letter-spacing: -0.03em;
}

.logo-brand span.brand-sistemas {
    font-size: 1.24rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-left: 2px;
}

.domain-pill {
    display: inline-flex !important;
    align-items: center;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 0.16rem 0.48rem;
    border-radius: 5px;
    margin-left: 6px;
    letter-spacing: 0.04em;
    border: 1px solid #bfdbfe;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.63rem;
    font-weight: 700;
    color: var(--ink-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
}

/* Navegación Desktop */
.site-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.3rem 0.5rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--ink-200);
}

.nav-lnk {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-600);
    border-radius: var(--r-pill);
    transition: all var(--t);
    white-space: nowrap;
}

.nav-lnk i {
    font-size: 0.82rem;
}

.nav-lnk:hover {
    color: var(--primary);
    background: #ffffff;
}

.nav-lnk.active {
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    font-weight: 700;
}

/* Header Right */
.hdr-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.desktop-only { display: inline-flex; }

/* Botón Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    padding: 0;
    flex-shrink: 0;
    transition: all var(--t);
}

.hamburger:hover {
    background: #e2e8f0;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink-800);
    border-radius: 2px;
    transition: all var(--t);
}

.nav-mobile-cta { display: none; }

/* Botones Principales */
.btn-cta-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: var(--r-md);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
    transition: all var(--t);
    text-decoration: none;
}

.btn-cta-solid:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: #ffffff;
    color: var(--ink-800);
    font-weight: 700;
    font-size: 0.86rem;
    border: 1px solid var(--ink-300);
    border-radius: var(--r-md);
    transition: all var(--t);
    text-decoration: none;
}

.btn-cta-outline:hover {
    background: var(--ink-50);
    border-color: var(--ink-400);
    transform: translateY(-1px);
}

/* Botones Pequeños & Elegantes (Adaptables a móvil y escritorio) */
.btn-cta-solid.btn-sm,
.btn-cta-outline.btn-sm {
    padding: 0.52rem 1.05rem;
    font-size: 0.82rem;
    border-radius: var(--r-md);
}

/* ==============================================================
   HERO: PERFIL PROFESIONAL / CV DE SERVICIOS
   ============================================================== */
.hero-section {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background:
        radial-gradient(circle at 50% -10%, rgba(26, 115, 232, 0.09) 0%, transparent 60%),
        radial-gradient(circle at 90% 25%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
        #ffffff;
    border-bottom: 1px solid var(--ink-200);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary);
    background: #f0f7ff;
    border: 1px solid #c2e7ff;
    padding: 0.38rem 0.95rem;
    border-radius: var(--r-pill);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseDot 1.8s infinite;
    flex-shrink: 0;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-copy h1 .highlight {
    color: var(--primary);
    display: inline;
}

.hero-copy p {
    font-size: 1.05rem;
    color: var(--ink-700);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 600px;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-kpis {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--ink-200);
    flex-wrap: wrap;
}

.kpi {
    display: flex;
    flex-direction: column;
}

.kpi strong {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1;
    letter-spacing: -0.02em;
}

.kpi span {
    font-size: 0.78rem;
    color: var(--ink-500);
    margin-top: 0.25rem;
    font-weight: 600;
}

.kpi-sep {
    width: 1px;
    height: 36px;
    background: var(--ink-200);
}

/* Browser Mockup & Floating Cards */
.hero-visual {
    position: relative;
    z-index: 2;
}

.browser-frame {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 20px -5px rgba(26, 115, 232, 0.06);
    overflow: hidden;
    position: relative;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--ink-200);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red    { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green  { background: #10b981; }

.browser-url {
    flex: 1;
    min-width: 0;
    font-size: 0.76rem;
    color: var(--ink-500);
    background: #ffffff;
    border: 1px solid var(--ink-200);
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.2rem 0.55rem;
    border-radius: var(--r-pill);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.live-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseDot 1.8s infinite;
    flex-shrink: 0;
}

.browser-body {
    position: relative;
    background: #0f172a;
    overflow: hidden;
}

.browser-body img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s var(--t-smooth);
}

.browser-frame:hover .browser-body img {
    transform: scale(1.02);
}

/* Micro-tarjetas flotantes en el Hero */
.hero-float-card {
    position: absolute;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12), 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease;
    max-width: 260px;
}

.hero-float-card:hover {
    transform: translateY(-3px);
}

.hero-float-card-left {
    bottom: -18px;
    left: -20px;
}

.hero-float-card-right {
    top: 35px;
    right: -20px;
}

.hfloat-ico {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid #bfdbfe;
}

.hfloat-ico.ico-code {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.hfloat-txt {
    display: flex;
    flex-direction: column;
}

.hfloat-txt strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.25;
}

.hfloat-txt span {
    font-size: 0.72rem;
    color: var(--ink-500);
    line-height: 1.25;
    margin-top: 1px;
}

/* ==============================================================
   CINTILLO DE SERVICIOS / CAPACIDADES TÉCNICAS
   ============================================================== */
.services-strip {
    padding: 2.25rem 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--ink-200);
}

.services-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strip-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--r-md);
    background: #ffffff;
    border: 1px solid var(--ink-200);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
}

.strip-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.25;
}

.strip-text span {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-500);
    line-height: 1.35;
    margin-top: 2px;
}

/* ==============================================================
   DEMOS EN PRODUCCIÓN (#demos)
   ============================================================== */
.demos-section {
    padding: 6.5rem 0;
    background: #ffffff;
    position: relative;
}

.demos-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.demo-card {
    background: #ffffff;
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}

.demo-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: var(--shadow-lg);
}

.demo-card-featured {
    border-color: #bfdbfe;
    box-shadow: 0 4px 18px rgba(26, 115, 232, 0.08), var(--shadow-sm);
}

.demo-card-featured:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.16);
}

.demo-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
    display: block;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid var(--ink-200);
}

.demo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.demo-card:hover .demo-img-wrap img {
    transform: scale(1.04);
}

.demo-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.demo-card:hover .demo-hover-overlay {
    opacity: 1;
}

.demo-hover-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.55rem 1.15rem;
    border-radius: var(--r-pill);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.demo-card:hover .demo-hover-btn {
    transform: translateY(0);
}

.demo-img-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
}

.demo-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.28rem 0.65rem;
    border-radius: var(--r-pill);
    letter-spacing: 0.04em;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseDot 1.8s infinite;
}

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

.demo-type-tag {
    position: absolute;
    bottom: 12px;
    left: 14px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink-800);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: var(--r-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--t);
}

/* Tags de Categoría con Colores Suaves, Modernos y No Invasivos */
.demo-tag-cert {
    background: rgba(239, 246, 255, 0.95);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}
.demo-tag-cert i { color: #2563eb; }

.demo-tag-attendance {
    background: rgba(236, 253, 245, 0.95);
    border: 1px solid #a7f3d0;
    color: #047857;
}
.demo-tag-attendance i { color: #059669; }

.demo-tag-med {
    background: rgba(240, 253, 250, 0.95);
    border: 1px solid #99f6e4;
    color: #0f766e;
}
.demo-tag-med i { color: #0d9488; }

.demo-tag-cloud {
    background: rgba(238, 242, 255, 0.95);
    border: 1px solid #c7d2fe;
    color: #4338ca;
}
.demo-tag-cloud i { color: #4f46e5; }

.demo-tag-hardware {
    background: rgba(254, 243, 199, 0.95);
    border: 1px solid #fde68a;
    color: #92400e;
}
.demo-tag-hardware i { color: #d97706; }

.demo-tag-fashion {
    background: rgba(253, 242, 248, 0.95);
    border: 1px solid #fbcfe8;
    color: #9d174d;
}
.demo-tag-fashion i { color: #db2777; }

.demo-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.demo-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.demo-url-pill {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
    background: #e8f0fe;
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.demo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-pill);
    font-size: 0.74rem;
    font-weight: 700;
}

.demo-status-pill i {
    color: #10b981;
}

.demo-card-body h3 {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    line-height: 1.32;
    margin-bottom: 0.65rem;
}

.demo-card-body p {
    font-size: 0.9rem;
    color: var(--ink-600);
    line-height: 1.58;
    margin-bottom: 1.25rem;
}

.demo-features {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.demo-features span {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: var(--ink-700);
    line-height: 1.4;
}

.demo-features span i {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.demo-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.8rem 1.25rem;
    background: #f8fafc;
    color: var(--ink-900);
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-sm);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.demo-access-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

/* ==============================================================
   DESARROLLO A MEDIDA & SERVICIOS DE INGENIERÍA (#amedida)
   ============================================================== */
.custom-dev-section {
    padding: 6.5rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--ink-200);
    border-bottom: 1px solid var(--ink-200);
}

.custom-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.cservice-card {
    background: #ffffff;
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-xl);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}

.cservice-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: var(--shadow-lg);
}

.cservice-card-featured {
    border-color: #6ee7b7;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 30%);
}

.cservice-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #10b981;
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: var(--r-pill);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cservice-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cservice-ico {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.ico-emerald { background: #ecfdf5; color: #059669; }
.ico-blue    { background: #e8f0fe; color: #1a73e8; }
.ico-cyan    { background: #e0f2fe; color: #0284c7; }
.ico-amber   { background: #fef3c7; color: #d97706; }
.ico-purple  { background: #f5f3ff; color: #7c3aed; }

.cservice-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-pill);
    background: #f1f5f9;
    color: var(--ink-700);
}

.pill-cyan   { background: #e0f2fe; color: #0369a1; }
.pill-amber  { background: #fef3c7; color: #92400e; }
.pill-purple { background: #f5f3ff; color: #6d28d9; }

.cservice-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.cservice-card p {
    font-size: 0.94rem;
    color: var(--ink-600);
    line-height: 1.62;
    margin-bottom: 1.35rem;
}

.cservice-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.cservice-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--ink-700);
    line-height: 1.45;
}

.cservice-bullets li i {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.cservice-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--ink-100);
}

.btn-cservice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--t);
    background: #f1f5f9;
    color: var(--ink-800);
    border: 1px solid var(--ink-200);
}

.btn-cservice:hover {
    background: var(--ink-900);
    color: var(--white);
    border-color: var(--ink-900);
    transform: translateY(-1px);
}

.btn-cservice-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.btn-cservice-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

/* Wide Executive Consulting Card */
.cservice-card-wide {
    grid-column: 1 / -1;
    background:
        radial-gradient(circle at 10% 15%, rgba(26, 115, 232, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
        linear-gradient(135deg, #ffffff 0%, #f0f7ff 60%, #ffffff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: var(--r-xl);
    padding: 3rem;
    box-shadow: 0 8px 25px -4px rgba(26, 115, 232, 0.08), var(--shadow-sm);
}

.cservice-card-wide:hover {
    border-color: #60a5fa;
    box-shadow: 0 12px 32px -4px rgba(26, 115, 232, 0.14);
}

.cservice-wide-inner {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3.5rem;
    align-items: center;
}

.cservice-wide-left h3 {
    color: var(--ink-900);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.cservice-wide-left .cservice-lead {
    font-size: 1.05rem;
    color: var(--ink-700);
    line-height: 1.6;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.cservice-wide-left p {
    color: var(--ink-600);
    font-size: 0.94rem;
    line-height: 1.65;
}

.consulting-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}

.chk-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #ffffff;
    padding: 1.1rem 1.15rem;
    border-radius: var(--r-md);
    border: 1px solid var(--ink-200);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: all var(--t);
}

.chk-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

.chk-item i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.chk-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 0.25rem;
}

.chk-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-600);
    line-height: 1.42;
}

.cservice-footer-wide {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
}

.cservice-footer-wide .btn-cservice-primary {
    width: auto;
    min-width: 260px;
    padding: 0.85rem 1.6rem;
}

/* ==============================================================
   MODALIDADES DE ENTREGA (#modalidades)
   ============================================================== */
.modalities-section {
    padding: 6.5rem 0;
    background: #ffffff;
}

.modalities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.modality-card {
    background: #ffffff;
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-xl);
    padding: 2.35rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}

.modality-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: var(--shadow-lg);
}

.modality-card-featured {
    border-color: var(--primary);
    box-shadow: 0 8px 24px -4px rgba(26, 115, 232, 0.14);
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 32%);
}

.mod-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.32rem 0.85rem;
    border-radius: var(--r-pill);
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.35);
}

.mod-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--r-md);
    background: #e8f0fe;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.mod-tag {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.modality-card h3 {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.modality-card p {
    font-size: 0.92rem;
    color: var(--ink-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mod-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.mod-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--ink-700);
    line-height: 1.45;
}

.mod-list li i {
    color: #10b981;
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.btn-modality {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--t);
    background: #f1f5f9;
    color: var(--ink-800);
    border: 1px solid var(--ink-200);
}

.btn-modality:hover {
    background: var(--ink-900);
    color: var(--white);
    border-color: var(--ink-900);
    transform: translateY(-1px);
}

.btn-modality-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.25);
}

.btn-modality-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(26, 115, 232, 0.35);
}

/* ==============================================================
   CONTACTO & COTIZACIÓN DIRECTA (#contacto)
   ============================================================== */
.contact-section {
    padding: 5.5rem 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(26, 115, 232, 0.05) 0%, transparent 50%),
        #ffffff;
    border-top: 1px solid var(--ink-200);
}

.contact-container {
    max-width: 780px;
    margin: 0 auto;
}

.contact-head {
    text-align: center;
    margin-bottom: 2.25rem;
}

.contact-head h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.35rem);
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    margin: 0.65rem 0 0.85rem;
    line-height: 1.25;
}

.contact-head p {
    font-size: 1rem;
    color: var(--ink-600);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}

/* Barra de Redes Sociales Oficiales (Píldoras Elegantes) */
.contact-social-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.csoc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.05rem;
    background: #ffffff;
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-pill);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-800);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    transition: all var(--t);
}

.csoc-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--t);
}

.csoc-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.csoc-pill:hover img {
    transform: scale(1.15);
}

.csoc-wa:hover { border-color: #25d366; background: #f0fdf4; color: #15803d; }
.csoc-yt:hover { border-color: #ff0000; background: #fef2f2; color: #b91c1c; }
.csoc-tk:hover { border-color: #0f172a; background: #f8fafc; color: #0f172a; }
.csoc-fb:hover { border-color: #1877f2; background: #eff6ff; color: #1d4ed8; }

/* Panel de Formulario Centrado */
.form-panel-wrap {
    width: 100%;
}

.form-panel {
    background: #ffffff;
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.08);
}
    color: var(--ink-500);
    margin-bottom: 1.75rem;
}

.fg {
    margin-bottom: 1.25rem;
}

.fg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.fg label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-800);
    margin-bottom: 0.4rem;
}

.fg input, .fg select, .fg textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-sm);
    background: #ffffff;
    color: var(--ink-900);
    font-size: 0.92rem;
    font-family: var(--font);
    transition: all var(--t);
}

.fg input:focus, .fg select:focus, .fg textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.fg textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--r-md);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.28);
    transition: all var(--t);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 115, 232, 0.38);
}

.form-success-msg {
    margin-top: 1rem;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==============================================================
   FOOTER (TEMA CLARO & MODERNO — CERO COLOR NEGRO)
   ============================================================== */
.site-footer {
    background: #f8fafc;
    padding-top: 4.5rem;
    border-top: 1px solid var(--ink-200);
    color: var(--ink-600);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--ink-200);
}

.footer-brand-col .site-logo { margin-bottom: 1rem; }

.footer-brand-col p {
    font-size: 0.9rem;
    color: var(--ink-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.footer-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
    background: #ffffff;
    border: 1px solid var(--ink-200);
    padding: 0.35rem 0.85rem;
    border-radius: var(--r-pill);
}

.footer-col h5 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--primary);
    width: fit-content;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col ul li a {
    font-size: 0.86rem;
    color: var(--ink-600);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all var(--t);
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-col ul li a i {
    color: var(--primary);
    font-size: 0.65rem;
}

.soc-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.soc-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--ink-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all var(--t);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.soc-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    transition: transform var(--t);
}

.soc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.soc-btn:hover .soc-img {
    transform: scale(1.15);
}

.soc-btn.soc-wa:hover {
    border-color: #25d366;
    background: #ecfdf5;
}

.soc-btn.soc-yt:hover {
    border-color: #ff0000;
    background: #fef2f2;
}

.soc-btn.soc-tk:hover {
    border-color: #0f172a;
    background: #f8fafc;
}

.soc-btn.soc-fb:hover {
    border-color: #1877f2;
    background: #eff6ff;
}

.footer-contact-pills {
    margin-top: 0.5rem;
}

.footer-wa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.4rem 0.85rem;
    border-radius: var(--r-pill);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all var(--t);
}

.footer-wa-badge:hover {
    background: #10b981;
    color: var(--white);
    border-color: #10b981;
}

.footer-sub {
    padding: 1.75rem 0;
    background: #ffffff;
    border-top: 1px solid var(--ink-100);
}

.footer-sub-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-sub-inner p {
    font-size: 0.82rem;
    color: var(--ink-500);
    margin: 0;
}

.footer-sub-inner strong {
    color: var(--ink-900);
}

.footer-sub-links a {
    color: var(--ink-600);
}

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

/* ==============================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================================== */
.wa-float-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: #25d366;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    text-decoration: none;
}

.wa-float-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.wa-float-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.wa-float-tooltip {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: var(--r-pill);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-float-btn:hover .wa-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==============================================================
   RESPONSIVE DESIGN (100% ADAPTABLE A CUALQUIER DISPOSITIVO)
   ============================================================== */

/* Pantallas Medianas (<= 1100px) */
@media (max-width: 1100px) {
    .demos-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    .modalities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
    .site-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem 1.5rem 2rem;
        border-bottom: 2px solid var(--ink-200);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 0.3s var(--t), visibility 0.3s var(--t);
        z-index: 290;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .site-nav.open {
        transform: translateY(0);
        visibility: visible;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        background: transparent;
        border: none;
        padding: 0;
        width: 100%;
    }

    .nav-lnk {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        border-radius: var(--r-sm);
        border: 1px solid transparent;
    }

    .nav-lnk:hover, .nav-lnk.active {
        background: var(--primary-light);
        color: var(--primary);
        border-color: var(--primary-border);
    }

    .nav-mobile-cta {
        display: block;
        margin-top: 1.25rem;
        width: 100%;
    }

    .nav-mobile-cta .btn-cta-solid {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .desktop-only { display: none !important; }
    .hamburger { display: flex; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }

    .services-strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .cservice-wide-inner {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .consulting-checks {
        grid-template-columns: 1fr 1fr;
    }

    .cservice-footer-wide {
        justify-content: stretch;
    }

    .cservice-footer-wide .btn-cservice-primary {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Celulares y Móviles Grandes (<= 768px) */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .hdr-flex {
        height: 60px !important;
        gap: 0.5rem !important;
    }

    .site-nav {
        top: 60px !important;
        padding: 1.25rem 1rem 1.75rem !important;
    }

    .site-logo {
        gap: 0.55rem !important;
        max-width: calc(100% - 52px) !important;
        overflow: hidden !important;
    }

    .logo-mark svg {
        width: 34px !important;
        height: 34px !important;
        flex-shrink: 0 !important;
    }

    .logo-brand {
        white-space: nowrap !important;
    }

    .logo-brand strong {
        font-size: 0.95rem !important;
    }

    .logo-brand span.brand-sistemas {
        font-size: 0.95rem !important;
    }

    .domain-pill {
        font-size: 0.62rem !important;
        padding: 0.1rem 0.32rem !important;
        margin-left: 4px !important;
    }

    .logo-sub {
        display: none !important;
    }

    .hamburger {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    .hero-section {
        padding: 2rem 0 1.75rem !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    .hero-inner {
        grid-template-columns: 1fr !important;
        gap: 2.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-copy {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .eyebrow-tag {
        font-size: 0.74rem !important;
        padding: 0.32rem 0.75rem !important;
        margin-bottom: 0.9rem !important;
        max-width: 100% !important;
        white-space: normal !important;
        display: inline-flex !important;
    }

    .hero-copy h1 {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
        letter-spacing: -0.025em !important;
        margin-bottom: 0.85rem !important;
        color: #0f172a !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        width: 100% !important;
    }

    .hero-copy h1 .highlight {
        color: #1a73e8 !important;
        display: inline !important;
    }

    .hero-copy p {
        font-size: 0.92rem !important;
        line-height: 1.58 !important;
        color: #334155 !important;
        margin-bottom: 1.35rem !important;
        width: 100% !important;
        max-width: 100% !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Botones del Hero Pequeños & Elegantes */
    .hero-btns {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
    }

    .hero-btns .btn-cta-solid,
    .hero-btns .btn-cta-outline {
        width: auto !important;
        padding: 0.44rem 0.82rem !important;
        font-size: 0.78rem !important;
        border-radius: var(--r-md) !important;
        display: inline-flex !important;
        white-space: nowrap !important;
        flex: 0 1 auto !important;
    }

    /* KPIs del Hero: 3 columnas proporcionadas, centradas y sin overflow */
    .hero-kpis {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        padding-top: 1.15rem !important;
        width: 100% !important;
        border-top: 1px solid var(--ink-200) !important;
    }

    .kpi {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    .kpi strong {
        font-size: 1.15rem !important;
        line-height: 1.1 !important;
        color: var(--ink-900) !important;
    }

    .kpi span {
        font-size: 0.68rem !important;
        line-height: 1.25 !important;
        color: var(--ink-500) !important;
        margin-top: 0.2rem !important;
        display: block !important;
        text-align: center !important;
        word-break: normal !important;
    }

    .kpi-sep {
        display: none !important;
    }

    /* Browser Mockup en Móvil: fluido, contenido y sin desbordes */
    .hero-visual {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .browser-frame {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: var(--r-md) !important;
        box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .browser-bar {
        padding: 0.45rem 0.65rem !important;
        gap: 0.45rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .browser-dots {
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    .browser-dots span {
        width: 8px !important;
        height: 8px !important;
    }

    .browser-url {
        min-width: 0 !important;
        flex: 1 1 0% !important;
        padding: 0.2rem 0.5rem !important;
        font-size: 0.68rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .browser-live-badge {
        display: none !important;
    }

    .browser-body {
        width: 100% !important;
        overflow: hidden !important;
    }

    .browser-body img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important;
        display: block !important;
        object-fit: cover !important;
    }

    .hero-float-card {
        display: none !important;
    }

    .services-strip-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .strip-item {
        padding: 0.85rem 1rem !important;
    }

    .demos-row {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        gap: 1.25rem !important;
    }

    .demo-card {
        max-width: 100% !important;
        width: 100% !important;
    }

    .custom-services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
    }

    .cservice-card {
        padding: 1.5rem 1.15rem !important;
        width: 100% !important;
    }

    .cservice-card-wide {
        padding: 1.5rem 1.15rem !important;
        width: 100% !important;
    }

    .cservice-wide-inner {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .cservice-wide-left h3 {
        font-size: 1.35rem !important;
    }

    .consulting-checks {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .cservice-footer-wide {
        justify-content: stretch !important;
    }

    .cservice-footer-wide .btn-cservice-primary {
        width: 100% !important;
        min-width: 0 !important;
    }

    .modalities-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 2rem auto 0 !important;
        gap: 1.25rem !important;
    }

    .modality-card {
        padding: 1.5rem 1.15rem !important;
        width: 100% !important;
    }

    .contact-section {
        padding: 3.5rem 0 !important;
        width: 100% !important;
    }

    .contact-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .contact-head h2 {
        font-size: 1.6rem !important;
    }

    .contact-head p {
        font-size: 0.9rem !important;
        margin-bottom: 1.15rem !important;
    }

    .contact-social-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        width: 100% !important;
    }

    .csoc-pill {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.78rem !important;
    }

    .form-panel {
        padding: 1.4rem 1.1rem !important;
        border-radius: var(--r-lg) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .fg-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        width: 100% !important;
    }

    .footer-sub-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.65rem !important;
    }

    .wa-float-btn {
        width: 42px !important;
        height: 42px !important;
        bottom: 16px !important;
        right: 16px !important;
    }

    .wa-float-img {
        width: 22px !important;
        height: 22px !important;
    }

    .wa-float-tooltip {
        display: none !important;
    }
}

/* Celulares Pequeños (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .site-logo {
        gap: 0.45rem !important;
    }

    .logo-mark svg {
        width: 30px !important;
        height: 30px !important;
    }

    .logo-brand strong {
        font-size: 0.88rem !important;
    }

    .logo-brand span.brand-sistemas {
        font-size: 0.88rem !important;
    }

    .domain-pill {
        font-size: 0.58rem !important;
        padding: 0.08rem 0.28rem !important;
        margin-left: 3px !important;
    }

    .hamburger {
        width: 36px !important;
        height: 36px !important;
    }

    .hero-section {
        padding: 1.6rem 0 1.35rem !important;
    }

    .hero-copy h1 {
        font-size: 1.36rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.7rem !important;
    }

    .hero-copy p {
        font-size: 0.86rem !important;
        line-height: 1.52 !important;
        margin-bottom: 1.15rem !important;
    }

    .hero-btns {
        gap: 0.4rem !important;
        margin-bottom: 1.25rem !important;
    }

    .hero-btns .btn-cta-solid,
    .hero-btns .btn-cta-outline {
        padding: 0.42rem 0.75rem !important;
        font-size: 0.76rem !important;
    }

    .eyebrow-tag {
        font-size: 0.68rem !important;
        padding: 0.26rem 0.6rem !important;
    }

    .hero-kpis {
        gap: 0.35rem !important;
        padding-top: 0.9rem !important;
    }

    .kpi strong {
        font-size: 1.05rem !important;
    }

    .kpi span {
        font-size: 0.62rem !important;
    }

    .demo-card-body {
        padding: 1.15rem 1rem !important;
    }

    .demo-card-body h3 {
        font-size: 1.1rem !important;
    }

    .demo-access-btn {
        padding: 0.6rem 0.85rem !important;
        font-size: 0.8rem !important;
    }

    .contact-head h2 {
        font-size: 1.45rem !important;
    }

    .csoc-pill {
        padding: 0.42rem 0.68rem !important;
        font-size: 0.75rem !important;
        gap: 0.35rem !important;
    }

    .csoc-pill img {
        width: 15px !important;
        height: 15px !important;
    }

    .form-panel {
        padding: 1.25rem 0.85rem !important;
    }

    .wa-float-btn {
        width: 38px !important;
        height: 38px !important;
        bottom: 14px !important;
        right: 14px !important;
    }

    .wa-float-img {
        width: 19px !important;
        height: 19px !important;
    }
}

/* Celulares Muy Estrechos (<= 360px) */
@media (max-width: 360px) {
    .container {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .logo-mark svg {
        width: 26px !important;
        height: 26px !important;
    }

    .logo-brand strong {
        font-size: 0.82rem !important;
    }

    .logo-brand span.brand-sistemas {
        font-size: 0.82rem !important;
    }

    .domain-pill {
        display: none !important;
    }

    .hero-copy h1 {
        font-size: 1.22rem !important;
    }

    .hero-btns {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-btns .btn-cta-solid,
    .hero-btns .btn-cta-outline {
        width: 100% !important;
        justify-content: center !important;
    }
}
