/* =============================================================
   NOELIA MARTÍNEZ — Administración de fincas · Abogacía · Seguros
   Premium editorial-corporate. Bebas Neue + Manrope. Brand blue.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand blues (derived from noeliamartinez.com) */
  --ink:        #0C1B2A;   /* near-navy text */
  --navy:       #0F3355;   /* deep sections */
  --navy-2:     #0A2740;
  --blue:       #1F5B94;   /* brand primary */
  --blue-bright:#2EA3F2;   /* accent */
  --sky:        #8FC7F5;   /* light accent on dark */

  /* Neutrals */
  --paper:      #ffffff;
  --bg:         #f5f7fa;   /* cool off-white page */
  --cloud:      #e9eef4;   /* card / sand */
  --mute:       #5b6b7b;   /* muted text on light */
  --mute-2:     #90a0b0;
  --cream:      #eef4fb;   /* text on dark */
  --cream-mute: rgba(238,244,251,.66);

  --line:       rgba(15,51,85,.14);
  --line-strong:rgba(15,51,85,.30);
  --line-dark:  rgba(143,199,245,.18);

  /* Type */
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter: clamp(1.15rem, 4vw, 3.25rem);
  --maxw: 1280px;
  --nav-h: 88px;
  --radius: 16px;

  /* Easings */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blue-bright); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1480px; }
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--navy); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.dark { background: var(--navy); color: var(--cream); }
.dark h1, .dark h2, .dark h3 { color: #fff; }

/* Kicker / eyebrow */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.kicker::before {
  content: ""; width: 30px; height: 2px; background: var(--blue-bright);
  display: inline-block;
}
.dark .kicker { color: var(--sky); }
.dark .kicker::before { background: var(--sky); }

/* =============================================================
   4. Typography
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .012em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--navy);
  padding-bottom: .04em;   /* breathing room so descenders/tildes never clip or overlap */
}
.display-xl { font-size: clamp(3.4rem, 12vw, 10rem); line-height: .9; }
.display-l  { font-size: clamp(2.8rem, 7.5vw, 6.2rem); line-height: .94; }
.display-m  { font-size: clamp(2.2rem, 5vw, 4rem); }
.display-s  { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

.lead { font-size: clamp(1.06rem, 1.7vw, 1.32rem); color: var(--mute); line-height: 1.6; max-width: 54ch; }
.dark .lead { color: var(--cream-mute); }
.muted { color: var(--mute); }
.dark .muted { color: var(--cream-mute); }
em { font-style: normal; color: var(--blue); }
.dark em { color: var(--sky); }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  --bg-btn: var(--navy); --fg-btn: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.7rem;
  background: var(--bg-btn); color: var(--fg-btn);
  font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px;
  transition: transform .5s var(--ease-out), background .35s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.btn:hover { background: var(--blue); box-shadow: 0 18px 40px -14px rgba(31,91,148,.6); }
.btn .arw { transition: transform .45s var(--ease-out); }
.btn:hover .arw { transform: translateX(4px); }
.btn--accent { --bg-btn: var(--blue-bright); }
.btn--accent:hover { background: #1f8ce0; box-shadow: 0 18px 40px -14px rgba(46,163,242,.7); }
.btn--light {
  --bg-btn: #fff; --fg-btn: var(--navy);
}
.btn--light:hover { background: var(--sky); color: var(--navy); box-shadow: 0 18px 40px -14px rgba(143,199,245,.6); }
.btn--ghost {
  --bg-btn: transparent; --fg-btn: var(--navy);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: none; }
.dark .btn--ghost { --fg-btn: #fff; border-color: var(--line-dark); }
.dark .btn--ghost:hover { background: #fff; color: var(--navy); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
  position: relative; padding-bottom: 3px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--blue-bright); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform .45s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.dark .link-arrow { color: var(--sky); }

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out), backdrop-filter .45s;
}
.nav-inner { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav.is-solid {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(12,27,42,.4);
}
.logo { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.logo svg { flex: none; }
.logo img { height: 62px; width: auto; display: block; }
@media (max-width: 539px) { .logo img { height: 52px; } }
.logo .logo-white { display: none; }
.nav.is-over .logo .logo-blue { display: none; }
.nav.is-over .logo .logo-white { display: block; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt b { font-family: var(--display); font-size: 1.32rem; letter-spacing: .04em; font-weight: 400; }
.logo-txt span { font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-top: 2px; }
.nav.is-over .logo, .nav.is-over .logo-txt b { color: #fff; }
.nav.is-over .logo-txt span { color: var(--sky); }
.nav.is-over .nav-links a { color: rgba(255,255,255,.85); }
.nav.is-over .nav-cta.btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.nav.is-over .burger span { background: #fff; }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink);
  position: relative; padding: .4rem 0;
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--blue-bright); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav.is-over .nav-links a:hover { color: #fff; }

/* Dropdown (Servicios) */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: .35rem; }
.nav-item .caret { transition: transform .35s var(--ease-out); }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .5rem; box-shadow: 0 26px 50px -22px rgba(12,27,42,.4);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.sub::before { content:""; position:absolute; top:-14px; left:0; right:0; height:14px; } /* hover bridge */
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sub a {
  display: block; padding: .7rem .9rem; border-radius: 9px; color: var(--ink) !important;
  font-size: .88rem; font-weight: 600; transition: background .25s, color .25s;
}
.sub a::after { display: none; }
.sub a:hover { background: var(--cloud); color: var(--blue) !important; }

.nav-right { display: flex; align-items: center; gap: .7rem; }
.nav-cta { padding: .72rem 1.2rem !important; font-size: .74rem !important; }
.nav-avisos {
  display: none; align-items: center; gap: .5rem;
  padding: .72rem 1.15rem; border-radius: 999px;
  background: var(--blue-bright); color: #fff;
  font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .4s var(--ease-out), background .3s;
}
.nav-avisos:hover { background: #1f8ce0; transform: translateY(-2px); }
.nav-avisos .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.8); animation: pulseWhite 2s infinite; }
@keyframes pulseWhite { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.7)} 70%{box-shadow:0 0 0 9px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }

.burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--navy); transition: transform .4s var(--ease-out), opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-out);
  pointer-events: none;
}
.drawer.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.drawer a { font-family: var(--display); font-size: clamp(2.2rem, 9vw, 3.6rem); color: #fff; padding: .35rem 0;
  opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.drawer.is-open a { opacity: 1; transform: none; }
.drawer.is-open a:nth-child(1){transition-delay:.12s}
.drawer.is-open a:nth-child(2){transition-delay:.18s}
.drawer.is-open a:nth-child(3){transition-delay:.24s}
.drawer.is-open a:nth-child(4){transition-delay:.30s}
.drawer.is-open a:nth-child(5){transition-delay:.36s}
.drawer a.drawer-sub { font-size: clamp(1.2rem, 5vw, 1.7rem); color: var(--sky); padding: .1rem 0 .1rem 1.2rem; }
.drawer-foot { margin-top: 2.5rem; opacity: 0; transition: opacity .6s .45s; }
.drawer-foot .avisos-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; font-weight: 700; color: #fff; }
.drawer-foot .avisos-link .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright); animation: pulseWhite 2s infinite; }
.drawer.is-open .drawer-foot { opacity: 1; }
.drawer-foot a { font-family: var(--sans); font-size: 1rem; color: var(--sky); display: inline; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + 2rem); padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background: var(--navy);
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 120%; object-fit: cover; object-position: center; will-change: transform;
  filter: saturate(.75) contrast(.9);      /* baja el contraste de la foto */
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.6) 78%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(8,22,36,.8) 0%, rgba(8,22,36,.4) 60%, rgba(8,22,36,.3) 100%),
    rgba(0,0,0,.3);
}
.hero-grid { position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image: linear-gradient(rgba(143,199,245,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(143,199,245,.06) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-kicker { color: var(--sky); margin-bottom: 1.4rem; }
.hero-title { color: #fff; font-size: clamp(3.2rem, 13vw, 11rem); line-height: .9; }
.hero-title .rotator { color: var(--sky); display: inline-block; }
.hero-sub { color: var(--cream-mute); font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 46ch; margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center;
  margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line-dark);
}
.hero-foot .hf-item { display: flex; flex-direction: column; }
.hero-foot .hf-item b { font-family: var(--display); font-size: 2.2rem; color: #fff; line-height: 1; }
.hero-foot .hf-item span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-mute); margin-top: .35rem; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(2.5rem,6vw,5rem); z-index: 2;
  writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cream-mute); display: none;
}
.hero-scroll::after { content:""; display:block; width:1px; height:44px; background: var(--sky); margin: .8rem auto 0; animation: scrollPulse 2s var(--ease-soft) infinite; }
@keyframes scrollPulse { 0%,100%{transform:scaleY(.4);opacity:.4;transform-origin:top} 50%{transform:scaleY(1);opacity:1;transform-origin:top} }

/* =============================================================
   8. Stats bar
   ============================================================= */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
}
.stat { background: var(--bg); padding: clamp(1.6rem, 3.5vw, 2.8rem) 1.2rem; text-align: center; }
.stat b { display: flex; justify-content: center; align-items: flex-start; font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); color: var(--navy); line-height: .95; letter-spacing: .01em; }
.stat b span { color: var(--navy); font-size: inherit; }   /* the digits — was being shrunk by .stat > span */
.stat b .u { color: var(--blue-bright); font-size: .55em; margin-left: .04em; }
.stat > span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: .7rem; display: block; font-weight: 600; }

