/* ========================================================================== */
/*  Foundations                                                               */
/* ========================================================================== */

:root {
    --bg-base: #030a18;
    --bg-gradient-one: rgba(39, 78, 174, 0.18);
    --bg-gradient-two: rgba(62, 207, 247, 0.12);
    --surface-solid: #0b162c;
    --surface-glass: rgba(15, 26, 46, 0.78);
    --surface-strong: rgba(24, 37, 63, 0.88);
    --accent-primary: #4bb6ff;
    --accent-secondary: #6a6cff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --text-primary: #f4f6ff;
    --text-secondary: #a3aec9;
    --text-muted: #7f8aa9;
    --border-subtle: rgba(86, 116, 169, 0.28);
    --shadow-soft: 0 32px 80px -48px rgba(10, 18, 36, 0.85);
    --shadow-card: 0 24px 60px -45px rgba(14, 24, 44, 0.88);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font-sans: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    box-sizing: border-box;
    width: 100%;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    background:
        radial-gradient(circle at 18% -10%, var(--bg-gradient-one) 0%, transparent 55%),
        radial-gradient(circle at 82% 10%, var(--bg-gradient-two) 0%, transparent 40%),
        linear-gradient(180deg, rgba(3, 10, 24, 0.94) 0%, rgba(2, 6, 16, 0.98) 38%, #030915 100%);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    inset: -10vh 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(75, 182, 255, 0.13) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(106, 108, 255, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(73, 215, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
    filter: blur(160px);
    opacity: 0.7;
    z-index: -1;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

p {
    margin: 0 0 1.2em 0;
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em 0;
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 4.4vw, 3.7rem);
    line-height: 1.08;
}

h2 {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    line-height: 1.25;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover,
a:focus {
    color: var(--accent-secondary);
    text-decoration: none;
}

/* ========================================================================== */
/*  Buttons                                                                   */
/* ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: var(--accent-gradient);
    color: #041023;
    box-shadow: 0 18px 55px -34px rgba(75, 182, 255, 0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px -36px rgba(106, 108, 255, 0.85);
    color: #041023;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text-primary);
    border: 1px solid rgba(124, 150, 199, 0.45);
    background: rgba(13, 23, 41, 0.6);
    backdrop-filter: blur(14px);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--text-primary);
    border-color: rgba(75, 182, 255, 0.6);
    transform: translateY(-2px);
}

.btn:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid rgba(75, 182, 255, 0.72);
    outline-offset: 3px;
}

/* ========================================================================== */
/*  Header                                                                    */
/* ========================================================================== */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 13, 27, 0.82);
    border-bottom: 1px solid rgba(88, 116, 169, 0.18);
    backdrop-filter: blur(20px) saturate(140%);
    padding: 18px 0;
    transition: padding 0.25s ease, background 0.25s ease;
    box-shadow: 0 20px 40px -24px rgba(4, 10, 24, 0.75);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    position: relative;
    padding: 8px 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus,
.main-nav ul li a.active {
    color: var(--text-primary);
}

.main-nav ul li a:hover::after,
.main-nav ul li a:focus::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li.nav-cta a {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(75, 182, 255, 0.14);
    border: 1px solid rgba(75, 182, 255, 0.3);
    box-shadow: 0 18px 36px -30px rgba(75, 182, 255, 0.6);
}

.main-nav ul li.nav-cta a::after {
    display: none;
}

.main-nav ul li.nav-cta a:hover,
.main-nav ul li.nav-cta a:focus {
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 12, 24, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(6, 12, 24, 0.98), rgba(8, 16, 32, 0.95));
    border-left: 1px solid rgba(75, 182, 255, 0.2);
    padding: 80px 30px 30px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a:focus {
    background: rgba(75, 182, 255, 0.1);
    border-color: rgba(75, 182, 255, 0.3);
    transform: translateX(5px);
}

.mobile-nav ul li.nav-cta a {
    background: var(--accent-gradient);
    color: #041023; /* FIX: var(--bg) no existe; se usa el color de botones */
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

.mobile-nav ul li.nav-cta a:hover {
    transform: translateX(0) scale(1.05);
    box-shadow: 0 8px 25px rgba(75, 182, 255, 0.3);
}

/* ========================================================================== */
/*  Hero Layouts                                                              */
/* ========================================================================== */

.home-hero,
.page-hero {
    position: relative;
    padding: 140px 0 110px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 56px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(75, 182, 255, 0.12);
    border: 1px solid rgba(75, 182, 255, 0.25);
}

.hero-copy p {
    font-size: 1.05rem;
    max-width: 540px;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(94, 142, 210, 0.22);
    background: linear-gradient(140deg, rgba(16, 29, 52, 0.85), rgba(9, 18, 36, 0.95));
    box-shadow: var(--shadow-soft);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(75, 182, 255, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.home-hero .hero-visual {
    max-width: 480px;
    justify-self: end;
}

.page-hero--intellidev .hero-visual {
    background: linear-gradient(140deg, rgba(23, 38, 66, 0.92), rgba(10, 20, 38, 0.95));
}

.page-hero--blockchain .hero-visual {
    background: linear-gradient(140deg, rgba(20, 33, 58, 0.92), rgba(9, 20, 38, 0.94));
}

.page-hero--edutech .hero-visual {
    background: linear-gradient(140deg, rgba(22, 36, 60, 0.9), rgba(9, 16, 33, 0.95));
}

.hero-visual--intellidev {
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.automation-matrix {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    border-radius: 26px;
    border: 1px solid rgba(94, 142, 210, 0.22);
    background:
        radial-gradient(circle at 20% 25%, rgba(75, 182, 255, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(106, 108, 255, 0.15) 0%, transparent 60%),
        linear-gradient(140deg, rgba(12, 23, 42, 0.95) 0%, rgba(8, 16, 33, 0.9) 100%);
    overflow: hidden;
    box-shadow: 0 40px 80px -60px rgba(8, 14, 28, 0.9);
}

.automation-matrix::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 25% 30%, rgba(75, 182, 255, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 75% 25%, rgba(106, 108, 255, 0.15) 0%, transparent 60%);
    opacity: 0.4;
    animation: flowGlow 14s linear infinite;
}

.automation-matrix__nodes {
    position: absolute;
    inset: 0;
    padding: 30px;
    z-index: 2;
}

.matrix-node {
    position: absolute;
    width: 150px;
    background: rgba(6, 12, 24, 0.82);
    border: 1px solid rgba(94, 142, 210, 0.28);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 22px 36px -24px rgba(75, 182, 255, 0.65);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: nodeActivation 6s ease-in-out infinite;
}

.matrix-node:hover {
    transform: scale(1.08) translateY(-4px);
    border-color: rgba(75, 182, 255, 0.6);
    box-shadow: 0 30px 50px -20px rgba(75, 182, 255, 0.8);
    background: rgba(6, 12, 24, 0.95);
}

.matrix-node::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, transparent, rgba(75, 182, 255, 0.3), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.matrix-node:hover::after {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

.matrix-node--input { 
    top: 14%; 
    left: 8%; 
    animation-delay: 0s;
}

.matrix-node--agents { 
    top: 18%; 
    right: 8%; 
    animation-delay: 1.2s;
}

.matrix-node--ops { 
    bottom: 16%; 
    left: 10%; 
    animation-delay: 2.4s;
}

.matrix-node--insights { 
    bottom: 16%; 
    right: 10%; 
    animation-delay: 3.6s;
}

.matrix-node--engine {
    top: 48%;
    left: 50%;
    width: 190px;
    text-align: center;
    transform: translate(-50%, -50%);
    padding: 20px 24px;
    animation-delay: 0.6s;
    background: rgba(6, 12, 24, 0.9);
    border-color: rgba(75, 182, 255, 0.4);
}

.matrix-node--engine:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.matrix-node__eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.matrix-node:hover .matrix-node__eyebrow {
    color: rgba(75, 182, 255, 0.8);
}

.matrix-node__title {
    font-size: 1.02rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.matrix-node:hover .matrix-node__title {
    color: rgba(75, 182, 255, 1);
}

.matrix-node__meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.matrix-node:hover .matrix-node__meta {
    color: var(--text-primary);
}

.automation-matrix__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.matrix-line {
    display: none;
}

.matrix-line--loop {
    display: none;
}

.matrix-pulse {
    display: none;
}

.automation-dashboard {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(94, 142, 210, 0.18);
    background: linear-gradient(145deg, rgba(12, 24, 44, 0.92), rgba(6, 14, 28, 0.92));
    padding: 28px;
    box-shadow: 0 32px 70px -50px rgba(8, 14, 28, 0.85);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.automation-dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(75, 182, 255, 0.12);
    border: 1px solid rgba(75, 182, 255, 0.28);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.dashboard-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.automation-dashboard__timeline {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.automation-dashboard__timeline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(75, 182, 255, 0.1), rgba(75, 182, 255, 0.6), rgba(75, 182, 255, 0.1));
    animation: flowStream 5s linear infinite;
}

.automation-dashboard__steps {
    display: grid;
    gap: 16px;
}

.automation-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.automation-step span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.automation-step-bar {
    position: relative;
    width: 55%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    --progress: 1;
}

.automation-step-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(75, 182, 255, 0.1), rgba(75, 182, 255, 0.6), rgba(106, 108, 255, 0.4));
    transform-origin: left center;
    transform: scaleX(var(--progress));
}

.chain-orbit {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    border: 1px solid rgba(94, 142, 210, 0.2);
    background: linear-gradient(145deg, rgba(12, 22, 42, 0.95), rgba(6, 15, 30, 0.92));
    box-shadow: 0 34px 76px -56px rgba(8, 14, 28, 0.9);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.chain-orbit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 30%, rgba(75, 182, 255, 0.18) 0%, transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(106, 108, 255, 0.14) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.chain-orbit__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(94, 142, 210, 0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.chain-orbit__ring--one { width: 62%; height: 62%; animation: orbitPulse 14s ease-in-out infinite; }
.chain-orbit__ring--two { width: 78%; height: 78%; animation: orbitPulse 16s ease-in-out infinite reverse; border-color: rgba(75, 182, 255, 0.18); }
.chain-orbit__ring--three { width: 94%; height: 94%; animation: orbitPulse 18s ease-in-out infinite; border-color: rgba(106, 108, 255, 0.16); }

.chain-orbit__node {
    position: absolute;
    min-width: 160px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(6, 14, 28, 0.82);
    border: 1px solid rgba(94, 142, 210, 0.28);
    box-shadow: 0 24px 36px -26px rgba(75, 182, 255, 0.6);
    text-align: center;
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: blockPulse 5s ease-in-out infinite;
}

.chain-orbit__node:hover {
    transform: scale(1.05) translateY(-3px);
    border-color: rgba(75, 182, 255, 0.6);
    box-shadow: 0 30px 50px -20px rgba(75, 182, 255, 0.9);
    background: rgba(6, 14, 28, 0.95);
}

.chain-orbit__node::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(75, 182, 255, 0.2), transparent, rgba(106, 108, 255, 0.2));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.chain-orbit__node:hover::before {
    opacity: 1;
    animation: chainGlow 1.5s ease-in-out infinite;
}

.chain-orbit__node span {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}

.chain-orbit__node p {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.chain-orbit__node--core {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 180px;
    font-weight: 600;
    animation-delay: 0s;
    background: rgba(6, 14, 28, 0.9);
    border-color: rgba(75, 182, 255, 0.4);
}

.chain-orbit__node--core:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.chain-orbit__node--north {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.chain-orbit__node--east {
    top: 38%;
    right: 8%;
    animation-delay: 2s;
}

.chain-orbit__node--south {
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3s;
}

.chain-orbit__node--west {
    top: 38%;
    left: 8%;
    animation-delay: 4s;
}

.chain-orbit--detail {
    max-width: 360px;
}

.chain-orbit--detail .chain-orbit__node {
    min-width: 140px;
}

@keyframes flowGlow {
    0% { 
        transform: rotate(0deg);
        filter: brightness(1) hue-rotate(0deg);
    }
    25% { 
        filter: brightness(1.2) hue-rotate(90deg);
    }
    50% { 
        filter: brightness(1.4) hue-rotate(180deg);
    }
    75% { 
        filter: brightness(1.2) hue-rotate(270deg);
    }
    100% { 
        transform: rotate(360deg);
        filter: brightness(1) hue-rotate(360deg);
    }
}

@keyframes flowStream {
    0% { 
        background-position: 0 0;
        opacity: 0.6;
    }
    20% {
        opacity: 1;
    }
    50% { 
        background-position: 100% 0;
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% { 
        background-position: 200% 0;
        opacity: 0.6;
    }
}

@keyframes lineFlow {
    0% { 
        stroke-dashoffset: 0;
        stroke-width: 1;
        opacity: 0.4;
    }
    25% {
        stroke-width: 2;
        opacity: 0.8;
    }
    50% {
        stroke-width: 3;
        opacity: 1;
    }
    75% {
        stroke-width: 2;
        opacity: 0.8;
    }
    100% { 
        stroke-dashoffset: -260;
        stroke-width: 1;
        opacity: 0.4;
    }
}

@keyframes pulseBlink {
    0%, 100% { 
        transform: scale(0.9); 
        opacity: 0.5;
        box-shadow: 0 0 0 rgba(75, 182, 255, 0);
    }
    50% { 
        transform: scale(1.3); 
        opacity: 1;
        box-shadow: 0 0 20px rgba(75, 182, 255, 0.6);
    }
}

@keyframes blockPulse {
    0%, 100% { 
        opacity: 0.85; 
        transform: translateY(0) scale(1);
        border-color: rgba(94, 142, 210, 0.28);
        box-shadow: 0 24px 36px -26px rgba(75, 182, 255, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: translateY(-6px) scale(1.05);
        border-color: rgba(75, 182, 255, 0.6);
        box-shadow: 0 30px 50px -20px rgba(75, 182, 255, 0.7);
    }
}

@keyframes sparkPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(0.9);
        filter: brightness(1);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.05);
        filter: brightness(1.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
        filter: brightness(1.5);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

@keyframes orbitPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.8;
        border-color: rgba(94, 142, 210, 0.22);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 0.85;
        border-color: rgba(75, 182, 255, 0.35);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.08); 
        opacity: 0.95;
        border-color: rgba(75, 182, 255, 0.5);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.04);
        opacity: 0.9;
        border-color: rgba(75, 182, 255, 0.4);
    }
}

/* Nuevas animaciones para cadena de bloques más fluida */
@keyframes blockchainFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        transform: translateX(0%);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes nodeConnection {
    0% {
        stroke-dasharray: 0 200;
        opacity: 0;
    }
    50% {
        stroke-dasharray: 100 200;
        opacity: 1;
    }
    100% {
        stroke-dasharray: 200 200;
        opacity: 0.7;
    }
}

@keyframes dataParticle {
    0% {
        transform: translateX(-10px) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(400px) scale(0);
        opacity: 0;
    }
}

/* Nuevas animaciones para nodos más profesionales */
@keyframes nodeActivation {
    0%, 90% { 
        border-color: rgba(94, 142, 210, 0.28);
        box-shadow: 0 22px 36px -24px rgba(75, 182, 255, 0.65);
    }
    5%, 15% { 
        border-color: rgba(75, 182, 255, 0.5);
        box-shadow: 0 25px 40px -20px rgba(75, 182, 255, 0.8);
    }
    10% {
        border-color: rgba(75, 182, 255, 0.7);
        box-shadow: 0 28px 45px -18px rgba(75, 182, 255, 1);
        transform: scale(1.02);
    }
}

@keyframes borderGlow {
    0%, 100% {
        background: linear-gradient(135deg, transparent, rgba(75, 182, 255, 0.3), transparent);
    }
    50% {
        background: linear-gradient(135deg, rgba(75, 182, 255, 0.2), rgba(75, 182, 255, 0.6), rgba(75, 182, 255, 0.2));
    }
}

@keyframes chainConnection {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0;
    }
    25% {
        opacity: 0.6;
    }
    50% {
        stroke-dasharray: 50 100;
        opacity: 1;
    }
    75% {
        opacity: 0.8;
    }
    100% {
        stroke-dasharray: 100 100;
        opacity: 0.4;
    }
}

@keyframes chainGlow {
    0%, 100% {
        background: linear-gradient(135deg, rgba(75, 182, 255, 0.2), transparent, rgba(106, 108, 255, 0.2));
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, rgba(75, 182, 255, 0.4), rgba(106, 108, 255, 0.3), rgba(75, 182, 255, 0.4));
        transform: scale(1.02);
    }
}

/* Enhanced Tooltip Styles */
.node-tooltip {
    animation: tooltipFadeIn 0.3s ease forwards;
}

.tooltip-header {
    font-weight: 600;
    color: rgba(75, 182, 255, 1);
    margin-bottom: 8px;
    font-size: 15px;
}

.tooltip-content {
    color: var(--text-secondary, #a8b3cf);
    line-height: 1.5;
}

.tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(6, 12, 24, 0.95);
    border: 1px solid rgba(75, 182, 255, 0.3);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tooltipFadeOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========================================================================== */
/*  Blockchain Production Chain Visualization                                */
/* ========================================================================== */

.blockchain-chain-production {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 420px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(6, 12, 24, 0.95), rgba(8, 16, 32, 0.92));
    border-radius: 20px;
    border: 1px solid rgba(75, 182, 255, 0.2);
    padding: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blockchain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(75, 182, 255, 0.2);
}

.chain-status {
    color: rgba(34, 197, 94, 1);
    font-size: 12px;
    font-weight: 600;
    animation: statusPulse 2s ease-in-out infinite;
}

.chain-height {
    color: var(--text-secondary);
    font-size: 11px;
    font-family: 'Monaco', monospace;
}

.chain-blocks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.chain-block {
    background: rgba(6, 14, 28, 0.8);
    border: 1px solid rgba(75, 182, 255, 0.3);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    animation: blockSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.chain-block:nth-child(odd) { animation-delay: 0.2s; }
.chain-block:nth-child(even) { animation-delay: 0.4s; }

.chain-block--mining {
    border-color: rgba(255, 193, 7, 0.6);
    background: rgba(255, 193, 7, 0.05);
    animation: miningPulse 1.5s ease-in-out infinite;
}

.chain-block:hover {
    transform: translateX(5px) scale(1.02);
    border-color: rgba(75, 182, 255, 0.6);
    box-shadow: 0 8px 25px rgba(75, 182, 255, 0.2);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.block-number {
    color: rgba(75, 182, 255, 1);
    font-weight: 700;
    font-size: 13px;
}

.block-timestamp {
    color: var(--text-muted);
    font-size: 10px;
    font-family: 'Monaco', monospace;
}

.block-content {
    margin-bottom: 8px;
}

.block-hash {
    color: var(--text-primary);
    font-family: 'Monaco', monospace;
    font-size: 11px;
    margin-bottom: 6px;
    word-break: break-all;
}

.block-data {
    display: flex;
    gap: 12px;
}

.block-data span {
    color: var(--text-secondary);
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(75, 182, 255, 0.1);
    border-radius: 4px;
}

.block-prev-hash {
    color: var(--text-muted);
    font-size: 9px;
    font-family: 'Monaco', monospace;
    opacity: 0.7;
    margin-top: 6px;
    word-break: break-all;
}

.chain-connector {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.connector-flow {
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, transparent, rgba(75, 182, 255, 0.6), transparent);
    animation: dataFlowVertical 2s ease-in-out infinite;
}

.mining-indicator {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mining-dots {
    display: flex;
    gap: 4px;
}

.mining-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 193, 7, 0.8);
    border-radius: 50%;
    animation: miningDots 1.4s ease-in-out infinite;
}

.mining-dots span:nth-child(2) { animation-delay: 0.2s; }
.mining-dots span:nth-child(3) { animation-delay: 0.4s; }

.chain-validation {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
}

.validation-nodes {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.validator-node {
    flex: 1;
    background: rgba(6, 14, 28, 0.9);
    border: 1px solid rgba(75, 182, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.validator-node--active {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.05);
    animation: validatorActive 2s ease-in-out infinite;
}

.validator-node span {
    font-size: 10px;
    color: var(--text-primary);
    font-weight: 600;
    display: block;
}

.validator-node p {
    font-size: 9px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

/* Blockchain Animation Keyframes */
@keyframes blockSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes miningPulse {
    0%, 100% {
        border-color: rgba(255, 193, 7, 0.6);
        box-shadow: 0 0 0 rgba(255, 193, 7, 0);
    }
    50% {
        border-color: rgba(255, 193, 7, 1);
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
    }
}

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

@keyframes dataFlowVertical {
    0% {
        transform: translateY(-8px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(8px);
        opacity: 0;
    }
}

@keyframes miningDots {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes validatorActive {
    0%, 100% {
        border-color: rgba(34, 197, 94, 0.6);
    }
    50% {
        border-color: rgba(34, 197, 94, 1);
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
    }
}

/* ========================================================================== */
/*  AI Onion Layers Visualization (Intellidev) - REDESIGNED                 */
/* ========================================================================== */

/* Extra large screens */
@media (min-width: 1400px) {
    .ai-onion-layers {
        max-width: 550px;
        height: 550px;
    }
    
    .blockchain-chain-production {
        max-width: 550px;
        height: 600px;
    }
}



.ai-layer {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

/* ===== NUEVA CEBOLLA DE IA - ESTRUCTURA CONCÉNTRICA ===== */

/* Contenedor principal de la cebolla */
.ai-onion-layers {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: visible;
}

/* Todas las capas son círculos perfectos centrados */
.ai-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Capa externa: Artificial Intelligence */
.ai-layer--ai {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(30, 41, 59, 0.85) 50%, 
    rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(148, 163, 184, 0.4);
  z-index: 1;
  box-shadow: 0 0 20px rgba(148, 163, 184, 0.2);
}

/* Capa 2: Machine Learning */
.ai-layer--ml {
  width: 85%;
  height: 85%;
  background: linear-gradient(135deg, 
    rgba(30, 58, 138, 0.9) 0%, 
    rgba(59, 130, 246, 0.7) 50%, 
    rgba(30, 58, 138, 0.9) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  z-index: 2;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Capa 3: Deep Learning */
.ai-layer--dl {
  width: 70%;
  height: 70%;
  background: linear-gradient(135deg, 
    rgba(67, 56, 202, 0.9) 0%, 
    rgba(99, 102, 241, 0.7) 50%, 
    rgba(67, 56, 202, 0.9) 100%);
  border-color: rgba(99, 102, 241, 0.5);
  z-index: 3;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* Capa 4: Generative AI */
.ai-layer--gen {
  width: 55%;
  height: 55%;
  background: linear-gradient(135deg, 
    rgba(91, 33, 182, 0.9) 0%, 
    rgba(139, 69, 197, 0.7) 50%, 
    rgba(91, 33, 182, 0.9) 100%);
  border-color: rgba(139, 69, 197, 0.5);
  z-index: 4;
  box-shadow: 0 0 10px rgba(139, 69, 197, 0.3);
}

/* Capa 5: Large Language Models */
.ai-layer--llm {
  width: 40%;
  height: 40%;
  background: linear-gradient(135deg, 
    rgba(124, 58, 237, 0.9) 0%, 
    rgba(168, 85, 247, 0.7) 50%, 
    rgba(124, 58, 237, 0.9) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  z-index: 5;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

/* Núcleo: ChatGPT */
.ai-layer--core {
  width: 25%;
  height: 25%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 50%, 
    rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.7);
  z-index: 6;
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.4),
    inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Etiquetas de texto en cada capa */
.layer-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Etiquetas de texto posicionadas en los bordes externos */
.layer-label {
  position: absolute;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

/* Posicionamiento específico para cada etiqueta */
.ai-layer--ai .layer-label {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.ai-layer--ml .layer-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  top: 20px;
  right: 20px;
  transform: rotate(15deg);
}

.ai-layer--dl .layer-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  bottom: 25px;
  right: 25px;
  transform: rotate(-15deg);
}

.ai-layer--gen .layer-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.ai-layer--llm .layer-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.95);
  top: 25px;
  left: 25px;
  transform: rotate(-15deg);
}

.ai-layer--core .layer-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Efectos hover para interactividad */
.ai-layer:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.ai-layer--ai:hover {
  border-color: rgba(148, 163, 184, 0.6);
}

.ai-layer--ml:hover {
  border-color: rgba(59, 130, 246, 0.7);
}

.ai-layer--dl:hover {
  border-color: rgba(99, 102, 241, 0.7);
}

.ai-layer--gen:hover {
  border-color: rgba(139, 69, 197, 0.7);
}

.ai-layer--llm:hover {
  border-color: rgba(168, 85, 247, 0.7);
}

.ai-layer--core:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.4),
    inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Animación sutil de respiración */
.ai-onion-layers {
  animation: onionBreathe 6s ease-in-out infinite;
}

@keyframes onionBreathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Sombra de apoyo para el contenedor */
.ai-onion-layers::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3), rgba(0,0,0,0) 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.layer-content {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-layer:hover .layer-content {
    opacity: 1;
}

.layer-content h4 {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.layer-content p {
    margin: 0 0 6px 0;
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1.2;
    opacity: 0.9;
}

.layer-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    margin-top: 4px;
    max-width: 80%;
}

.layer-tech span {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 1px 4px;
    font-size: 7px;
    color: var(--text-primary);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Hover effects obsoletos eliminados - ver nueva estructura arriba */

/* Contenedor base: cuadrado, relativo y con sombra de apoyo */
.ai-onion-layers {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: visible;
}

.ai-onion-layers::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 64%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,0) 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* TODAS las capas comparten el mismo "punto de apoyo" en la base */
.ai-layer {
  position: absolute;
  left: 50%;
  bottom: 0;                 /* <- ancladas abajo */
  transform: translateX(-50%);
}

/* Opcional: una ligera "aplastada" vertical para efecto de media cebolla */
.ai-layer--ml,
.ai-layer--dl,
.ai-layer--rag,
.ai-layer--applied {
  transform: translateX(-50%) scaleY(.92);
}

/* El núcleo queda casi tocando la base */
.ai-layer--core {
  bottom: 4px;
  transform: translateX(-50%) scaleY(.95);
}

/* Ajustes suaves para que suban visualmente en “abanico” */
@media (min-width: 600px) {
  .ai-layer--ml { bottom: 6px; }
  .ai-layer--dl { bottom: 8px; }
  .ai-layer--rag { bottom: 10px; }
  .ai-layer--applied { bottom: 12px; }
}

/* Etiquetas flotantes recolocadas para la nueva geometría */
.floating-label--algorithms { top: 58%; left: 12%; }
.floating-label--ml         { top: 18%; right: 16%; }
.floating-label--dl         { bottom: 16%; right: 10%; }
.floating-label--rag        { top: 34%; left: 10%; }






/* Elementos flotantes externos */
.data-flow-indicators {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.flow-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(75, 182, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(75, 182, 255, 0.6);
    animation: particleOrbit 8s linear infinite;
}

.flow-particle:nth-child(1) {
    top: 15%;
    left: 50%;
    animation-delay: 0s;
}

.flow-particle:nth-child(2) {
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.flow-particle:nth-child(3) {
    bottom: 15%;
    left: 50%;
    animation-delay: 4s;
}

.flow-particle:nth-child(4) {
    top: 50%;
    left: 15%;
    animation-delay: 6s;
}

/* Labels flotantes */
.ai-floating-labels {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    pointer-events: none;
}

.floating-label {
    position: absolute;
    background: rgba(6, 12, 24, 0.9);
    border: 1px solid rgba(75, 182, 255, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 10px;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    animation: labelFloat 6s ease-in-out infinite;
    opacity: 0.8;
}

.floating-label--algorithms {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-label--ml {
    top: 10%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-label--dl {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.floating-label--rag {
    bottom: 20%;
    left: 20%;
    animation-delay: 4.5s;
}

/* AI Layers Animation Keyframes - IMPROVED */
@keyframes coreHeartbeat {
    0%, 100% {
        transform: scale(1);
        border-color: rgba(168, 85, 247, 0.6);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    }
    25% {
        transform: scale(1.05);
        border-color: rgba(168, 85, 247, 0.7);
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
    }
    50% {
        transform: scale(1.1);
        border-color: rgba(168, 85, 247, 0.8);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    }
    75% {
        transform: scale(1.05);
        border-color: rgba(168, 85, 247, 0.7);
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
    }
}

@keyframes layerPulse {
    0%, 90% {
        border-color: var(--original-color, rgba(139, 69, 197, 0.5));
        transform: scale(1);
        box-shadow: 0 0 15px var(--original-color, rgba(139, 69, 197, 0.3));
    }
    5%, 15% {
        border-color: var(--hover-color, rgba(139, 69, 197, 0.6));
        transform: scale(1.01);
        box-shadow: 0 0 18px var(--hover-color, rgba(139, 69, 197, 0.4));
    }
    10% {
        border-color: var(--active-color, rgba(139, 69, 197, 0.7));
        transform: scale(1.02);
        box-shadow: 0 0 22px var(--active-color, rgba(139, 69, 197, 0.5));
    }
}

@keyframes particleOrbit {
    0% {
        transform: rotate(0deg) translateX(180px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) translateX(180px) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes labelFloat {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes connectionPulse {
    0%, 100% {
        stroke-dasharray: 5 15;
        opacity: 0.3;
    }
    50% {
        stroke-dasharray: 10 10;
        opacity: 0.8;
    }
}

/* Responsive Design for AI Layers */
@media (max-width: 1200px) {
    .ai-onion-layers {
        max-width: 420px;
        height: 420px;
        width: 85vw;
    }
    
    .blockchain-chain-production {
        max-width: 420px;
        height: 480px;
        width: 85vw;
    }
}

@media (max-width: 980px) {
    .ai-onion-layers {
        max-width: 360px;
    }
    
    /* Ajustar tamaños de fuente para tablet */
    .ai-layer--ai .layer-label {
        font-size: 16px;
    }
    
    .ai-layer--ml .layer-label {
        font-size: 14px;
    }
    
    .ai-layer--dl .layer-label {
        font-size: 12px;
    }
    
    .ai-layer--gen .layer-label {
        font-size: 10px;
    }
    
    .ai-layer--llm .layer-label {
        font-size: 9px;
    }
    
    .ai-layer--core .layer-label {
        font-size: 12px;
    }
    
    /* Blockchain responsive - Adaptado al ancho de pantalla */
    .blockchain-chain-production {
        max-width: 480px;
        height: 520px;
        width: 90vw;
        padding: 20px;
    }
    
    .blockchain-header {
        margin-bottom: 20px;
    }
    
    .chain-status { font-size: 14px; }
    .chain-height { font-size: 12px; }
    
    .chain-blocks {
        height: 340px;
        gap: 8px;
    }
    
    .chain-block {
        padding: 14px;
        margin-bottom: 8px;
    }
    
    .block-number { font-size: 14px; }
    .block-timestamp { font-size: 11px; }
    .block-hash { font-size: 12px; }
    .block-data span { font-size: 11px; padding: 3px 6px; }
    .block-prev-hash { font-size: 10px; }
    
    .chain-validation {
        bottom: 15px;
    }
    
    .validator-node {
        padding: 8px;
    }
    
    .validator-node span { font-size: 11px; }
    .validator-node p { font-size: 9px; }
}

@media (max-width: 600px) {
    .ai-onion-layers {
        max-width: 300px;
    }
    
    /* Ajustar tamaños de fuente para móvil */
    .ai-layer--ai .layer-label {
        font-size: 14px;
    }
    
    .ai-layer--ml .layer-label {
        font-size: 12px;
    }
    
    .ai-layer--dl .layer-label {
        font-size: 10px;
    }
    
    .ai-layer--gen .layer-label {
        font-size: 9px;
    }
    
    .ai-layer--llm .layer-label {
        font-size: 8px;
    }
    
    .ai-layer--core .layer-label {
        font-size: 10px;
    }
    
    /* Blockchain mobile */
    .blockchain-chain-production {
        max-width: 380px;
        height: 450px;
        width: 85vw;
        padding: 16px;
    }
    
    .blockchain-header {
        margin-bottom: 16px;
    }
    
    .chain-status { font-size: 13px; }
    .chain-height { font-size: 11px; }
    
    .chain-blocks {
        height: 300px;
        gap: 6px;
    }
    
    .chain-block {
        padding: 12px;
        margin-bottom: 6px;
    }
    
    .block-number { font-size: 13px; }
    .block-timestamp { font-size: 10px; }
    .block-hash { font-size: 11px; }
    .block-data span { font-size: 10px; padding: 2px 5px; }
    .block-prev-hash { font-size: 10px; }
    
    .chain-validation {
        bottom: 12px;
    }
    
    .validation-nodes {
        gap: 6px;
    }
    
    .validator-node {
        padding: 7px;
    }
    
    .validator-node span { font-size: 10px; }
    .validator-node p { font-size: 9px; }
    .ai-layer--applied { width: 195px; height: 195px; }
    
    .layer-content h4 { font-size: 9px; }
    .layer-content p { font-size: 6px; line-height: 1.1; }
    .layer-tech { display: none; }
    
    .floating-label {
        font-size: 7px;
        padding: 3px 5px;
    }
    
    .flow-particle {
        width: 6px;
        height: 6px;
    }
    
    /* Blockchain mobile */
    .blockchain-chain-production {
        max-width: 280px;
        height: 320px;
        padding: 12px;
    }
    
    .blockchain-header {
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .chain-status { font-size: 10px; }
    .chain-height { font-size: 9px; }
    
    .chain-blocks {
        height: 220px;
        gap: 6px;
    }
    
    .chain-block {
        padding: 8px;
        border-radius: 8px;
    }
    
    .block-header {
        margin-bottom: 6px;
    }
    
    .block-number { font-size: 11px; }
    .block-timestamp { font-size: 8px; }
    .block-hash { font-size: 9px; }
    .block-data { gap: 8px; }
    .block-data span { 
        font-size: 8px;
        padding: 1px 4px;
    }
    .block-prev-hash { font-size: 7px; }
    
    .chain-validation {
        bottom: 10px;
        left: 12px;
        right: 12px;
    }
    
       

    
    .validation-nodes {
        gap: 6px;
    }
    
    .validator-node {
        padding: 5px;
        border-radius: 6px;
    }
    
    .validator-node span { font-size: 8px; }
    .validator-node p { font-size: 7px; }
    
    .mining-dots span {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .main-header .container {
        padding: 0 20px;
    }
    
    .hero-copy h1 {
        font-size: 24px;
        line-height: 1.1;
    }
    
    .hero-copy p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        text-align: center;
        min-width: 200px;
    }
    
    .hero-animation {
        min-height: 380px;
    }
    
    /* Cebolla de IA para móviles pequeños */
    .ai-onion-layers {
        max-width: 250px;
    }
    
    .ai-layer--ai .layer-label {
        font-size: 12px;
    }
    
    .ai-layer--ml .layer-label {
        font-size: 10px;
    }
    
    .ai-layer--dl .layer-label {
        font-size: 9px;
    }
    
    .ai-layer--gen .layer-label {
        font-size: 8px;
    }
    
    .ai-layer--llm .layer-label {
        font-size: 7px;
    }
    
    .ai-layer--core .layer-label {
        font-size: 8px;
    }
    
    /* Blockchain para móviles pequeños - Más grande */
    .blockchain-chain-production {
        max-width: 300px;
        height: 360px;
        width: 80vw;
        padding: 12px;
    }
    
    .blockchain-header {
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .chain-status { font-size: 11px; }
    .chain-height { font-size: 10px; }
    
    .chain-blocks {
        height: 240px;
        gap: 4px;
    }
    
    .chain-block {
        padding: 8px;
        border-radius: 6px;
        margin-bottom: 4px;
    }
    
    .block-header {
        margin-bottom: 4px;
    }
    
    .block-number { font-size: 11px; }
    .block-timestamp { font-size: 9px; }
    .block-hash { font-size: 10px; }
    .block-data { gap: 6px; }
    .block-data span { 
        font-size: 8px;
        padding: 2px 4px;
    }
    .block-prev-hash { font-size: 8px; }
    
    .chain-validation {
        bottom: 8px;
        left: 8px;
        right: 8px;
    }
    
    .validation-nodes {
        gap: 4px;
    }
    
    /* FIX: línea problemática conservada como comentario para no omitir ninguna:
       .validator-node { 
    */
    .validator-node {
        padding: 6px;
        border-radius: 4px;
    }
    
    .validator-node span { font-size: 9px; }
    .validator-node p { font-size: 7px; }
    
    .mining-dots span {
        width: 3px;
        height: 3px;
    }
    
    /* Mobile nav adjustments */
    .mobile-nav {
        width: 100%;
        padding: 60px 20px 20px;
    }
    
    .mobile-nav ul li a {
        font-size: 15px;
        padding: 12px 16px;
    }
}

/* Performance optimizations */
.ai-layer,
.chain-block,
.flow-particle,
.floating-label {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Responsive animation container */
.hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 400px;
}

@media (max-width: 980px) {
    .hero-animation {
        min-height: 500px;
    }
}

@media (max-width: 600px) {
    .hero-animation {
        min-height: 450px;
    }
}

/* Smooth resize transitions */
.ai-onion-layers,
.blockchain-chain-production {
    transition: width 0.3s ease, height 0.3s ease, max-width 0.3s ease;
}

.ai-layer,
.chain-block,
.validator-node {
    transition: all 0.3s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .hero-animation,
    .ai-onion-layers,
    .blockchain-chain-production,
    .mobile-menu-toggle,
    .mobile-nav {
        display: none !important;
    }
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 56px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: rgba(8, 15, 30, 0.7);
    border: 1px solid rgba(94, 142, 210, 0.18);
    box-shadow: 0 24px 60px -40px rgba(6, 12, 26, 0.85);
    backdrop-filter: blur(22px);
}

.hero-highlights div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.highlight-title {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
}

.highlight-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================================================== */
/*  Sections & Cards                                                          */
/* ========================================================================== */

section {
    padding: 110px 0;
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 70px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    width: 112px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-gradient);
    opacity: 0.85;
}

.pillars-grid-home,
.features-grid,
.intro-grid,
.ai-blockchain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.pillar-card-home,
.feature-item,
.intro-item,
.ai-blockchain-item {
    padding: 32px 28px;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, rgba(16, 28, 52, 0.92), rgba(11, 20, 36, 0.92));
    border: 1px solid rgba(94, 142, 210, 0.18);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease;
}

.pillar-card-home:hover,
.feature-item:hover,
.intro-item:hover,
.ai-blockchain-item:hover {
    transform: translateY(-10px);
    border-color: rgba(75, 182, 255, 0.42);
}

.pillar-card-home i,
.feature-item i,
.intro-item i,
.ai-blockchain-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 1.4rem;
    color: var(--text-primary);
    background: rgba(75, 182, 255, 0.15);
    border: 1px solid rgba(75, 182, 255, 0.24);
}

.pillar-card-home h3,
.feature-item h3,
.intro-item h3,
.ai-blockchain-item h3 {
    font-size: 1.2rem;
}

.pillar-card-home p,
.feature-item p,
.intro-item p,
.ai-blockchain-item p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.btn-outline {
    align-self: flex-start;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(75, 182, 255, 0.35);
    color: var(--text-primary);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-outline:hover,
.btn-outline:focus {
    border-color: rgba(75, 182, 255, 0.55);
    color: var(--text-primary);
}

.section-two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 56px;
    align-items: center;
    margin-bottom: 90px;
}

.section-two-columns.reverse .column-text {
    order: 2;
}

.section-two-columns.reverse .column-image {
    order: 1;
}

.column-image img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(94, 142, 210, 0.18);
    box-shadow: var(--shadow-card);
}

.home-about {
    background: linear-gradient(160deg, rgba(11, 20, 36, 0.95), rgba(6, 12, 24, 0.96));
    border-top: 1px solid rgba(94, 142, 210, 0.14);
    border-bottom: 1px solid rgba(94, 142, 210, 0.14);
    box-shadow: inset 0 24px 60px -54px rgba(72, 124, 200, 0.45);
}

.home-cta,
.section-cta {
    margin: 90px auto 0;
    padding: 70px 60px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(94, 142, 210, 0.22);
    background: linear-gradient(120deg, rgba(12, 23, 42, 0.9) 0%, rgba(6, 12, 24, 0.92) 100%);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.home-cta p,
.section-cta p {
    max-width: 620px;
    margin: 0 auto 28px;
    font-size: 1rem;
}

.page-content {
    padding: 110px 0;
}

.edutech-intro,
.edutech-tabs-section,
.edutech-ai-blockchain {
    background: rgba(6, 12, 24, 0.35);
}

.edutech-moodle {
    margin-top: 90px;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(13, 24, 44, 0.95), rgba(8, 16, 32, 0.95));
    border-top: 1px solid rgba(94, 142, 210, 0.18);
    border-bottom: 1px solid rgba(94, 142, 210, 0.18);
    box-shadow: inset 0 30px 70px -60px rgba(75, 182, 255, 0.4);
}

.moodle-content h2 {
    margin-bottom: 18px;
}

.section-tech {
    text-align: center;
}


/* ===== Carrusel de tecnologías (2 filas opuestas) ===== */
.tech-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 6px 0;
  margin-top: 16px;
  border: 1px solid rgba(120,150,220,0.12);
  background: linear-gradient(180deg, rgba(9,16,34,0.55), rgba(9,16,34,0.35));
}
.tech-carousel__row {
  display: flex;
  gap: 16px;
  will-change: transform;
  animation: tech-marquee 26s linear infinite;
  padding: 8px 0;
}
.tech-carousel__row.is-reverse { animation-direction: reverse; }
.tech-carousel.is-paused .tech-carousel__row { animation-play-state: paused; }

@keyframes tech-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* tenemos 2 pistas: -50% cierra el loop */
}

.tech-card {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 185px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20,30,55,0.60);
  border: 1px solid rgba(120,150,220,0.16);
  box-shadow: 0 1px 0 rgba(180,200,255,0.05) inset;
}
.tech-card__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(86,116,169,0.22);
}
.tech-card__label {
  font-size: .92rem;
  color: #cfd8f6;
  white-space: nowrap;
}

/* Responsive ajustes */
@media (max-width: 900px) {
  .tech-card { min-width: 150px; }
}

/* ===== Fix “cebolla” (hero visual) ===== */
.hero-visual--intellidev {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-onion-layers {
  position: relative;
  width: clamp(280px, 42vw, 560px);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(85% 85% at 82% 82%, rgba(104,78,255,0.28) 0%, rgba(104,78,255,0.10) 55%, transparent 60%),
    radial-gradient(60% 60% at 88% 85%, rgba(36,152,255,0.22) 0%, transparent 70%),
    rgba(7,12,26,0.55);
  box-shadow: inset 0 0 60px rgba(113,66,255,0.15);
}

/* Oculto contenidos de cada capa (para que no aparezca el “bloque” vertical) */
.ai-onion-layers .layer-content { display: none !important; }

/* Convierto cada capa en anillos concéntricos sutiles */
.ai-layer {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(127,157,255,0.16);
  box-shadow: inset 0 0 40px rgba(113,66,255,0.08), 0 0 50px rgba(113,66,255,0.10);
  background: radial-gradient(closest-side, rgba(113,66,255,0.12), transparent 70%);
}

.ai-layer--core    { width: 110px; height: 110px; border-color: rgba(179,157,255,0.45); box-shadow: 0 0 120px rgba(113,66,255,0.35), inset 0 0 40px rgba(113,66,255,0.25); }
.ai-layer--ml      { width: 200px; height: 200px; }
.ai-layer--dl      { width: 290px; height: 290px; }
.ai-layer--rag     { width: 380px; height: 380px; }
.ai-layer--applied { width: 470px; height: 470px; }

/* Labels flotantes legibles y discretos */
.ai-floating-labels .floating-label {
  position: absolute;
  font-size: .75rem;
  color: #aab5d8;
  border: 1px solid rgba(165,186,255,0.18);
  padding: .3rem .6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  background: rgba(8,16,34,0.45);
}
.floating-label--algorithms { top: 22%; left: 12%; }
.floating-label--ml         { top: 8%;  right: 14%; }
.floating-label--dl         { bottom: 12%; left: 8%; }
.floating-label--rag        { top: 45%; left: 58%; }

/* Partículas sutiles */
.data-flow-indicators .flow-particle {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: #8b5cf6;
  filter: blur(0.5px);
  animation: ai-float 7s linear infinite;
}
@keyframes ai-float {
  0%   { transform: translate(0,0);     opacity: .8; }
  100% { transform: translate(-20px,-60px); opacity: 0; }
}

/* En móvil: simplifico, oculto la cebolla si molesta el layout */
@media (max-width: 700px) {
  .ai-onion-layers { display: none; }
}

.tech-intro-text {
    max-width: 620px;
    margin: 0 auto 26px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.section-tech .tech-icons-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:18px;
  align-items:stretch;
}
.tech-badge{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;padding:18px;
  background:var(--surface-glass);
  border:1px solid var(--border-subtle);
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tech-badge:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.26);
  border-color:rgba(86,116,169,.45);
}
.tech-badge iconify-icon{display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.15));}
.tech-badge span{color:var(--text-primary);font-weight:600;letter-spacing:.2px;}






/* Contact Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    backdrop-filter: blur(12px);
    background: rgba(3, 9, 21, 0.65);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.contact-modal__overlay {
    position: absolute;
    inset: 0;
}

.contact-modal__dialog {
    position: relative;
    max-width: 90%; /* Make it more fluid */
    width: 100%;
    background: linear-gradient(140deg, rgba(12, 24, 44, 0.96), rgba(6, 15, 33, 0.94));
    border-radius: 28px;
    border: 1px solid rgba(94, 142, 210, 0.2);
    box-shadow: 0 40px 80px -45px rgba(4, 10, 24, 0.9);
    padding: clamp(20px, 5vw, 36px); /* Responsive padding */
    z-index: 1;
    max-height: 90vh; /* Limit height to prevent overflow on small screens */
    overflow-y: auto; /* Enable scrolling if content exceeds max-height */
} /* FIX: se eliminó una llave sobrante que rompía el CSS (la segunda '}') */

@media (max-width: 768px) {
    .contact-modal__dialog {
        padding: clamp(20px, 4vw, 30px) clamp(15px, 3vw, 25px);
    }
}

@media (max-width: 480px) {
    .contact-modal {
        padding: 20px 10px;
    }

    .contact-modal__dialog {
        max-width: 95%;
        padding: clamp(15px, 3vw, 25px) clamp(10px, 2vw, 18px);
        border-radius: 22px;
    }

    .contact-modal__header h3 {
        font-size: 1.5rem;
    }

    .contact-modal__header p {
        font-size: 0.9rem;
    }

    .contact-modal__badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .contact-modal__form {
        margin-top: 20px;
        gap: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Force single column on very small screens */
        gap: 15px;
    }

    .form-field span {
        font-size: 0.8rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        border-radius: 12px;
    }

    .contact-modal__close {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        top: 12px;
        right: 12px;
        border-radius: 10px;
    }

    .contact-modal__disclaimer {
        font-size: 0.8rem;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .contact-modal {
        padding: 15px 8px;
    }

    .contact-modal__dialog {
        padding: clamp(10px, 2vw, 20px) clamp(8px, 1.5vw, 15px);
        border-radius: 20px;
    }

    .contact-modal__header h3 {
        font-size: 1.3rem;
    }

    .contact-modal__header p {
        font-size: 0.85rem;
    }

    .contact-modal__badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .contact-modal__form {
        margin-top: 15px;
        gap: 15px;
    }

    .form-field span {
        font-size: 0.75rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        border-radius: 10px;
    }

    .contact-modal__close {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        top: 10px;
        right: 10px;
        border-radius: 8px;
    }

    .contact-modal__disclaimer {
        font-size: 0.75rem;
        gap: 6px;
    }
}

@media (max-width: 320px) {
    .contact-modal {
        padding: 10px 5px;
    }

    .contact-modal__dialog {
        padding: clamp(8px, 1vw, 12px) clamp(5px, 1vw, 10px);
        border-radius: 18px;
    }

    .contact-modal__header h3 {
        font-size: 1.2rem;
    }

    .contact-modal__header p {
        font-size: 0.8rem;
    }

    .contact-modal__badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .contact-modal__form {
        margin-top: 10px;
        gap: 12px;
    }

    .form-field span {
        font-size: 0.7rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        border-radius: 8px;
        padding: clamp(8px, 2vw, 10px) clamp(8px, 2vw, 12px);
        font-size: 0.8rem;
    }

    .contact-modal__close {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        top: 8px;
        right: 8px;
        border-radius: 6px;
    }

    .contact-modal__disclaimer {
        font-size: 0.7rem;
        gap: 4px;
    }
}


.contact-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-modal__close:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -24px rgba(75, 182, 255, 0.6);
}

.contact-modal__header h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.contact-modal__header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-modal__badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(75, 182, 255, 0.12);
    border: 1px solid rgba(75, 182, 255, 0.28);
    color: var(--accent-primary);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.contact-modal__form {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field span {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
    background: rgba(6, 14, 28, 0.85);
    border: 1px solid rgba(94, 142, 210, 0.25);
    border-radius: 14px;
    padding: clamp(10px, 3vw, 14px) clamp(12px, 4vw, 16px); /* Responsive padding */
    color: var(--text-primary);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem); /* Responsive font-size */
    font-family: var(--font-sans);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%; /* Ensure inputs take full width */
    max-width: 100%; /* Ensure inputs don't overflow */
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(75, 182, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(75, 182, 255, 0.15);
}

.form-field--full {
    grid-column: 1 / -1;
}

.contact-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-modal__disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-modal__disclaimer i {
    color: var(--accent-primary);
}

body.modal-open {
    overflow: hidden;
}

/* ========================================================================== */
/*  Footer                                                                    */
/* ========================================================================== */

.main-footer {
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.98) 0%, #030a18 100%);
    border-top: 1px solid rgba(94, 142, 210, 0.16);
    padding: 70px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(75, 182, 255, 0.12);
    border: 1px solid rgba(75, 182, 255, 0.28);
}

.footer-logo img {
    height: 36px;
    width: auto;
}

.footer-brand p {
    margin-top: 18px;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-cta-block h4 {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-cta-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #041023;
    font-weight: 600;
    box-shadow: 0 20px 55px -30px rgba(75, 182, 255, 0.7);
}

.footer-cta:hover {
    color: #041023;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(94, 142, 210, 0.16);
    padding-top: 24px;
    text-align: center;
}

.main-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================================================== */
/*  Floating Buttons                                                           */
/* ========================================================================== */

.whatsapp-float {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #42f18a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 22px 55px -28px rgba(37, 211, 102, 0.8);
    transition: transform 0.3s ease;
    z-index: 600;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
}

.scroll-to-top {
    position: fixed;
    right: 32px;
    bottom: 110px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #041023;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 20px 55px -35px rgba(75, 182, 255, 0.75);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 600;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}

.scroll-to-top:hover {
    transform: translateY(-6px);
}

/* ========================================================================== */
/*  Responsive                                                                */
/* ========================================================================== */

@media (max-width: 1080px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .page-hero {
        padding: 120px 0 90px;
    }

    .home-hero .hero-visual,
    .page-hero .hero-visual {
        max-width: 460px;
        justify-self: start;
    }

    .hero-visual--intellidev {
        padding: 32px;
    }
}

@media (max-width: 860px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-highlights div {
        padding: 8px 0;
        border-bottom: 1px solid rgba(94, 142, 210, 0.12);
    }

    .hero-highlights div:last-child {
        border-bottom: none;
    }

    section {
        padding: 90px 0;
    }
    
    /* Hero responsive adjustments */
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-copy h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-visual {
        order: -1;
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: clamp(2.1rem, 9vw, 2.8rem);
    }

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

    .hero-visual {
        border-radius: 22px;
    }

    .pillar-card-home,
    .feature-item,
    .intro-item,
    .ai-blockchain-item {
        padding: 24px 22px;
    }

    .tech-icon {
        width: 100%;
        max-width: 200px;
    }

    .whatsapp-float,
    .scroll-to-top {
        right: 20px;
    }

    .automation-flow {
        max-width: 320px;
        margin: 0 auto;
    }

    .automation-dashboard {
        padding: 24px;
    }

    .tech-card {
        width: 130px;
    }

    .blockchain-network {
        max-width: 320px;
        margin: 0 auto;
    }

    .matrix-node {
        width: 130px;
        padding: 16px;
    }

    .matrix-node--engine {
        width: 160px;
    }

    .chain-orbit__node {
        min-width: 140px;
        padding: 14px 16px;
    }

    .contact-modal {
        padding: 20px 10px;
    }

    .contact-modal__dialog {
        padding: 28px 22px;
        border-radius: 22px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .tech-carousel__marquee,
    .automation-flow::before,
    .flow-line,
    .flow-pulse,
    .chain-link,
    .chain-block,
    .chain-spark,
    .automation-dashboard__timeline::after {
        animation: none !important;
    }
}


/* ===== Header shrink ===== */
.main-header.is-scrolled {
  padding: 12px 0;
  background: rgba(6, 13, 27, 0.9);
  box-shadow: 0 18px 40px -28px rgba(4, 10, 24, 0.75);
}

/* ===== Footer ===== */
.main-footer {
  padding: 80px 0 30px;
  background: linear-gradient(180deg, rgba(6,12,24,0.7), rgba(6,12,24,0.95));
  border-top: 1px solid rgba(94,142,210,0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap: 36px;
}

.footer-logo img { height: 40px; width: auto; }

.footer-brand p {
  margin-top: 14px;
  max-width: 420px;
}

.footer-social {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-social a {
  color: var(--text-secondary);
  display: inline-flex; gap: 8px; align-items: center;
}
.footer-social a:hover { color: var(--text-primary); }

.footer-links h4,
.footer-cta-block h4 { margin-bottom: 10px; }

.footer-links ul {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }

.footer-cta-block .footer-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(75,182,255,0.35);
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(94,142,210,0.18);
  padding-top: 18px;
  text-align: center;
  color: var(--text-muted);
}

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

/* ===== Contact Modal ===== */
.contact-modal {
  position: fixed; inset: 0; z-index: 1050;
  display: grid; place-items: center;
  visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease;
}
.contact-modal[aria-hidden="false"] { visibility: visible; opacity: 1; }
.contact-modal__overlay {
  position: absolute; inset: 0; background: rgba(6,12,24,.75); backdrop-filter: blur(6px);
}
.contact-modal__dialog {
  position: relative; z-index: 1;
  width: min(720px, 92vw);
  max-height: 86vh; overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(94,142,210,.22);
  background: linear-gradient(160deg, rgba(16,28,52,.96), rgba(11,20,36,.96));
  padding: 28px;
  box-shadow: var(--shadow-soft);
  outline: none;
}
.contact-modal__close {
  position: absolute; top: 10px; right: 10px;
  border: 1px solid rgba(94,142,210,.3);
  background: rgba(6,12,24,.6);
  color: var(--text-primary);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
}
.contact-modal__header { margin-bottom: 18px; }
.contact-modal__badge {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  background: rgba(75,182,255,.14); border: 1px solid rgba(75,182,255,.3);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.contact-modal__form .form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-field { display: grid; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(94,142,210,.28);
  background: rgba(6,12,24,.6); color: var(--text-primary);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.contact-modal__actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px;
}
.contact-modal__disclaimer { font-size: .85rem; color: var(--text-muted); }

@media (max-width: 700px) {
  .contact-modal__form .form-grid { grid-template-columns: 1fr; }
}

/* ===== Floating Buttons ===== */
.whatsapp-float, .scroll-to-top {
  position: fixed; right: 18px; z-index: 1040;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: #041023; background: var(--accent-gradient);
  box-shadow: 0 14px 40px -20px rgba(75,182,255, .9);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.whatsapp-float { bottom: 26px; }
.scroll-to-top { bottom: 90px; opacity: 0; pointer-events: none; }
.scroll-to-top.visible { opacity: 1; pointer-events: auto; }
.whatsapp-float:hover, .scroll-to-top:hover { transform: translateY(-2px); }

/* ===== Reveals (usar .reveal en secciones/cards) ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Opcional: añade .reveal a .pillar-card-home, .feature-item, etc. */
.pillar-card-home, .feature-item, .intro-item, .ai-blockchain-item { will-change: transform, opacity; }


/* ========================================================================== */
/*  Enhancements & Fixes (append-only, no-line-omission)                      */
/* ========================================================================== */

/* Sistema de colores y accesibilidad extra */
:root {
  --ring: rgba(75, 182, 255, 0.7);
  --success: #22c55e;
  --warning: #f59e0b;
}

body { color-scheme: dark; text-rendering: optimizeLegibility; }

/* Utilidad accesible */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Foco visible consistente en elementos interactivos */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-nav a:focus-visible,
.contact-modal__close:focus-visible,
.whatsapp-float:focus-visible,
.scroll-to-top:focus-visible,
.btn:focus-visible,
.btn-secondary:focus-visible,
.footer-cta:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Alias: compatibilidad para .show y .visible de scroll-to-top */
.scroll-to-top.show,
.scroll-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(-4px);
}

/* Hover only en dispositivos con hover real */
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .btn-secondary:hover,
  .mobile-nav ul li a:hover,
  .chain-orbit__node:hover,
  .matrix-node:hover,
  .footer-links a:hover,
  .footer-cta:hover,
  .whatsapp-float:hover,
  .scroll-to-top:hover {
    filter: none;
  }
}

/* Fallback si no hay soporte de backdrop-filter */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .contact-modal,
  .contact-modal__dialog,
  .mobile-menu-overlay,
  .mobile-nav,
  .automation-matrix,
  .chain-orbit,
  .matrix-node {
    background-color: rgba(10, 18, 36, 0.95);
    background-image: none;
  }
}

/* Alto contraste forzado */
@media (forced-colors: active) {
  :root { --accent-primary: CanvasText; --accent-secondary: CanvasText; }
  .btn, .footer-cta { border: 1px solid CanvasText; }
  .mobile-nav, .contact-modal__dialog { border: 1px solid CanvasText; }
}

/* Corrección de iconos/imagenes por defecto */
img, svg { vertical-align: middle; }

/* Mejora de accesibilidad en nav móvil (tamaño objetivo) */
.mobile-nav ul li a { min-height: 44px; }

/* Botón volver arriba: asegurar contraste del ícono en tema gradiente */
.scroll-to-top, .footer-cta { color: #041023; }

/* Fin de mejoras */


/* ========================================================================== */
/*  Overrides de precedencia para la “cebolla” en Intellidev (final)          */
/*  Garantiza anillos y oculta bloques verticales, sin eliminar reglas previas*/
/* ========================================================================== */

.hero-visual--intellidev .ai-onion-layers {
  position: relative;
  width: clamp(280px, 42vw, 560px);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(85% 85% at 82% 82%, rgba(104,78,255,0.28) 0%, rgba(104,78,255,0.10) 55%, transparent 60%),
    radial-gradient(60% 60% at 88% 85%, rgba(36,152,255,0.22) 0%, transparent 70%),
    rgba(7,12,26,0.55);
  box-shadow: inset 0 0 60px rgba(113,66,255,0.15);
}

.hero-visual--intellidev .ai-onion-layers .layer-content { display: none !important; }

.hero-visual--intellidev .ai-layer {
  position: absolute;
  right: 2rem !important;
  left: auto !important;
  bottom: 2rem !important;
  transform: none !important;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(127,157,255,0.16);
  box-shadow: inset 0 0 40px rgba(113,66,255,0.08), 0 0 50px rgba(113,66,255,0.10);
  background: radial-gradient(closest-side, rgba(113,66,255,0.12), transparent 70%);
}

.hero-visual--intellidev .ai-layer--core    { width: 110px; height: 110px; border-color: rgba(179,157,255,0.45); box-shadow: 0 0 120px rgba(113,66,255,0.35), inset 0 0 40px rgba(113,66,255,0.25); }
.hero-visual--intellidev .ai-layer--ml      { width: 200px; height: 200px; }
.hero-visual--intellidev .ai-layer--dl      { width: 290px; height: 290px; }
.hero-visual--intellidev .ai-layer--rag     { width: 380px; height: 380px; }
.hero-visual--intellidev .ai-layer--applied { width: 470px; height: 470px; }


/* === FIX 1: Solo mostrar el carrusel de tecnologías ======================= */
/* Oculta la grilla estática de logos debajo del carrusel */
.section-tech .tech-icons-grid { 
  display: none !important; 
}

/* Bordes con fade para look premium en el carrusel */
.tech-carousel {
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  border: 1px solid rgba(120,150,220,0.16);
  box-shadow: inset 0 0 0 1px rgba(120,150,220,0.06);
}

/* Asegura SOLO dos filas animadas y pausa al hover (opcional) */
.tech-carousel__row { animation: tech-marquee 26s linear infinite; }
.tech-carousel__row.is-reverse { animation-direction: reverse; }
.tech-carousel:hover .tech-carousel__row { animation-play-state: paused; }

/* === FIX 2: Cebolla con títulos embebidos (pills) ======================== */
/* Anula la regla previa que ocultaba los contenidos de las capas */
.ai-onion-layers .layer-content { 
  display: block !important; 
  position: absolute; 
  pointer-events: none;
}

/* Mostramos solo el título como pill elegante; ocultamos descripciones/listas */
.ai-onion-layers .layer-content p,
.ai-onion-layers .layer-tech { 
  display: none !important; 
}

/* Estilo del pill (título) */
.ai-onion-layers .layer-content h4 {
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  color: #cfe3ff;
  background: rgba(8,16,34,0.65);
  border: 1px solid rgba(165,186,255,0.28);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 26px -12px rgba(113,66,255,0.5);
  backdrop-filter: blur(4px);
  pointer-events: auto;   /* permite hover si quisieras tooltip */
}

/* Punto luminoso “anclando” el pill al anillo */
.ai-onion-layers .layer-content h4::before {
  content: "";
  position: absolute;
  left: -8px; top: 50%;
  width: 6px; height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 14px #8b5cf6, 0 0 30px rgba(139,92,246,.6);
}

/* Posicionamiento de cada título sobre su anillo (ajustado a tu layout) */
.ai-layer--core   .layer-content { bottom: 6%;  right: 8%;  }
.ai-layer--ml     .layer-content { top: 6%;     right: 8%;  }
.ai-layer--dl     .layer-content { bottom: 10%; left: 10%;  }
.ai-layer--rag    .layer-content { top: 38%;    left: 12%;  }
.ai-layer--applied .layer-content{ bottom: 10%; right: 12%; }

/* Extra: un leve glow dinámico en los anillos para más impacto visual */
.ai-layer {
  box-shadow: inset 0 0 40px rgba(113,66,255,0.10), 0 0 60px rgba(113,66,255,0.08);
}
.ai-layer--core {
  box-shadow: 0 0 120px rgba(113,66,255,0.35), inset 0 0 40px rgba(113,66,255,0.25);
}

/* Responsivo: reubica pills cuando el contenedor se achica */
@media (max-width: 980px) {
  .ai-layer--ml     .layer-content { top: 8%;  right: 8%; }
  .ai-layer--dl     .layer-content { bottom: 8%; left: 8%; }
  .ai-layer--rag    .layer-content { top: 40%; left: 10%; }
  .ai-layer--applied .layer-content{ bottom: 8%; right: 10%; }
}
@media (max-width: 700px) {
  /* Si decides ocultar la cebolla en móvil, no hace falta reubicar */
  /* Si la mantienes visible, puedes compactar los pills: */
  .ai-onion-layers .layer-content h4 { font-size: .7rem; padding: 4px 8px; }
}

/* Estilo para mostrar descripción al hacer hover */
.ai-layer:hover::after {
  content: attr(data-description);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* === FIX: Suite Zeron · Productos – fondo por defecto y paneles transparentes === */

/* 1) Asegurá un id o clase al wrapper de la sección (ver nota abajo) */
#suite-zeron,
.section-suite,
.suite-products {
  background:
    radial-gradient(circle at 18% -10%, var(--bg-gradient-one) 0%, transparent 55%),
    radial-gradient(circle at 82% 10%, var(--bg-gradient-two) 0%, transparent 40%),
    linear-gradient(180deg, rgba(3,10,24,.94) 0%, rgba(2,6,16,.98) 38%, #030915 100%) !important;
}

/* 2) Paneles y tarjetas dentro de la suite: sin fondos sólidos */
#suite-zeron .tab-panel,
.section-suite .tab-panel,
.suite-products .tab-panel,
#suite-zeron .card,
.section-suite .card,
.suite-products .card,
#suite-zeron [class*="panel"],
.section-suite [class*="panel"],
.suite-products [class*="panel"]{
  background: transparent !important;
  box-shadow: none;         /* evitá “bloques” blancos */
  border-color: var(--border-subtle);
}

/* 3) Estado activo del tab: que NO cambie el tema a claro */
.tab-button.is-active {
  background: rgba(75,182,255,.14);
  border: 1px solid rgba(75,182,255,.30);
  color: var(--text-primary);
}

/* ========================================================================== */
/*  EDUTECH – Background & Contrast FIX                                       */
/*  Why: Headline and body text in the Edutech hero looked washed out due to  */
/*  overlay/gradient styling. We force a darker base, remove any gradient-    */
/*  text/alpha on headings inside the section, and ensure normal blend mode.  */
/*  Scope: Only affects .page-hero--edutech and elements inside that section. */
/* ========================================================================== */

.page-hero--edutech {
  position: relative;
  isolation: isolate;
  /* Solid dark base to guarantee contrast regardless of global glows */
  background: linear-gradient(180deg, #081225 0%, #061022 55%, #040b19 100%) !important;
}

.page-hero--edutech::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Controlled, dim glows that won't wash out text */
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(39,78,174,0.18), transparent 55%),
    radial-gradient(800px 480px at 88% 12%, rgba(62,207,247,0.14), transparent 60%);
  opacity: .65;
  z-index: -1;
}

.page-hero--edutech .hero-copy,
.page-hero--edutech .hero-copy p,
.page-hero--edutech h1,
.page-hero--edutech h2,
.page-hero--edutech h3 {
  color: var(--text-primary) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

/* If any gradient-text utility is used, neutralize it within Edutech */
.page-hero--edutech [class*="gradient-text"],
.page-hero--edutech .gradient-text,
.page-hero--edutech .hero-title,
.page-hero--edutech .hero-title.gradient,
.page-hero--edutech .hero-copy h1 {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  text-fill-color: currentColor !important;
}

/* Ensure the visual card stays crisp without brightening the whole section */
.page-hero--edutech .hero-visual {
  background: linear-gradient(140deg, rgba(16,29,52,0.92), rgba(9,18,36,0.95)) !important;
  border: 1px solid rgba(94,142,210,0.22) !important;
  box-shadow: 0 34px 76px -56px rgba(8,14,28,0.9) !important;
}

/* Buttons on this hero keep accessible contrast */
.page-hero--edutech .btn { color: #041023 !important; }
.page-hero--edutech .btn-secondary { color: var(--text-primary) !important; border-color: rgba(124,150,199,0.5) !important; }

/* Mobile/tablet paddings to prevent the glow from overlapping text edges */
@media (max-width: 980px) {
  .page-hero--edutech { padding-top: 120px !important; padding-bottom: 90px !important; }
}

@media (max-width: 600px) {
  .page-hero--edutech { padding-top: 100px !important; padding-bottom: 80px !important; }
  .page-hero--edutech h1 { line-height: 1.12 !important; }
}
/* ==========================================================================
   Zeron · Edutech — Global Stylesheet (Full)
   Unifica el fondo oscuro y corrige bandas claras en TODAS las secciones.
   Producción-ready. Compatible con Bootstrap/Tailwind/utilidades comunes.
   ========================================================================== */

/* ------------------------------
   0) Variables (CSS Custom Props)
   ------------------------------ */
:root{
  /* Paleta base */
  --bg-base: #0b162c;
  --bg-1: #0d1b33;
  --bg-2: #0e203a;
  --bg-elevated: rgba(16, 28, 52, 0.88);
  --bg-glass: rgba(16, 28, 52, 0.72);
  --bg-strong: rgba(16, 28, 52, 0.94);

  --accent-1: #4bb6ff;  /* azul claro */
  --accent-2: #6a6cff;  /* violeta */
  --accent-3: #2dd4bf;  /* turquesa */
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  --text-primary: #f4f7ff;
  --text-secondary: #a7b3cc;
  --text-muted: #8b95ad;

  --border-soft: rgba(86,116,169,0.28);
  --border-strong: rgba(86,116,169,0.42);

  /* Sombra */
  --shadow-1: 0 8px 30px rgba(0,0,0,0.35);
  --shadow-2: 0 12px 40px rgba(0,0,0,0.45);

  /* Layout */
  --container-w: 1180px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --gap: 24px;
}

/* ------------------------------
   1) Reset + Tipografía
   ------------------------------ */
*,
*::before,
*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }
html, body{ height:100%; background:#0b162c; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text-primary);
  background-color: var(--bg-base); /* Fallback sólido */
  line-height:1.55;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Links y selección */
a{ color:var(--accent-1); text-decoration:none; }
a:hover{ text-decoration:underline; }
::selection{ background:rgba(75,182,255,.25); color:var(--text-primary); }

/* ------------------------------
   2) Canvas global oscuro con degradé
   ------------------------------ */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  transform:translateZ(0);
  background:
    radial-gradient(1200px 600px at -10% 0%, rgba(39,78,174,0.18), transparent 60%),
    radial-gradient(1000px 700px at 110% 30%, rgba(62,207,247,0.12), transparent 60%),
    linear-gradient(180deg, #0b162c 0%, var(--bg-1) 35%, var(--bg-2) 60%, #0b162c 100%);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(106,108,255,0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 100%, rgba(75,182,255,0.08), transparent 60%);
  mix-blend-mode: screen;
}

/* ------------------------------
   3) Contenedores y helpers de layout
   ------------------------------ */
.container{
  width: min(100% - 40px, var(--container-w));
  margin-inline: auto;
}

.section{
  position: relative;
  padding: clamp(48px, 5vw, 96px) 0;
  background: transparent; /* clave: sin bandas */
}
.section .container{ position:relative; z-index:1; }
.section + .section{ border-top:1px solid rgba(255,255,255,0.04); }

/* Variantes por si el HTML trae clases distintas */
.block, .feature, .features, .slice, .band, .module, .panel-section{
  position:relative; padding: clamp(48px,5vw,96px) 0; background:transparent;
}

/* ------------------------------
   4) Barra de navegación
   ------------------------------ */
.navbar{
  position: sticky;
  top:0; z-index:50;
  backdrop-filter: saturate(120%) blur(10px);
  background: linear-gradient(180deg, rgba(11,22,44,0.75), rgba(11,22,44,0.35));
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.navbar .container{ display:flex; align-items:center; gap:16px; min-height:64px; }
.navbar a{ color:var(--text-secondary); text-decoration:none; }
.navbar a:hover{ color:var(--text-primary); }

/* ------------------------------
   5) Hero
   ------------------------------ */
.hero{ padding-top:72px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(20px, 3.5vw, 40px);
  align-items:center;
}
.hero h1{ 
  font-size: clamp(32px, 4.2vw, 56px);
  line-height:1.05;
  margin:0 0 16px;
}
.hero p.lead{
  color:var(--text-secondary);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 58ch;
  margin: 8px 0 28px;
}
.hero .badges{ display:flex; gap:10px; flex-wrap:wrap; }

/* ------------------------------
   6) Componentes (cards, panels, botones, pills)
   ------------------------------ */
.card{
  background: var(--bg-glass);
  border:1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 18px 18px;
  color:var(--text-primary);
}
.card.solid{ background: var(--bg-elevated); }
.card.inverse{ background: var(--bg-strong); border-color:var(--border-strong); }
.card .title{ margin:0 0 8px; font-weight:700; }

.panel{
  background: var(--bg-strong);
  border:1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2);
  padding: clamp(18px, 2.2vw, 26px);
}

.btn{
  --_pad-x:18px; --_pad-y:10px;
  display:inline-flex; align-items:center; gap:10px;
  padding: var(--_pad-y) var(--_pad-x);
  border-radius: 999px;
  border:1px solid transparent;
  font-weight:600; letter-spacing:.02em;
  text-decoration:none; cursor:pointer;
  transition: transform .12s ease, filter .12s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.btn-primary{
  color:#0c1222;
  background-image: var(--accent-gradient);
  border-color: rgba(255,255,255,0.08);
}
.btn-primary:hover{ filter: brightness(1.06); }

.btn-secondary{
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
.btn-secondary:hover{ background: rgba(255,255,255,0.10); }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 12px;
  font-size:12px; font-weight:700;
  color: var(--accent-1);
  background: rgba(75,182,255,0.12);
  border: 1px solid rgba(75,182,255,0.25);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing:.08em;
}

/* Mini dashboard */
.mini-dashboard{ display:grid; gap:14px; }
.mini-dashboard .kpi{
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding:12px;
}
.mini-dashboard .kpi strong{ font-size: 22px; }

/* ------------------------------
   7) Soluciones por segmento (tiles) + Suite de productos
   ------------------------------ */
.tiles{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 24px);
}
.tile{
  background: var(--bg-elevated);
  border:1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 18px 18px 16px;
}
.tile h4{ margin:0 0 6px; }
.tile p{ color:var(--text-secondary); margin: 0 0 12px; }
.tile .tile-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.tile .metric{ font-weight:700; color:var(--text-primary); }

/* Bloque Suite (tabs/chips + panel con mini-graf) */
.suite{ background:transparent; }
.suite .chips{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.suite .demo-card{ border-radius: var(--radius-xl); }

/* ------------------------------
   8) Especialistas / features (3 columnas)
   ------------------------------ */
.features-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.feature-item{
  background: var(--bg-elevated);
  border:1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 18px;
}
.feature-item p{ color:var(--text-secondary); }

/* ------------------------------
   9) CTA, Logos, Listas, Badges
   ------------------------------ */
.cta{
  background:transparent;
}
.cta .cta-box{
  background: var(--bg-strong);
  border:1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2);
  padding: clamp(22px, 2.5vw, 32px);
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}

.logos{ display:flex; gap:28px; flex-wrap:wrap; align-items:center; opacity:.9; }
.logos img{ height:28px; filter:grayscale(100%) contrast(110%); opacity:.85; }
.logos img:hover{ filter:none; opacity:1; }

/* ------------------------------
   10) Tablas y listas (dashboard/insights)
   ------------------------------ */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background: var(--bg-elevated);
  border:1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow:hidden;
  color:var(--text-primary);
}
thead th{
  text-align:left; font-weight:700; font-size:14px;
  padding:12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom:1px solid var(--border-soft);
}
tbody td{ padding:12px 14px; border-bottom:1px solid rgba(255,255,255,0.06); color:var(--text-secondary); }
tbody tr:last-child td{ border-bottom:none; }

/* ------------------------------
   11) Formularios (contacto / demo / newsletter)
   ------------------------------ */
input, select, textarea{
  width:100%;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  color:var(--text-primary);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
}
input::placeholder, textarea::placeholder{ color:rgba(255,255,255,0.45); }
input:focus, select:focus, textarea:focus{
  border-color: rgba(75,182,255,0.7);
  box-shadow: 0 0 0 3px rgba(75,182,255,0.18);
}

/* ------------------------------
   12) Tipografía + utilidades
   ------------------------------ */
h1,h2,h3,h4,h5{ color:var(--text-primary); margin:0 0 10px; }
p,li,small{ color:var(--text-secondary); }

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

.mt-1{ margin-top:8px; }  .mt-2{ margin-top:12px; } .mt-3{ margin-top:18px; }
.mt-4{ margin-top:24px; } .mt-5{ margin-top:32px; }
.mb-1{ margin-bottom:8px; } .mb-2{ margin-bottom:12px; } .mb-3{ margin-bottom:18px; }
.mb-4{ margin-bottom:24px; } .mb-5{ margin-bottom:32px; }
.pt-0{ padding-top:0!important; } .pb-0{ padding-bottom:0!important; }
.round-md{ border-radius:var(--radius-md); }
.round-lg{ border-radius:var(--radius-lg); }
.round-xl{ border-radius:var(--radius-xl); }
.round-2xl{ border-radius:var(--radius-2xl); }
.shadow-1{ box-shadow:var(--shadow-1); }
.shadow-2{ box-shadow:var(--shadow-2); }

/* ------------------------------
   13) Footer
   ------------------------------ */
.footer{
  border-top:1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(11,22,44,0.45), rgba(11,22,44,0.85));
  padding: 32px 0;
}
.footer p, .footer a{ color:var(--text-secondary); }
.footer a:hover{ color:var(--text-primary); }

/* ==========================================================================
   14) EDUTECH — Forzado de modo oscuro y antibandas
   ========================================================================== */
body.edutech,
body[data-page="edutech"],
.edutech-page{
  color: var(--text-primary);
  background: none; /* usamos el canvas global */
}

/* Todas las secciones y variantes comunes deben ser transparentes */
body.edutech section,
body.edutech .section,
body.edutech .section-alt,
body.edutech .band,
body.edutech .slice,
body.edutech .module,
body.edutech .panel-section,
body.edutech [class*="section"],
body[data-page="edutech"] section,
body[data-page="edutech"] .section,
body[data-page="edutech"] .section-alt,
body[data-page="edutech"] .band,
body[data-page="edutech"] .slice,
body[data-page="edutech"] .module,
body[data-page="edutech"] .panel-section,
body[data-page="edutech"] [class*="section"],
.edutech-page section,
.edutech-page .section,
.edutech-page .section-alt,
.edutech-page .band,
.edutech-page .slice,
.edutech-page .module,
.edutech-page .panel-section,
.edutech-page [class*="section"]{
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none;
}

/* Clases frecuentes de fondos claros (Bootstrap / utilidades) */
body.edutech .bg-white,
body.edutech .bg-light,
body.edutech .bg-body,
body.edutech .bg-gray,
body.edutech .bg-100,
body.edutech .bg-200,
body.edutech .bg-300,
body.edutech .bg-surface,
body.edutech .surface,
body.edutech .card-bg-light,
body[data-page="edutech"] .bg-white,
body[data-page="edutech"] .bg-light,
body[data-page="edutech"] .bg-body,
body[data-page="edutech"] .bg-gray,
body[data-page="edutech"] .bg-100,
body[data-page="edutech"] .bg-200,
body[data-page="edutech"] .bg-300,
body[data-page="edutech"] .bg-surface,
body[data-page="edutech"] .surface,
.edutech-page .bg-white,
.edutech-page .bg-light,
.edutech-page .bg-body,
.edutech-page .bg-gray,
.edutech-page .bg-100,
.edutech-page .bg-200,
.edutech-page .bg-300,
.edutech-page .bg-surface,
.edutech-page .surface{
  background: transparent !important;
  background-color: transparent !important;
}

/* Reseteo de tarjetas claras heredadas */
body.edutech .card,
body[data-page="edutech"] .card,
.edutech-page .card{
  background: var(--bg-glass) !important;
  border-color: var(--border-soft) !important;
  color: var(--text-primary);
}
body.edutech .card.border-0,
body[data-page="edutech"] .card.border-0,
.edutech-page .card.border-0{
  border: 1px solid var(--border-soft) !important;
}

/* Secciones pares que suelen tener “striping” */
body.edutech .section:nth-child(even),
body[data-page="edutech"] .section:nth-child(even),
.edutech-page .section:nth-child(even){
  background: transparent !important;
}

/* Elementos con estilo inline claro */
body.edutech [style*="background:#fff"],
body.edutech [style*="background: #fff"],
body.edutech [style*="background-color:#fff"],
body.edutech [style*="background-color: #fff"],
body[data-page="edutech"] [style*="background:#fff"],
body[data-page="edutech"] [style*="background: #fff"],
body[data-page="edutech"] [style*="background-color:#fff"],
body[data-page="edutech"] [style*="background-color: #fff"],
.edutech-page [style*="background:#fff"],
.edutech-page [style*="background: #fff"],
.edutech-page [style*="background-color:#fff"],
.edutech-page [style*="background-color: #fff"]{
  background: transparent !important;
  background-color: transparent !important;
}

/* Canvas/graficos */
body.edutech canvas,
body[data-page="edutech"] canvas,
.edutech-page canvas{ background: transparent !important; }

/* Tarjetas de “Soluciones por segmento” */
body.edutech .tiles .tile,
body[data-page="edutech"] .tiles .tile,
.edutech-page .tiles .tile{
  background: var(--bg-elevated) !important;
  border-color: var(--border-soft) !important;
  box-shadow: var(--shadow-1);
}

/* Botones en contexto oscuro */
body.edutech .btn-primary,
body[data-page="edutech"] .btn-primary,
.edutech-page .btn-primary{
  color:#0c1222 !important;
  background-image: var(--accent-gradient) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
body.edutech .btn-secondary,
body[data-page="edutech"] .btn-secondary,
.edutech-page .btn-secondary{
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

/* Pills */
body.edutech .pill,
body[data-page="edutech"] .pill,
.edutech-page .pill{
  color: var(--accent-1) !important;
  background: rgba(75,182,255,0.12) !important;
  border-color: rgba(75,182,255,0.25) !important;
}

/* Suite Zeron · Productos */
body.edutech .suite,
body[data-page="edutech"] .suite,
.edutech-page .suite{ background: transparent !important; }
body.edutech .suite .panel,
body[data-page="edutech"] .suite .panel,
.edutech-page .suite .panel{ background: var(--bg-strong) !important; }

/* Footer oscurecido */
body.edutech .footer,
body[data-page="edutech"] .footer,
.edutech-page .footer{
  background: linear-gradient(180deg, rgba(11,22,44,0.35), rgba(11,22,44,0.85)) !important;
}

/* ------------------------------
   15) FAQ
   ------------------------------ */
.faq{ background:transparent; }
.faq .item{
  background: var(--bg-elevated);
  border:1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding:16px 18px;
}
.faq .q{ font-weight:700; }
.faq .a{ color:var(--text-secondary); }

/* ------------------------------
   16) Responsive
   ------------------------------ */
@media (max-width: 1140px){
  .container{ width:min(100% - 28px, var(--container-w)); }
}
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr; }
  .tiles, .features-grid{ grid-template-columns: 1fr 1fr; }
  .cta .cta-box{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 680px){
  .tiles, .features-grid{ grid-template-columns: 1fr; }
  .navbar .container{ min-height:56px; }
}

/* ------------------------------
   17) Accesibilidad / Focus
   ------------------------------ */
:focus-visible{
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}


/* ===== FIX: Mini-dashboard (KPIs/acciones) que se sale del panel ===== */

/* El contenedor nunca debe desbordar ni perder el radio */
.dashboard-card,
.hero .card .mini-dashboard,
.panel .mini-dashboard{
  max-width: 100%;
  overflow: hidden;
  border-radius: inherit;
}

/* Grilla de KPIs */
.mini-dashboard{ display:grid; gap:14px; }
.mini-dashboard .kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}

/* Cada KPI no puede forzar ancho de columna */
.mini-dashboard .kpi{
  min-width:0;
  overflow:hidden;               /* clamp duro */
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px;
  box-sizing:border-box;
}

/* Títulos largos (p.ej. “Riesgo de abandono”) */
.mini-dashboard .kpi h6{
  margin:0 0 6px;
  font-size:12px;
  line-height:1.2;
  white-space:normal !important; /* NO nowrap */
  overflow-wrap:anywhere;        /* parte palabras largas si hace falta */
  word-break:break-word;
}

/* Números y minigráficas ajustados */
.mini-dashboard .kpi strong{
  font-size:clamp(18px, 2.4vw, 22px);
  line-height:1;
}
.mini-dashboard .kpi .spark{
  width:100%;
  height:36px;
  margin-top:6px;
  opacity:.9;
}

/* Fila de acciones (Ingesta/IA/Insights/Intervenciones) */
.mini-dashboard .actions{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}
.mini-dashboard .actions .action{
  min-width:0;
  overflow:hidden;
  white-space:normal;            /* permite varias líneas */
  text-align:center;
  padding:10px 8px;
  border-radius:12px;
  border:1px dashed rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  font-size:12px;
  color:var(--text-2);
}

/* El panel/card debe recortar su contenido */
.card, .panel{ overflow:hidden; }

/* Responsivo: evitar que se amontone y se salga */
@media (max-width: 900px){
  .mini-dashboard .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .mini-dashboard .kpis{ grid-template-columns: 1fr; }
  .mini-dashboard .actions{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}