/* AVELTO — estilos del sitio corporativo */
:root {
  --ink: #0E1726;
  --ink-800: #16223A;
  --paper: #FFFFFF;
  --mist: #F4F6F9;
  --line: #E2E7EE;
  --line-strong: #C9D1DC;
  --slate: #5B6678;
  --on-dark: #C3CBD8;
  --on-dark-muted: #A9B3C4;
  --ember: #F26B3A;
  --ember-deep: #C2471C;
  --adira-navy: #0B2345;
  --adira-teal: #13B8A6;
  --salda-ink: #1E1B4B;
  --salda-accent: #A5A1FF;
  --font-display: Manrope, Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ember-deep); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 6px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ember); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-ember { background: var(--ember); color: var(--ink); }
.btn-ember:hover { background: #F5835A; color: var(--ink); }
.btn-ghost { color: #fff; border-color: #3A4A66; }
.btn-ghost:hover { color: #fff; border-color: var(--on-dark-muted); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-800); color: #fff; }
.btn-teal { background: var(--adira-teal); color: var(--adira-navy); }
.btn-teal:hover { color: var(--adira-navy); }
.btn-indigo { background: var(--salda-accent); color: var(--salda-ink); }
.btn-indigo:hover { color: var(--salda-ink); }
.btn-outline-light { color: #fff; border-color: #2B4A78; }
.btn-outline-light:hover { color: #fff; border-color: #C9D3E3; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- cabecera ---------- */
.site-header { background: var(--ink); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.menu { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; display: inline-block; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover { color: #fff; }
.nav-list a[aria-current="page"] { color: #fff; border-bottom-color: var(--ember); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-dark-muted); }
.lang a { color: var(--on-dark-muted); text-decoration: none; padding: 12px 2px; }
.lang a:hover, .lang a[aria-current="true"] { color: #fff; font-weight: 600; }
.menu-toggle { display: none; background: none; color: #fff; border: 1px solid #3A4A66; border-radius: 10px; font: inherit; font-weight: 600; padding: 10px 16px; min-height: 44px; cursor: pointer; }

@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .js .menu { display: none; }
  .js .menu.open { display: flex; }
  .menu { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0 24px; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-list a { font-size: 18px; padding: 12px 0; }
}

/* ---------- héroe ---------- */
.hero { background: var(--ink); color: #fff; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 88px 112px; }
.hero-page .hero-inner { padding-block: 72px 88px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; max-width: 820px; }
.hero h1.display { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--on-dark); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-deep); font-weight: 600; }
.eyebrow-dark { color: var(--ember); }
.hero-symbol { flex: 0 1 280px; display: flex; justify-content: center; }

.frame { flex: 1 1 380px; min-width: 0; position: relative; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.frame::before, .frame::after { content: ""; position: absolute; width: 72px; height: 72px; border: 0 solid #fff; }
.frame::before { left: 0; top: 0; border-left-width: 8px; border-top-width: 8px; border-top-left-radius: 10px; }
.frame::after { right: 0; bottom: 0; border-right-width: 8px; border-bottom-width: 8px; border-bottom-right-radius: 10px; }
.frame-item { border-radius: 14px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.frame-item div { display: flex; flex-direction: column; gap: 4px; }
.frame-item strong { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; }
.frame-item span { font-size: 14px; }
.frame-item i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.frame-adira { background: var(--adira-navy); border: 1px solid #1F3A63; }
.frame-adira span { color: #C9D3E3; } .frame-adira i { background: var(--adira-teal); }
.frame-salda { background: var(--salda-ink); border: 1px solid #34307A; }
.frame-salda span { color: #D6D4F7; } .frame-salda i { background: var(--salda-accent); }
.frame-next { border: 1px dashed #3A4A66; }
.frame-next span { color: var(--on-dark-muted); } .frame-next i { background: var(--ember); }

/* ---------- secciones ---------- */
.section { padding-block: 96px; }
.section-tight { padding-top: 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 48px; }
.section-head h2, .cta-box h2, .grow h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.section-head-row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head-row > div { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.text-link { font-weight: 600; padding: 12px 0; }
.band { background: var(--mist); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.feature { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.feature p, .tile p { color: var(--slate); line-height: 1.6; }
.tile { background: #fff; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.tile p { font-size: 15px; }
.num { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--ember-deep); }
.dot { width: 10px; height: 10px; background: var(--ember); border-radius: 2px; }

/* ---------- productos ---------- */
.card { border-radius: var(--radius-lg); padding: 40px; color: #fff; display: flex; flex-direction: column; gap: 18px; min-height: 340px; }
.card-adira { background: var(--adira-navy); }
.card-salda { background: var(--salda-ink); }
.tag { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.card-adira .tag, .product-adira .tag { color: var(--adira-teal); }
.card-salda .tag, .product-salda .tag { color: var(--salda-accent); }
.product-name { font-size: 40px; font-weight: 800; letter-spacing: 0.02em; }
.product-name.xl { font-size: clamp(44px, 5vw, 56px); }
.product-lema { font-size: 18px; }
.product-lema.strong { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; }
.card-adira .product-lema { color: #C9D3E3; }
.card-salda .product-lema { color: #D6D4F7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #13294F; color: #C9D3E3; }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; padding: 10px 0; }
.card-adira .card-link { color: var(--adira-teal); }
.card-salda .card-link { color: var(--salda-accent); }
.card-link:hover { color: #fff; }

.product { border-radius: 28px; padding: clamp(32px, 5vw, 64px); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; scroll-margin-top: 24px; }
.product-adira { background: var(--adira-navy); }
.product-salda { background: var(--salda-ink); }
.product-main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.product-adira .product-main > p:not(.tag):not(.strong) { color: #C9D3E3; line-height: 1.6; font-size: 17px; }
.product-salda .product-main > p:not(.tag) { color: #D6D4F7; line-height: 1.6; font-size: 17px; }
.modules { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.modules li { background: #13294F; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.modules strong { font-weight: 600; }
.modules span { font-size: 14px; color: #A9B6CC; }
.status { flex: 0 1 320px; border: 1px dashed #4B46A0; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 10px; color: #D6D4F7; }
.status .label { color: var(--salda-accent); margin: 0; }
.status strong { font-family: var(--font-display); font-size: 24px; color: #fff; }

.grow { border: 2px dashed var(--line-strong); border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.grow > div { flex: 1 1 480px; display: flex; flex-direction: column; gap: 10px; }
.grow h2 { font-size: 30px; }
.grow p { color: var(--slate); line-height: 1.6; font-size: 17px; }

.cta-box { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-box > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-box p { font-size: 18px; color: var(--on-dark); }

/* ---------- empresa ---------- */
.panel { background: var(--mist); border-radius: 22px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.panel p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }
.panel .panel-big { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.35; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > .section-head { flex: 1 1 360px; margin: 0; }
.not-list { flex: 1 1 520px; margin: 0; }
.not-list div { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.not-list div:last-child { border-bottom: 1px solid var(--line); }
.not-list dt { font-family: var(--font-display); font-weight: 700; font-size: 18px; flex: 0 0 200px; }
.not-list dd { margin: 0; flex: 1 1 260px; color: var(--slate); line-height: 1.6; }
.langs-grid { flex: 1 1 360px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.langs-grid li { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.langs-grid strong { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.langs-grid span { font-size: 14px; color: var(--slate); }

/* ---------- contacto ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.form { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: #fff; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(242, 107, 58, 0.35); border-color: var(--ember-deep); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1F6B3A; }
.form-status.err { color: #B42318; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.aside-value { font-size: 18px; font-weight: 600; }
.support { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.support-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.support p:not(.support-title) { font-size: 15px; color: var(--on-dark); line-height: 1.5; }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--slate); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-cols > div { display: flex; flex-direction: column; }
.footer-cols a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.footer-cols a:hover { color: var(--ember-deep); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 24px; }
.lang-footer, .lang-footer a { color: var(--slate); }
.lang-footer a { padding: 0 2px; }
.field select { max-width: 420px; }
.lang-footer a:hover, .lang-footer a[aria-current="true"] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