/* =============================================================
   9. Section head
   ============================================================= */
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .lead { margin-top: .4rem; }
/* aire bajo el kicker: evita que las tildes del titular lo toquen */
.sec-head .kicker + h2, .page-hero .kicker + h1 { margin-top: .85rem; }
@media (min-width: 960px) {
  .sec-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; }
}

/* =============================================================
   10. Services
   ============================================================= */
.svc-list { display: grid; gap: 1.15rem; }
@media (min-width: 720px) { .svc-list { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .svc-list { grid-template-columns: repeat(3,1fr); } }
.svc-foot { margin-top: 1.4rem; }
/* Feature cards (individual service pages) */
.feat-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(3,1fr); } }
.feat { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem,2.6vw,2rem); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.feat:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(12,27,42,.32); }
.feat .fn { font-family: var(--display); font-size: 1.05rem; color: var(--blue-bright); letter-spacing: .08em; }
.feat h3 { font-size: 1.55rem; margin: .45rem 0 .55rem; }
.feat p { color: var(--mute); font-size: .95rem; }
.svc-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .4s;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue-bright); transform: scaleY(0); transform-origin: top;
  transition: transform .55s var(--ease-out);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(12,27,42,.35); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-num { font-family: var(--display); font-size: 1.15rem; color: var(--blue-bright); letter-spacing: .1em; }
