/* =========================================================
   Bernabeu Integra — Hoja de estilos principal
   Paleta: Azul petróleo #0E3D45 · Verde #5FA08F · Ámbar #F2A33A · Gris claro #E8EDEB
   Tipografía: Manrope (toda la web)
   ========================================================= */

/* ---------- Manrope alojada en la propia web (sin Google Fonts) ---------- */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  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 {
  --petrol: #0E3D45;
  --petrol-700: #15535D;
  --petrol-900: #0A2E34;
  --green: #5FA08F;
  --green-text: #2F6E5E;      /* verde con contraste suficiente para texto */
  --green-soft: #9FD0C2;
  --amber: #F2A33A;
  --amber-hover: #F5B358;
  --amber-text: #B8740F;
  --grey: #E8EDEB;
  --bg: #F7F9F8;
  --white: #FFFFFF;
  --ink: #12262A;
  --ink-2: #34484C;
  --muted: #4A5D61;
  --line: #E1E8E6;
  --on-dark: #C9D6D3;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-lg: 20px;
  --container: 1200px;
  --section-y: clamp(64px, 9vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--petrol); }
a:hover { color: var(--green-text); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 24px; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--grey { background: var(--grey); }
.section--dark { background: var(--petrol); color: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--petrol); padding: 12px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Toda la web usa Manrope (--mono se mantiene como alias) */
/* ---------- Tipografía de sección ---------- */
.eyebrow {
  font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-text);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--green-soft); }
.h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; font-weight: 800; max-width: 800px; }
.lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 22px; border-radius: 10px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--amber { background: var(--amber); color: var(--petrol); }
.btn--amber:hover { background: var(--amber-hover); color: var(--petrol); }
.btn--petrol { background: var(--petrol); color: var(--white); }
.btn--petrol:hover { background: var(--petrol-700); color: var(--white); }
.btn--ghost { color: var(--white); border: 1.5px solid rgba(255,255,255,.45); background: transparent; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Cabecera ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--petrol); flex: none; }
.brand__name { font-weight: 800; font-size: 19px; line-height: 1.05; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 4px; }
.nav a:hover { color: var(--green-text); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; color: var(--petrol);
}
.header__cta { white-space: nowrap; }

