/* OikodatIA — estilos del sitio */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --navy: #13294B;
  --navy-deep: #0B1A33;
  --teal: #0F7F82;
  --teal-text: #0B6668;
  --teal-light: #5FD3C9;
  --teal-on-dark: #8EE3DB;
  --ink: #13294B;
  --ink-2: #22324D;
  --muted: #3E4C63;
  --quiet: #5B687D;
  --line: #E3E7EE;
  --line-strong: #B9C3D1;
  --soft: #F6F7F9;
  --white: #FFFFFF;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
}
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 16px; color: #fff; }

/* ---------- Encabezado ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px;
    background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 8px; padding: 10px 14px; min-height: 44px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 15px 26px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #0B6668; color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); padding: 12px 20px; font-size: 15px; }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--teal-light); color: var(--navy-deep); }
.btn-light:hover { background: #8EE3DB; color: var(--navy-deep); }

/* ---------- Elementos comunes ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-text); }
.label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--quiet); }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy); color: var(--white); }
.section-title { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.link-strong { font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > * { flex: 1 1 260px; min-width: 0; }

/* ---------- Portada ---------- */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -1.8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-figure { flex: 1 1 440px; min-width: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.hero-figure svg { display: block; width: 100%; height: auto; }
.chart-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s ease-out forwards; }
.chart-forecast, .chart-band { opacity: 0; animation: fade .8s ease-out 1.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.intro { font-size: 22px; max-width: 820px; color: var(--ink-2); margin-bottom: 40px; }
.pillar { border-top: 3px solid var(--navy); padding-top: 20px; flex: 1 1 300px; }
.pillar.accent { border-top-color: var(--teal); }
.pillar h2, .pillar h3 { font-size: 22px; font-weight: 700; margin: 6px 0 8px; }
.pillar p { color: var(--muted); }
.num { font-family: var(--mono); font-size: 13px; color: var(--quiet); }

.card {
  text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; color: var(--ink); background: var(--white);
  transition: border-color .2s ease, transform .2s ease;
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--ink); }
.card-q { font-size: 15px; font-weight: 600; color: var(--teal-text); }
.card-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.card-text { color: var(--muted); font-size: 15.5px; }
.card-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
a.card-dark:hover { color: var(--white); border-color: var(--navy); }
.card-dark .card-q { color: var(--teal-on-dark); }
.card-dark .card-text { color: #D3DBE7; }

.sectors { display: flex; flex-wrap: wrap; gap: 48px; }
.sectors > div:first-child { flex: 1 1 320px; min-width: 0; }
.sectors-lists { flex: 2 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.sectors-lists > div { flex: 1 1 240px; }
.plain-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; font-weight: 600; }

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > div { flex: 1 1 400px; min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }

.steps { margin: 40px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.steps li { flex: 1 1 140px; min-width: 0; border-top: 2px solid var(--teal-light); padding-top: 14px; }
.steps .num { color: var(--teal-on-dark); display: block; }
.steps strong { font-size: 17px; display: block; }
.steps span.desc { display: block; color: #C9D3E1; font-size: 14.5px; margin-top: 6px; }
.section-navy .lead { color: #C9D3E1; }

.cta-band { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band > div { flex: 1 1 480px; min-width: 0; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; }
.cta-band p { font-size: 18px; color: var(--muted); }

/* ---------- Servicios ---------- */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -1.5px; max-width: 860px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.pills a { text-decoration: none; border: 1px solid #C9D1DD; background: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.service { padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.service .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.service-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.service-main h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.8px; }
.service-main .card-q { font-size: 17px; }
.service-main p { color: var(--muted); }
.service-detail { flex: 1.3 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 28px 40px; align-content: flex-start; }
.service-detail > div { flex: 1 1 240px; min-width: 0; }
.service-detail h3 { font-size: 14.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.service-detail ul { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.apps { flex-basis: 100% !important; background: var(--soft); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; }
.apps > div { flex: 1 1 220px; min-width: 0; color: var(--ink-2); }
.apps .label { display: block; margin-bottom: 6px; }
.dx { background: var(--navy); color: var(--white); border-radius: 16px; padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.dx > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dx h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.8px; }
.dx p, .dx li { color: #D3DBE7; }
.dx h3 { font-size: 14.5px; letter-spacing: 1px; text-transform: uppercase; }
.dx ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.dx .eyebrow { color: var(--teal-on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 14px; }
.chips span { border: 1px solid #5B6F91; border-radius: 999px; padding: 6px 14px; }
.dx .btn { align-self: flex-start; }

/* ---------- Casos ---------- */
.row > .case { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 460px; }
.case h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.case dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.case dt { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--quiet); }
.case dd { margin: 2px 0 0; color: var(--muted); }
.note { font-size: 15px; color: var(--quiet); font-style: italic; margin-bottom: 28px; }

/* ---------- Contacto ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 72px; padding-bottom: 96px; }
.contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-info h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 800; letter-spacing: -1.4px; }
.contact-info .lead { font-size: 18px; }
.next-steps { border-top: 1px solid var(--line); padding-top: 24px; }
.next-steps h2 { font-size: 14.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.next-steps li { display: flex; gap: 16px; }
.next-steps .num { color: var(--teal-text); padding-top: 3px; font-size: 14px; }
.next-steps li span.t { color: var(--muted); display: block; }
.contact-direct { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.contact-direct a { font-weight: 700; font-size: 17px; }
.form-card { flex: 1.3 1 520px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
@media (max-width: 560px) { .form-card { padding: 24px; } .cta-band, .dx { padding: 36px 24px; } }
form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
form > .field { flex: none; }
.field label { font-weight: 700; font-size: 15px; }
.field .opt { font-weight: 500; color: var(--quiet); }
input, select, textarea { font: inherit; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; background: var(--white); width: 100%; }
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15,127,130,.35); border-color: var(--teal); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; }
.form-status.error { color: #B42318; }
.form-done { display: flex; flex-direction: column; gap: 16px; padding: 32px 0; }
.form-done h2 { font-size: 28px; font-weight: 800; }
.form-done p { color: var(--muted); }

/* ---------- Texto largo (aviso, publicaciones) ---------- */
.prose { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.prose h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; letter-spacing: -1.2px; margin-bottom: 16px; }
.prose h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.draft { background: #FFF6E5; border: 1px solid #F2C46D; color: #6B4A00; border-radius: 8px; padding: 14px 18px; font-size: 15px; margin-bottom: 24px; }
.topics { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 0; }
.topics li { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-direction: column; gap: 4px; }
.topics li:last-child { border-bottom: 1px solid var(--line); }
.topics strong { font-size: 18px; color: var(--ink); }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.footer-brand { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 24px; width: auto; align-self: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; }
.legal { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 32px; font-size: 13.5px; color: var(--quiet); }