.svc-card h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .5rem 0 .7rem; }
.svc-card p { color: var(--mute); margin-bottom: 1.3rem; }
.svc-points { display: grid; gap: .55rem; }
.svc-points li { display: flex; gap: .6rem; font-size: .92rem; color: var(--ink); align-items: baseline; }
.svc-points li::before { content: "—"; color: var(--blue); flex: none; }

/* =============================================================
   11. Feature / parallax statement
   ============================================================= */
.statement { position: relative; overflow: clip; background: var(--navy-2); color: var(--cream); }
.statement-bg { position: absolute; inset: 0; z-index: 0; }
.statement-bg img { width: 100%; height: 130%; object-fit: cover; opacity: .32; will-change: transform; }
.statement-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, var(--navy-2) 0%, transparent 30%, transparent 70%, var(--navy-2) 100%); }
.statement .wrap { position: relative; z-index: 1; }
.statement blockquote { max-width: 22ch; }
.statement blockquote p { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 5rem); line-height: .96; color: #fff; text-transform: uppercase; }
.statement cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }

/* =============================================================
   12. Split (about teaser / image + text)
   ============================================================= */
.split-2 { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .split-2 { grid-template-columns: 1.05fr 1fr; } .split-2.rev { grid-template-columns: 1fr 1.05fr; } }
.split-figure { position: relative; border-radius: var(--radius); overflow: hidden; }
.split-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; will-change: transform; }
.split-figure.wide img { aspect-ratio: 3/2; }
.figure-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: .7rem 1rem; border-radius: 12px; font-size: .78rem; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: .5rem;
}
.figure-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright); }

.value-row { display: grid; gap: 1.3rem; margin-top: 2rem; }
.value-row .val { border-top: 1px solid var(--line); padding-top: 1rem; }
.value-row .val h4 { font-family: var(--display); font-size: 1.5rem; color: var(--navy); margin-bottom: .3rem; }
.value-row .val p { color: var(--mute); font-size: .95rem; }

/* =============================================================
   13. Highlight (Ley 1/2025)
   ============================================================= */
