/* =========================================================================
   IMASDE Agroalimentaria — sistema visual
   Azules del logotipo: corporativo #005493, cian #009fe3, marino #04203d.
   ========================================================================= */

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-950: #021529;
  --navy-900: #04203d;
  --navy-800: #06305a;
  --blue-700: #00457a;
  --blue-600: #005493;
  --blue-500: #0a6cbd;
  --cyan-500: #009fe3;
  --cyan-400: #33b5ec;
  --cyan-100: #e3f4fc;
  --blue-50: #f2f8fd;

  --ink: #0d1b2a;
  --text: #33475b;
  --muted: #64748b;
  --line: #dfe8f1;
  --surface: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;

  --grad-brand: var(--blue-600);
  --grad-deep: var(--navy-900);

  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(4, 32, 61, 0.06), 0 2px 8px rgba(4, 32, 61, 0.04);
  --shadow-md: 0 8px 30px rgba(4, 32, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(4, 32, 61, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font); word-spacing: 0.04em; -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -0.018em; word-spacing: 0.05em; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-600); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan-100); color: var(--navy-900); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-sm { max-width: calc(980px + 2 * var(--gutter)); }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 700; color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--cyan-400); }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-tight { padding-block: clamp(56px, 7vw, 88px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 14px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  --bg-btn: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg-btn); color: #fff; font-weight: 700; font-size: 0.96rem; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  box-shadow: none;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-700); }
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-cyan { --bg-btn: var(--cyan-500); }
.btn-cyan:hover { background: #0890cf; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
.btn-outline { background: transparent; color: var(--blue-600); border-color: var(--line); box-shadow: none; }
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-600); box-shadow: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-600); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(4, 32, 61, 0.06); background: rgba(255, 255, 255, 0.94); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px;
  border: 0; background: none; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-trigger:hover, .nav-item.open > .nav-trigger { background: var(--blue-50); color: var(--blue-600); }
.nav-link[aria-current="page"], .nav-trigger.current { color: var(--blue-600); }
.nav-trigger .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav-item { position: relative; }
.nav-item.open > .nav-trigger .icon { transform: rotate(180deg); }
.header-cta { margin-left: 12px; }