@media (max-width: 1150px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--petrol); color: var(--white); }
.hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(64px, 8vw, 96px); }
.hero__copy { flex: 1 1 540px; min-width: 0; }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }
.hero__lead { margin-top: 24px; font-size: 19px; line-height: 1.6; color: #D3E2DF; max-width: 580px; }
.hero__lead strong { color: var(--white); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 44px 0 0; padding: 0; list-style: none; font-size: 14px; color: #B9CFCB; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; color: var(--amber); }

.hero__visual { flex: 1 1 400px; min-width: 0; }
.panel { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.28); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 700; font-size: 15px; }
.status { display: flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--green-text); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .status::before { animation: none; } }
.task { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 12px; padding: 14px; }
.task + .task { margin-top: 10px; }
.task__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--petrol); color: var(--white); display: flex; align-items: center; justify-content: center; }
.task__icon--amber { background: var(--amber); color: var(--petrol); }
.task__icon svg { width: 20px; height: 20px; }
.task__title { font-weight: 700; font-size: 15px; }
.task__meta { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.panel__foot { margin-top: 16px; font-size: 12px; color: var(--muted); }

/* ---------- Grids y tarjetas ---------- */
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 400px) { .grid--3 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card--soft { background: var(--bg); padding: 32px; }
.card h3 { margin-top: 16px; font-size: 19px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.card > svg { width: 28px; height: 28px; color: var(--petrol); }
.icon-box { width: 52px; height: 52px; border-radius: 12px; background: var(--petrol); color: var(--white); display: flex; align-items: center; justify-content: center; }
.icon-box svg { width: 26px; height: 26px; }
.card--soft h3 { margin-top: 20px; font-size: 21px; }

.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.split p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 420px; }

/* ---------- Calculadora ---------- */
.calc { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.calc__copy { flex: 1 1 440px; min-width: 0; }
.calc__copy .h2 { font-size: clamp(30px, 3.8vw, 40px); }
.calc__copy .lead { color: var(--on-dark); }
.calc__controls { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.range label { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; }
.range output { font-family: var(--mono); color: var(--amber); white-space: nowrap; }
.range input { width: 100%; margin-top: 10px; accent-color: var(--amber); height: 28px; cursor: pointer; }
.calc__result { flex: 1 1 420px; min-width: 0; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); }
.calc__label { font-size: 15px; color: var(--muted); }
.calc__big { font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; color: var(--petrol); margin-top: 6px; }
.calc__mono { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-top: 4px; }
.calc__divider { height: 1px; background: var(--line); margin: 28px 0; }
.calc__save { font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: var(--green-text); margin-top: 4px; }
.calc__note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Departamentos ---------- */
.dept h3 { margin: 0 0 14px; font-size: 17px; color: var(--petrol); }
.dept ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--white); border-radius: var(--radius); padding: 28px; }
.step__num { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--amber-text); }
.step h3 { margin-top: 12px; font-size: 19px; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Sobre nosotros ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about__media { flex: 1 1 360px; min-width: 0; }
.about__photo {
  aspect-ratio: 4 / 5; max-width: 440px; width: 100%; border-radius: var(--radius-lg);
  background: var(--grey); border: 1.5px dashed #9AAEA9; color: var(--muted);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 15px;
  object-fit: cover;
}
.about__copy { flex: 1 1 520px; min-width: 0; }
.about__copy p { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--green-text); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--green-text); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-wrap { background: var(--white); padding: 0 24px var(--section-y); }
.cta { max-width: var(--container); margin: 0 auto; background: var(--petrol); border-radius: 24px; padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; font-weight: 800; color: var(--white); max-width: 660px; }
.cta p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--on-dark); max-width: 660px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--petrol-900); color: var(--on-dark); padding: 64px 24px 32px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer .brand { color: var(--white); }
.footer p { margin-top: 16px; font-size: 15px; line-height: 1.6; }
.footer h3 { font-size: 14px; color: var(--white); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__bottom span:last-child { font-family: var(--mono); }

/* ---------- Página presupuesto ---------- */
.quote { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.quote__aside { flex: 1 1 380px; min-width: 0; }
.quote__aside h1 { margin-top: 12px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.quote__aside .lead { margin-top: 20px; }
.numbered { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 20px; }
.numbered li { display: flex; gap: 16px; font-size: 16px; line-height: 1.5; }
.numbered span { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--petrol); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; }
.numbered p { padding-top: 6px; }
.contact-box { margin-top: 40px; }
.contact-box p:first-child { font-weight: 700; font-size: 15px; }
.contact-box p + p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--muted); }

