/* --- Variables y Reset --- */
:root {
    --bg-base: #05070c;               /* Fondo base, casi negro */
    --accent-blue: #0b63f6;           /* Azul de marca */
    --accent-blue-light: #4d8dff;     /* Azul claro para texto/acentos */
    --accent-cyan: #00e5ff;           /* Cian brillante */
    --accent-glow-rgb: 0, 229, 255;   /* Mismo tono que accent-cyan, en formato r,g,b */
    --accent-text: #00e5ff;           /* Cian para texto; se oscurece en modo claro por contraste */
    --accent-navy: #16284f;           /* Azul marino de marca */
    --text-main: #f5f7fb;
    --text-muted: #a3aebd;

    color-scheme: dark light;

    /* Vidrio */
    --glass-bg: rgba(16, 21, 33, 0.55);
    --glass-bg-hover: rgba(22, 28, 44, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-strong: rgba(0, 229, 255, 0.4);
    --glass-highlight: rgba(255, 255, 255, 0.3);
    --blur: 22px;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45);

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --header-bg-idle: rgba(6, 9, 15, 0.5);
    --header-bg-scrolled: rgba(6, 9, 15, 0.82);

    --font-heading: 'Quicksand', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 76px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 3px;
}

/* --- Fondo líquido --- */
.liquid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-base);
    transition: transform 0.6s ease-out;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.55;
    will-change: transform;
}

.blob-1 {
    width: 550px;
    height: 550px;
    top: -150px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    animation: drift1 26s ease-in-out infinite alternate;
}

.blob-2 {
    width: 650px;
    height: 650px;
    top: 20%;
    right: -200px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    animation: drift2 32s ease-in-out infinite alternate;
}

.blob-3 {
    width: 600px;
    height: 600px;
    bottom: -250px;
    left: 15%;
    background: radial-gradient(circle, #6a5cff 0%, transparent 70%);
    animation: drift3 29s ease-in-out infinite alternate;
}

@keyframes drift1 {
    to { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes drift2 {
    to { transform: translate(-70px, 40px) scale(1.05); }
}
@keyframes drift3 {
    to { transform: translate(50px, -60px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .blob { animation: none; }
    html { scroll-behavior: auto; }
}

/* --- Navegación ---
   El fondo se controla con variables (--header-bg-idle/--header-bg-scrolled)
   en vez de un color fijo: así cualquier tema (claro/oscuro, o el de una
   página de producto como Restaurants) solo necesita redefinir las
   variables, sin que la especificidad de .is-scrolled se le imponga. */
.header {
    background: var(--header-bg-idle);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
    background: var(--header-bg-scrolled);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    transition: padding 0.3s ease;
}

.header.is-scrolled .navbar {
    padding: 10px 20px;
}

/* Barra delgada que marca cuánto has avanzado en la página */
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress { transition: none; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: auto;
    transition: transform 0.4s ease;
}

.logo:hover .logo-mark {
    transform: rotate(-8deg) scale(1.08);
}

.logo-word {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.logo-ollintep { color: var(--text-main); }
.logo-software { color: var(--accent-blue-light); font-weight: 600; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 4px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent-text);
    box-shadow: 0 0 8px var(--accent-text);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-text);
    text-shadow: 0 0 10px rgba(var(--accent-glow-rgb), 0.5);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.search-icon {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-main); transition: var(--transition); border-radius: 2px; }

.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero Section --- */
.hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 140px 0 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Simulación de la red de nodos/globo */
.network-globe {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(77, 141, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 141, 255, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    position: relative;
    mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.btn {
    position: relative;
    overflow: hidden;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 130%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #04121c;
    box-shadow: 0 8px 24px rgba(11, 99, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 10px 32px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--glass-border-strong);
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

/* --- Títulos de sección --- */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 32px;
}

.section-title-left { text-align: left; margin-bottom: 18px; }

/* --- Utilidad de vidrio compartida --- */
.service-card,
.stat,
.tech-panel,
.blog-card,
.social-links a,
.orbit-frame,
.platform-frame,
.video-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), inset 0 1px 0 var(--glass-highlight);
}

/* Brillo que sigue al cursor sobre las tarjetas de vidrio */
.service-card,
.stat,
.tech-panel,
.blog-card,
.video-card {
    position: relative;
}

.service-card::before,
.stat::before,
.tech-panel::before,
.blog-card::before,
.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover::before,
.stat:hover::before,
.tech-panel:hover::before,
.blog-card:hover::before,
.video-card:hover::before {
    opacity: 1;
}

.service-card > *:not(.card-glow),
.stat > *,
.blog-card > *,
.video-card > * {
    position: relative;
    z-index: 2;
}

/* --- Sección de Servicios --- */
.services {
    padding: 56px 0;
}

.services-intro {
    color: var(--text-muted);
    text-align: center;
    max-width: 560px;
    margin: -18px auto 34px;
    font-size: 0.95rem;
}

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

.service-ai {
    position: relative;
    z-index: 2;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.service-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(var(--accent-glow-rgb), 0.12);
    border: 1px solid rgba(var(--accent-glow-rgb), 0.3);
    color: var(--accent-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.service-ai-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.service-card {
    display: block;
    padding: 26px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-text);
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    transition: gap 0.3s ease;
}

.service-card-link:hover .service-card-cta {
    gap: 10px;
}

.service-card.active-card, .service-card:hover {
    border-color: var(--glass-border-strong);
    background: var(--glass-bg-hover);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(11, 99, 246, 0.25), rgba(0, 229, 255, 0.15));
    border: 1px solid var(--glass-border);
    font-size: 1.15rem;
    color: var(--accent-text);
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

/* Efecto de brillo de fondo al hacer hover */
.card-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
    opacity: 0;
}

.service-card:hover .card-glow, .service-card.active-card .card-glow {
    opacity: 1;
}

/* --- Últimas Soluciones --- */
.latest-solutions {
    padding: 60px 0 100px;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 250px;
    gap: 20px;
}

.tech-panel {
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: var(--transition);
}

.tech-panel:hover {
    border-color: var(--glass-border-strong);
}

.panel-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    background: linear-gradient(0deg, rgba(5, 7, 12, 0.9) 20%, transparent 100%);
    z-index: 2;
}

.panel-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.panel-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Paneles simulados (puedes añadir imágenes o canvas aquí) */
.panel-1 { background-image: radial-gradient(circle at 30% 20%, rgba(11, 99, 246, 0.25), transparent 60%); }
.panel-2 { background-image: radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.25), transparent 60%); }
.panel-3 { background-image: radial-gradient(circle at 40% 70%, rgba(106, 92, 255, 0.25), transparent 60%); }

/* --- Visual orbital (logo con elementos orbitando alrededor) --- */
.orbit-section {
    padding: 20px 0 60px;
    text-align: center;
}

.orbit-intro {
    color: var(--text-muted);
    max-width: 520px;
    margin: -30px auto 40px;
}

.orbit-frame {
    max-width: 880px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 36px 44px;
}

.orbit-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.orbit-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--glass-border);
}