/* Desplegables */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.mega { width: min(860px, calc(100vw - 48px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega-col { padding: 16px; border-radius: var(--r-md); transition: background .2s; }
.mega-col:hover { background: var(--bg-soft); }
.mega-head { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.mega-head strong { display: block; font-size: 0.98rem; line-height: 1.3; margin-bottom: 4px; }
.mega-head > span:not(.tile) > span { display: block; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.mega-head:hover strong { color: var(--blue-600); }
.mega-sub { margin: 12px 0 0 56px; display: grid; gap: 2px; }
.mega-sub a { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); padding: 5px 0; }
.mega-sub a:hover { color: var(--blue-600); }
.drop-list { width: 300px; display: grid; gap: 2px; }
.drop-list a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.drop-list a:hover { background: var(--bg-soft); color: var(--blue-600); }
.drop-list small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }

.tile {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--cyan-100); color: var(--blue-600);
}
.tile .icon { width: 22px; height: 22px; }
.tile-lg { width: 56px; height: 56px; border-radius: 16px; }
.tile-lg .icon { width: 28px; height: 28px; }
.tile-brand { background: var(--grad-brand); color: #fff; }
.tile-glass { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }

/* Menú móvil */
.menu-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; place-items: center; color: var(--ink);
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-open { display: none; }
.menu-open .menu-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 22, 40, 0.86) 0%, rgba(4, 22, 40, 0.7) 55%, rgba(4, 22, 40, 0.45) 100%);
}
.hero-inner { min-height: min(74vh, 660px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(72px, 10vw, 120px) 0; }
.hero-content { max-width: 760px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px);
  font-size: 0.86rem; font-weight: 600; color: #e6f4fc; margin-bottom: 26px;
}
.chip-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; }
.chip-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.028em; word-spacing: 0.08em; line-height: 1.04; margin-bottom: 24px; }
.hero h1 em { font-style: normal; }
.hero .lead { color: rgba(230, 243, 252, 0.88); max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof {
  margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-proof li { display: flex; align-items: center; gap: 14px; padding: 26px 20px 30px 0; font-size: 0.92rem; color: rgba(230, 243, 252, 0.85); line-height: 1.35; }
.hero-proof strong { display: block; color: #fff; font-size: 1.02rem; }
.hero-proof .icon { width: 26px; height: 26px; color: var(--cyan-400); }

/* ---------- Líneas de negocio ---------- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.line-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px 30px; overflow: hidden; color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.line-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--blue-600); }
.line-card:hover { box-shadow: var(--shadow-md); }
.line-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.line-num { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; color: #a9bccd; }
.line-card h3 { font-size: 1.38rem; margin-bottom: 12px; }
.line-card > p { color: var(--muted); margin-bottom: 22px; }
.checks { display: grid; gap: 10px; margin-bottom: 28px; }
.checks li { position: relative; padding-left: 30px; font-size: 0.95rem; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan-100);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 5px; border-left: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600); transform: rotate(-45deg);
}
.checks strong { color: var(--ink); }
.line-card .link-arrow { margin-top: auto; }

/* ---------- Frase ---------- */
.statement { position: relative; overflow: hidden; background: var(--grad-deep); color: #fff; text-align: center; }
.statement .container { position: relative; }
.statement blockquote { margin: 0 auto; max-width: 980px; }
.statement p { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: #fff; }
.statement p span { color: var(--cyan-400); }
.statement cite { display: block; margin-top: 24px; font-style: normal; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(230, 243, 252, 0.7); }

/* ---------- Experiencia ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.pills .icon { width: 17px; height: 17px; color: var(--cyan-500); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.stat strong { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: 0.92rem; color: var(--muted); line-height: 1.4; display: block; }
.stat-hero { grid-column: 1 / -1; background: var(--grad-deep); border: 0; color: #fff; position: relative; overflow: hidden; padding: 34px; }
.stat-hero strong { color: #fff; font-size: clamp(3.4rem, 6vw, 4.6rem); }
.stat-hero b { display: block; font-size: 0.95rem; color: var(--cyan-400); margin-bottom: 12px; }
.stat-hero span { color: rgba(230, 243, 252, 0.85); max-width: 360px; font-size: 1rem; }

/* ---------- Metodología ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: calc(16.66% + 28px); right: calc(16.66% + 28px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--cyan-400) 0 8px, transparent 8px 16px); opacity: 0.6;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num {
  position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--cyan-500); color: var(--blue-600);
  box-shadow: 0 0 0 8px var(--bg-soft);
}
.step-num .icon { width: 24px; height: 24px; }
.step small { display: block; font-weight: 800; letter-spacing: 0.14em; color: var(--cyan-500); font-size: 0.78rem; margin-bottom: 6px; }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 320px; margin-inline: auto; }

/* ---------- PYME Innovadora ---------- */
.award {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.award-seal { width: 150px; background: #fff; border-radius: var(--r-md); }
.award h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.award p { color: var(--muted); max-width: 560px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--cyan-100); color: var(--blue-700); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.badge .icon { width: 18px; height: 18px; }

/* ---------- Testimonios ---------- */
.carousel { position: relative; }
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.carousel-head .section-head { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.round-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.round-btn:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.round-btn .icon { width: 20px; height: 20px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px;
}
.track::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
}
.quote-mark { color: var(--cyan-500); width: 34px; height: 34px; margin-bottom: 18px; }
.quote blockquote { margin: 0 0 26px; color: var(--ink); font-size: 1.02rem; line-height: 1.65; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; flex: none; }
.quote strong { display: block; color: var(--ink); font-size: 0.98rem; }
.quote small { display: block; color: var(--blue-600); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: #c6d4e1; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.dots button[aria-current="true"] { width: 28px; background: var(--blue-600); }

/* ---------- Llamada a la acción ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl);
  background: var(--grad-deep); color: #fff; padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; max-width: 640px; }
.cta p { color: rgba(230, 243, 252, 0.85); font-size: 1.08rem; max-width: 600px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cta-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: rgba(230, 243, 252, 0.9); font-weight: 600; font-size: 0.95rem; }
.cta-phone:hover { color: #fff; }
.cta-phone .icon { width: 18px; height: 18px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-950); color: rgba(214, 228, 240, 0.78); font-size: 0.93rem; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.footer-certs { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.footer-certs span { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: #cfe6f6; }
.site-footer h2 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(214, 228, 240, 0.78); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.office + .office { margin-top: 18px; }
.office strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 4px; }
.office p { margin: 0; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.84rem; color: rgba(214, 228, 240, 0.6); }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 22px; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: #fff; padding-block: clamp(48px, 6vw, 80px) clamp(44px, 5vw, 68px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(4, 22, 40, 0.8);
}
.page-hero picture, .page-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: rgba(230, 243, 252, 0.7); margin-bottom: 22px; }
.crumbs a { color: rgba(230, 243, 252, 0.85); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; word-spacing: 0.06em; max-width: 880px; margin-bottom: 18px; }
.page-hero .lead { color: rgba(230, 243, 252, 0.86); max-width: 680px; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.anchor-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-weight: 600; font-size: 0.92rem; transition: background .2s; }
.anchor-nav a:hover { background: rgba(255, 255, 255, 0.2); }
.anchor-nav .icon { width: 18px; height: 18px; color: var(--cyan-400); }

/* ---------- Tarjetas genéricas ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.card h3 { font-size: 1.22rem; margin: 18px 0 10px; }
.card > p { color: var(--muted); }
.card .checks { margin: 18px 0 0; }
.card-plain h3 { margin-top: 0; }
.card-soft { background: var(--bg-soft); border-color: transparent; }
.card-hover { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.tags li { padding: 6px 12px; border-radius: 8px; background: var(--cyan-100); color: var(--blue-700); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.chips .icon { width: 18px; height: 18px; color: var(--cyan-500); }
.notice {
  display: flex; gap: 22px; align-items: flex-start; padding: 30px; border-radius: var(--r-lg);
  background: var(--blue-50); border: 1px solid #cfe5f5;
}
.notice h3 { font-size: 1.18rem; margin-bottom: 8px; }
.notice p { color: var(--muted); }
.band-head { display: flex; gap: 20px; align-items: center; margin-bottom: 36px; }
.band-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.band-head p { color: var(--muted); margin-top: 6px; }
.media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.unit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: stretch; }
.unit-media { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.unit-media .media { aspect-ratio: auto; min-height: 200px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo h4 { color: var(--blue-600); font-size: 1rem; margin-bottom: 8px; }
.duo p { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin-block: clamp(56px, 7vw, 88px); border: 0; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--r-lg); background: var(--bg-soft); }
.inline-cta h3 { font-size: 1.2rem; margin-bottom: 4px; }
.inline-cta p { color: var(--muted); }

/* Nosotros */
.mission { position: relative; background: var(--grad-deep); color: #fff; border-radius: var(--r-xl); padding: 38px; overflow: hidden; }
.mission h3 { color: #fff; font-size: 1.3rem; margin: 18px 0 12px; }
.mission p { color: rgba(230, 243, 252, 0.88); position: relative; z-index: 1; }
.mission strong { color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--text); transition: all .2s; }
.tab:hover { border-color: var(--blue-600); color: var(--blue-600); }
.tab[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.project { display: flex; flex-direction: column; }
.project .cat { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-500); }
.project h3 { margin: 10px 0 10px; font-size: 1.12rem; }
.project p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.project small { display: inline-flex; align-self: flex-start; margin-top: 18px; padding: 6px 10px; border-radius: 8px; background: var(--bg-soft); color: var(--blue-700); font-weight: 700; font-size: 0.76rem; }
.project[hidden] { display: none; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-500); background: #fff; box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.15); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue-600); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-note { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--cyan-100); color: var(--blue-700); font-weight: 600; }
.form-note:empty { display: none; }
.form-note.error { background: #fde8e7; color: #a4251b; }
.info-stack { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { margin: 0 0 4px; color: var(--muted); font-size: 0.95rem; }
.info-card a { font-weight: 600; }

/* Legales */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p { color: var(--text); }
.pending { background: #fff4d6; padding: 2px 6px; border-radius: 4px; color: #7a5a00; }

/* ---------- Asistente (chat) ---------- */
.chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 120; display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(4, 32, 61, 0.18); transition: transform .25s var(--ease), opacity .2s;
}
.chat-launcher:hover { transform: translateY(-3px); }
.chat-launcher .icon { width: 24px; height: 24px; }

.chat-open .chat-launcher { opacity: 0; pointer-events: none; transform: scale(0.9); }
.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 130; width: 400px; height: min(640px, calc(100vh - 48px));
  display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(4, 32, 61, 0.45), 0 0 0 1px rgba(4, 32, 61, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98); transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.chat-open .chat-panel { opacity: 1; visibility: visible; transform: none; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 18px 18px 18px 20px; background: var(--grad-deep); color: #fff; }
.chat-header img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 5px; }
.chat-header strong { display: block; font-size: 1rem; }
.chat-header small { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(230, 243, 252, 0.8); }
.chat-header small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; }
.chat-reset { margin-left: auto; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-reset:hover { background: rgba(255, 255, 255, 0.22); }
.chat-reset .icon { width: 18px; height: 18px; }
.chat-close { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255, 255, 255, 0.22); }
.chat-close .icon { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 16px; font-size: 0.93rem; line-height: 1.55; white-space: pre-line; }
.msg-bot { align-self: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 6px; }
.msg a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.msg-user a { color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9db3c7; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; background: var(--surface); }
.chat-suggest:empty { display: none; }
.chat-suggest button { padding: 8px 12px; border-radius: 999px; border: 1px solid #cfe2f1; background: var(--blue-50); color: var(--blue-700); font-size: 0.83rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.chat-suggest button:hover { background: var(--cyan-100); }
.chat-form { display: flex; gap: 10px; padding: 14px 16px; background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); }
.chat-form input:focus { outline: none; border-color: var(--cyan-500); background: #fff; box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.15); }
.chat-form button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--blue-600); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-form button:hover { background: var(--blue-700); }
.chat-form button .icon { width: 20px; height: 20px; }
.chat-legal { margin: 0; padding: 0 16px 12px; background: var(--surface); font-size: 0.74rem; color: var(--muted); text-align: center; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); margin: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; }
  .menu-open { overflow: hidden; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav > .nav-link { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-trigger { width: 100%; height: 58px; padding: 0 4px; border-radius: 0; justify-content: space-between; font-size: 1.05rem; }
  .nav-link:hover, .nav-trigger:hover, .nav-item.open > .nav-trigger { background: none; }
  .dropdown {
    position: static; translate: none; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0;
    border-radius: 0; padding: 0 0 12px; display: none; width: auto;
  }
  .nav-item.open > .dropdown { display: grid; }
  .mega { grid-template-columns: 1fr; width: auto; }
  .mega-col { padding: 12px 4px; }
  .mega-sub { margin-left: 56px; }
  .drop-list { width: auto; }
  .header-cta { display: inline-flex; margin: 24px 0 0; }
  .lines, .grid-3 { grid-template-columns: 1fr 1fr; }
  .lines > :last-child:nth-child(odd), .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split, .unit-grid, .contact-grid { grid-template-columns: 1fr; }
  .track { grid-auto-columns: calc((100% - 24px) / 2); }
  .award { grid-template-columns: auto 1fr; }
  .award .badge { grid-column: 2; justify-self: start; }
  .cta { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 0.98rem; }
  .hero-inner { min-height: auto; padding-top: 64px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .hero-proof li { padding: 18px 10px 20px 0; gap: 10px; font-size: 0.84rem; }
  .hero-proof .icon { width: 22px; height: 22px; }
  .lines, .grid-2, .grid-3, .grid-4, .stats, .duo, .form { grid-template-columns: 1fr; }
  .lines > :last-child:nth-child(odd), .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .stat-hero { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .award { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .award .badge { grid-column: auto; justify-self: center; }
  .award-seal { width: 130px; }
  .carousel-head { flex-direction: column; align-items: flex-start; }
  .carousel-nav { display: none; }
  .track { grid-auto-columns: 88%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .notice { flex-direction: column; }
  .band-head { flex-direction: column; align-items: flex-start; }
  .inline-cta { padding: 24px; }
  .inline-cta .btn { width: 100%; }
  .chat-launcher { right: 16px; bottom: 16px; height: 56px; width: 56px; padding: 0; justify-content: center; }
  .chat-launcher .label { display: none; }
  .chat-panel { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html, .track { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.menu-open .chat-launcher { display: none; }

/* Galería de instalaciones */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(2, 21, 41, 0.72); color: #fff; font-size: 0.82rem; font-weight: 600; }
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Buscador de ayudas ---------- */
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; }
.hero-stats li { display: grid; gap: 2px; }
.hero-stats strong { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-stats span { color: rgba(230, 243, 252, 0.75); font-size: 0.9rem; }
.finder-section { padding-top: 0; }
.finder { position: relative; z-index: 2; margin-top: -48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(22px, 3.5vw, 40px); }
.finder-empresa > label { display: block; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.empresa-box { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border: 2px solid var(--line); border-radius: 18px; background: var(--bg-soft); transition: border-color .2s, box-shadow .2s; }
.empresa-box:focus-within { border-color: var(--cyan-500); background: #fff; box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.15); }
.empresa-icon .icon { width: 22px; height: 22px; color: var(--blue-600); }
.empresa-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); padding: 12px 4px; outline: none; }
.empresa-sugerencias { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; padding: 6px; }
.empresa-sugerencias li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px; cursor: pointer; }
.empresa-sugerencias li span { color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.empresa-sugerencias li:hover, .empresa-sugerencias li.activa { background: var(--blue-50); }
.empresa-sugerencias .sugerencia-vacia { cursor: default; color: var(--muted); }
.empresa-sugerencias .sugerencia-vacia:hover { background: none; }
.finder-hint { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--blue-600); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.filtros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.filtros .field-texto { grid-column: span 3; }
.toggle { display: flex; align-items: center; gap: 10px; align-self: end; min-height: 50px; font-weight: 600; color: var(--ink); cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--blue-600); }

.perfil { margin-top: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--blue-50); border: 1px solid #cfe5f5; }
.perfil-cabecera { display: flex; align-items: center; gap: 14px; }
.perfil-cabecera h2 { font-size: 1.2rem; margin: 0; }
.perfil-cabecera p { color: var(--muted); font-size: 0.88rem; }
.perfil-icono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand); color: #fff; flex: none; }
.perfil-icono .icon { width: 24px; height: 24px; }
.perfil-cerrar { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.perfil-cerrar:hover { color: var(--ink); border-color: var(--muted); }
.perfil-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 0; }
.perfil-datos dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.perfil-datos dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
.perfil-ultimas { margin-top: 16px; font-size: 0.92rem; }
.perfil-ultimas summary { cursor: pointer; font-weight: 700; color: var(--blue-600); }
.perfil-ultimas ul { display: grid; gap: 8px; margin-top: 10px; }
.perfil-ultimas li span { display: inline-block; min-width: 96px; color: var(--muted); }
.perfil-nota { margin-top: 14px; font-size: 0.84rem; color: var(--muted); }
.perfil-cargando { display: flex; align-items: center; gap: 12px; color: var(--text); }
.perfil-error { padding: 16px 20px; border-radius: var(--r-md); background: #fff4f2; border: 1px solid #f5d0c9; color: #8a2c1d; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--cyan-100); border-top-color: var(--cyan-500); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.resultados { margin-top: 36px; transition: opacity .2s; }
.resultados.cargando { opacity: 0.45; pointer-events: none; }
.resultados-cabecera { margin-bottom: 18px; color: var(--text); }
.ayudas-lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ayuda { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: box-shadow .25s var(--ease), border-color .25s; }
.ayuda:hover { border-color: #c6dcee; box-shadow: var(--shadow-md); }
.ayuda h3 { font-size: 1.06rem; line-height: 1.4; margin: 0; }
.ayuda h3 a { color: var(--ink); }
.ayuda h3 a:hover { color: var(--blue-600); }
.ayuda-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ayuda-fuente { margin-left: auto; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.ayuda-resumen { color: var(--text); font-size: 0.93rem; }
.ayuda-datos { display: grid; gap: 6px; font-size: 0.9rem; color: var(--text); }
.ayuda-datos li { display: flex; gap: 8px; align-items: flex-start; }
.ayuda-datos .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--blue-500); }
.motivos { display: flex; flex-wrap: wrap; gap: 6px; }
.motivos li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: #e9f7ef; color: #17643a; font-size: 0.8rem; font-weight: 700; }
.motivos .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.ayuda-acciones { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.ayuda-acciones .link-arrow .icon { width: 16px; height: 16px; }
.estado { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.02em; background: var(--bg-soft); color: var(--muted); white-space: nowrap; }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.estado-abierta, .estado-permanente, .estado-sin-fecha { background: #e6f6ec; color: #187a43; }
.estado-proxima { background: #fff5df; color: #96620a; }
.estado-cerrada { background: #f6e9e7; color: #9a3a2a; }
.aviso { padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: var(--cyan-100); color: var(--blue-700); }
.paginacion { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; color: var(--muted); font-size: 0.92rem; }
.paginacion .btn[disabled] { opacity: 0.4; pointer-events: none; }
.sin-resultados { padding: 28px; border-radius: var(--r-lg); background: var(--bg-soft); text-align: center; }
.sin-resultados a, .fuente-datos a { color: var(--blue-600); font-weight: 700; }
.fuente-mini { margin-top: 20px; font-size: 0.8rem; color: var(--muted); }
.fuente-datos { display: flex; gap: 12px; align-items: flex-start; margin-top: 36px; padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.fuente-datos .icon { width: 20px; height: 20px; color: var(--blue-500); margin-top: 1px; }

.listado-tema { margin-top: 40px; }
.listado-tema header h3 { font-size: 1.3rem; margin-bottom: 4px; }
.listado-tema header p { color: var(--muted); font-size: 0.94rem; margin-bottom: 14px; }
.listado { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.listado li { display: grid; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--line); }
.listado li:first-child { border-top: 0; }
.listado li > a { color: var(--ink); font-weight: 600; line-height: 1.45; }
.listado li > a:hover { color: var(--blue-600); }
.listado-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.84rem; color: var(--muted); }

/* Ficha de una ayuda */
.page-hero-ficha h1.ficha-titulo { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 980px; line-height: 1.25; }
.ficha-estado { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; color: rgba(230, 243, 252, 0.85); font-weight: 600; font-size: 0.92rem; }
.ficha-codigo { color: rgba(230, 243, 252, 0.7); font-size: 0.9rem; }
.ficha-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.ficha h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.ficha > p { margin-top: 14px; }
.ficha .notice { margin-bottom: 24px; display: block; }
.ficha .notice a { color: var(--blue-600); font-weight: 700; }
.datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.dato { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 18px 20px; background: #fff; }
.dato .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--blue-500); margin-top: 2px; }
.dato dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.dato dd { margin: 0; color: var(--ink); font-weight: 600; }
.sectores-lista { columns: 2; column-gap: 28px; font-size: 0.92rem; color: var(--text); }
.sectores-lista li { break-inside: avoid; padding: 4px 0 4px 14px; position: relative; }
.sectores-lista li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-500); }
.ficha-enlaces { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ficha-lateral { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.ficha-cta { background: var(--grad-deep); border: 0; color: #fff; }
.ficha-cta h2 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.ficha-cta p { color: rgba(230, 243, 252, 0.85); margin-bottom: 20px; }
.ficha-cta .btn { width: 100%; }
.relacionadas h2 { font-size: 1.1rem; margin-bottom: 12px; }
.relacionadas ul { display: grid; gap: 14px; margin-bottom: 18px; }
.relacionadas li { display: grid; gap: 2px; font-size: 0.9rem; }
.relacionadas li a { color: var(--ink); font-weight: 600; }
.relacionadas li a:hover { color: var(--blue-600); }
.relacionadas li span { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 1024px) {
  .filtros { grid-template-columns: repeat(2, 1fr); }
  .filtros .field-texto { grid-column: 1 / -1; }
  .ayudas-lista, .ficha-grid { grid-template-columns: 1fr; }
  .ficha-lateral { position: static; }
}
@media (max-width: 720px) {
  .finder { margin-top: -32px; border-radius: var(--r-lg); }
  .empresa-box { flex-wrap: wrap; padding: 8px; }
  .empresa-icon { display: none; }
  .empresa-box input { padding: 10px 8px; }
  .empresa-box .btn { width: 100%; }
  .filtros { grid-template-columns: 1fr; }
  .perfil-datos, .datos { grid-template-columns: 1fr; }
  .sectores-lista { columns: 1; }
  .hero-stats { gap: 14px 28px; }
}
.dato:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.news-img { display: block; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.03); }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.news-body h2 { font-size: 1.12rem; line-height: 1.35; margin: 0; text-wrap: pretty; }
.news-body h2 a { color: var(--ink); }
.news-body h2 a:hover { color: var(--blue-600); }
.news-body > p:last-child { color: var(--muted); font-size: 0.94rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.84rem; color: var(--muted); }
.news-meta span { font-weight: 700; color: var(--blue-600); }
.news-more { font-size: 1.5rem; margin-bottom: 24px; }

.post-head { padding-top: clamp(36px, 5vw, 56px); }
.post-narrow { max-width: 780px; }
.crumbs-dark { color: var(--muted); }
.crumbs-dark a { color: var(--blue-600); }
.post-head h1 { text-wrap: pretty; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; margin: 14px 0 16px; }
.post-lead { font-size: 1.15rem; color: var(--text); }
.post-cover { max-width: 1008px; margin-top: 32px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); }
.post-body { padding-block: 40px clamp(56px, 7vw, 88px); font-size: 1.06rem; line-height: 1.75; color: var(--text); }
.post-body h2 { font-size: 1.4rem; margin: 36px 0 12px; color: var(--ink); }
.post-body p { margin-bottom: 16px; }
.post-body ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .news-grid { grid-template-columns: 1fr; } .post-cover { padding-inline: 0; } .post-cover img { border-radius: 0; } }

/* El desplegable de servicios se centra en la cabecera, no en el botón, para
   que no se salga de la pantalla. */
@media (min-width: 1025px) {
  .header-inner { position: relative; }
  .nav-item:has(> .mega) { position: static; }
  .mega { left: 50%; }
}
/* El botón del asistente no tapa los enlaces del pie */
.footer-bottom { padding-right: 270px; }
@media (max-width: 720px) { .footer-bottom { padding-right: 0; padding-bottom: 88px; } }
.stats:has(> .stat-hero:only-child) { grid-template-columns: 1fr; }

/* Buscador: cabecera corta para que la caja de empresa se vea sin bajar */
.page-hero-compacto { padding-block: clamp(32px, 4vw, 48px) 72px; }
.page-hero-compacto h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 10px; }
.page-hero-compacto .lead { font-size: 1rem; max-width: 760px; margin-bottom: 8px; }
.actualizado { font-size: 0.8rem; color: rgba(230, 243, 252, 0.6); margin: 0; }

/* Equipo */
.equipo-grupo + .equipo-grupo { margin-top: 36px; }
.equipo-grupo h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--blue-600); }
.equipo-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.persona { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.persona-foto { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.persona-foto img { width: 100%; height: 100%; object-fit: cover; }
.persona h4 { font-size: 1rem; margin: 0 0 2px; }
.persona p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.persona .persona-cargo { color: var(--text); }

/* Idioma */
.lang-link { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; padding: 0 10px; }
.lang-aviso { position: fixed; left: 16px; bottom: 16px; z-index: 110; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; background: var(--navy-900); color: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg); font-size: 0.92rem; }
.lang-aviso a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lang-aviso button { border: 0; background: none; color: rgba(255, 255, 255, 0.7); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px; }
@media (max-width: 720px) { .lang-aviso { right: 84px; } }

/* Preguntas frecuentes */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0 22px; }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue-600); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; margin: 0; color: var(--text); }

/* Menú: sin saltos de línea; el botón de la cabecera solo en pantallas anchas */
@media (min-width: 1025px) {
  .nav-link, .nav-trigger { white-space: nowrap; padding: 0 11px; }
  .header-inner { gap: 20px; }
}
@media (max-width: 1360px) { .header-cta { display: none; } }
@media (max-width: 1024px) { .header-cta { display: inline-flex; } }

/* Tablas de las páginas legales */
.legal-fecha { color: var(--muted); font-size: 0.9rem; }
.tabla-legal { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tabla-legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.tabla-legal th, .tabla-legal td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tabla-legal thead th { border-top: 0; background: var(--bg-soft); color: var(--ink); }
.tabla-legal td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; white-space: nowrap; }

/* Gestión I+D+i: cifras clave y pasos */
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cifras li { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.cifras strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--blue-600); letter-spacing: -0.02em; margin-bottom: 6px; }
.cifras span { font-size: 0.92rem; color: var(--text); line-height: 1.45; }
.instrumento { display: flex; flex-direction: column; }
.instrumento .link-arrow { margin-top: auto; padding-top: 16px; }
.pasos { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.pasos li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.paso-num { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-600); color: #fff; font-weight: 800; }
.pasos h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.pasos p { margin: 0; color: var(--text); }
.notice a { color: var(--blue-600); font-weight: 700; }
@media (max-width: 1024px) { .cifras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .cifras { grid-template-columns: 1fr; } }
.card > .link-arrow { margin-top: 14px; }

/* Preguntas frecuentes agrupadas */
.faq-grupo { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq-grupo:hover { border-color: #c6dcee; }
.faq-grupo[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-grupo > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.faq-grupo > summary::-webkit-details-marker { display: none; }
.faq-grupo > summary .tile { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.faq-grupo-titulo { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.faq-chev { margin-left: auto; width: 22px; height: 22px; color: var(--blue-600); transition: transform .25s var(--ease); }
.faq-grupo[open] .faq-chev { transform: rotate(180deg); }
.faq-lista { padding: 0 20px 8px 80px; }
.faq-q { border-top: 1px solid var(--line); }
.faq-q > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 600; color: var(--ink); }
.faq-q > summary::-webkit-details-marker { display: none; }
.faq-q > summary::after { content: "+"; color: var(--blue-600); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.faq-q[open] > summary { color: var(--blue-600); }
.faq-q[open] > summary::after { content: "–"; }
.faq-q p { margin: -4px 0 16px; color: var(--text); line-height: 1.65; }
@media (max-width: 720px) { .faq-lista { padding: 0 16px 6px; } .faq-grupo > summary { padding: 14px 16px; } }