.form { flex: 1 1 560px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .form legend { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--white);
  border: 1.5px solid #C9D6D3; border-radius: 10px; padding: 13px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(95,160,143,.45); border-color: var(--green-text); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #C9D6D3; border-radius: 999px; padding: 10px 16px; font-size: 15px; background: var(--white); min-height: 44px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--green-text); background: #EEF6F3; }
.chip input { accent-color: var(--green-text); width: 16px; height: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green-text); flex: none; }
.form__note { font-size: 13px; text-align: center; color: var(--muted); }
.form__status { font-size: 15px; font-weight: 600; text-align: center; min-height: 1.5em; }
.form__status.is-error { color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Páginas legales / simples ---------- */
.page { max-width: 820px; margin: 0 auto; padding: var(--section-y) 24px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.15; }
.page h2 { font-size: 22px; margin-top: 36px; }
.page p, .page li { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-top: 12px; }
.page .placeholder { background: #FFF4E2; border: 1px solid #F2D3A2; border-radius: 12px; padding: 16px; margin-top: 24px; font-size: 15px; }
.simple { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 64px 24px; }
.simple h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.simple p { margin: 16px auto 32px; font-size: 18px; color: var(--ink-2); max-width: 560px; line-height: 1.6; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Logotipo ---------- */
.brand .brand__logo { height: 56px; width: auto; max-width: none; aspect-ratio: 2172 / 724; }
@media (max-width: 480px) { .brand .brand__logo { height: 44px; } }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--white); display: flex; align-items: center; justify-content: center; flex: none; }
.brand__mark img { width: 32px; height: 32px; }
.footer .brand__name span { color: var(--green-soft); }

/* ---------- Trayectoria en cifras ---------- */
.stats { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stats strong { display: block; font-size: 22px; font-weight: 800; color: var(--petrol); letter-spacing: -0.01em; }
.stats span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.certs { margin-top: 28px !important; font-size: 14px !important; line-height: 1.6 !important; color: var(--muted) !important; }
.certs span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); margin-right: 8px; }