.orbit-list li {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: default;
    transition: var(--transition);
}

.orbit {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
}

.orbit-caption {
    width: 260px;
    text-align: left;
}

.orbit-caption-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.orbit-caption-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.orbit-caption.is-visible .orbit-caption-title,
.orbit-caption.is-visible .orbit-caption-desc {
    opacity: 1;
    transform: translateY(0);
}

.orbit-item.is-active {
    border-color: var(--glass-border-strong);
    color: var(--text-main);
    box-shadow: var(--shadow-glass), inset 0 1px 0 var(--glass-highlight), 0 0 24px rgba(var(--accent-glow-rgb), 0.45);
}

.orbit-list li.is-active {
    border-color: var(--glass-border-strong);
    color: var(--text-main);
    background: var(--glass-bg-hover);
}

.orbit-track {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed var(--glass-border);
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 114px;
    height: 114px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(var(--accent-glow-rgb), 0.25), inset 0 1px 0 var(--glass-highlight);
    animation: orbit-pulse 4s ease-in-out infinite;
}

.orbit-core img {
    width: 52px;
    height: auto;
}

@keyframes orbit-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(var(--accent-glow-rgb), 0.2), inset 0 1px 0 var(--glass-highlight); }
    50% { box-shadow: 0 0 60px rgba(var(--accent-glow-rgb), 0.45), inset 0 1px 0 var(--glass-highlight); }
}

