:root {
  --ink: #163a36;
  --muted: #55706c;
  --brand: #71c7b5;
  --brand-dark: #317e71;
  --brand-soft: #eaf8f4;
  --warm: #f7f3ed;
  --white: #fff;
  --line: #d8e7e3;
  --shadow: 0 18px 50px rgba(22, 58, 54, .10);
  --radius: 26px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-soft { background: var(--brand-soft); }
.section-warm { background: var(--warm); }
.narrow { width: min(100%, 800px); }
.center { margin-inline: auto; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--brand-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 6.5vw, 5.45rem); max-width: 900px; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lead { margin-top: 22px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); max-width: 760px; }
.center .lead { margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center .actions { justify-content: center; }
.button { min-width: 160px !important; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 750; line-height: 1.1; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--brand-dark); border-color: var(--brand-dark); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; padding: 14px 0; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(216,231,227,.8); backdrop-filter: blur(14px); }
.nav-shell { display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; }
.brand img { width: 190px; height: 62px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a { padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: .95rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--ink); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 21px; height: 2px; margin: 5px auto; background: currentColor; content: ""; transition: transform .2s ease; }

.hero { position: relative; overflow: hidden; padding: 82px 0 98px; background: linear-gradient(135deg, #f5fcfa 0%, #e3f6f1 60%, #fff 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .7fr); align-items: center; gap: 72px; }
.hero h1 em { color: var(--brand-dark); font-style: normal; }
.hero-media { position: relative; }
.hero-media::before { position: absolute; inset: -18px 18px 18px -18px; border: 2px solid var(--brand); border-radius: 44% 56% 48% 52% / 55% 40% 60% 45%; content: ""; }
.hero-media img { position: relative; width: 100%; aspect-ratio: .89; border-radius: 44% 56% 48% 52% / 55% 40% 60% 45%; box-shadow: var(--shadow); object-fit: cover; object-position: center top; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--muted); font-size: .92rem; font-weight: 700; }
.trust-row span::before { margin-right: 8px; color: var(--brand-dark); content: "✓"; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 390px; padding: 76px 0 64px; background: var(--ink); display: flex; align-items: center; }
.page-hero::before { position: absolute; z-index: -3; inset: -24px; background-image: linear-gradient(100deg, rgba(10,45,40,.62), rgba(16,64,57,.35)), var(--page-hero-image, url("../img/imagenescodex/foto portada.png")); background-position: center; background-size: cover; filter: blur(7px); transform: scale(1.06); content: ""; }
.page-hero::after { position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 78% 25%, rgba(113,199,181,.22), transparent 30%), linear-gradient(120deg, rgba(8,42,37,.08), rgba(8,42,37,.36)); content: ""; }
.page-hero > .container { position: relative; z-index: 2; padding: clamp(28px, 5vw, 55px); border: 1px solid rgba(255,255,255,.25); border-radius: 32px; background: linear-gradient(120deg, rgba(255,255,255,.18), rgba(255,255,255,.08)); box-shadow: 0 26px 70px rgba(4,35,31,.24); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.page-hero .eyebrow { color: #bff3e7; }
.page-hero .lead { color: rgba(255,255,255,.86); }
.page-hero h1 { font-size: clamp(2.55rem, 5.8vw, 4.9rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.split-media img { width: 100%; min-height: 480px; max-height: 640px; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.prose > * + * { margin-top: 18px; }
.prose ul { margin: 20px 0 0; padding-left: 1.2rem; }
.prose li + li { margin-top: 8px; }
.signature { color: var(--brand-dark); font-size: 1.4rem; font-weight: 800; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 35px rgba(22,58,54,.055); }
.card h3 + p, .card .tag + h3 { margin-top: 12px; }
.card p { color: var(--muted); }
.card img { width: calc(100% + 60px); height: 230px; margin-bottom: 25px; border-radius: 20px; object-fit: cover; }
.service-card { padding: 0; }
.service-card > a { display: block; height: 100%; padding: 30px; color: inherit; text-decoration: none; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.service-browser { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 42px; margin-top: 38px; }
.service-search { width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--brand-soft); }
.service-search label { display: block; margin-bottom: 9px; font-weight: 800; }
.service-search-controls { display: flex; gap: 10px; }
.service-search input { width: 100%; min-height: 52px; padding: 11px 17px; border: 1px solid #bfd8d2; border-radius: 999px; background: #fff; color: var(--ink); }
.service-search input:focus { border-color: var(--brand-dark); outline: 3px solid rgba(113,199,181,.28); }
.service-search-status { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.service-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.service-item { display: flex; width: 100%; scroll-margin-top: 110px; padding: 17px 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 0 15px 15px 0; align-items: center; justify-content: space-between; gap: 18px; background: #fff; box-shadow: 0 8px 24px rgba(22,58,54,.06); color: var(--ink); text-align: left; }
.service-item > span:first-child { font-weight: 800; }
.service-item > span:last-child { color: var(--brand-dark); font-size: 1.2rem; transition: transform .2s ease; }
.service-item:hover > span:last-child, .service-item[aria-pressed="true"] > span:last-child { transform: translateX(4px); }
.service-item[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 14px 34px rgba(22,58,54,.18); }
.service-item[aria-pressed="true"] > span:last-child { color: var(--brand); }
.service-detail-panel { position: sticky; top: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.service-detail-panel > img { width: 100%; height: clamp(310px, 35vw, 470px); object-fit: cover; }
.service-detail-panel > div { padding: clamp(25px, 4vw, 42px); }
.service-detail-panel h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.service-detail-panel h3 + p { margin-top: 16px; color: var(--muted); }
.service-detail-panel .button { margin-top: 26px; }
.service-no-results { margin-top: 30px; padding: 30px; border: 1px dashed var(--brand-dark); border-radius: 20px; background: var(--brand-soft); }
.service-no-results p { margin-top: 7px; color: var(--muted); }
.service-no-results button { padding: 0; border: 0; background: none; color: var(--brand-dark); font-weight: 800; text-decoration: underline; }
.steps { counter-reset: steps; }
.step { position: relative; padding-left: 76px; }
.step::before { position: absolute; left: 0; top: 0; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--brand); color: var(--ink); font-weight: 900; counter-increment: steps; content: "0" counter(steps); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; }
.contact-map { margin-bottom: 64px; }
.contact-map-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.contact-map-intro h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.contact-map-intro p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }
.contact-map-intro .button { flex: 0 0 auto; }
.contact-map-frame { position: relative; isolation: isolate; overflow: hidden; min-height: 430px; border: 1px solid rgba(49,126,113,.25); border-radius: 30px; background: radial-gradient(circle at 18% 25%, rgba(113,199,181,.45), transparent 28%), radial-gradient(circle at 82% 75%, rgba(113,199,181,.3), transparent 25%), linear-gradient(135deg, #dff4ee, #f8fcfb); box-shadow: 0 22px 60px rgba(22,58,54,.14); }
.contact-map-frame::before { position: absolute; z-index: -1; inset: 0; opacity: .18; background-image: linear-gradient(rgba(22,58,54,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(22,58,54,.22) 1px, transparent 1px); background-size: 42px 42px; content: ""; transform: rotate(-5deg) scale(1.15); }
.contact-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .7s ease; }
.contact-map-frame.is-loaded iframe { opacity: 1; }
.map-consent { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(90%, 520px); padding: 30px; border: 1px solid rgba(255,255,255,.72); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 20px 55px rgba(22,58,54,.14); text-align: center; backdrop-filter: blur(13px); transform: translate(-50%, -50%); transition: opacity .35s ease, transform .35s ease; }
.contact-map-frame.is-loaded .map-consent { opacity: 0; pointer-events: none; transform: translate(-50%, -46%) scale(.96); }
.map-pin { display: grid; width: 46px; height: 46px; margin: 0 auto 13px; place-items: center; border-radius: 50% 50% 50% 0; background: var(--brand); color: var(--ink); font-size: .7rem; transform: rotate(-45deg); }
.map-pin::first-letter { transform: rotate(45deg); }
.map-consent h3 { font-size: 1.5rem; }
.map-consent p { margin: 10px auto 20px; color: var(--muted); }
.map-consent > a { display: block; margin-top: 10px; color: var(--brand-dark); font-size: .82rem; font-weight: 750; }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-list a, .contact-list address { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font-style: normal; font-weight: 700; text-decoration: none; }
.contact-list small { display: block; color: var(--muted); font-weight: 500; }
.form-card { padding: 36px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #bfd4cf; border-radius: 12px; background: #fbfdfd; color: var(--ink); }
textarea { min-height: 135px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .85rem; }
.check input { width: 18px; min-height: 18px; margin-top: 4px; }
.form-status { min-height: 1.5em; margin-top: 12px; color: var(--brand-dark); font-weight: 700; }
.form-status.is-error { color: #a32929; }
.form-status.is-success { color: #176b4d; }
.form-status.is-sending { color: var(--muted); }
.form-trap { position: absolute !important; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.button:disabled { cursor: wait; opacity: .58; transform: none; }
.check a { color: var(--brand-dark); font-weight: 800; text-underline-offset: 2px; }

.faq-list { display: grid; gap: 13px; margin-top: 42px; }
details { padding: 0 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
summary { padding: 20px 36px 20px 0; font-weight: 800; cursor: pointer; }
details p { padding: 0 0 22px; color: var(--muted); }
.notice { padding: 24px 28px; border-radius: 18px; background: #fff5dc; color: #5d481b; }
.cta { padding: 70px 0; background: var(--ink); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta p { margin-top: 12px; color: #c8ddd8; }
.cta .button { border-color: #fff; background: #fff; color: var(--ink); }

.site-footer { padding: 64px 0 24px; background: #102f2c; color: #d9e8e5; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 50px; }
.footer-brand img { width: 210px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 460px; margin-top: 20px; color: #aac5c0; }
.site-footer h2 { font-size: 1rem; letter-spacing: .02em; }
.footer-links { display: grid; gap: 8px; margin-top: 16px; }
.footer-links a { color: #c4d9d5; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 42px; padding-top: 22px; border-top: 1px solid #2e4c48; }
.footer-legal a, .footer-legal button { padding: 0; border: 0; background: none; color: #b7cfca; font-size: .84rem; text-decoration: none; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 52px; padding-top: 22px; border-top: 1px solid #2e4c48; color: #9db9b4; font-size: .85rem; }
.footer-bottom a { color: inherit; }

.legal-content h2 { margin-top: 44px; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.legal-content h2:first-of-type { margin-top: 26px; }
.legal-content h2 + p, .legal-content p + p { margin-top: 14px; }
.legal-content a { color: var(--brand-dark); font-weight: 700; }
.legal-updated { padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--brand-soft); color: var(--muted); font-size: .92rem; }
.legal-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; }
.legal-content table { width: 100%; border-collapse: collapse; background: #fff; }
.legal-content th, .legal-content td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-content tr:last-child td { border-bottom: 0; }

.quick-contact-mobile { display: none; }
.quick-contact-desktop { position: fixed; z-index: 90; right: 24px; bottom: 24px; }
.quick-contact-trigger { min-width: 126px; min-height: 52px; padding: 12px 22px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: var(--ink); box-shadow: 0 15px 38px rgba(8,42,37,.26); color: #fff; font-weight: 800; }
.quick-contact-trigger::before { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: #54d394; box-shadow: 0 0 0 4px rgba(84,211,148,.15); content: ""; }
.quick-contact-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(320px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 22px 60px rgba(8,42,37,.2); }
.quick-contact-panel[hidden] { display: none; }
.quick-contact-panel p { margin: 0 0 10px; }
.quick-contact-panel a { display: block; padding: 12px 14px; border-radius: 13px; color: var(--ink); font-weight: 800; text-decoration: none; }
.quick-contact-panel a:hover { background: var(--brand-soft); }
.quick-contact-panel small { display: block; color: var(--muted); font-weight: 500; }

.cookie-banner { position: fixed; z-index: 300; inset: 0; display: flex; align-items: flex-end; padding: 24px; background: rgba(7,32,29,.42); backdrop-filter: blur(5px); }
.cookie-banner[hidden] { display: none; }
.cookie-dialog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; width: min(100%, 1120px); margin: 0 auto; padding: 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 25px; background: rgba(255,255,255,.96); box-shadow: 0 25px 80px rgba(8,42,37,.3); }
.cookie-dialog h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.cookie-dialog p:not(.eyebrow) { max-width: 720px; margin-top: 10px; color: var(--muted); font-size: .94rem; }
.cookie-dialog a { display: inline-block; margin-top: 8px; color: var(--brand-dark); font-size: .9rem; font-weight: 800; }
.cookie-actions { display: flex; flex-wrap: wrap; align-content: center; justify-content: flex-end; gap: 9px; max-width: 430px; }
.cookie-actions .button { min-height: 45px; padding: 10px 16px; font-size: .88rem; }
.cookie-reject { width: 100%; padding: 4px; border: 0; background: none; color: var(--muted); font-size: .82rem; text-decoration: underline; }

/* Motion system: subtle enough for health content, lively enough to feel modern. */
.hero > .container, .page-hero > .container { position: relative; z-index: 2; }
.motion-decor { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.motion-floater { --float-delay: 0s; --float-duration: 6s; position: absolute; display: grid; width: 68px; height: 68px; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 22px; background: rgba(255,255,255,.54); box-shadow: 0 15px 40px rgba(22,58,54,.12); opacity: .78; backdrop-filter: blur(8px); animation: kinexia-float var(--float-duration) cubic-bezier(.45,.05,.55,.95) var(--float-delay) infinite; will-change: transform; }
.motion-floater img { width: 34px; height: 34px; opacity: .72; animation: kinexia-icon-breathe 3.2s ease-in-out infinite; }
.motion-floater:nth-child(1) { top: 10%; left: 3%; --float-duration: 5.4s; }
.motion-floater:nth-child(2) { top: 16%; right: 5%; --float-delay: -2.8s; --float-duration: 6.6s; animation-direction: reverse; }
.motion-floater:nth-child(3) { bottom: 8%; left: 43%; --float-delay: -5s; --float-duration: 7.2s; }
.motion-floater:nth-child(4) { right: 2%; bottom: 10%; --float-delay: -1.2s; --float-duration: 5.9s; animation-direction: reverse; }
.page-hero .motion-floater { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); opacity: .58; }
.page-hero .motion-floater img { filter: brightness(0) invert(1); opacity: .85; }
.hero-media { animation: kinexia-photo-float 7s ease-in-out infinite; will-change: transform; }
.hero-media::after { position: absolute; right: -12px; bottom: 8%; width: 95px; height: 95px; border-radius: 50%; background: rgba(113,199,181,.32); filter: blur(2px); content: ""; animation: kinexia-pulse 4.5s ease-in-out infinite; }
.card, .service-item, .contact-list > *, details { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.card:hover, .service-item:hover, .contact-list > *:hover, details:hover { transform: translateY(-6px); border-color: rgba(49,126,113,.35); box-shadow: 0 20px 45px rgba(22,58,54,.12); }
.card img, .split-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.card:hover img { transform: scale(1.045); }
.split-media { overflow: hidden; border-radius: var(--radius); }
.split-media:hover img { transform: scale(1.025); }
.reveal-item { opacity: 0; filter: blur(2px); transform: translate3d(0, 38px, 0); transition: opacity var(--reveal-duration, .9s) ease var(--reveal-delay, 0ms), transform var(--reveal-duration, .9s) cubic-bezier(.16,.7,.24,1) var(--reveal-delay, 0ms), filter var(--reveal-duration, .9s) ease var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal-item.from-left { transform: translate3d(-72px, 0, 0); }
.reveal-item.from-right { transform: translate3d(72px, 0, 0); }
.reveal-item.fade-up { transform: translate3d(0, 46px, 0); }
.reveal-item.reveal-title { letter-spacing: -.045em; }
.reveal-item.reveal-media { filter: blur(4px); transform: translate3d(-64px, 0, 0) scale(.94); }
.reveal-item.reveal-media.from-right { transform: translate3d(64px, 0, 0) scale(.94); }
.reveal-item.reveal-slow { --reveal-duration: 1.15s; }
.reveal-item.is-visible { opacity: 1; filter: none; transform: none; }
.card.reveal-item.is-visible:hover, .service-item.reveal-item.is-visible:hover,
.contact-list > .reveal-item.is-visible:hover, details.reveal-item.is-visible:hover { transform: translateY(-6px); }
.hero .eyebrow, .hero h1, .hero .lead, .hero .actions, .hero .trust-row, .hero .hero-media,
.page-hero .eyebrow, .page-hero h1, .page-hero .lead, .page-hero .actions { opacity: 0; transform: translateY(24px); }
.motion-ready .hero .eyebrow, .motion-ready .page-hero .eyebrow { animation: kinexia-enter .7s .08s ease forwards; }
.motion-ready .hero h1, .motion-ready .page-hero h1 { animation: kinexia-enter .85s .18s cubic-bezier(.2,.7,.2,1) forwards; }
.motion-ready .hero .lead, .motion-ready .page-hero .lead { animation: kinexia-enter .75s .32s ease forwards; }
.motion-ready .hero .actions, .motion-ready .page-hero .actions { animation: kinexia-enter .7s .43s ease forwards; }
.motion-ready .hero .trust-row { animation: kinexia-enter .7s .52s ease forwards; }
.motion-ready .hero .hero-media { animation: kinexia-enter-media .9s .28s cubic-bezier(.2,.7,.2,1) forwards, kinexia-photo-float 7s 1.2s ease-in-out infinite; }

@keyframes kinexia-enter { to { opacity: 1; transform: none; } }
@keyframes kinexia-enter-media { from { opacity: 0; transform: translateY(34px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes kinexia-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-7deg); } 25% { transform: translate3d(24px, -30px, 0) rotate(5deg); } 50% { transform: translate3d(-13px, -18px, 0) rotate(-5deg); } 75% { transform: translate3d(18px, 16px, 0) rotate(8deg); } }
@keyframes kinexia-float-mobile { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); } 33% { transform: translate3d(12px, -18px, 0) rotate(5deg); } 66% { transform: translate3d(-9px, 10px, 0) rotate(-4deg); } }
@keyframes kinexia-icon-breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.1); } }
@keyframes kinexia-photo-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -9px, 0); } }
@keyframes kinexia-pulse { 0%, 100% { transform: scale(.85); opacity: .45; } 50% { transform: scale(1.12); opacity: .8; } }

@media (max-width: 980px) {
  .desktop-cta { display: none; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 91px 20px auto; display: none; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px 14px; }
  .hero-grid, .split, .contact-grid, .service-browser { grid-template-columns: 1fr; }
  .service-detail-panel { position: static; }
  .hero-grid { gap: 52px; }
  .hero-media { width: min(100%, 560px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .quick-contact-desktop { display: none; }
  .quick-contact-mobile { position: fixed; z-index: 90; right: 15px; bottom: 15px; display: inline-flex; align-items: center; gap: 8px; min-height: 51px; padding: 8px 16px 8px 8px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: #167a4b; box-shadow: 0 14px 34px rgba(12,70,43,.3); color: #fff; font-size: .9rem; font-weight: 800; text-decoration: none; }
  .whatsapp-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #fff; color: #167a4b; font-size: .68rem; font-weight: 900; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .brand img { width: 155px; height: 55px; }
  .site-nav { top: 84px; }
  .hero { padding: 56px 0 70px; background: linear-gradient(145deg, #f5fcfa, #e3f6f1); }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-media { width: calc(100% - 18px); margin-left: 18px; }
  .page-hero { min-height: 400px; padding: 48px 0; }
  .page-hero > .container { padding: 28px 22px; border-radius: 25px; }
  .motion-floater { width: 52px; height: 52px; border-radius: 17px; opacity: .62; animation-name: kinexia-float-mobile; }
  .motion-floater img { width: 27px; height: 27px; }
  .motion-floater:nth-child(1) { top: 4%; left: -8px; }
  .motion-floater:nth-child(2) { top: 34%; right: -12px; }
  .motion-floater:nth-child(3) { bottom: 4%; left: 8%; }
  .motion-floater:nth-child(4) { display: none; }
  .hero .motion-floater:nth-child(1) { top: 58%; bottom: auto; left: -12px; }
  .hero .motion-floater:nth-child(2) { top: 66%; right: -12px; }
  .hero .motion-floater:nth-child(3) { bottom: 3%; left: 8%; }
  .reveal-item.from-left { transform: translate3d(-38px, 0, 0); }
  .reveal-item.from-right { transform: translate3d(38px, 0, 0); }
  .reveal-item.reveal-media { transform: translate3d(-42px, 0, 0) scale(.95); }
  .reveal-item.reveal-media.from-right { transform: translate3d(42px, 0, 0) scale(.95); }
  .reveal-item.is-visible { transform: none; }
  .grid, .grid.two, .service-list, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-search-controls { align-items: stretch; flex-direction: column; }
  .service-search-controls .button { width: 100%; }
  .field.full, .footer-brand { grid-column: auto; }
  .split { gap: 40px; }
  .split-media img { min-height: 360px; }
  .form-card { padding: 24px; }
  .contact-map { margin-bottom: 48px; }
  .contact-map-intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .contact-map-frame { min-height: 440px; border-radius: 23px; }
  .map-consent { width: calc(100% - 24px); padding: 24px 18px; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .cta { padding: 56px 0; }
  .cookie-banner { padding: 10px; }
  .cookie-dialog { grid-template-columns: 1fr; max-height: calc(100vh - 20px); overflow-y: auto; gap: 18px; padding: 22px 18px; border-radius: 21px; }
  .cookie-actions { display: grid; max-width: none; }
  .cookie-actions .button { width: 100%; }
  .footer-legal { display: grid; gap: 8px; }
  .footer-bottom { margin-top: 28px; }
  .contact-list a, .contact-list address, .footer-links a, .footer-bottom { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The floating physiotherapy pieces are an intentional ambient brand effect. */
body.motion-ready .motion-floater { animation: kinexia-float var(--float-duration) cubic-bezier(.45,.05,.55,.95) var(--float-delay) infinite !important; }
body.motion-ready .motion-floater:nth-child(even) { animation-direction: reverse !important; }

@media (max-width: 680px) {
  body.motion-ready .motion-floater { animation-name: kinexia-float-mobile !important; }
}