.highlight {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff;
  padding: clamp(2.2rem, 5vw, 4rem);
}
.highlight::after {
  content:""; position:absolute; right:-10%; top:-40%; width:60%; height:180%;
  background: radial-gradient(circle, rgba(143,199,245,.35), transparent 62%); filter: blur(30px);
}
.highlight .hl-inner { position: relative; z-index: 1; max-width: 640px; }
.highlight .badge { display:inline-block; padding:.4rem .9rem; border:1px solid rgba(255,255,255,.35); border-radius:999px; font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:1.3rem; }
.highlight h3 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.highlight p { color: rgba(255,255,255,.85); margin: 1rem 0 1.6rem; max-width: 52ch; }

/* =============================================================
   14. CTA band
   ============================================================= */
.cta { position: relative; overflow: clip; text-align: center; }
.cta-mesh { position:absolute; inset:0; z-index:0;
  background: radial-gradient(60% 60% at 25% 20%, rgba(46,163,242,.28), transparent 70%),
              radial-gradient(50% 50% at 85% 80%, rgba(31,91,148,.4), transparent 70%);
  filter: blur(20px); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(2.6rem, 8vw, 6rem); }
.cta p { color: var(--cream-mute); max-width: 46ch; margin: 1.2rem auto 2rem; }
.cta .hero-actions { justify-content: center; }

/* Avisos 24h strip — dark, sits between CTA and footer without clashing */
.avisos {
  background: var(--ink); color: var(--cream);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem 1.6rem;
  padding: 1.15rem var(--gutter); text-align: center;
  border-top: 1px solid rgba(143,199,245,.14);
}
.avisos b { font-family: var(--display); font-size: 1.45rem; letter-spacing: .05em; color: #fff; display: inline-flex; align-items: center; gap: .55rem; }
.avisos span { color: var(--cream-mute); }
.avisos a {
  font-weight: 700; color: var(--navy); background: var(--sky);
  padding: .55rem 1.1rem; border-radius: 999px; letter-spacing: .02em;
  transition: transform .4s var(--ease-out), background .3s;
}
.avisos a:hover { background: #fff; transform: translateY(-2px); }
.avisos .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 0 rgba(46,163,242,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(46,163,242,.55)} 70%{box-shadow:0 0 0 11px rgba(46,163,242,0)} 100%{box-shadow:0 0 0 0 rgba(46,163,242,0)} }

/* =============================================================
   15. Forms
   ============================================================= */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  font: inherit; padding: .95rem 1.1rem; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--paper); color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(46,163,242,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .8rem; color: var(--mute); }
.form-ok { display:none; align-items:center; gap:.7rem; padding:1rem 1.2rem; background: rgba(46,163,242,.1); border:1px solid rgba(46,163,242,.3); border-radius:12px; color: var(--navy); font-weight:600; }
.form-ok.is-shown { display: flex; }

.info-list { display: grid; gap: 1.4rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--cloud); display: grid; place-items: center; color: var(--blue); }
.info-item h4 { font-family: var(--display); font-size: 1.4rem; color: var(--navy); }
.info-item a, .info-item p { color: var(--mute); }
.info-item a:hover { color: var(--blue); }

/* =============================================================
   16. FAQ
   ============================================================= */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; text-align: left; font-family: var(--display); font-size: clamp(1.3rem,2.5vw,1.8rem); color: var(--navy); }
.faq-q .pm { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; inset:0; margin:auto; background: var(--blue-bright); }
.faq-q .pm::before { width: 16px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 16px; transition: transform .4s var(--ease-out); }
.faq-item.is-open .pm::after { transform: rotate(90deg) scaleX(0); }
.faq-a { overflow: hidden; height: 0; transition: height .45s var(--ease-out); }
.faq-a-inner { padding-bottom: 1.4rem; color: var(--mute); max-width: 68ch; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--ink); color: var(--cream-mute); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-family: var(--display); font-size: 1.05rem; letter-spacing: .12em; color: #fff; margin-bottom: 1.1rem; }
.footer-brand .logo-txt b { color: #fff; }
.footer p { max-width: 34ch; }
.footer nav { display: grid; gap: .6rem; }
.footer nav a:hover { color: var(--sky); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .78rem;
}
.footer-legal a:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   18. Reveal effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"]{transition-delay:.08s}
.reveal[data-d="2"]{transition-delay:.16s}
.reveal[data-d="3"]{transition-delay:.24s}
.reveal[data-d="4"]{transition-delay:.32s}
/* defensive per gotcha A.4.5 */
.reveal[data-split] { opacity: 1; transform: none; }

.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.line-mask.is-in > span, .is-in .line-mask > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .line-mask > span { transform: none; }
  .hero-scroll::after, .avisos .pulse { animation: none; }
}