.orbit-ring {
    position: absolute;
    inset: 0;
    animation: orbit-spin 26s linear infinite;
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

.orbit-item {
    --radius: 164px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), inset 0 1px 0 var(--glass-highlight);
    color: var(--accent-text);
    font-size: 1.25rem;
    transform: translate(var(--tx), var(--ty));
    animation: orbit-counter 26s linear infinite;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.orbit-item:hover {
    border-color: var(--glass-border-strong);
    color: var(--text-main);
}

@keyframes orbit-counter {
    from { transform: translate(var(--tx), var(--ty)) rotate(0deg); }
    to   { transform: translate(var(--tx), var(--ty)) rotate(-360deg); }
}

.orbit-item-1 { --tx: 0px; --ty: calc(var(--radius) * -1); }
.orbit-item-2 { --tx: calc(var(--radius) * 0.951); --ty: calc(var(--radius) * -0.309); }
.orbit-item-3 { --tx: calc(var(--radius) * 0.588); --ty: calc(var(--radius) * 0.809); }
.orbit-item-4 { --tx: calc(var(--radius) * -0.588); --ty: calc(var(--radius) * 0.809); }
.orbit-item-5 { --tx: calc(var(--radius) * -0.951); --ty: calc(var(--radius) * -0.309); }

@media (prefers-reduced-motion: reduce) {
    .orbit-ring, .orbit-item, .orbit-core { animation: none; }
}

@media (max-width: 768px) {
    .orbit-frame { padding: 36px 20px; }
    .orbit-stage { flex-direction: column; gap: 30px; }
    .orbit { width: 300px; height: 300px; }
    .orbit-core { width: 92px; height: 92px; }
    .orbit-core img { width: 42px; }
    .orbit-item { --radius: 118px; width: 46px; height: 46px; margin: -23px; font-size: 1rem; }
    .orbit-intro { margin-top: -20px; }
    .orbit-caption { width: 100%; max-width: 320px; text-align: center; }
    .orbit-list { margin-top: 22px; padding-top: 18px; }
}

/* --- Compatibilidad multiplataforma --- */
.platform-section {
    padding: 16px 0 64px;
    text-align: center;
}

.platform-intro {
    color: var(--text-muted);
    max-width: 520px;
    margin: -30px auto 50px;
}

.platform-frame {
    border-radius: var(--radius-lg);
    padding: 40px 32px;
}

.platform-chain {
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    width: 100px;
}

.platform-node .card-icon {
    margin-bottom: 0;
}

.platform-icon-hub {
    width: 88px;
    height: 88px;
    border-color: var(--glass-border-strong);
}

.platform-icon-hub img {
    width: 40px;
    height: auto;
}

.platform-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.platform-node-hub .platform-label {
    color: var(--text-main);
}

.platform-connector {
    position: relative;
    flex: 1 1 60px;
    max-width: 140px;
    height: 2px;
    background: var(--glass-border);
}

.platform-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(var(--accent-glow-rgb), 0.7);
    transform: translate(-50%, -50%);
    animation: platform-flow-h 2.4s linear infinite;
}

.platform-connector-2 .platform-pulse { animation-delay: 0.5s; }
.platform-connector-3 .platform-pulse { animation-delay: 1s; }

@keyframes platform-flow-h {
    0% { left: 0%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .platform-pulse { animation: none; opacity: 0.6; }
}

@media (max-width: 768px) {
    .platform-frame { padding: 40px 16px; }
    .platform-chain { flex-direction: column; align-items: center; }
    .platform-node { width: auto; }
    .platform-connector {
        width: 2px;
        max-width: none;
        height: 40px;
    }
    .platform-pulse {
        top: 0;
        left: 50%;
        animation-name: platform-flow-v;
    }
    @keyframes platform-flow-v {
        0% { top: 0%; opacity: 0; }
        12% { opacity: 1; }
        88% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }
}

/* --- Sección de Videos --- */
.videos-section {
    padding: 16px 0 60px;
    text-align: center;
}

.videos-intro {
    color: var(--text-muted);
    max-width: 520px;
    margin: -16px auto 34px;
    font-size: 0.95rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    transition: var(--transition);
}

.video-card:hover {
    border-color: var(--glass-border-strong);
    transform: translateY(-6px);
}

.video-thumb {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11, 99, 246, 0.18), rgba(0, 229, 255, 0.1));
    font-size: 2.8rem;
    color: var(--accent-text);
}

.video-card h3 {
    padding: 14px 16px 16px;
    font-size: 0.95rem;
}

/* --- Sección de Precios --- */
.pricing {
    padding: 30px 0 70px;
    text-align: center;
}

.pricing-intro {
    color: var(--text-muted);
    margin: -18px 0 34px;
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
    text-align: left;
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.plan-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-height: 42px;
    margin-bottom: 24px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 28px;
}

.plan-price-amount {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
}