/* ---------- Clientes ---------- */
.clients { padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 72px); }
.clients .h2 { font-size: clamp(22px, 2.6vw, 28px); }
.logos { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 56px; }
.logos li { display: flex; align-items: center; justify-content: center; padding: 18px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.logos img { height: 56px; width: auto; max-width: 240px; object-fit: contain; }


/* =========================================================
   EFECTOS DE FONDO
   Bolas de luz que se deslizan, "píxeles" de la marca que flotan
   (los cuadrados del logo), malla de puntos y foco que sigue al ratón.
   Todo es decorativo (aria-hidden) y se desactiva con "reducir movimiento".
   ========================================================= */
[data-fx] { position: relative; overflow: hidden; isolation: isolate; }
[data-fx] > :not(.fx) { position: relative; z-index: 1; }
.fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Bolas de luz */
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  will-change: transform; animation: orb-drift var(--dur, 22s) ease-in-out infinite alternate;
}
.orb--green { background: radial-gradient(circle at 30% 30%, #5FA08F, rgba(95,160,143,0) 70%); }
.orb--amber { background: radial-gradient(circle at 30% 30%, #F2A33A, rgba(242,163,58,0) 70%); }
.orb--teal  { background: radial-gradient(circle at 30% 30%, #2A8C8C, rgba(42,140,140,0) 70%); }
.orb--petrol{ background: radial-gradient(circle at 30% 30%, #0E3D45, rgba(14,61,69,0) 70%); }
@keyframes orb-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(var(--dx1, 120px), var(--dy1, -60px), 0) scale(1.15); }
  66%  { transform: translate3d(var(--dx2, -80px), var(--dy2, 90px), 0) scale(.9); }
  100% { transform: translate3d(var(--dx3, 60px), var(--dy3, 40px), 0) scale(1.05); }
}

/* Píxeles de la marca flotando */
.pixel {
  position: absolute; bottom: -40px; border-radius: 4px; opacity: 0;
  will-change: transform, opacity; animation: pixel-rise var(--dur, 16s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes pixel-rise {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: var(--op, .7); }
  85%  { opacity: var(--op, .7); }
  100% { transform: translate3d(var(--drift, 40px), calc(-1 * var(--rise, 700px)), 0) rotate(var(--rot, 180deg)); opacity: 0; }
}

/* Malla de puntos que se desvanece hacia los bordes */
.fx__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  animation: grid-pan 40s linear infinite;
}
@keyframes grid-pan { to { background-position: 28px 56px; } }

/* Foco que sigue al ratón (hero) */
.fx__spot {
  position: absolute; width: 520px; height: 520px; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(95,160,143,.22), rgba(95,160,143,0) 65%);
  transform: translate3d(var(--mx, 60vw), var(--my, 30%), 0) translate(-50%, -50%);
  transition: transform .25s ease-out; opacity: 0;
}
[data-fx="hero"]:hover .fx__spot { opacity: 1; }

/* Variante clara: bolas muy suaves sobre fondos claros */
[data-fx="light"] .orb { opacity: .3; filter: blur(70px); }
[data-fx="light"] .fx__grid { background-image: radial-gradient(rgba(14,61,69,.10) 1px, transparent 1.4px); }

/* CTA: brillo que recorre la tarjeta */
[data-fx="cta"]::after {
  content: ""; position: absolute; inset: -50%; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }

/* Tarjetas: ligero realce al pasar el ratón para dar profundidad */
.card, .step, .task { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover, .step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(14,61,69,.28); border-color: #CFDCD8; }
.panel { animation: panel-float 7s ease-in-out infinite; }
@keyframes panel-float { 50% { transform: translateY(-10px); } }
.task:hover { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .orb, .pixel, .fx__grid, .panel, [data-fx="cta"]::after { animation: none !important; }
  .pixel { opacity: .5; bottom: auto; top: var(--top, 50%); }
  .fx__spot { display: none; }
  .card:hover, .step:hover, .task:hover { transform: none; }
}
@media (max-width: 640px) {
  .orb { filter: blur(45px); }
  .fx__spot { display: none; }
}

/* ---------- Cabecera: acciones y selector de idioma ---------- */
.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header__back { font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 4px; white-space: nowrap; }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--petrol);
  font: 700 14px var(--font); letter-spacing: .02em; cursor: pointer; transition: border-color .2s, background .2s;
}
.lang__btn:hover, .lang.is-open .lang__btn { border-color: #B9CBC6; background: var(--bg); }
.lang__btn svg { width: 18px; height: 18px; flex: none; }
.lang__btn .lang__chev { width: 14px; height: 14px; transition: transform .2s; }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 44px -14px rgba(14,61,69,.30);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.lang.is-open .lang__menu, .no-js .lang:focus-within .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 12px;
  border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.lang__menu a:hover { background: var(--bg); color: var(--petrol); }
.lang__menu small { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.lang__menu a[aria-current="true"] { color: var(--green-text); font-weight: 700; background: #EEF6F3; }
.lang__menu a[aria-current="true"] small { color: var(--green-text); }
@media (max-width: 480px) {
  .lang__btn { padding: 0 10px; }
  .header__back { display: none; }
}

/* =========================================================
   DECORACIÓN ESTÁTICA DE SECCIONES
   - Servicios: circuito de conexiones (integración de sistemas)
   - Quiénes somos: ondas concéntricas (escuchar antes de programar)
   - Preguntas: grandes signos de interrogación
   ========================================================= */
#servicios, #sobre-nosotros, #faq { position: relative; overflow: hidden; isolation: isolate; }
#servicios > .container, #sobre-nosotros > .container, #faq > .container { position: relative; z-index: 1; }

/* --- Servicios: circuito --- */
#servicios::before, #servicios::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none'%3E%3Cg stroke='%230E3D45' stroke-opacity='.24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 80H120V160H260V230'/%3E%3Cpath d='M40 0V60H200V120H330'/%3E%3Cpath d='M400 100H300V200H180V320H90'/%3E%3Cpath d='M260 400V300H360V250'/%3E%3Cpath d='M120 160V260H40V400'/%3E%3Cpath d='M330 120V40H400'/%3E%3Cpath d='M180 320V400'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' stroke='%230E3D45' stroke-opacity='.38' stroke-width='2'%3E%3Ccircle cx='120' cy='160' r='7'/%3E%3Ccircle cx='200' cy='60' r='7'/%3E%3Ccircle cx='300' cy='200' r='7'/%3E%3Ccircle cx='260' cy='230' r='7'/%3E%3Ccircle cx='180' cy='320' r='7'/%3E%3Ccircle cx='40' cy='260' r='7'/%3E%3Ccircle cx='360' cy='300' r='7'/%3E%3C/g%3E%3Crect x='323' y='113' width='14' height='14' rx='3' fill='%23F2A33A' fill-opacity='.9'/%3E%3Crect x='83' y='313' width='14' height='14' rx='3' fill='%235FA08F' fill-opacity='.85'/%3E%3Crect x='353' y='243' width='14' height='14' rx='3' fill='%235FA08F' fill-opacity='.8'/%3E%3Crect x='193' y='113' width='14' height='14' rx='3' fill='%23F2A33A' fill-opacity='.75'/%3E%3C/svg%3E");
}
#servicios::before { top: -140px; right: -160px; }
#servicios::after { bottom: -200px; left: -200px; transform: rotate(180deg); opacity: .9; }

/* --- Quiénes somos: ondas de escucha que salen de la foto --- */
#sobre-nosotros::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background: repeating-radial-gradient(circle at 22% 50%, transparent 0 46px, rgba(95,160,143,.30) 46px 48.5px);
  -webkit-mask-image: radial-gradient(circle at 22% 50%, #000 0, rgba(0,0,0,.8) 380px, transparent 820px);
          mask-image: radial-gradient(circle at 22% 50%, #000 0, rgba(0,0,0,.8) 380px, transparent 820px);
}
#sobre-nosotros::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: 6%; top: 64px; width: 120px; height: 120px;
  background:
    linear-gradient(#F2A33A, #F2A33A) 0 0 / 22px 22px no-repeat,
    linear-gradient(#5FA08F, #5FA08F) 30px 30px / 16px 16px no-repeat,
    linear-gradient(#F2A33A, #F2A33A) 54px 54px / 12px 12px no-repeat;
  opacity: .7;
}

/* --- Preguntas: interrogaciones gigantes --- */
#faq::before, #faq::after {
  position: absolute; z-index: 0; pointer-events: none; font-family: var(--font); font-weight: 800; line-height: 1;
}
#faq::before {
  content: "?"; content: "?" / "";
  left: max(-40px, calc(50% - 760px)); top: 40px; font-size: 560px; color: rgba(14,61,69,.08);
  transform: rotate(-12deg);
}
#faq::after {
  content: "?"; content: "?" / "";
  right: max(-10px, calc(50% - 680px)); bottom: 60px; font-size: 220px; color: rgba(242,163,58,.32);
  transform: rotate(14deg);
}

@media (max-width: 760px) {
  #servicios::before { width: 360px; height: 360px; top: -110px; right: -150px; }
  #servicios::after { display: none; }
  #sobre-nosotros::before {
    background: repeating-radial-gradient(circle at 50% 22%, transparent 0 40px, rgba(95,160,143,.26) 40px 42.5px);
    -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0, transparent 480px);
            mask-image: radial-gradient(circle at 50% 22%, #000 0, transparent 480px);
  }
  #sobre-nosotros::after { display: none; }
  #faq::before { font-size: 340px; left: -50px; top: 20px; }
  #faq::after { font-size: 140px; right: -10px; bottom: 30px; }
}

/* ---------- Banderas del selector de idioma (SVG, no emoji) ---------- */
.flag {
  display: inline-block; flex: none; width: 24px; height: 16px; border-radius: 3px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(14,61,69,.14);
}
.flag--es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 750 500'%3E%3Crect width='750' height='500' fill='%23AA151B'/%3E%3Crect y='125' width='750' height='250' fill='%23F1BF00'/%3E%3C/svg%3E"); }
.flag--en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='xMidYMid slice'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0,0 60,30M60,0 0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 60,30M60,0 0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E"); }
.flag--it { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%23009246'/%3E%3Crect x='1' width='1' height='2' fill='%23fff'/%3E%3Crect x='2' width='1' height='2' fill='%23CE2B37'/%3E%3C/svg%3E"); }
.flag--de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='1' fill='%23000'/%3E%3Crect y='1' width='5' height='1' fill='%23DD0000'/%3E%3Crect y='2' width='5' height='1' fill='%23FFCE00'/%3E%3C/svg%3E"); }
.flag--fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%23002654'/%3E%3Crect x='1' width='1' height='2' fill='%23fff'/%3E%3Crect x='2' width='1' height='2' fill='%23CE1126'/%3E%3C/svg%3E"); }
.flag--pt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Crect width='600' height='400' fill='%23FF0000'/%3E%3Crect width='240' height='400' fill='%23006600'/%3E%3Ccircle cx='240' cy='200' r='70' fill='none' stroke='%23FFCC00' stroke-width='16'/%3E%3Cpath d='M205 160h70v55a35 35 0 0 1-70 0z' fill='%23fff'/%3E%3Cpath d='M217 172h46v43a23 23 0 0 1-46 0z' fill='%23FF0000'/%3E%3C/svg%3E"); }
.lang__btn .flag { width: 26px; height: 18px; }
.lang__menu a { justify-content: flex-start; gap: 12px; }

/* =========================================================
   CABECERA — estilo propio
   Menú con subrayado ámbar, sección activa marcada al hacer scroll,
   cabecera que se compacta al bajar y selector/botón más limpios.
   ========================================================= */
.header {
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(14,61,69,.45); background: rgba(255,255,255,.97); }
.header__inner { padding-top: 18px; padding-bottom: 18px; transition: padding .3s; }
.header.is-scrolled .header__inner { padding-top: 10px; padding-bottom: 10px; }
.brand .brand__logo { transition: height .3s; }
.header.is-scrolled .brand .brand__logo { height: 46px; }

.nav { gap: 6px; }
.nav a {
  position: relative; padding: 10px 12px; border-radius: 8px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--petrol);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.nav a:hover { color: var(--petrol); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--petrol); }

.header__cta { border-radius: 999px; padding: 12px 20px 12px 22px; font-weight: 700; letter-spacing: -0.005em; }
.header__cta svg { width: 16px; height: 16px; transition: transform .2s; }
.header__cta:hover svg { transform: translate(2px, -2px); }

.lang__btn { border-color: transparent; background: transparent; padding: 0 8px; gap: 4px; }
.lang__btn:hover, .lang.is-open .lang__btn { background: var(--bg); border-color: transparent; }

@media (max-width: 1150px) {
  .nav { gap: 0; }
  .nav a { padding: 16px 0; border-radius: 0; font-size: 17px; }
  .nav a::after { left: 0; right: auto; width: 28px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .header, .header__inner, .brand .brand__logo, .nav a::after { transition: none; }
}

/* ---------- Tarjeta de tareas (portada): solo tipografía ---------- */
.panel__title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.025em; color: var(--petrol); }
.status { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; color: #23604F; }
.task__title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.task__meta { margin-top: 3px; font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; color: #5B6F73; }

/* ---------- Botón "volver arriba" (pie) ---------- */
.footer__bottom { align-items: center; }
.to-top {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.28); color: var(--white) !important; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--amber); border-color: var(--amber); color: var(--petrol) !important; transform: translateY(-3px); }

/* ---------- "Quiénes somos": foto del fundador delante de la marca ---------- */
.about__media { flex: 1 1 360px; }
.about__hero { position: relative; margin: 0; max-width: 440px; }
.about__hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(14,61,69,.5);
}
.about__hero figcaption {
  position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 1px;
  padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -12px rgba(14,61,69,.4);
}
.about__hero figcaption strong { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--petrol); }
.about__hero figcaption span { font-size: 13px; font-weight: 600; color: var(--green-text); }
@media (max-width: 480px) {
  .about__hero figcaption { left: 10px; bottom: 10px; padding: 8px 11px; }
  .about__hero figcaption strong { font-size: 13.5px; }
  .about__hero figcaption span { font-size: 12px; }
}