/* WhatsApp flotante (abajo izquierda) */
.wa {
  position: fixed; left: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(37,211,102,.7);
  transition: transform .35s var(--ease-out);
  animation: waPulse 2.6s var(--ease-out) 4;
}
.wa:hover { transform: scale(1.08); animation: none; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 12px 26px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5); }
  50%     { box-shadow: 0 12px 26px -8px rgba(37,211,102,.7), 0 0 0 14px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa { animation: none; } }

/* Noticias */
.news-grid { display: grid; gap: 1.15rem; }
@media (min-width: 720px)  { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3,1fr); } }
.news-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem,2.6vw,1.9rem); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.news-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue-bright); transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease-out);
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(12,27,42,.32); }
.news-card:hover::before { transform: scaleY(1); }
.news-meta { display: flex; align-items: center; gap: .6rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-2); font-weight: 700; }
.news-cat { color: var(--blue-bright); }
.news-card h3 { font-size: clamp(1.35rem,2.2vw,1.7rem); margin: .6rem 0 .5rem; }
.news-card p { color: var(--mute); font-size: .93rem; flex: 1; }
.news-card .link-arrow { margin-top: 1.2rem; }

/* Artículo / páginas legales */
.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.5rem,2.6vw,2rem); color: var(--navy);
  margin: 2.4rem 0 .9rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 1rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue); margin: 1.8rem 0 .6rem; }
.prose p { color: var(--mute); margin-bottom: 1rem; line-height: 1.75; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { display: grid; gap: .5rem; margin: 0 0 1.2rem; }
.prose ul li { display: flex; gap: .6rem; color: var(--mute); }
.prose ul li::before { content: "—"; color: var(--blue); flex: none; }
.prose .box {
  background: var(--cloud); border-radius: 12px; padding: 1.2rem 1.4rem; margin-bottom: 1.4rem;
}
.prose .box p { margin: 0; color: var(--ink); }

/* =============================================================
   18b. Page hero (interior pages)
   ============================================================= */
.page-hero {
  position: relative; background: var(--navy); color: var(--cream); overflow: clip;
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 130%; object-fit: cover; opacity: .28; will-change: transform; }
.page-hero-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,39,64,.6), var(--navy-2)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.crumbs { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-mute); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--sky); }
.page-hero .lead { margin-top: 1.2rem; }

/* Service detail rows */
.svc-detail { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.svc-detail + .svc-detail { border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .svc-detail { grid-template-columns: 1fr 1fr; }
  .svc-detail:nth-child(even) .svc-detail-media { order: 2; }
}
.svc-detail-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.svc-detail-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; will-change: transform; }
.svc-detail-media .num-badge {
  position: absolute; top: 1rem; left: 1rem; font-family: var(--display);
  font-size: 2rem; color: #fff; background: rgba(15,51,85,.75); backdrop-filter: blur(6px);
  width: 62px; height: 62px; display: grid; place-items: center; border-radius: 14px;
}
.svc-detail h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.svc-detail .lead { margin: .8rem 0 1.4rem; }

/* Bio blocks (sobre) */
.timeline { display: grid; gap: 0; margin-top: 1rem; }
.tl-item { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.tl-item b { font-family: var(--display); font-size: 1.5rem; color: var(--blue); }
.tl-item h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--navy); }
.tl-item p { color: var(--mute); font-size: .95rem; margin-top: .2rem; }

/* Cómo trabajamos — editorial claro con numerales grandes */
.method { background: var(--bg); }
.method-grid { display: grid; gap: clamp(1.8rem, 3vw, 2.8rem); margin-top: clamp(2.4rem,5vw,3.6rem); }
@media (min-width: 760px) { .method-grid { grid-template-columns: repeat(3,1fr); } }
.m-step { position: relative; padding-top: 2.6rem; }
.m-step .mn {
  font-family: var(--display); font-size: clamp(3.4rem, 6vw, 5rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); text-stroke: 1.5px var(--line-strong);
  position: absolute; top: 0; left: 0; opacity: .8;
}
.m-step .mbar { display: block; width: 46px; height: 3px; background: var(--blue-bright); margin-bottom: 1.4rem; }
.m-step h3 { font-size: clamp(1.7rem,2.6vw,2.1rem); margin: 0 0 .55rem; }
.m-step p { color: var(--mute); font-size: .98rem; max-width: 34ch; }