.plan-price-period {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-features li i {
    margin-top: 3px;
}

.plan-cta {
    text-align: center;
}

@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* --- Sección Nosotros --- */
.about {
    padding: 56px 0;
}

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

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat {
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    transition: var(--transition);
}

.stat:hover {
    border-color: var(--glass-border-strong);
    background: var(--glass-bg-hover);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent-text);
}

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

/* --- Sección Blog --- */
.blog {
    padding: 60px 0 100px;
}

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

.blog-card {
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--glass-border-strong);
    background: var(--glass-bg-hover);
    transform: translateY(-6px);
}

.blog-date {
    color: var(--accent-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin: 12px 0;
}

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

/* --- Sección Contacto --- */
.contact {
    padding: 46px 0 64px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 36px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 25px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-info-centered {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-centered li {
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.contact-info-centered .social-links {
    justify-content: center;
}

.contact-info li i {
    color: var(--accent-text);
    width: 18px;
}

.contact-info li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info li a:hover { color: var(--accent-text); }

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: none;
}

.social-links a:hover {
    color: var(--accent-text);
    border-color: var(--glass-border-strong);
    background: var(--glass-bg-hover);
}

.contact-form {
    border-radius: var(--radius-lg);
    padding: 35px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: rgba(5, 7, 12, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-text);
    box-shadow: 0 0 12px rgba(var(--accent-glow-rgb), 0.2);
}

.form-submit {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.form-success {
    display: none;
    margin-top: 15px;
    color: var(--accent-text);
    font-size: 0.9rem;
    text-align: center;
}

.form-success.visible { display: block; }

/* --- Footer --- */
.footer {
    padding: 36px 0 22px;
    background: rgba(6, 9, 15, 0.4);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border-top: 1px solid var(--glass-border);
}

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

.footer-links {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent-text); }

.footer-copy {
    color: #6b7688;
    font-size: 0.85rem;
    text-align: center;
    padding-top: 25px;
}

/* --- Botón volver arriba --- */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), inset 0 1px 0 var(--glass-highlight);
    color: var(--text-main);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--glass-border-strong);
    color: var(--accent-text);
    transform: translateY(-3px);
}

/* --- Animación de aparición al hacer scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Media Queries (Responsividad) --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { gap: 15px; }
    .tech-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 200px); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        width: auto;
        flex-direction: column;
        padding: 20px 0;
        border-radius: var(--radius-md);
        background: var(--glass-bg);
        backdrop-filter: blur(var(--blur)) saturate(160%);
        -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-glass), inset 0 1px 0 var(--glass-highlight);
    }

    .nav-links.active { display: flex; }

    .menu-toggle { display: block; }

    .hero h1 { font-size: 1.6rem; }
    .hero { min-height: 460px; padding: 110px 0 50px; }
    .hero-btns { flex-direction: column; gap: 10px; }

    .services-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .footer-top { flex-direction: column; text-align: center; }

    .back-to-top { right: 16px; bottom: 16px; }

    .logo-word {
        font-size: 1rem;
        white-space: nowrap;
    }
}

/* --- Tema claro: sigue la preferencia del sistema/navegador, sin selector manual --- */
@media (prefers-color-scheme: light) {
    :root {
        --bg-base: #f4f6fb;
        --text-main: #10141c;
        --text-muted: #5a6472;
        --accent-blue-light: #1d4ed8;
        --accent-text: #0089a3;

        --glass-bg: rgba(255, 255, 255, 0.6);
        --glass-bg-hover: rgba(255, 255, 255, 0.82);
        --glass-border: rgba(15, 23, 42, 0.1);
        --glass-border-strong: rgba(0, 137, 163, 0.4);
        --glass-highlight: rgba(255, 255, 255, 0.85);
        --shadow-glass: 0 8px 28px rgba(15, 23, 42, 0.12);

        --header-bg-idle: rgba(255, 255, 255, 0.6);
        --header-bg-scrolled: rgba(255, 255, 255, 0.88);
    }

    .liquid-bg { background: var(--bg-base); }
    .blob { opacity: 0.18; }

    .header {
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .footer { background: rgba(255, 255, 255, 0.6); }

    .nav-links a:hover, .nav-links a.active { text-shadow: none; }

    .form-group input,
    .form-group textarea { background-color: rgba(255, 255, 255, 0.7); }

    .footer-copy { color: #7b8494; }
}

@media (prefers-color-scheme: light) and (max-width: 768px) {
    .nav-links { background: rgba(255, 255, 255, 0.94); }
}
