:root {
  --ink: #102c30;
  --ink-soft: #496166;
  --paper: #f4f1e8;
  --paper-light: #fbfaf5;
  --teal: #167d86;
  --teal-dark: #0b4d53;
  --navy: #315e96;
  --orange: #e66b3d;
  --gold: #e2a447;
  --clay: #a15843;
  --line: #d8d9cf;
  --white: #ffffff;
  --shadow: 0 20px 60px rgb(23 49 52 / 9%);
  --serif: "Space Grotesk", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --lilac: #8d74d8;
  --blue: #4d8de8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 118px; }
body { position: relative; z-index: 0; margin: 0; background: #f7f9fb; color: var(--ink); font-family: var(--sans); line-height: 1.55; }
body::before { content: ""; position: fixed; z-index: -2; inset: -35%; background: radial-gradient(circle at 18% 24%, rgb(76 190 158 / 42%), transparent 31%), radial-gradient(circle at 80% 22%, rgb(123 103 210 / 36%), transparent 33%), radial-gradient(circle at 62% 82%, rgb(68 137 225 / 36%), transparent 35%), linear-gradient(135deg, #e8fbf5, #eeeafd 48%, #e8f2ff); background-size: 140% 140%; animation: ambient-gradient 20s ease-in-out infinite alternate; transform: translate3d(0, 0, 0); }
body::after { content: ""; position: fixed; z-index: -1; inset: 0; background: rgb(249 251 252 / 48%); pointer-events: none; }
@keyframes ambient-gradient { 0% { background-position: 0% 20%; transform: scale(1) rotate(0deg); } 50% { background-position: 75% 55%; transform: scale(1.06) rotate(1.4deg); } 100% { background-position: 25% 90%; transform: scale(1.02) rotate(-1deg); } }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 10px 14px; background: var(--white); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* NAVEGACIÓN */
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgb(255 255 255 / 12%); background: rgb(12 31 43 / 82%); color: var(--white); backdrop-filter: blur(22px) saturate(145%); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 38px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 900; letter-spacing: -.03em; text-decoration: none; }
.brand em { color: #79d0cc; font-style: normal; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #7dd1ce; color: #7dd1ce; font: 20px var(--serif); }
.site-header nav { display: flex; gap: 15px; margin-right: auto; }
.site-header nav a { display: inline-flex; align-items: center; gap: 5px; color: #d1dfdc; font-size: 11px; font-weight: 700; text-decoration: none; }
.site-header nav a .material-symbols-rounded { color: #8cd2cb; font-size: 17px; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--white); }
.server-state { display: flex; align-items: center; gap: 8px; color: #c6d6d3; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.server-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgb(226 164 71 / 14%); }
.server-state.ready i { background: #6ed2a0; box-shadow: 0 0 0 5px rgb(110 210 160 / 14%); }
.server-state.failed i { background: #f28671; }

/* PORTADA */
.hero { position: relative; overflow: hidden; background: linear-gradient(128deg, rgb(11 48 50 / 96%), rgb(40 47 89 / 91%) 58%, rgb(61 48 97 / 91%)); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(90deg, transparent 49.6%, #9ad6d2 50%, transparent 50.4%), linear-gradient(transparent 49.6%, #9ad6d2 50%, transparent 50.4%); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent 0, #000 70%); }
.hero-grid { position: relative; min-height: 680px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; padding-block: 82px; }
.kicker { display: block; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .section h2 { margin: 12px 0 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.055em; line-height: .98; }
.hero h1 { max-width: 720px; font-size: clamp(54px, 7vw, 91px); }
.hero h1 span { color: #8fd6d0; }
.hero-copy > p { max-width: 680px; margin: 28px 0 0; color: #c6d7d5; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; padding: 0 20px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .tabs button:focus-visible, .chart-info:focus-visible { outline: 3px solid #f2bd6e; outline-offset: 3px; }
.button.primary { background: var(--orange); color: var(--white); }
.button.primary:hover { background: #c9552d; }
.button.quiet { border-color: rgb(255 255 255 / 25%); color: var(--white); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.hero-proof { display: flex; gap: 32px; margin: 44px 0 0; padding: 28px 0 0; border-top: 1px solid rgb(255 255 255 / 14%); list-style: none; }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font: 24px var(--serif); }
.hero-proof span { color: #9fb6b5; font-size: 11px; }
.hero-visual { position: relative; border: 1px solid rgb(255 255 255 / 18%); padding: 28px; background: rgb(255 255 255 / 6%); box-shadow: 30px 34px 0 rgb(4 21 23 / 35%); }
.visual-head { display: flex; justify-content: space-between; color: #a9bfbd; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.live-pill { color: #84d7ae; }
.sample-ticket { display: flex; flex-direction: column; gap: 7px; margin-top: 26px; border-left: 4px solid var(--orange); padding: 18px 20px; background: #f7f3e8; color: var(--ink); }
.sample-ticket small, .sample-ticket span { color: var(--ink-soft); font-size: 11px; }
.sample-ticket strong { font: 21px/1.2 var(--serif); }
.signal-line { height: 58px; display: flex; justify-content: space-around; align-items: center; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.signal-line i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgb(226 164 71 / 10%); }
.preview-results { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.preview-results div { display: flex; flex-direction: column; gap: 5px; border-right: 1px solid rgb(255 255 255 / 14%); padding: 4px 15px; }
.preview-results div:last-child { border-right: 0; }
.preview-results span { color: var(--orange); font-size: 10px; font-weight: 900; }
.preview-results strong { font: 21px var(--serif); }
.preview-results small, .hero-visual > p { color: #9fb6b5; font-size: 10px; }
.hero-visual > p { margin: 24px 0 0; }

/* SECCIONES */
.section { padding-block: 94px; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; margin-bottom: 40px; }
.section h2 { font-size: clamp(40px, 5vw, 62px); }
.section-heading > p { margin: 0; color: var(--ink-soft); }
.instruction-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.instruction-grid li { min-height: 235px; display: flex; flex-direction: column; gap: 36px; border-right: 1px solid var(--line); padding: 26px; }
.instruction-grid li:last-child { border-right: 0; }
.instruction-grid li > span { color: var(--orange); font: 19px var(--serif); }
.instruction-grid strong { font-size: 17px; }
.instruction-grid p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
.instruction-grid code { color: var(--teal-dark); }
.runbook { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; margin-top: 26px; padding: 20px 24px; background: #e7ede8; }
.runbook > div { display: flex; align-items: center; gap: 14px; }
.runbook-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.runbook p { margin: 2px 0 0; color: var(--ink-soft); font-size: 12px; }
.runbook code { padding: 8px 12px; background: var(--white); color: var(--teal-dark); font-size: 12px; }
.runbook a { color: var(--teal-dark); font-size: 12px; font-weight: 800; }

/* FUNCIONAMIENTO */
.operation-section { background: rgb(255 255 255 / 52%); backdrop-filter: blur(18px); }
.operation-flow { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid rgb(255 255 255 / 70%); border-radius: 24px; background: rgb(255 255 255 / 72%); box-shadow: 0 25px 70px rgb(40 58 90 / 10%); }
.operation-flow article { position: relative; min-height: 260px; padding: 28px; border-right: 1px solid #e3e8ed; }
.operation-flow article:last-child { border-right: 0; }
.operation-flow article::after { content: "arrow_forward"; position: absolute; z-index: 2; top: 43px; right: -15px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #dce5e9; border-radius: 50%; background: #fff; color: var(--teal); font: 18px "Material Symbols Rounded"; }
.operation-flow article:last-child::after { display: none; }
.operation-flow article > .material-symbols-rounded { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 14px; background: linear-gradient(135deg, rgb(33 146 125 / 14%), rgb(105 93 201 / 15%)); color: var(--teal-dark); font-size: 25px; }
.operation-flow small, .purpose-label { color: var(--lilac); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.operation-flow strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.operation-flow p { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; }
.model-purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.model-purpose-grid article { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; border: 1px solid rgb(255 255 255 / 75%); border-radius: 20px; padding: 25px; background: rgb(255 255 255 / 74%); box-shadow: 0 18px 45px rgb(43 60 89 / 8%); }
.purpose-icon { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; }
.purpose-points .purpose-icon { background: linear-gradient(135deg, #268f7c, #55b796); }
.purpose-priority .purpose-icon { background: linear-gradient(135deg, #4f7fce, #7868ca); }
.purpose-complexity .purpose-icon { background: linear-gradient(135deg, #7b68c9, #a874cb); }
.model-purpose-grid h3 { margin: 3px 0 16px; font: 700 23px var(--serif); }
.model-purpose-grid p, .model-purpose-grid small { grid-column: 1 / -1; }
.model-purpose-grid p { margin: 9px 0 0; color: var(--ink-soft); font-size: 12px; }
.model-purpose-grid p strong { color: var(--ink); }
.model-purpose-grid small { margin-top: 18px; border-top: 1px solid #e3e7ea; padding-top: 14px; color: #697c82; font-size: 10px; }
.history-explanation { margin-top: 22px; overflow: hidden; border: 1px solid rgb(255 255 255 / 75%); border-radius: 22px; background: linear-gradient(120deg, rgb(235 249 244 / 88%), rgb(241 238 252 / 88%) 55%, rgb(234 244 255 / 88%)); box-shadow: 0 20px 55px rgb(43 60 89 / 8%); }
.history-heading { display: flex; align-items: center; gap: 15px; padding: 23px 25px 18px; }
.history-heading > .material-symbols-rounded { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: #6672c4; box-shadow: 0 9px 25px rgb(77 86 155 / 13%); }
.history-heading small { color: #6e5dac; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.history-heading h3 { margin: 3px 0 0; font: 700 23px var(--serif); }
.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid rgb(92 106 151 / 13%); }
.history-grid article { padding: 20px 25px; border-right: 1px solid rgb(92 106 151 / 13%); }
.history-grid article:last-child { border-right: 0; }
.history-grid strong { font-size: 12px; }
.history-grid p { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; }
.history-conclusion { margin: 0; padding: 17px 25px; color: #4f6168; font-size: 11px; }
.history-conclusion b { color: var(--ink); }

/* MODELOS */
.models-section { background: linear-gradient(135deg, rgb(10 46 48 / 94%), rgb(38 43 82 / 93%) 58%, rgb(64 45 92 / 92%)); color: var(--white); backdrop-filter: blur(18px); }
.light-heading > p { color: #a9bfbd; }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgb(255 255 255 / 14%); }
.model-card { min-width: 0; border-right: 1px solid rgb(255 255 255 / 14%); padding: 30px; }
.model-card:last-child { border-right: 0; }
.model-card header { display: flex; justify-content: space-between; align-items: center; }
.model-card header span { color: var(--orange); font: 22px var(--serif); }
.model-card header i { border: 1px solid rgb(255 255 255 / 18%); padding: 4px 8px; color: #b9cecc; font-size: 10px; font-style: normal; text-transform: uppercase; }
.model-card h3 { margin: 34px 0 10px; font: 500 31px var(--serif); }
.model-card > p { min-height: 74px; margin: 0; color: #b9cecc; font-size: 13px; }
.model-flow { display: flex; align-items: center; gap: 7px; margin: 25px 0; color: #b9cecc; font-size: 10px; }
.model-flow span { padding: 7px; background: rgb(255 255 255 / 7%); }
.model-flow b { color: var(--orange); }
.model-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 22px; border-block: 1px solid rgb(255 255 255 / 14%); }
.model-card dl div { display: flex; flex-direction: column; padding: 16px 0; }
.model-card dt { color: #93aaa8; font-size: 10px; text-transform: uppercase; }
.model-card dd { margin: 3px 0 0; font: 25px var(--serif); }
.model-card > small { color: #8fa6a5; font-size: 11px; }
.points-card { box-shadow: inset 0 4px var(--orange); }
.priority-card { box-shadow: inset 0 4px #6f9fdc; }
.complexity-card { box-shadow: inset 0 4px #71c7c4; }
.reference-strip { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 24px; margin-top: 20px; border-left: 4px solid var(--gold); padding: 18px 22px; background: rgb(255 255 255 / 6%); }
.reference-strip span { color: var(--gold); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.reference-strip p { margin: 0; color: #9fb6b5; font-size: 12px; }

/* ARTEFACTOS JOBLIB */
.joblib-section { background: rgb(246 248 252 / 69%); backdrop-filter: blur(18px); }
.joblib-route { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid rgb(255 255 255 / 78%); border-radius: 22px; background: rgb(255 255 255 / 77%); box-shadow: 0 24px 65px rgb(43 60 89 / 9%); }
.joblib-route article { position: relative; min-height: 245px; padding: 26px; border-right: 1px solid #e1e6eb; }
.joblib-route article:last-child { border-right: 0; }
.joblib-route article::after { content: "arrow_forward"; position: absolute; z-index: 2; top: 38px; right: -14px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #dce4ea; border-radius: 50%; background: #fff; color: #6776ca; font: 17px "Material Symbols Rounded"; }
.joblib-route article:last-child::after { display: none; }
.joblib-route article > .material-symbols-rounded { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 27px; border-radius: 13px; background: linear-gradient(135deg, #e1f5ed, #eee8fa); color: #5969b5; font-size: 24px; }
.joblib-route small { color: #6f5faf; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.joblib-route strong { display: block; margin-top: 7px; font-family: var(--serif); font-size: 18px; }
.joblib-route p { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; }
.joblib-route code, .joblib-input code { color: #5264aa; font-family: "Cascadia Code", Consolas, monospace; }
.artifact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.artifact-grid article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; border: 1px solid rgb(255 255 255 / 78%); border-radius: 15px; padding: 16px 18px; background: rgb(255 255 255 / 72%); }
.artifact-grid strong { font-size: 11px; word-break: break-word; }
.artifact-grid p { margin: 3px 0 0; color: var(--ink-soft); font-size: 9px; }
.artifact-grid i { border-radius: 999px; padding: 5px 9px; background: #eef1f8; color: #586aab; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.artifact-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 5px rgb(85 106 187 / 8%); }
.points-dot { background: #3aa58a; }
.priority-dot { background: #4e83d0; }
.complexity-dot { background: #8568c7; }
.reference-dot { background: #8f9aa0; }
.joblib-input { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 16px; margin-top: 16px; border-radius: 16px; padding: 17px 20px; background: linear-gradient(100deg, rgb(226 244 238 / 82%), rgb(238 234 250 / 82%)); }
.joblib-input > .material-symbols-rounded { color: #4e72b1; }
.joblib-input small { display: block; color: #6b5ba7; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.joblib-input code { font-size: 10px; }
.joblib-input p { margin: 0; color: var(--ink-soft); font-size: 10px; }

/* LABORATORIO */
.laboratory { display: grid; grid-template-columns: .88fr 1.12fr; overflow: visible; border: 1px solid var(--line); background: var(--white); box-shadow: 0 30px 80px rgb(28 48 47 / 13%); }
.prediction-form { position: relative; z-index: 4; border-right: 1px solid var(--line); padding: 32px; background: linear-gradient(145deg, #f4f2e9 0%, #eceee8 100%); }
.prediction-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orange), #e2a447 45%, var(--teal)); }
.form-head { display: flex; justify-content: space-between; margin-bottom: 24px; color: var(--ink-soft); font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field > span, .field > label { color: var(--ink); font-size: 12px; font-weight: 850; }
.field textarea, .field input, .field select { width: 100%; border: 1px solid #c9ccc3; border-radius: 0; background: var(--white); color: var(--ink); }
.field textarea { min-height: 118px; resize: vertical; padding: 14px; line-height: 1.45; }
.field input, .field select { height: 52px; padding: 0 12px; }
.field textarea:focus, .field input:focus, .field select:focus, .filters select:focus { outline: 3px solid rgb(22 125 134 / 18%); border-color: var(--teal); }
.field small { color: var(--ink-soft); font-size: 10px; }
.form-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 18px; }
.search-input-wrap { position: relative; }
.search-input-wrap input { padding: 0 46px 0 42px; border-color: #c7ced3; border-radius: 13px; box-shadow: 0 5px 18px rgb(25 53 53 / 5%); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.search-input-wrap input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgb(22 125 134 / 13%), 0 9px 25px rgb(25 53 53 / 9%); transform: translateY(-1px); }
.wide-field .search-input-wrap input { height: 62px; padding-right: 46px; font-size: 15px; font-weight: 650; }
.input-icon { position: absolute; z-index: 1; top: 50%; left: 15px; color: var(--teal); font-size: 23px; line-height: 1; transform: translateY(-52%); pointer-events: none; }
.clear-control { position: absolute; z-index: 2; top: 50%; right: 10px; width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #edf1f3; color: #61747a; cursor: pointer; transform: translateY(-50%); }
.clear-control:hover { background: #dfe7e8; color: var(--ink); }
.clear-control .material-symbols-rounded { font-size: 18px; }
.suggestion-panel { position: absolute; z-index: 30; top: calc(100% - 21px); right: 0; left: 0; max-height: 310px; overflow-y: auto; border: 1px solid #b9c3ba; border-radius: 8px; background: rgb(255 255 252 / 98%); box-shadow: 0 22px 45px rgb(14 42 43 / 19%); backdrop-filter: blur(12px); }
.suggestion-panel button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 14px; border: 0; border-bottom: 1px solid #e6e9e2; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.suggestion-panel button:last-child { border-bottom: 0; }
.suggestion-panel button:hover, .suggestion-panel button.active { background: #edf5f2; }
.suggestion-panel strong { font-size: 12px; line-height: 1.35; }
.suggestion-summary { position: sticky; z-index: 2; top: 0; padding: 9px 13px; border-bottom: 1px solid #e2e7e9; background: #f4f7f8; color: #5c7076; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.suggestion-empty { padding: 18px 14px; color: #667a80; font-size: 10px; text-align: center; }
.option-metadata { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-soft); font-size: 9px; line-height: 1.35; }
.option-metadata small { color: #718188; font-size: 9px; }
.option-tag, .selected-tag { display: inline-flex; align-items: center; width: fit-content; border: 1px solid transparent; border-radius: 999px; padding: 3px 8px; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .03em; line-height: 1.2; }
.tone-0 { border-color: #b8dfd3; background: #e7f7f1; color: #216d5d; }
.tone-1 { border-color: #d5c9f0; background: #f1ecfb; color: #654ba0; }
.tone-2 { border-color: #bfd7f3; background: #eaf3fd; color: #35689e; }
.field small.selected-meta { min-height: 22px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wide-field .suggestion-panel { top: calc(100% - 20px); }
.submit-button { width: 100%; margin-top: 25px; }
.form-feedback { min-height: 38px; margin: 13px 0 0; color: var(--ink-soft); font-size: 11px; }
.form-feedback.error { color: #a43c2a; }
.result-area { min-width: 0; min-height: 520px; padding: 30px; }
.result-placeholder { height: 100%; min-height: 450px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--ink-soft); }
.result-placeholder > span { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); font-size: 37px; }
.result-placeholder strong { color: var(--ink); font: 27px var(--serif); }
.result-placeholder p { max-width: 430px; margin: 8px auto 0; font-size: 13px; }
.result-summary { border-left: 4px solid var(--orange); padding: 12px 16px; background: #f6f1e8; }
.result-summary span { color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.result-summary p { margin: 5px 0 0; font: 18px var(--serif); }
.project-scope-note { margin: 12px 0 0; border-left: 3px solid var(--gold); padding: 9px 12px; background: #f7f0df; color: #6d5834; font-size: 11px; }
.prediction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.prediction-card { min-width: 0; border: 1px solid var(--line); padding: 18px; }
.prediction-label { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.prediction-label span { width: 27px; height: 27px; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: 9px; }
.prediction-card > strong { display: block; margin-top: 18px; font: 500 31px var(--serif); text-transform: capitalize; }
.prediction-card > p, .prediction-card > small { color: var(--ink-soft); font-size: 10px; }
.prediction-card > small { display: block; margin-top: 14px; }
.points-result { border-top: 4px solid var(--orange); }
.priority-result { border-top: 4px solid var(--navy); }
.complexity-result { border-top: 4px solid var(--teal); }
.probability-list { margin-top: 14px; }
.probability-list > div { display: grid; grid-template-columns: 50px 1fr 37px; align-items: center; gap: 6px; margin-top: 6px; font-size: 9px; text-transform: capitalize; }
.probability-list i { height: 5px; overflow: hidden; background: #e8ebe5; }
.probability-list i b { height: 100%; display: block; }
.reference-result { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 18px; margin-top: 16px; padding: 13px 16px; background: #eceee8; font-size: 11px; }
.reference-result span { color: var(--clay); font-weight: 900; text-transform: uppercase; }
.reference-result strong { font: 23px var(--serif); }
.reference-result p { margin: 0; color: var(--ink-soft); }

/* DASHBOARD */
.evidence-section { background: rgb(244 247 250 / 66%); backdrop-filter: blur(16px); }
.dashboard { border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); padding: 0 18px; }
.tabs { display: flex; align-self: stretch; }
.tabs button { position: relative; border: 0; padding: 18px 14px; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 800; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--teal-dark); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 10px; bottom: 0; left: 10px; height: 4px; background: var(--orange); }
.filters { display: flex; gap: 10px; }
.filters label { display: flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.filters select { max-width: 130px; height: 33px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 10px; }
.chart-status { padding: 11px 20px; background: #f2f2eb; color: var(--ink-soft); font-size: 11px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.chart-card { min-width: 0; padding: 24px; background: var(--white); }
.chart-card.wide { grid-column: span 2; }
.chart-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.chart-card header span { color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.chart-card h3 { margin: 4px 0 0; font: 500 22px var(--serif); }
.chart-info { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--teal-dark); font-family: var(--serif); cursor: help; }
.chart-wrap { min-height: 250px; display: grid; align-items: center; overflow-x: auto; margin-top: 18px; }
.chart-wrap svg { width: 100%; height: auto; overflow: visible; }
.chart-wrap svg text { fill: #586d70; font: 11px var(--sans); }
.chart-wrap svg .value-label { fill: var(--ink); font-weight: 800; }
.grid-line { stroke: #e2e5de; stroke-width: 1; }
.axis-line { stroke: #abb5b0; stroke-width: 1; }
[data-mark] { transition: opacity .15s ease; }
[data-mark]:hover { opacity: .7; }
.chart-copy { border-top: 1px solid var(--line); padding-top: 13px; }
.chart-copy p { margin: 4px 0; color: var(--ink-soft); font-size: 11px; }
.chart-copy strong { color: var(--ink); }
.empty-chart { min-height: 230px; display: grid; place-items: center; color: var(--ink-soft); text-align: center; }
.model-connection { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; }
.model-connection span, .model-connection strong { border: 1px solid var(--line); padding: 13px 16px; background: #f4f4ed; font-size: 12px; }
.model-connection b { color: var(--orange); }
.negative-result { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #bba78b; background: #f5f0e7; text-align: center; }
.negative-result span { color: var(--clay); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.negative-result strong { margin-top: 8px; font: 38px var(--serif); }
.negative-result p { margin: 5px 0 0; color: var(--ink-soft); }

/* TRAZABILIDAD */
.method-track { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); }
.method-track article { position: relative; min-height: 185px; border-right: 1px solid var(--line); padding: 24px; }
.method-track article:last-child { border-right: 0; }
.method-track article::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -12px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--paper-light); color: var(--orange); }
.method-track article:last-child::after { display: none; }
.method-track span { color: var(--orange); font-family: var(--serif); }
.method-track strong { display: block; margin-top: 25px; }
.method-track p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }
.limits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.limits-grid article { border-left: 4px solid var(--teal); padding: 18px 20px; background: #edf1eb; }
.limits-grid p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }
.site-footer { background: var(--ink); color: var(--white); }
.site-footer > div { min-height: 100px; display: flex; align-items: center; gap: 25px; }
.site-footer span { margin-right: auto; color: #9fb6b5; font-size: 11px; }
.site-footer a { color: #8fd6d0; font-size: 12px; font-weight: 800; text-decoration: none; }
.site-footer a { display: inline-flex; align-items: center; gap: 5px; }
.site-footer a i { font-size: 17px; font-style: normal; }

/* ACABADO MODERNO */
.brand-mark, .button, .runbook, .model-grid, .reference-strip, .laboratory, .dashboard, .chart-card, .limits-grid article { border-radius: 16px; }
.button { border-radius: 13px; }
.hero-visual { border-radius: 24px; background: rgb(255 255 255 / 9%); box-shadow: 24px 28px 70px rgb(7 16 35 / 25%); backdrop-filter: blur(16px); }
.sample-ticket { border-radius: 0 14px 14px 0; }
.instruction-grid { overflow: hidden; border: 1px solid rgb(255 255 255 / 68%); border-radius: 22px; background: rgb(255 255 255 / 60%); box-shadow: 0 18px 50px rgb(43 60 89 / 7%); }
.runbook { background: rgb(232 241 240 / 77%); box-shadow: 0 16px 40px rgb(36 59 70 / 7%); }
.model-grid, .laboratory, .dashboard { overflow: hidden; }
.model-card h3, .preview-results strong, .prediction-card > strong, .result-placeholder strong, .result-summary p, .reference-result strong, .hero-proof strong { font-family: var(--serif); }
.prediction-form { background: linear-gradient(145deg, rgb(248 249 247 / 96%), rgb(238 242 244 / 94%)); }
.prediction-form::before { background: linear-gradient(90deg, #45a98d, #7588dc 52%, #9b6bc8); }
.submit-button { background: linear-gradient(110deg, #167d72, #4d78c8 55%, #8064bf) !important; box-shadow: 0 13px 30px rgb(71 91 170 / 22%); }
.submit-button:hover { filter: brightness(1.06); }
.submit-button.is-loading { cursor: wait; filter: saturate(.65); }
.artifact-status { margin: 14px 0 0; border-left: 4px solid var(--teal); padding: 10px 14px; background: #eaf4f1; color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.error-text { color: #9f342e !important; }
.result-summary { border-left-color: #6c75cf; border-radius: 0 12px 12px 0; background: linear-gradient(100deg, #f1f7f5, #f2effa); }
.prediction-card { border-radius: 14px; background: rgb(255 255 255 / 78%); }
.dashboard { border-color: rgb(255 255 255 / 72%); background: rgb(255 255 255 / 77%); backdrop-filter: blur(18px); }
.chart-card { border-radius: 0; }

@media (max-width: 1050px) {
  .hero-grid { gap: 40px; }
  .server-state { display: none; }
  .instruction-grid { grid-template-columns: repeat(2, 1fr); }
  .operation-flow { grid-template-columns: repeat(2, 1fr); }
  .operation-flow article:nth-child(2) { border-right: 0; }
  .operation-flow article:nth-child(-n + 2) { border-bottom: 1px solid #e3e8ed; }
  .operation-flow article:nth-child(2)::after { display: none; }
  .model-purpose-grid { grid-template-columns: 1fr; }
  .joblib-route { grid-template-columns: repeat(2, 1fr); }
  .joblib-route article:nth-child(2) { border-right: 0; }
  .joblib-route article:nth-child(-n + 2) { border-bottom: 1px solid #e1e6eb; }
  .joblib-route article:nth-child(2)::after { display: none; }
  .instruction-grid li:nth-child(2) { border-right: 0; }
  .instruction-grid li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .runbook { grid-template-columns: 1fr; }
  .model-flow { align-items: flex-start; flex-direction: column; }
  .prediction-grid { grid-template-columns: 1fr; }
  .dashboard-toolbar { align-items: flex-start; flex-direction: column; padding-top: 10px; }
  .filters { padding-bottom: 12px; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 30px, 650px); }
  .header-inner { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .site-header nav { order: 3; width: 100%; display: flex; gap: 7px; overflow-x: auto; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 10%); scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { flex: 0 0 auto; border-radius: 999px; padding: 7px 10px; background: rgb(255 255 255 / 7%); white-space: nowrap; }
  .hero-grid, .section-heading, .laboratory { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 60px; }
  .hero-visual { box-shadow: none; }
  .section { padding-block: 68px; }
  .section-heading { gap: 20px; }
  .model-grid { grid-template-columns: 1fr; }
  .operation-flow { grid-template-columns: 1fr; }
  .operation-flow article { min-height: auto; border-right: 0; border-bottom: 1px solid #e3e8ed; }
  .operation-flow article::after { display: none; }
  .operation-flow article:last-child { border-bottom: 0; }
  .history-grid, .joblib-route, .artifact-grid { grid-template-columns: 1fr; }
  .history-grid article { border-right: 0; border-bottom: 1px solid rgb(92 106 151 / 13%); }
  .history-grid article:last-child { border-bottom: 0; }
  .joblib-route article { min-height: auto; border-right: 0; border-bottom: 1px solid #e1e6eb; }
  .joblib-route article::after { display: none; }
  .joblib-route article:last-child { border-bottom: 0; }
  .joblib-input { grid-template-columns: auto 1fr; }
  .joblib-input p { grid-column: 1 / -1; }
  .model-card { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 14%); }
  .model-card:last-child { border-bottom: 0; }
  .reference-strip, .reference-result { grid-template-columns: 1fr; gap: 6px; }
  .prediction-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .chart-grid, .limits-grid { grid-template-columns: 1fr; }
  .chart-card.wide { grid-column: span 1; }
  .method-track { grid-template-columns: 1fr; }
  .method-track article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .method-track article::after { top: auto; right: 50%; bottom: -12px; transform: rotate(90deg); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 48px; }
  .hero-proof { gap: 18px; }
  .hero-proof strong { font-size: 19px; }
  .instruction-grid { grid-template-columns: 1fr; }
  .instruction-grid li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .result-area, .prediction-form { padding: 20px; }
  .dashboard-toolbar { padding-inline: 10px; }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs button { white-space: nowrap; }
  .filters { flex-direction: column; width: 100%; }
  .filters label { justify-content: space-between; }
  .filters select { width: 60%; max-width: none; }
  .chart-card { padding: 17px; }
  .site-footer > div { align-items: flex-start; flex-direction: column; padding-block: 25px; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