/* Colegiaciones / titulaciones */
.cred { background: var(--paper); border-block: 1px solid var(--line); }
.cred-inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.4rem,4vw,3.5rem); justify-content: center; }
.cred-lead { flex: 1 1 200px; min-width: 200px; }
.cred-lead p { color: var(--mute); font-size: .95rem; margin-top: .4rem; }
.cred-badges { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem,4vw,3rem); justify-content: center; }
.cred-badge { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
/* los 3 sellos a la misma altura óptica, centrados en una caja común */
.cred-badge svg, .cred-badge .cred-img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.cred-badge > svg, .cred-badge > .cred-img { display: block; }
.cred-badge small { font-size: .68rem; letter-spacing: .06em; color: var(--mute-2); font-weight: 600; }

/* Horario — tarjetas por oficina (patrón Oníriko) */
.hours-note {
  display: flex; align-items: flex-start; gap: .7rem;
  background: rgba(46,163,242,.08); border: 1px solid rgba(46,163,242,.28);
  border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1.1rem;
}
.hours-note .hn-badge {
  flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--blue-bright); color: #fff; padding: .3rem .55rem; border-radius: 999px; margin-top: .1rem;
}
.hours-note p { font-size: .88rem; color: var(--navy); font-weight: 600; }
.hours-note p span { display: block; font-weight: 500; color: var(--mute); margin-top: .15rem; }

.hours-grid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .hours-grid { grid-template-columns: repeat(2, 1fr); } }
.hours-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.1rem 1.3rem;
}
/* cabecera en columna: los nombres largos ("Piedras Blancas") no rompen
   la alineación de las filas entre las dos tarjetas */
.hours-card-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  padding-bottom: .7rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.hours-office { font-family: var(--display); font-size: 1.3rem; color: var(--navy); letter-spacing: .02em; line-height: 1.1; white-space: nowrap; }
.hours-status {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute-2); display: inline-flex; align-items: center; gap: .38rem; white-space: nowrap;
}
.hours-status.is-open { color: #2e8b57; }
.hours-status.is-closed-now { color: #c0563f; }
.hours-status.is-open::before, .hours-status.is-closed-now::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px rgba(46,139,87,.16);
}
.hours-status.is-closed-now::before { box-shadow: 0 0 0 3px rgba(192,86,63,.16); }

.hours-list { display: grid; gap: .05rem; }
.hours-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .42rem .2rem; border-radius: 8px;
}
.hours-row dt { color: var(--mute); font-size: .88rem; }
.hours-row dd { color: var(--ink); font-size: .88rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours-row.is-closed dd { color: var(--mute-2); font-style: italic; font-weight: 500; }
.hours-row.is-today { background: rgba(46,163,242,.1); box-shadow: inset 2px 0 0 var(--blue-bright); padding-left: .9rem; }
.hours-row.is-today dt { color: var(--blue); font-weight: 700; }

/* Contact grid */
.contact-grid { display: grid; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.05fr 1fr; } }
.contact-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,3.5vw,2.6rem); }

/* =============================================================
   19. Responsive
   ============================================================= */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
/* Avisos + Presupuesto también visibles en móvil/tablet, compactados
   para que quepan junto al logo y la hamburguesa */
@media (max-width: 959px) {
  .nav-avisos { display: inline-flex; }
  .nav-right { gap: .5rem; }
}
@media (max-width: 539px) {
  .nav-right { gap: .4rem; }
  .nav-avisos { padding: .6rem .7rem; font-size: .6rem; letter-spacing: .06em; gap: .35rem; }
  .nav-avisos .pulse-dot { width: 6px; height: 6px; }
  .nav-cta { padding: .6rem .7rem !important; font-size: .6rem !important; letter-spacing: .06em !important; }
  .logo img { height: 44px; }
  .burger { padding: 6px; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-avisos { display: inline-flex; }
  .burger { display: none; }
  .hero-scroll { display: block; }
  .value-row { grid-template-columns: repeat(3,1fr); }
}
