/* ==========================================================================
   Girol Consulting — web pública
   Marca: #0199D6 · Títulos: Raleway 700 · Texto: Raleway 300
   Índice: 1 tokens · 2 base · 3 utilidades · 4 botones · 5 cabecera y megamenú
           6 hero · 7 marquee · 8 secciones · 9 tarjetas · 10 contenido (blk)
           11 blog · 12 formularios · 13 pie · 14 efectos · 15 movimiento reducido
   ========================================================================== */

/* 1 ── Tokens */
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --brand: #0199d6;
  --brand-ink: #016d99;      /* azul de marca oscurecido: texto y enlaces sobre blanco (AA) */
  --brand-soft: #e8f6fc;
  --ink: #0a1a2b;
  --ink-2: #43566a;
  --line: #dde6ee;
  --paper: #fff;
  --tint: #f2f8fc;
  --dark: #06131f;
  --grey: #8d9399;           /* gris del logotipo */
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -28px rgba(10, 26, 43, .35);
  --display: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --sec: clamp(4rem, 9vw, 8rem);
  --hdr: 78px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 2 ── Base */
*, *::before, *::after { box-sizing: border-box; font-variant-numeric: lining-nums !important; }   /* Raleway trae cifras de estilo antiguo: se fuerzan las alineadas (el atajo font: las restablece) */
html { font-size: 93.75%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; font: 300 1.0625rem/1.7 var(--body); font-variant-numeric: lining-nums; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 3.7vw, 3.3rem); }
h2 { font-size: clamp(1.4rem, 2.3vw, 2.05rem); }
h3 { font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.25; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; line-height: 1.3; letter-spacing: 0; }
p, ul, ol, dl, figure, blockquote, table { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s; }
a:hover { color: var(--ink); }
strong, b { font-weight: 600; }
address { font-style: normal; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
@view-transition { navigation: auto; }

/* 3 ── Utilidades */
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 1320px); }   /* mismo ancho que el resto: toda la web comparte una única caja */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 1rem; color: #fff; }
.kicker { display: flex; align-items: center; gap: .65em; margin: 0 0 1.1rem; font: 600 .78rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.kicker::before { content: ""; width: .7em; height: .7em; background: var(--brand); flex: none; }  /* el cuadrado del logotipo */
.lead { font-size: clamp(1.05rem, 1.25vw, 1.16rem); line-height: 1.55; color: var(--ink-2); }
.h-sm { font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 1.6rem 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brand); padding-bottom: .15em; }
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chips a { display: block; padding: .55rem 1.05rem; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; background: var(--paper); transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.chips a:hover { border-color: var(--brand); color: var(--brand-ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 4 ── Botones */
.btn { --bg: var(--brand); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .82rem 1.5rem; border: 1px solid var(--bg); border-radius: 15px; background: var(--bg); color: var(--fg); font: 600 .98rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--lg { padding: 1.02rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Icono en todos los botones (se elige por el destino del enlace) */
.btn { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.btn::after { content: ""; flex: none; width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.btn[href^="tel:"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.500 1.500a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.btn[href^="mailto:"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3zM3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.btn[href*="reserva-cita"], [data-calendly] .btn { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v14H4zM4 10h16M8 3v5M16 3v5'/%3E%3C/svg%3E"); }
.btn[href*="wa.me"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.300-4A8 8 0 1 1 8.500 19zM9 9.500c0 3 2.500 5.500 5.500 5.500'/%3E%3C/svg%3E"); }
.btn[href*="google.com/maps"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.200 7-11.500A7 7 0 0 0 5 9.500C5 14.800 12 21 12 21zM12 12a2.500 2.500 0 1 0 0-5 2.500 2.500 0 0 0 0 5z'/%3E%3C/svg%3E"); }
.btn[href$="#servicios"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); }
.btn[type="submit"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3L10 14M21 3l-7 18-4-7-7-4 18-7z'/%3E%3C/svg%3E"); }
.btn[data-cookies="yes"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E"); }
.btn[data-cookies="no"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }

/* 5 ── Cabecera y megamenú */
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s, box-shadow .3s; }
.hdr.is-stuck { border-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--hdr); }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 46px; width: auto; }
.hdr__burger { display: none; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav__item { margin: 0; }
.nav__link { display: inline-flex; align-items: center; gap: .4em; padding: .65rem .8rem; border: 0; background: none; border-radius: 15px; font: 500 .96rem/1 var(--body); color: var(--ink); text-decoration: none; cursor: pointer; transition: background .25s, color .25s; }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--brand-soft); color: var(--ink); }
.nav__link.is-active, .nav__link[aria-current] { color: var(--brand-ink); }
.nav__chev { transition: transform .35s var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__cta { display: flex; align-items: center; gap: 1rem; flex: none; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .3s; }
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
.mega__inner { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.5rem, 3vw, 3rem); padding-block: 2rem 2.4rem; }
.mega__title { font: 700 1.5rem/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 .6rem; }
.mega__intro { color: var(--ink-2); font-size: .98rem; margin-bottom: 1.2rem; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.mega__grid li { margin: 0; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .55s var(--ease); }
.nav__item.is-open .mega__grid li { opacity: 1; transform: none; }
.nav__item.is-open .mega__grid li:nth-child(n) { transition-delay: calc(40ms * var(--i, 0)); }
.mega__card { display: block; color: var(--ink); text-decoration: none; }
.mega__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); margin-bottom: .6rem; }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mega__card:hover .mega__img img, .mega__card:focus-visible .mega__img img { transform: scale(1.08); }
.mega__txt strong { display: block; font: 700 .9rem/1.25 var(--display); letter-spacing: -.01em; }
.mega__txt small { display: block; margin-top: .25rem; color: var(--ink-2); font-size: .84rem; line-height: 1.35; }
.mega__card[aria-current] .mega__txt strong { color: var(--brand-ink); }

@media (min-width: 1280px) {
  .mega__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mega__grid:has(> :nth-child(7):last-child), .mega__grid:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* 4+3 y 4+4, sin fichas sueltas */
}
@media (max-width: 1180px) {
  .nav__link { padding-inline: .6rem; font-size: .92rem; }
}
/* Megamenú de escritorio a pantalla completa: fondo oscuro, titular grande con imagen de vista previa
   y los servicios como tarjetas numeradas que entran escalonadas. */
.mega__preview, .mega__close { display: none; }
@media (min-width: 1021px) {
  .mega { height: calc(100dvh - var(--hdr)); overflow-y: auto; overscroll-behavior: contain; border-top: 0; box-shadow: none; color: #fff; opacity: 1; transform: none;
    background: radial-gradient(90% 70% at 100% 0%, rgba(1, 153, 214, .4), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(1, 153, 214, .22), transparent 65%), var(--dark);
    clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease), visibility 0s .6s; }
  .nav__item.is-open > .mega { clip-path: inset(0); transition: clip-path .75s var(--ease); }
  .mega__inner { position: relative; grid-template-columns: minmax(260px, .75fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; min-height: 100%; padding-block: clamp(2rem, 6vh, 4.5rem); }
  .mega__aside { position: sticky; top: clamp(2rem, 6vh, 4.5rem); }
  .mega__title { margin: 0 0 1rem; font: 700 clamp(2.4rem, 4.6vw, 4.4rem)/1 var(--display); letter-spacing: -.03em; color: #fff; }
  .mega__intro { max-width: 32ch; margin-bottom: 1.4rem; color: #b9cbd9; font-size: 1.05rem; }
  .mega .link-arrow { color: #fff; }
  .mega__preview { display: block; margin-top: clamp(1.5rem, 4vh, 2.6rem); aspect-ratio: 4 / 3; max-width: 380px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
  .mega__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .9s var(--ease); }
  .mega__preview.is-swapping img { opacity: 0; transform: scale(1.06); }
  .mega__close { display: inline-flex; align-items: center; gap: .5rem; position: absolute; right: 0; top: clamp(.8rem, 2.5vh, 1.6rem); padding: .5rem 1rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 15px; background: none; color: #fff; font: 600 .85rem var(--body); cursor: pointer; transition: background .25s, border-color .25s; }
  .mega__close:hover { background: var(--brand); border-color: var(--brand); }
  .mega .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vh, 2.2rem) 1.6rem; counter-reset: mega; padding-top: 2.6rem; }
  .mega .mega__grid:has(> :nth-child(7):last-child), .mega .mega__grid:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mega .mega__grid:has(> :nth-child(9)) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
  .mega__grid li { counter-increment: mega; opacity: 0; transform: translateY(46px); transition: opacity .5s, transform .8s var(--ease); }
  .nav__item.is-open .mega__grid li { opacity: 1; transform: none; }
  .nav__item.is-open .mega__grid li:nth-child(n) { transition-delay: calc(160ms + 55ms * var(--i, 0)); }
  .mega__card { position: relative; color: #fff; }
  .mega__card::before { content: "0" counter(mega); position: absolute; left: .8rem; top: .8rem; z-index: 1; padding: .28rem .6rem; border-radius: 15px; background: rgba(6, 19, 31, .6); color: #fff; font: 600 .72rem/1 var(--body); letter-spacing: .08em; backdrop-filter: blur(4px); }
  .mega__img { position: relative; aspect-ratio: 16 / 10; margin-bottom: .9rem; border-radius: 18px; background: rgba(255, 255, 255, .06); }
  .mega__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .3s; }
  .mega__card:hover .mega__img::after, .mega__card:focus-visible .mega__img::after { box-shadow: inset 0 0 0 2px var(--brand); }
  .mega__txt strong { display: flex; align-items: center; gap: .5rem; font: 700 1.12rem/1.25 var(--display); letter-spacing: -.01em; color: #fff; transition: color .25s; }
  .mega__txt strong::after { content: "→"; color: var(--brand); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
  .mega__card:hover .mega__txt strong, .mega__card:focus-visible .mega__txt strong { color: #7fd4f5; }
  .mega__card:hover .mega__txt strong::after, .mega__card:focus-visible .mega__txt strong::after { opacity: 1; transform: none; }
  .mega__txt small { color: #a9bccb; font-size: .9rem; }
  .mega__card[aria-current] .mega__txt strong { color: #7fd4f5; }
  .nav__link[aria-expanded="true"] { background: var(--ink); color: #fff; }
}
@media (min-width: 1021px) and (max-height: 760px) { .mega__preview { display: none; } }

/* Menú móvil: pantalla completa, con un panel por cada megamenú */
.mega__mhead, .mega__mtitle, .nav__cta-m, .nav__tabs { display: none; }
@media (max-width: 1020px) {
  :root { --hdr: 66px; }
  .hdr { backdrop-filter: none; background: var(--paper); }   /* sin filtro: el menú fijo debe medirse contra la ventana */
  .hdr__logo, .hdr__burger { position: relative; z-index: 2; }
  .hdr__logo img { height: 38px; transition: filter .4s; }
  .hdr__burger { display: inline-flex; margin-left: auto; width: 46px; height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--brand); cursor: pointer; transition: background .4s, transform .4s var(--ease); }
  .hdr__burger-box { display: grid; gap: 5px; }
  .hdr__burger-box i { display: block; width: 20px; height: 2px; background: #fff; transition: transform .45s var(--ease), opacity .2s, background .4s; }
  .hdr__burger[aria-expanded="true"] { background: var(--brand); transform: rotate(90deg); }
  .hdr__burger[aria-expanded="true"] i { background: #fff; }
  .hdr__burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .hdr__burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  body.nav-open .hdr { background: transparent; border-color: transparent; }
  body.nav-open .hdr__logo img { content: url("../img/logo-girol-consulting-blanco.png"); }   /* versión para fondo oscuro, con los puntos en azul */
  body.nav-open .dial, body.nav-open .cookies { display: none; }

  /* Lienzo: se abre como un círculo que crece desde el botón */
  .nav { --o: calc(100% - var(--gutter) - 23px) 33px; position: fixed; inset: 0; z-index: 1; height: 100dvh; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: calc(var(--hdr) + .5rem) var(--gutter) 1.4rem; overflow: hidden; color: #fff;
    background: radial-gradient(120% 60% at 100% 0%, rgba(1, 153, 214, .38), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(1, 153, 214, .22), transparent 65%), var(--dark);
    clip-path: circle(0 at var(--o)); visibility: hidden; transition: clip-path .75s var(--ease), visibility 0s .75s; }
  .nav.is-open { clip-path: circle(150vmax at var(--o)); visibility: visible; transition: clip-path .85s var(--ease); }

  /* Primer nivel: titulares grandes numerados */
  .nav__list { display: block; flex: 1; min-height: 0; margin: 0; overflow-y: auto; counter-reset: nav; }
  .nav__item { counter-increment: nav; border-bottom: 1px solid rgba(255, 255, 255, .13); transition: border-color .3s; }
  .nav__link { width: 100%; justify-content: flex-start; gap: .9rem; padding: .95rem 0; border-radius: 0; background: none; color: #fff; font: 700 clamp(1.25rem, 5.4vw, 1.65rem)/1.15 var(--display); letter-spacing: -.02em; text-align: left;
    opacity: 0; transform: translateY(26px); transition: opacity .5s, transform .7s var(--ease), color .25s; }
  .nav__link::before { content: "0" counter(nav); font: 600 .72rem/1 var(--body); letter-spacing: .08em; color: #7fd4f5; align-self: flex-start; padding-top: .45em; }
  .nav.is-open .nav__link { opacity: 1; transform: none; transition-delay: calc(140ms + 55ms * var(--n, 0)); }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: none; color: #7fd4f5; }
  .nav__link.is-active, .nav__link[aria-current] { color: #7fd4f5; }
  .nav__chev { margin-left: auto; width: 34px; height: 34px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .1); transform: rotate(-90deg); color: #fff; }
  .nav__link[aria-expanded="true"] .nav__chev { transform: rotate(-90deg); }
  .nav__cta { display: flex; gap: .7rem; margin-top: 1.1rem; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  .nav.is-open .nav__cta { opacity: 1; transform: none; transition-delay: .6s; }
  .nav__cta .btn { flex: 1; padding: .95rem 1rem; font-size: 1rem; }
  .nav__cta .btn:first-child { --bg: var(--brand); --fg: #fff; }
  .nav__cta .btn:first-child:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .nav__cta-m { display: inline-flex; }
  /* Con un panel abierto, el primer nivel se retira hacia la izquierda */
  .nav.has-sub .nav__item { border-color: transparent; }
  .nav.has-sub .nav__link, .nav.has-sub .nav__cta { opacity: 0; transform: translateX(-40px); pointer-events: none; transition-delay: 0s; }

  /* Segundo nivel: panel deslizante con todos los servicios del grupo */
  .mega { position: absolute; inset: var(--hdr) 0 0 0; display: block; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 5rem; background: none; border: 0; box-shadow: none; opacity: 1; color: #fff;
    visibility: hidden; transform: translateX(100%); transition: transform .55s var(--ease), visibility 0s .55s; }
  .nav__item.is-open > .mega { visibility: visible; transform: none; transition: transform .6s var(--ease); }
  .mega__inner { display: block; width: 100%; padding: 0; }
  .mega__aside { display: none; }
  .mega__mhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0 .9rem; }
  .mega__back { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 15px; background: none; color: #fff; font: 600 .92rem var(--body); cursor: pointer; }
  .mega__all { color: #7fd4f5; font-weight: 600; font-size: .95rem; }
  .nav__tabs { display: flex; gap: .5rem; margin: 0 calc(-1 * var(--gutter)) 1rem; padding: 0 var(--gutter) .2rem; overflow-x: auto; scrollbar-width: none; }
  .nav__tabs::-webkit-scrollbar { display: none; }
  .nav__tabs button { flex: none; padding: .55rem 1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 15px; background: none; color: #fff; font: 600 .88rem var(--body); cursor: pointer; white-space: nowrap; }
  .nav__tabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
  .mega__mtitle { display: block; margin: 0 0 .6rem; font: 700 clamp(1.7rem, 7.5vw, 2.3rem)/1.05 var(--display); letter-spacing: -.03em; color: #fff; }
  .mega__grid { grid-template-columns: 1fr; gap: 0; }
  .mega__grid li { opacity: 0; transform: translateX(36px); transition: opacity .45s, transform .6s var(--ease); }
  .nav__item.is-open .mega__grid li { opacity: 1; transform: none; }
  .nav__item.is-open .mega__grid li:nth-child(n) { transition-delay: calc(180ms + 45ms * var(--i, 0)); }
  .mega__card { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .11); color: #fff; }
  .mega__card::after { content: "→"; color: #7fd4f5; font-weight: 600; transition: transform .3s var(--ease); }
  .mega__card:active::after { transform: translateX(5px); }
  .mega__img { margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; background: rgba(255, 255, 255, .08); }
  .mega__txt strong { font-size: 1rem; color: #fff; }
  .mega__txt small { color: #a9bccb; font-size: .86rem; }
  .mega__card[aria-current] .mega__txt strong { color: #7fd4f5; }
}
@media (min-width: 640px) and (max-width: 1020px) {
  .mega__grid { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

/* 6 ── Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero__glow { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(520px circle at var(--mx, 78%) var(--my, 18%), rgba(1, 153, 214, .2), transparent 62%),
    radial-gradient(900px circle at 8% 110%, rgba(1, 153, 214, .1), transparent 60%),
    linear-gradient(180deg, var(--tint), var(--paper) 78%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero--plain .hero__grid { grid-template-columns: minmax(0, 900px); }
.hero__title { margin-bottom: .5em; }
.hero__title em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero__title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 1s .7s var(--ease); }
.is-in .hero__title em::after, .no-js .hero__title em::after, .hero__title.is-in em::after { transform: scaleX(1); }
.hero__title--long { font-size: clamp(1.55rem, 2.7vw, 2.35rem); }
.hero .lead { max-width: 58ch; }
.hero__claims { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: .55rem; }
.hero__claims li { margin: 0; padding-left: 1.3rem; position: relative; color: var(--ink-2); font-size: .98rem; }
.hero__claims li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5em; height: .5em; background: var(--grey); }
.hero__claims strong { color: var(--ink); margin-right: .35em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--ink-2); font-size: .95rem; margin: 0; }
.hero__meta a { color: inherit; }

.hero__visual { position: relative; aspect-ratio: 1 / 1.05; }
@media (min-width: 901px) { .hero--home .hero__visual { margin-right: 3.2rem; } }   /* deja libre el borde para el aviso de novedades */
.hero__img { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--a { inset: 0 12% 22% 0; }
.hero__img--b { width: 34%; aspect-ratio: 3 / 4; right: 0; top: 14%; border: 6px solid #fff; }
.hero__img--c { width: 52%; aspect-ratio: 4 / 3; left: 18%; bottom: 0; border: 6px solid #fff; }
.hero__badge { position: absolute; right: 4%; bottom: 8%; width: 118px; height: 118px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); }
.hero__badge b { font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.hero__badge strong { font: 700 1.55rem/1.1 var(--display); }
.hero__photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; background: var(--tint); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--contain { box-shadow: none; background: none; }
.hero__photo--contain img { object-fit: contain; }
.hero--legal, .hero--post { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero--post, .hero--legal, .hero--plain:not([data-spot]) { background: linear-gradient(180deg, var(--tint), var(--paper)); }

/* Cabeceras interiores: imagen de fondo muy tenue, fundida con el degradado azul de siempre */
.hero--inner { isolation: isolate; }
.hero--inner .hero__glow { z-index: -2; }
.hero--post, .hero--legal, .hero--plain:not([data-spot]) { background: linear-gradient(180deg, var(--tint), var(--paper)); }
.hero__bg { position: absolute; inset: 0; z-index: -1; opacity: .13; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 62%), linear-gradient(180deg, #000 55%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 8%, #000 62%), linear-gradient(180deg, #000 55%, transparent 100%); mask-composite: intersect; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
@media (max-width: 900px) { .hero__bg { opacity: .1; } }

.crumbs { margin-bottom: 1.6rem; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--grey); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--brand-ink); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__badge { width: 92px; height: 92px; }
  .hero__badge strong { font-size: 1.2rem; }
}

/* Aviso de nueva oficina (pestaña pegada al borde derecho del hero) y panel con el mapa */
.office-tab { position: absolute; right: 0; top: clamp(3.5rem, 7vw, 6.5rem); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem 1.1rem .95rem; border: 0; border-radius: 20px 0 0 20px; background: var(--ink); color: #fff; font: 600 .9rem/1.2 var(--body); text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: background .3s, color .3s, padding .4s var(--ease); }
.office-tab:hover, .office-tab[aria-expanded="true"] { background: var(--brand); color: #fff; padding-right: 1.6rem; }
.office-tab__ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; transition: background .3s, color .3s; animation: office-ring 2.6s var(--ease) infinite; }
.office-tab__ico::after { content: ""; position: absolute; right: 1px; top: 1px; width: 11px; height: 11px; border-radius: 50%; background: #ff5a3c; border: 1px solid var(--ink); }
.office-tab:hover .office-tab__ico, .office-tab[aria-expanded="true"] .office-tab__ico { background: var(--ink); color: #fff; }
@keyframes office-ring { 0%, 55%, 100% { transform: rotate(0); box-shadow: 0 0 0 0 rgba(1, 153, 214, .6); } 62% { transform: rotate(-14deg); } 70% { transform: rotate(12deg); } 78% { transform: rotate(-8deg); } 86% { transform: rotate(0); box-shadow: 0 0 0 14px rgba(1, 153, 214, 0); } }
.office-panel { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s .5s; }
.office-panel.is-open { visibility: visible; transition: none; }
.office-panel__backdrop { position: absolute; inset: 0; background: rgba(6, 19, 31, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s; }
.office-panel.is-open .office-panel__backdrop { opacity: 1; }
.office-panel__box { position: absolute; inset: 0 0 0 auto; width: min(540px, 100%); overflow-y: auto; padding: clamp(1.4rem, 4vw, 2.6rem); background: var(--paper); box-shadow: var(--shadow); transform: translateX(100%); transition: transform .55s var(--ease); }
.office-panel.is-open .office-panel__box { transform: none; }
.office-panel__close { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.6rem auto; padding: .55rem 1.05rem; border: 1px solid var(--line); border-radius: 15px; background: none; font: 600 .9rem var(--body); color: var(--ink); cursor: pointer; }
.office-panel__close:hover { border-color: var(--ink); }
.office-panel__box { display: flex; flex-direction: column; align-items: flex-start; }
.office-panel__box h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.office-panel__addr { font-size: 1.1rem; line-height: 1.5; margin-bottom: 1.3rem; }
.office-panel__map { width: 100%; aspect-ratio: 4 / 3.400; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.office-panel__map iframe { width: 100%; height: 100%; border: 0; }
.office-panel__note { margin: 1.2rem 0 0; font-size: .9rem; color: var(--ink-2); }
body.office-open { overflow: hidden; }
@media (max-width: 900px) {
  .office-tab { top: 1.9rem; padding: .7rem .8rem .7rem; gap: .4rem; font-size: .76rem; border-radius: 16px 0 0 16px; }
  .office-tab__ico { width: 34px; height: 34px; }
  .hero--home .kicker { padding-right: 5.5rem; }
  .hero--home { padding-top: 3rem; }
  .hero--home .hero__title { padding-right: 5.5rem; }
}

/* 7 ── Marquee */
.marquee { overflow: hidden; background: var(--brand); color: #fff; padding-block: 1.05rem; }
.marquee__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; will-change: transform; }
.marquee span { font: 700 clamp(1rem, 1.8vw, 1.45rem)/1 var(--display); letter-spacing: -.01em; white-space: nowrap; text-transform: uppercase; }
.marquee .marquee__dot { width: .55rem; height: .55rem; background: #fff; flex: none; }
.marquee--xl { background: none; color: #fff; padding-block: 0 2.5rem; }
.marquee--xl span { font-size: clamp(2rem, 5.6vw, 4.8rem); font-weight: 500; letter-spacing: -.03em; text-transform: none; }
.marquee--xl span:nth-child(4n + 3) { color: var(--brand); }   /* sin contorno: en la fuente variable los trazos se solapan */
.marquee--xl .marquee__dot { background: var(--brand); width: 1.1rem; height: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8 ── Secciones */
.sec { padding-block: var(--sec); }
.sec--tint { background: var(--tint); }
.sec--dark { background: var(--dark); color: #fff; }
.sec--dark .kicker { color: #7fd4f5; }
.sec--dark p { color: #c5d3df; }
.sec--dark a { color: #7fd4f5; }
.sec--compact { padding-block: clamp(2rem, 4vw, 3.5rem); }
.sec--top0 { padding-top: clamp(1rem, 2vw, 2rem); }
.sec--flush { padding-block: 0 var(--sec); }
.sec__head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.sec__head--row h2 { margin: 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.sec__head--sticky { position: sticky; top: calc(var(--hdr) + 2rem); margin: 0; }
.fig { margin: 1.6rem 0; }
.fig img { border-radius: var(--radius); width: 100%; }
.fig figcaption { font-size: .88rem; color: var(--ink-2); margin-top: .5rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.step { counter-increment: step; position: relative; padding: 2rem 0 2rem 5.2rem; border-top: 1px solid var(--line); margin: 0; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: "0" counter(step); position: absolute; left: 0; top: 1.9rem; font: 700 1.9rem/1 var(--display); color: var(--brand); }
.step p { margin: 0; color: var(--ink-2); }
.zones__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.zones__list li { margin: 0; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .4s var(--ease); }
.zones__list li:hover { border-color: var(--brand); transform: translateY(-4px); }
.zones__list p { margin: 0; display: grid; gap: .5rem; }
.zones__list a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.zones__list a:hover { color: var(--brand-ink); }
.kit { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); background: var(--brand); color: #fff; border-radius: calc(var(--radius) * 1.4); padding: clamp(1.8rem, 5vw, 4.5rem); overflow: hidden; }
.kit .kicker, .kit h2, .kit p { color: #fff; }
.kit .kicker::before { background: #fff; }
.kit__media { margin: 0 0 0 auto; width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.kit__media img { width: 100%; height: 100%; object-fit: cover; }
.kit__logos { margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; max-width: 1100px; background: #fff; }
.kit__logos img { width: 100%; }
.duo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.duo__card { padding: 1.4rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .04); transition: border-color .3s, background .3s; }
.duo__card:hover { border-color: var(--brand); background: rgba(1, 153, 214, .08); }
.duo__media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 1.3rem; }
.duo__media img { width: 100%; height: 100%; object-fit: cover; }
.duo__card h3 a { color: #fff; text-decoration: none; }
.duo__card h3 a::after { content: " →"; color: var(--brand); }
.duo__card p { margin: 0; font-size: .98rem; }
@media (max-width: 900px) {
  .intro, .split-head, .kit { grid-template-columns: 1fr; }
  .sec__head--sticky { position: static; }
  .zones__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: 1fr; }
  .step { padding-left: 3.8rem; }
  .step::before { font-size: 1.4rem; }
}
@media (max-width: 560px) { .zones__list { grid-template-columns: 1fr; } }

/* 9 ── Tarjetas */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.2vw, 2rem); }
.svc { position: relative; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .4s, transform .5s var(--ease), border-color .3s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.svc:hover { box-shadow: var(--shadow); border-color: transparent; }
.svc__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.07); }
.svc__body { padding: 1.4rem 1.5rem 1.6rem; }
.svc__body h3 { margin-bottom: .45rem; }
.svc__body h3 a { color: var(--ink); text-decoration: none; }
.svc__body h3 a::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta es clicable */
.svc__body p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.svc-grid--sm .svc__body { padding: 1.1rem 1.2rem 1.3rem; }
.svc-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.svc-index h3 { font-size: 1rem; }
.svc-index h3 a { color: var(--ink); text-decoration: none; }
.svc-index ul { list-style: none; padding: 0; margin: 0; }
.svc-index li a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.svc-index li a:hover { color: var(--brand-ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: start; gap: 0 clamp(1.5rem, 3vw, 3rem); margin: 0; }
.stats--stack { grid-template-columns: 1fr; gap: 0; }
.stat { display: grid; grid-template-rows: auto 1fr; align-content: start; gap: .5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.stat dd { order: -1; }
.stat__title { display: block; margin-bottom: .2rem; font: 700 1.05rem/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.stat dt { color: var(--ink-2); font-size: .95rem; }
.stat dd { margin: 0; font: 700 clamp(1.8rem, 3vw, 2.5rem)/1 var(--display); letter-spacing: -.03em; color: var(--brand); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.2rem, 2.2vw, 2rem); margin: 1.5rem 0 0; }
.quote { position: relative; display: flex; flex-direction: column; margin: 0; padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .4s, transform .45s var(--ease); }
.quote::before { content: "“"; position: absolute; right: 1.2rem; top: -.35rem; font: 700 9rem/1 var(--display); color: var(--brand-soft); pointer-events: none; transition: color .3s; }
.quote:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-4px); }
.quote:hover::before { color: rgba(1, 153, 214, .22); }
.quote blockquote { position: relative; flex: 1; margin: 0 0 1.6rem; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.55; color: var(--ink); }
.quote blockquote::before { content: ""; display: block; width: 2.6rem; height: 1px; margin-bottom: 1.3rem; border-radius: 4px; background: var(--brand); }
.quote blockquote p { margin: 0; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: .85rem; font-weight: 600; }
.quote__avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .9rem/1 var(--display); letter-spacing: .02em; }
.quote__name { color: var(--ink); }
/* Reseñas de Google: valoración media y estrellas (se rellenan según la nota) */
.stars { --rating: 5; display: inline-block; width: 6.2em; height: 1.15em; flex: none; background: linear-gradient(90deg, #f5a623 calc(var(--rating) / 5 * 100%), #d9e0e7 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 23'%3E%3Cg%3E%3Cpath id='s' d='M11.500 1l3.200 6.700 7.300 1-5.300 5.100 1.300 7.200-6.500-3.500L5 21l1.300-7.200L1 8.700l7.300-1z'/%3E%3Cuse href='%23s' x='25'/%3E%3Cuse href='%23s' x='50'/%3E%3Cuse href='%23s' x='75'/%3E%3Cuse href='%23s' x='100'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 23'%3E%3Cg%3E%3Cpath id='s' d='M11.500 1l3.200 6.700 7.300 1-5.300 5.100 1.300 7.200-6.500-3.500L5 21l1.300-7.200L1 8.700l7.300-1z'/%3E%3Cuse href='%23s' x='25'/%3E%3Cuse href='%23s' x='50'/%3E%3Cuse href='%23s' x='75'/%3E%3Cuse href='%23s' x='100'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.g-rating { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .3s, box-shadow .3s; }
.g-rating:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.g-rating__num { font: 700 1.35rem/1 var(--display); }
.g-rating__txt { font-size: .9rem; color: var(--ink-2); }
.quote--google .stars { margin-bottom: 1rem; }
.quote--google blockquote::before { display: none; }
.quote__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.quote__name small { display: block; margin-top: .1rem; font-weight: 300; font-size: .82rem; color: var(--ink-2); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.price { position: relative; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .4s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.price:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.price__name { font-size: 1.15rem; }
.price__name a { color: var(--ink); text-decoration: none; }
.price__amount { font: 700 1.7rem/1.1 var(--display); letter-spacing: -.02em; color: var(--brand-ink); margin-bottom: .8rem; }
.price__amount small { font: 500 .85rem var(--body); color: var(--ink-2); letter-spacing: 0; }
.price__amount--xl { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.price__text { color: var(--ink-2); font-size: .97rem; }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.office { padding: 1.6rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.office p { margin: 0; color: var(--ink-2); }
.map { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; }
.map__load { display: grid; gap: .3rem; width: 100%; padding: 2.5rem 1.5rem; margin-bottom: 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--tint); font: inherit; color: var(--ink); cursor: pointer; text-align: center; }
.map__load span { color: var(--ink-2); font-size: .92rem; }
.map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.sitemap { columns: 3 280px; column-gap: 2.5rem; }
.sitemap__col { break-inside: avoid; margin-bottom: 2.2rem; }
.sitemap__col--wide { break-inside: auto; }
.sitemap h2 { font-size: 1.1rem; }
.sitemap h2 a { color: var(--ink); }
.sitemap ul { list-style: none; padding: 0; }
.sitemap li a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.sitemap li a:hover { color: var(--brand-ink); text-decoration: underline; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* Logotipos de clientes */
.sec--clients { padding-block: 0 calc(var(--sec) * .35); }
.clients__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.6rem; margin-bottom: 1.8rem; }
.clients__head .kicker { margin: 0; }
.clients__head h2 { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
.clients-carousel { overflow: hidden; padding-block: .6rem 1.4rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.clients-carousel .marquee__track { gap: 1.2rem; animation-duration: 55s; }
.clients { display: flex; flex: none; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.clients li { flex: none; display: flex; align-items: center; justify-content: center; width: 220px; height: 124px; margin: 0; padding: 1.3rem 1.7rem; line-height: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .4s, transform .45s var(--ease); }
.clients li:hover { border-color: var(--brand); box-shadow: 0 14px 30px -18px rgba(10, 26, 43, .4); transform: translateY(-4px); }
.clients img { display: block; flex: none; width: auto; height: auto; max-width: 100%; max-height: 62px; margin: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .35s, opacity .35s; }
.clients li:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .clients li { width: 168px; height: 100px; padding: 1rem 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .clients-carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }

/* Reserva de citas (sistema propio) */
.booking__pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.booking__step { padding: clamp(1.3rem, 2.6vw, 2.2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.booking__step--form { box-shadow: var(--shadow); border-color: transparent; }
.booking__step h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; margin-bottom: 1.3rem; }
.booking__n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .9rem/1 var(--display); flex: none; }
.booking select { width: 100%; padding: .85rem 1rem; border: 1px solid #b9c6d2; border-radius: var(--radius-sm); background: var(--paper); font: inherit; color: var(--ink); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal__month { margin: 0; font: 700 1.05rem var(--display); letter-spacing: -.01em; }
.cal__nav { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.cal__nav:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.cal__grid--head { margin-bottom: .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); text-align: center; }
.cal__day { display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font: 500 .98rem var(--body); color: #a9b6c2; }
button.cal__day { cursor: pointer; color: var(--ink); background: var(--brand-soft); transition: background .2s, color .2s, transform .25s var(--ease); }
button.cal__day:hover { background: var(--brand); color: #fff; transform: scale(1.08); }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal__day.is-picked, .cal__day.is-picked:hover { background: var(--ink); color: #fff; }
.cal__legend { display: flex; align-items: center; gap: .5rem; margin: 1.1rem 0 0; font-size: .84rem; color: var(--ink-2); }
.cal__dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand); flex: none; }
.booking__slots { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.booking__day { margin: 0 0 .9rem; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .55rem; }
.slot { padding: .7rem .4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: 600 .98rem var(--body); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.slot:hover { border-color: var(--brand); background: var(--brand-soft); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.booking__summary { margin: 0 0 1.3rem; padding: .8rem 1rem; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-soft); font-weight: 600; }
.booking__modes label { display: flex; margin: 0 0 .35rem; }
.booking__done { padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: var(--radius); background: var(--brand-soft); border-left: 5px solid var(--brand); }
.booking__done:focus { outline: none; }
.booking__alt { margin: 2rem 0 0; color: var(--ink-2); font-size: .95rem; }
.booking--empty { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); background: var(--tint); }
.booking-card { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.booking-card.is-cancelled { border-left-color: var(--grey); box-shadow: none; }
.booking-card__data { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem 2rem; margin: 0 0 1.8rem; }
.booking-card__data dt { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.booking-card__data dd { margin: .2rem 0 0; font-weight: 600; font-size: 1.05rem; }
.booking-card__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
@media (max-width: 900px) { .booking__pick { grid-template-columns: 1fr; } }

/* Mapa de contacto: pestañas por oficina y mapa en blanco y negro */
.maps__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.maps__tabs [role="tab"] { padding: .6rem 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); font: 600 .93rem var(--body); color: var(--ink); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.maps__tabs [role="tab"]:hover { border-color: var(--ink); }
.maps__tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.map iframe { filter: grayscale(1) contrast(1.05); }
.maps__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; }
.maps__foot p { margin: 0; }
.maps__addr { font-weight: 600; }

/* 10 ── Contenido de páginas (bloques generados desde el editor) */
.content > .blk { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.content > .blk:nth-child(even) { background: var(--tint); }
.content > .blk:first-child { padding-top: clamp(1.5rem, 3vw, 3rem); }
/* Bloques de texto: misma caja que el resto de secciones. El titular ocupa todo el ancho y el texto
   se reparte en dos columnas equilibradas, así no quedan huecos en blanco a los lados. */
@media (min-width: 900px) {
  .blk--prose > .wrap:has(> :nth-child(4)) { columns: 2; column-gap: clamp(2.5rem, 6vw, 6rem); }
  .blk--prose > .wrap > :is(h2, .kicker, .quotes, .cards, .stats, .table-wrap, .faqs, .video, .actions) { column-span: all; }
  .blk--prose > .wrap > :is(p, ul, ol, figure, .skills, dl) { break-inside: avoid; }
  .blk--prose > .wrap > :is(h3, h4) { break-after: avoid; }
  .blk--prose > .wrap > h2 + :is(h3, h4), .blk--prose > .wrap > :is(h3, h4):first-child { margin-top: 0; }
  .blk--prose > .wrap > h2 { max-width: 30ch; }
  /* Bloques muy cortos (uno o dos párrafos): una sola columna con letra algo mayor */
  .blk--prose > .wrap:not(:has(> :nth-child(4))) > p { font-size: 1.08rem; max-width: 95ch; }
}
.blk--split > .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.blk--flip .blk__media { order: 2; }
.blk__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.blk__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform 1.2s var(--ease); }
.blk__media:hover img { transform: scale(1.04); }
.blk h2 { margin-bottom: .7em; }
.blk h3 { margin-top: 1.8em; }
.blk h4 { margin-top: 1.5em; }
.blk p, .blk li { color: var(--ink-2); }
.blk p.lead { color: var(--ink); }
.blk strong { color: var(--ink); }
.blk ul:not(.skills) { list-style: none; padding-left: 0; }
.blk ul:not(.skills) > li { position: relative; padding-left: 1.5rem; }
.blk ul:not(.skills) > li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5em; height: .5em; background: var(--brand); }
/* Rejilla de tarjetas sin fichas sueltas: 12 columnas y cada tarjeta ocupa las que hagan falta
   para que la última fila quede siempre completa, sea cual sea el número de tarjetas. */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.2rem; margin: 2rem 0 1rem; }
.cards > * { grid-column: span 4; }                                             /* 3 por fila */
.cards > :last-child:nth-child(3n + 1) { grid-column: span 12; }                /* sobra 1 → ocupa la fila */
.cards > :nth-last-child(2):nth-child(3n + 1), .cards > :last-child:nth-child(3n + 2) { grid-column: span 6; }   /* sobran 2 → mitad y mitad */
.cards:has(> :nth-child(4):last-child) > *, .cards:has(> :nth-child(8):last-child) > * { grid-column: span 3; }  /* 4 y 8 → 4 por fila */
.cards:has(> :nth-child(7):last-child) > :nth-child(-n + 4) { grid-column: span 3; }                              /* 7 → 4 + 3 */
.cards:has(> :nth-child(7):last-child) > :nth-child(n + 5) { grid-column: span 4; }
.blk--split .cards > *, .prose .cards > * { grid-column: span 6; }              /* en media columna, de 2 en 2 */
.blk--split .cards > :last-child:nth-child(odd), .prose .cards > :last-child:nth-child(odd) { grid-column: span 12; }
@media (max-width: 900px) {
  .cards > *, .cards:has(> :nth-child(4):last-child) > *, .cards:has(> :nth-child(8):last-child) > *, .cards:has(> :nth-child(7):last-child) > * { grid-column: span 6; }
  .cards > :last-child:nth-child(odd), .cards:has(> :nth-child(7):last-child) > :last-child { grid-column: span 12; }
}
@media (max-width: 560px) { .cards > *, .cards:has(> *) > * { grid-column: span 12 !important; } }
.card { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); transition: border-color .3s, transform .45s var(--ease), box-shadow .4s; }
.card:hover { border-color: var(--brand); border-left-color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); }
.blk .card h3, .blk .card h4 { margin: 0 0 .5rem; font-size: 1.02rem; }
.card p:last-child { margin: 0; }
.card__ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1.1rem; border-radius: 15px; background: var(--brand-soft); color: var(--brand); transition: background .3s, color .3s, transform .45s var(--ease); }
.card:hover .card__ico { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.cards--1 { margin-block: 1rem; }
.card--cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; }
.card--cta .card__main { display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; align-items: center; flex: 1 1 320px; }
.card--cta .card__ico { grid-row: span 2; margin: 0; }
.card--cta .card__main > :not(.card__ico) { grid-column: 2; }
.card--cta .card__main p { margin: 0; }
.btn--brand { --bg: var(--brand); --fg: #fff; }
.btn--brand:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.card__media { margin: -1.5rem -1.5rem 1.2rem; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
/* Banda de llamada a la acción (secciones que solo tenían un titular) */
.content > .blk.blk--cta { background: none; padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.cta-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.8rem, 4.5vw, 3.8rem); border-radius: calc(var(--radius) * 1.4); background: var(--brand); color: #fff; overflow: hidden; }
.cta-band__deco { position: absolute; right: -40px; top: -60px; width: 320px; height: 320px; background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 46px 46px no-repeat, linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 70px 40px / 110px 110px no-repeat,
    linear-gradient(rgba(10, 26, 43, .16), rgba(10, 26, 43, .16)) 160px 170px / 150px 150px no-repeat, linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)) 20px 200px / 60px 60px no-repeat;
  transform: rotate(12deg); opacity: .55; pointer-events: none; }
.cta-band__text { position: relative; }
.cta-band .kicker { color: #fff; }
.cta-band .kicker::before { background: #fff; }
.cta-band h2 { margin: 0; color: #fff; max-width: 22ch; }
.cta-band .actions { position: relative; margin: 0; }
.cta-band .btn--outline-light { --fg: #fff; border-color: rgba(255, 255, 255, .7); }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.faqs { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; font: 700 1.02rem/1.35 var(--display); letter-spacing: -.01em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--body); color: var(--brand-ink); transition: transform .35s var(--ease); flex: none; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 1.2rem; }
.skills { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.skills li { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0; font-weight: 600; color: var(--ink); }
.skills__bar { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 9px; background: var(--line); position: relative; overflow: hidden; }
.skills__bar::after { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--brand); border-radius: inherit; transform-origin: left; transition: transform 1.3s var(--ease); }
.js .skills:not(.is-in) .skills__bar::after { transform: scaleX(0); }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: .97rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--tint); font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
.video { margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video__play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .8s var(--ease); }
.video__play:hover img { opacity: 1; transform: scale(1.03); }
.video__icon { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--brand); }
.video__icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 24px solid #fff; border-block: 15px solid transparent; transform: translateX(4px); }
.video iframe { width: 100%; height: 100%; border: 0; }
.content--legal > .blk { background: none !important; padding-block: 1rem 3rem; }
.content--legal .blk--prose > .wrap { columns: auto; }
.content--legal .blk--prose > .wrap > * { max-width: 900px; }
.content--legal h2 { font-size: 1.3rem; margin-top: 2em; }
.content--legal h3 { font-size: 1.05rem; }
@media (max-width: 900px) {
  .blk--split > .wrap { grid-template-columns: 1fr; }
  .blk--flip .blk__media { order: 0; }
  .blk__media img { aspect-ratio: 16 / 11; }
}

/* 11 ── Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 2.5vw, 2.4rem); }
.post-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); margin-bottom: 1.1rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand), #7fd4f5); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0 0 .5rem; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.post-card__meta span { color: var(--brand-ink); }
.post-card__title { font-size: 1.08rem; line-height: 1.3; margin-bottom: .5rem; }
.post-card__title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card__title a { background-size: 100% 1px; }
.post-card__text { margin: 0; color: var(--ink-2); font-size: .95rem; }
.filters { margin-top: 2rem; }
.post__cover { margin-block: 0 clamp(2rem, 4vw, 3.5rem); }
.post__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.post__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr); gap: clamp(2rem, 6vw, 6rem); padding-bottom: var(--sec); }
.post__layout > .prose:only-child { grid-column: 2; }
.toc { position: sticky; top: calc(var(--hdr) + 1.5rem); align-self: start; max-height: calc(100vh - var(--hdr) - 3rem); overflow: auto; font-size: .92rem; }
.toc__h { font: 700 .85rem var(--display); margin-bottom: .9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--brand); }
.prose { font-size: 1.04rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); margin-top: 2em; }
.prose h3 { margin-top: 1.8em; }
.prose h4 { margin-top: 1.5em; }
.prose p, .prose li { color: #24364a; }
.prose .fig img { width: 100%; }
.prose .cards { margin-block: 1.5rem; }
.post__svc { margin: 2.5rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--brand); background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post__svc p { margin: 0; }
.post__foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.post__foot p { margin-bottom: .6rem; }
.post__foot span { font-weight: 600; margin-right: .3rem; }
.post__foot a { margin-right: .7rem; }
.progress { position: fixed; left: 0; top: 0; z-index: 150; width: 100%; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brand); transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (max-width: 1020px) {
  .post-grid, .post-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post__layout { grid-template-columns: minmax(0, 1fr); }
  .post__layout > .prose:only-child { grid-column: 1; }
  .toc { position: static; max-height: none; padding: 1.2rem 1.4rem; background: var(--tint); border-radius: var(--radius-sm); }
}
@media (max-width: 560px) { .post-grid, .post-grid--4 { grid-template-columns: 1fr; } }

/* 12 ── Formularios y banda de contacto */
.band--contact { padding-block: var(--sec); background: var(--tint); }
.band__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.band__form, .form--boxed { background: var(--paper); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: grid; gap: .1rem; padding: .95rem 0; border-top: 1px solid var(--line); margin: 0; }
.contact-list span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.contact-list a { color: var(--ink); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact-list a:hover { color: var(--brand-ink); }
.contact-list small { font-size: .9rem; color: var(--ink-2); }
.contact-list small a { font-size: inherit; }
.dial__label small { font-size: .85em; font-weight: 400; opacity: .75; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; padding: .85rem 1rem; border: 1px solid #b9c6d2; border-radius: var(--radius-sm); background: var(--paper); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(1, 153, 214, .2); }
.field [aria-invalid="true"] { border-color: #c0262d; }
.field--radio label { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1.4rem; font-weight: 600; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .94rem; margin-bottom: .6rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--brand-ink); flex: none; }
.form__legal, .form__note { font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
.form__hp { position: absolute; left: -9999px; }
.form__actions { margin: 1.2rem 0 0; }
.form__status { margin: 1rem 0 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #12703c; }
.form__status.is-error { color: #b3212a; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
@media (max-width: 900px) { .band__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* 13 ── Pie */
.ftr { background: var(--dark); color: #c5d3df; font-size: .96rem; }
.ftr a { color: #c5d3df; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr a.btn { color: var(--fg); text-decoration: none; }
.ftr a.btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }   /* sobre el pie oscuro, el cambio es a azul */
.ftr__cta { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.ftr__cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.ftr__claim { font: 700 clamp(1.05rem, 1.6vw, 1.35rem)/1.3 var(--display); color: #fff; max-width: 24ch; margin: 0; letter-spacing: -.02em; }
.ftr__cta .actions { margin: 0; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.ftr__brand img { height: 54px; width: auto; margin-bottom: 1.2rem; }
.ftr__contact { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ftr__contact a, .ftr__line { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; }
.ftr__line { font-weight: 300; color: #c5d3df; }
.ftr__contact li { margin-bottom: .55rem; }
.ftr__contact svg, .ftr__office svg { flex: none; color: var(--brand); }
.ftr__office strong { display: inline-flex; align-items: center; gap: .5rem; }
.ftr__h { font: 700 .85rem var(--display); color: #fff; margin-bottom: 1rem; }
.ftr__col ul { list-style: none; padding: 0; margin: 0; }
.ftr__col li { margin-bottom: .5rem; line-height: 1.4; }
.ftr__offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-block: 2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.ftr__office { display: grid; gap: .15rem; align-content: start; }
.ftr__office strong { color: #fff; font: 700 .9rem var(--display); margin-bottom: .4rem; }
.ftr__seal { align-self: center; font-size: .86rem; line-height: 1.45; padding: 1rem 1.2rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-sm); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-block: 1.6rem 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.ftr__bottom p { margin: 0; }
.ftr__partners { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.ftr__partners li { margin: 0; }
/* Botón flotante de contacto: despliega WhatsApp, teléfono, email, cita y formulario */
.dial { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.dial::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(6, 19, 31, .45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.dial.is-open::before { opacity: 1; pointer-events: auto; }
.dial__btn { position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(6, 19, 31, .55); transition: background .3s, color .3s, transform .35s var(--ease); animation: dial-pulse 3.2s infinite; }
.dial__btn:hover { background: var(--ink); }
.dial__btn svg { grid-area: 1 / 1; transition: opacity .25s, transform .45s var(--ease); }
.dial__close { opacity: 0; transform: rotate(-90deg) scale(.4); }
.dial.is-open .dial__btn { background: var(--ink); color: #fff; animation: none; }
.dial.is-open .dial__open { opacity: 0; transform: rotate(90deg) scale(.4); }
.dial.is-open .dial__close { opacity: 1; transform: none; }
.dial__list { display: grid; justify-items: end; gap: .6rem; list-style: none; margin: 0; padding: 0; visibility: hidden; transition: visibility 0s .4s; }
.dial.is-open .dial__list { visibility: visible; transition: none; }
.dial__list li { margin: 0; opacity: 0; transform: translateY(18px) scale(.85); transform-origin: right center; transition: opacity .3s, transform .45s var(--ease); }
.dial.is-open .dial__list li { opacity: 1; transform: none; transition-delay: calc(45ms * var(--r, 0)); }
.dial__list a { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.dial__label { padding: .5rem .95rem; border-radius: 15px; background: #fff; font-weight: 600; font-size: .93rem; box-shadow: 0 8px 22px -8px rgba(6, 19, 31, .45); white-space: nowrap; }
.dial__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 8px 22px -8px rgba(6, 19, 31, .45); transition: background .25s, transform .35s var(--ease); }
.dial__ico--wa { background: #128c4b; color: #fff; }
.dial__info { display: flex; align-items: center; gap: .7rem; }
.dial__info .dial__label { font-weight: 500; }
.dial__info .dial__label strong { font-weight: 600; }
.dial__info .dial__ico { background: var(--ink); color: #fff; }
.dial__list a:hover .dial__ico, .dial__list a:focus-visible .dial__ico { background: var(--brand); color: #fff; transform: scale(1.1); }
.no-js .dial__list { visibility: visible; }
.no-js .dial__list li { opacity: 1; transform: none; }
@keyframes dial-pulse { 0%, 60%, 100% { box-shadow: 0 12px 30px -8px rgba(6, 19, 31, .55), 0 0 0 0 rgba(1, 153, 214, .55); } 80% { box-shadow: 0 12px 30px -8px rgba(6, 19, 31, .55), 0 0 0 16px rgba(1, 153, 214, 0); } }
.cookies { position: fixed; left: 18px; bottom: 18px; z-index: 120; max-width: 430px; padding: 1.3rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .92rem; }
.cookies p { margin: 0 0 1rem; }
.cookies__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
/* Cookies: aviso (aceptar, rechazar y configurar con el mismo peso), configuración por finalidades y mapa bloqueado */
.cookies { max-width: 470px; }
.cookies__title { font: 700 1.05rem/1.2 var(--display); margin-bottom: .5rem !important; }
.cookies__actions .btn, .cookies-cfg__actions .btn { flex: 1 1 auto; }
.btn[data-cookies="config"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E"); }
.btn[data-cookies="save"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E"); }
.btn[data-consent-grant] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.300-7-11.500A7 7 0 0 1 19 9.500C19 14.700 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.500' r='2.500'/%3E%3C/svg%3E"); }
.cookies-cfg { width: min(640px, calc(100% - 20px)); max-height: calc(100% - 40px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); font-size: .93rem; }
.cookies-cfg::backdrop { background: rgba(10, 26, 43, .55); }
.cookies-cfg__form { padding: 1.6rem 1.7rem; }
.cookies-cfg__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.cookies-cfg__head h2 { margin: 0; font: 700 1.3rem/1.2 var(--display); }
.cookies-cfg__close { width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cookies-cfg__close:hover { border-color: var(--ink); }
.cookies-cfg__list { list-style: none; margin: 1.2rem 0; padding: 0; border-top: 1px solid var(--line); }
.cookies-cfg__list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cookies-cfg__list p { margin: .35rem 0 0; color: #4a5a6a; }
.cookies-cfg__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.cookies-cfg__name { font-weight: 700; }
.cookies-cfg__name small { margin-left: .5rem; font-weight: 600; font-size: .78rem; color: var(--brand-ink); }
.cookies-cfg__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 13px; background: #c3ceda; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked, .switch--on { background: var(--brand); }
.switch:checked::after, .switch--on::after { transform: translateX(20px); }
.switch--on { opacity: .55; cursor: default; }
.ftr__cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.ftr__cookies:hover { color: var(--brand); }
.map__consent { display: grid; place-items: center; align-content: center; gap: 1rem; min-height: 420px; margin-bottom: 1rem; padding: 2rem; border-radius: var(--radius-sm); background: var(--brand-soft); text-align: center; }
.map__consent p { max-width: 30em; margin: 0; }
.map__consent[hidden] { display: none; }
.map iframe[hidden] { display: none; }
/* reCAPTCHA v3: el distintivo flotante se oculta y su aviso va junto al botón de enviar (lo permiten las condiciones de Google) */
.grecaptcha-badge { visibility: hidden; }
.form__recaptcha { margin: -.3rem 0 1rem; font-size: .8rem; color: #5b6b7b; }
.form__recaptcha a { color: inherit; }
.cookies__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .cookies__actions .btn { padding-inline: .4rem; } .cookies__actions .btn::after { display: none; } }
.cookie-table code { white-space: nowrap; font-size: .85em; }
@media (max-width: 520px) { .cookies-cfg__form { padding: 1.2rem; } .map__consent { min-height: 300px; } }
@media (max-width: 1020px) {
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .cookies { left: 10px; right: 10px; bottom: 84px; } }

/* 14 ── Efectos (solo con JavaScript activo) */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(70ms * var(--d, 0)); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-tilt][data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .9s var(--ease), transform .25s ease-out, box-shadow .4s, border-color .3s; }
.js .content > .blk .blk__media, .js .content > .blk .blk__body > *, .js .content > .blk--prose > .wrap > *, .js .content > .blk--wide > .wrap > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js .content > .blk.is-in .blk__media, .js .content > .blk.is-in .blk__body > *, .js .content > .blk--prose.is-in > .wrap > *, .js .content > .blk--wide.is-in > .wrap > * { opacity: 1; transform: none; }
.js .content > .blk.is-in .blk__body > *:nth-child(2), .js .content > .blk.is-in > .wrap > *:nth-child(2) { transition-delay: .08s; }
.js .content > .blk.is-in .blk__body > *:nth-child(3), .js .content > .blk.is-in > .wrap > *:nth-child(3) { transition-delay: .16s; }
.js .content > .blk.is-in .blk__body > *:nth-child(n + 4), .js .content > .blk.is-in > .wrap > *:nth-child(n + 4) { transition-delay: .24s; }
.js .blk__media { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.2s var(--ease), opacity .8s, transform 1s var(--ease) !important; }
.js .blk.is-in .blk__media { clip-path: inset(0 round var(--radius)); }
/* Titulares que entran palabra a palabra */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split-w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(55ms * var(--i)); }
.is-in > .split-w > span, .is-in em > .split-w > span { transform: none; }
[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0), 0); }
/* 15 ── Movimiento reducido: sin animaciones ni desplazamientos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mega__grid li { opacity: 1; transform: none; }
  .js [data-reveal], .js .content > .blk *, .split-w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-parallax] { transform: none !important; }
  @view-transition { navigation: none; }
}
@media print {
  .hdr, .ftr, .dial, .cookies, .band--contact, .marquee { display: none !important; }
}

/* ───────── Portada: motion graphic del hero (sustituye a las fotos; solo CSS + SVG) */
.hero__visual--mg { container-type: inline-size; }
.mg { --cy: #2ed3f5; --in: #5b6cff; --am: #ffb23f; position: absolute; inset: 0; font-size: 2.6cqw; }
.mg * { box-sizing: border-box; }
.mg__blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(.2px); animation: mg-morph 14s ease-in-out infinite, mg-spin 28s linear infinite; }
.mg__blob--a { inset: 6% 4% 8% 2%; background: conic-gradient(from 210deg, var(--brand), var(--cy), var(--in), var(--brand-ink), var(--brand)); box-shadow: 0 3em 6em -2em rgba(1, 153, 214, .55); }
.mg__blob--b { width: 34%; aspect-ratio: 1; right: 0; top: 2%; background: radial-gradient(circle at 35% 35%, #ffd27a, var(--am)); opacity: .95; animation-duration: 9s, 18s; animation-direction: normal, reverse; }
.mg__blob--c { width: 26%; aspect-ratio: 1; left: -2%; bottom: 4%; background: radial-gradient(circle at 40% 35%, #8af0ff, var(--cy)); opacity: .9; animation-duration: 11s, 22s; }
.mg__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mg__ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; stroke-dasharray: 3 9; transform-origin: 200px 200px; animation: mg-spin 40s linear infinite; }
.mg__ring--2 { stroke: rgba(255, 255, 255, .35); stroke-dasharray: 1 7; animation-duration: 26s; animation-direction: reverse; }
.mg__orbit { transform-origin: 200px 200px; animation: mg-spin 12s linear infinite; }
.mg__orbit circle { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.mg__orbit--2 { animation-duration: 8s; animation-direction: reverse; }
.mg__orbit--2 circle { fill: var(--am); filter: drop-shadow(0 0 6px var(--am)); }

.mg__card { position: absolute; background: #fff; border-radius: 1.1em; box-shadow: 0 1.6em 3em -1.2em rgba(10, 26, 43, .45); animation: mg-float 7s ease-in-out infinite; }
.mg__browser { left: 9%; top: 15%; width: 62%; padding: 0 0 1em; overflow: hidden; }
.mg__bar { display: flex; align-items: center; gap: .4em; padding: .7em .9em; background: var(--tint); }
.mg__bar i { width: .6em; height: .6em; border-radius: 50%; background: var(--brand); }
.mg__bar i:nth-child(2) { background: var(--am); }
.mg__bar i:nth-child(3) { background: var(--cy); }
.mg__bar span { margin-left: .6em; height: .8em; flex: 1; max-width: 55%; border-radius: 1em; background: #fff; }
.mg__hero { position: relative; margin: .9em .9em 0; height: 7.4em; border-radius: .8em; padding: 1.1em; overflow: hidden; background: linear-gradient(120deg, var(--brand), var(--in), var(--cy), var(--brand)); background-size: 300% 100%; animation: mg-pan 6s linear infinite; }
.mg__hero b { display: block; height: .85em; width: 62%; border-radius: 1em; background: #fff; margin-bottom: .55em; transform-origin: left; animation: mg-grow 6s var(--ease) infinite; }
.mg__hero b + b { width: 42%; opacity: .7; animation-delay: .15s; }
.mg__hero em { position: absolute; left: 1.1em; bottom: 1.1em; width: 5.2em; height: 1.6em; border-radius: 1em; background: var(--ink); animation: mg-pulse 3s ease-in-out infinite; }
.mg__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; margin: .7em .9em 0; }
.mg__tiles span { height: 3.6em; border-radius: .6em; background: var(--tint); position: relative; overflow: hidden; }
.mg__tiles span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(1, 153, 214, .18), transparent 70%); transform: translateX(-100%); animation: mg-shine 3.2s ease-in-out infinite; }
.mg__tiles span:nth-child(2)::after { animation-delay: .25s; }
.mg__tiles span:nth-child(3)::after { animation-delay: .5s; }

.mg__search { left: 0; top: 2%; display: flex; align-items: center; gap: .6em; padding: .75em 1em; border-radius: 3em; font: 600 1.05em/1 var(--body); color: var(--ink); animation-delay: -2s; }
.mg__search svg { width: 1.2em; height: 1.2em; fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; }
.mg__type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--brand); animation: mg-type 8s steps(19) infinite; }
.mg__rank { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--am); color: var(--ink); font: 800 .85em/1 var(--display); transform: scale(0); animation: mg-pop 8s var(--ease) infinite; }

.mg__chart { right: 0; top: 37%; width: 44%; padding: 1em 1.1em 1.1em; background: var(--ink); color: #fff; animation-delay: -4s; }
.mg__chart-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 .8em/1 var(--body); color: rgba(255, 255, 255, .6); }
.mg__chart-head strong { font: 800 1.45em/1 var(--display); color: var(--cy); }
.mg__chart svg { display: block; width: 100%; height: 5.4em; margin-top: .7em; overflow: visible; }
.mg__area { fill: url(#mg-area); opacity: 0; animation: mg-fade 6s ease-in-out infinite; }
.mg__line { fill: none; stroke: var(--cy); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; vector-effect: non-scaling-stroke; animation: mg-draw 6s var(--ease) infinite; }
.mg__dot { fill: var(--am); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: mg-dot 6s var(--ease) infinite; }
.mg__bars { display: flex; align-items: flex-end; gap: .35em; height: 2.4em; margin-top: .6em; }
.mg__bars i { flex: 1; border-radius: .25em .25em 0 0; background: rgba(46, 211, 245, .35); height: 30%; transform-origin: bottom; animation: mg-bar 6s var(--ease) infinite; }
.mg__bars i:nth-child(2) { height: 48%; animation-delay: .1s; }
.mg__bars i:nth-child(3) { height: 40%; animation-delay: .2s; }
.mg__bars i:nth-child(4) { height: 72%; animation-delay: .3s; }
.mg__bars i:nth-child(5) { height: 100%; background: var(--brand); animation-delay: .4s; }

.mg__phone { left: 4%; bottom: 3%; width: 24%; aspect-ratio: 9 / 17; padding: 1.6em .9em .9em; border-radius: 1.6em; border: .45em solid var(--ink); display: flex; flex-direction: column; align-items: center; gap: .55em; animation-delay: -1s; }
.mg__notch { position: absolute; top: .45em; left: 50%; width: 32%; height: .5em; border-radius: 1em; background: var(--ink); transform: translateX(-50%); }
.mg__ring-chart { position: relative; width: 72%; aspect-ratio: 1; }
.mg__ring-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mg__ring-chart circle { fill: none; stroke: var(--tint); stroke-width: 5; }
.mg__ring-chart .mg__ring-val { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 88; animation: mg-ring 6s var(--ease) infinite; }
.mg__ring-chart b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.15em/1 var(--display); color: var(--ink); }
.mg__pl { width: 100%; height: .6em; border-radius: 1em; background: var(--line); }
.mg__pl--s { width: 70%; }
.mg__btn { margin-top: auto; width: 100%; height: 1.6em; border-radius: 1em; background: linear-gradient(90deg, var(--brand), var(--cy)); }

.mg__toast { left: 30%; bottom: 2%; display: flex; align-items: center; gap: .7em; padding: .8em 1em; width: 38%; animation: mg-toast 8s var(--ease) infinite; }
.mg__toast i { flex: none; width: 2.2em; height: 2.2em; border-radius: .7em; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 60% no-repeat; }
.mg__toast span { flex: 1; display: grid; gap: .4em; }
.mg__toast b { height: .65em; border-radius: 1em; background: var(--ink); }
.mg__toast b + b { width: 65%; background: var(--line); }

.mg__cursor { position: absolute; left: 0; top: 0; width: 2em; height: 2em; z-index: 3; animation: mg-cursor 8s var(--ease) infinite; }
.mg__cursor svg { width: 100%; height: 100%; fill: var(--ink); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 .3em .4em rgba(10, 26, 43, .35)); }
.mg__click { position: absolute; left: -.6em; top: -.6em; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid var(--am); opacity: 0; animation: mg-click 8s ease-out infinite; }

.mg__spark { position: absolute; width: 1.4em; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: mg-twinkle 3s ease-in-out infinite; }
.mg__spark--1 { left: 76%; top: 9%; }
.mg__spark--2 { left: 48%; top: 86%; width: 1em; background: var(--am); animation-delay: -1s; }
.mg__spark--3 { left: 4%; top: 46%; width: .9em; animation-delay: -2s; }

.hero__visual--mg .hero__badge { z-index: 4; }

@keyframes mg-morph { 0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; } 33% { border-radius: 63% 37% 45% 55% / 55% 61% 39% 45%; } 66% { border-radius: 38% 62% 35% 65% / 62% 35% 65% 38%; } }
@keyframes mg-spin { to { transform: rotate(360deg); } }
@keyframes mg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.9em); } }
@keyframes mg-pan { to { background-position: 300% 0; } }
@keyframes mg-grow { 0%, 8% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
@keyframes mg-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 26, 43, .4); } 50% { box-shadow: 0 0 0 .5em rgba(10, 26, 43, 0); } }
@keyframes mg-shine { 0%, 40% { transform: translateX(-100%); } 80%, 100% { transform: translateX(100%); } }
@keyframes mg-type { 0%, 5% { width: 0; } 40%, 85% { width: 9.6em; } 95%, 100% { width: 0; } }
@keyframes mg-pop { 0%, 42% { transform: scale(0) rotate(-30deg); } 50%, 85% { transform: scale(1) rotate(0); } 92%, 100% { transform: scale(0); } }
@keyframes mg-draw { 0%, 5% { stroke-dashoffset: 260; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes mg-fade { 0%, 30% { opacity: 0; } 60%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mg-dot { 0%, 50% { transform: scale(0); } 58%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes mg-bar { 0%, 10% { transform: scaleY(.1); } 45%, 88% { transform: scaleY(1); } 100% { transform: scaleY(.1); } }
@keyframes mg-ring { 0%, 10% { stroke-dashoffset: 88; } 55%, 88% { stroke-dashoffset: 2; } 100% { stroke-dashoffset: 88; } }
@keyframes mg-toast { 0%, 52% { opacity: 0; transform: translateY(1.5em) scale(.9); } 58%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-.5em); } }
@keyframes mg-cursor {
  0% { transform: translate(55cqw, 85cqw); }
  20%, 26% { transform: translate(22cqw, 45cqw); }        /* botón del navegador */
  48%, 54% { transform: translate(72cqw, 10cqw); }        /* resultado #1 */
  76%, 82% { transform: translate(50cqw, 92cqw); }        /* aviso */
  100% { transform: translate(55cqw, 85cqw); }
}
@keyframes mg-click { 0%, 22%, 50%, 78% { opacity: 0; transform: scale(.4); } 24%, 52%, 80% { opacity: 1; transform: scale(.6); } 30%, 58%, 86%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes mg-twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .4; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mg *, .mg *::after { animation: none !important; }
  .mg__type { width: 9.6em; }
  .mg__rank, .mg__dot, .mg__bars i { transform: none; }
  .mg__line, .mg__ring-chart .mg__ring-val { stroke-dashoffset: 0; }
  .mg__area, .mg__toast { opacity: 1; }
  .mg__cursor, .mg__click { display: none; }
}

/* Motion graphic: reacción al ratón (variables --mgx/--mgy entre -1 y 1, --mgpx/--mgpy en %, puestas por el script de home.php) */
.mg { --mgx: 0; --mgy: 0; --mgpx: 50%; --mgpy: 50%; transform: perspective(70em) rotateX(calc(var(--mgy) * -7deg)) rotateY(calc(var(--mgx) * 9deg)); }
.mg::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at var(--mgpx) var(--mgpy), rgba(255, 255, 255, .6), rgba(46, 211, 245, .18) 18%, transparent 34%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .5s; }
.mg.is-hover::before { opacity: 1; }
.mg__blob--a { translate: calc(var(--mgx) * -1.6em) calc(var(--mgy) * -1.6em); background: conic-gradient(from calc(210deg + var(--mgx) * 70deg + var(--mgy) * 40deg), var(--brand), var(--cy), var(--in), var(--brand-ink), var(--brand)); }
.mg__blob--b { translate: calc(var(--mgx) * -3.4em) calc(var(--mgy) * -3.4em); }
.mg__blob--c { translate: calc(var(--mgx) * 3em) calc(var(--mgy) * 3em); }
.mg__rings { translate: calc(var(--mgx) * -.8em) calc(var(--mgy) * -.8em); }
.mg__card { --d: 1.4em; translate: calc(var(--mgx) * var(--d)) calc(var(--mgy) * var(--d)); transition: scale .4s var(--ease), box-shadow .4s var(--ease); }
.mg__browser { --d: 1.1em; }
.mg__search { --d: 2em; }
.mg__chart { --d: 2.5em; }
.mg__phone { --d: 2.9em; }
.mg__toast { --d: 2.2em; }
.mg__spark { translate: calc(var(--mgx) * 4em) calc(var(--mgy) * 4em); }
.mg__card:hover { scale: 1.07; z-index: 5; box-shadow: 0 2.4em 4em -1.2em rgba(10, 26, 43, .55), 0 0 0 .25em rgba(46, 211, 245, .45); }
.mg__cursor { transition: opacity .4s; }
.mg.is-hover .mg__cursor { opacity: 0; }   /* manda el ratón de verdad */

/* ───────── Portada: «Un Girol para cada proyecto» (fotos ladeadas unidas por una línea de puntos que se dibuja con el scroll) */
.moods { position: relative; padding-top: calc(var(--sec) * .5); overflow: hidden; background: linear-gradient(180deg, var(--paper), var(--tint) 18%, var(--tint) 82%, var(--paper)); }
.moods .wrap { position: relative; z-index: 1; }
.moods__head { text-align: center; margin-bottom: clamp(2.5rem, 7vw, 5.5rem); }
.moods__head .kicker { justify-content: center; }
.moods__head h2 { font-size: clamp(1.9rem, 4.6vw, 3.6rem); letter-spacing: -.03em; margin: 0; }
.moods__mark { position: relative; display: inline-block; padding: 0 .18em; color: var(--brand); }
.moods__mark svg { position: absolute; left: -.2em; top: -.28em; width: calc(100% + .4em); height: calc(100% + .5em); overflow: visible; pointer-events: none; }
.moods__mark path { fill: none; stroke: #ffb23f; stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 3; stroke-dashoffset: 3; transition: stroke-dashoffset 1.6s .35s var(--ease); }
.moods.is-in .moods__mark path, .mark-draw.is-in path { stroke-dashoffset: 0; }
.mark-draw { white-space: nowrap; }
#kit-h .moods__mark { color: #fff; }

.moods__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; gap: clamp(3.5rem, 9vw, 7.5rem); }
.mood { display: flex; align-items: center; gap: clamp(1.2rem, 4.5vw, 3.5rem); margin: 0; }
.mood:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.mood__sticker { flex: none; width: clamp(130px, 23vw, 270px); aspect-ratio: 1; padding: clamp(6px, 1vw, 11px); background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 9px 0 var(--ink); rotate: -4deg; }
.mood:nth-child(even) .mood__sticker { rotate: 5deg; }
.mood:nth-child(3) .mood__sticker { rotate: 3deg; }
.mood__sticker picture, .mood__sticker img { display: block; width: 100%; height: 100%; }
.mood__sticker img { object-fit: cover; border-radius: 15px; }
.mood__phrase { margin: 0; max-width: 17ch; font: 800 clamp(1.25rem, 3vw, 2.35rem)/1.1 var(--display); letter-spacing: -.025em; color: var(--ink); }
.mood__phrase em { font-style: normal; color: var(--brand); }

/* aparición */
.mood .mood__sticker, .mood .mood__phrase { transition: opacity .7s var(--ease), transform .8s var(--ease), scale .8s var(--ease); }
.js .mood:not(.is-on) .mood__sticker { opacity: 0; scale: .6; }
.js .mood:not(.is-on) .mood__phrase { opacity: 0; transform: translateY(1.2rem); }
.mood.is-on .mood__phrase { transition-delay: .15s; }

/* línea y puntero */
.moods__cord { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.moods__line { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 9 12; }
.moods__reveal { transition: stroke-dashoffset .12s linear; }
.moods__pointer { position: absolute; left: 0; top: 0; z-index: 2; width: 30px; height: 30px; margin: -4px 0 0 -6px; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.moods__pointer.is-on { opacity: 1; }
.moods__pointer svg { width: 100%; height: 100%; overflow: visible; }
.moods__pointer path { fill: #fff; stroke: var(--brand-ink); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(2px 2px 0 var(--brand)); }

@media (max-width: 640px) {
  .mood__sticker { border-width: 2px; border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
  .mood__sticker img { border-radius: 11px; }
  .moods__line { stroke-width: 2.4; stroke-dasharray: 6 9; }
  .moods__pointer { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .mood:not(.is-on) .mood__sticker, .js .mood:not(.is-on) .mood__phrase { opacity: 1; scale: 1; transform: none; }
  .moods__mark path { stroke-dashoffset: 0; transition: none; }
  .moods__pointer { display: none; }
}

/* ───────── Portada: áreas de servicio en tarjetas (sustituye al índice en columnas, que parecía el pie) */
.svc-groups { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.4rem); align-items: stretch; }
.svc-group { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.7rem 1.5rem 1.4rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.svc-group::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brand), #2ed3f5); transform: scaleX(.22); transform-origin: left; transition: transform .7s var(--ease); }
.svc-group:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(10, 26, 43, .45); }
.svc-group:hover::before { transform: scaleX(1); }
.svc-group__head { display: flex; align-items: center; gap: .8rem; }
.svc-group__n { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: var(--brand-soft); color: var(--brand-ink); font: 800 .95rem/1 var(--display); transition: background .3s, color .3s; }
.svc-group:hover .svc-group__n { background: var(--brand); color: #fff; }
.svc-group h3 { margin: 0; font-size: 1.25rem; }
.svc-group h3 a { color: var(--ink); text-decoration: none; }
.svc-group > p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.svc-group__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.svc-group__tags li { margin: 0; padding: 0; }
.svc-group__tags li::before { content: none; }
.svc-group__tags a { display: inline-block; padding: .45rem .85rem; border-radius: 2rem; background: var(--tint); border: 1px solid var(--line); color: var(--ink); font: 600 .85rem/1.2 var(--body); text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.svc-group__tags a:hover, .svc-group__tags a:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.svc-group__more { margin-top: auto; padding-top: .3rem; display: inline-flex; align-items: center; gap: .4rem; font: 700 .92rem/1 var(--body); color: var(--brand-ink); text-decoration: none; transition: gap .3s var(--ease); }
.svc-group__more:hover { gap: .75rem; }
@media (max-width: 1100px) { .svc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-groups { grid-template-columns: 1fr; } }

/* ───────── Contenido: pasos en tarjetas numeradas y bloque de preguntas frecuentes a dos columnas */
.blk--prose > .wrap > :is(.pasos, .faq-block) { column-span: all; }
.pasos { list-style: none; margin: 1.8rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(.9rem, 1.6vw, 1.3rem); }
.blk .pasos > .paso { position: relative; margin: 0; padding: 1.5rem 1.4rem 1.45rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pasos > .paso:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -28px rgba(10, 26, 43, .45); }
.paso__n { display: inline-grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: 1.1rem; border-radius: .85rem; background: linear-gradient(135deg, var(--brand), #2ed3f5); color: #fff; font: 800 .95rem/1 var(--display); box-shadow: 0 10px 20px -10px rgba(1, 153, 214, .8); }
.paso:not(:last-child)::after { content: ""; position: absolute; top: 2.85rem; left: calc(1.4rem + 2.7rem + .6rem); right: 1.4rem; border-top: 2px dashed var(--line); }
.blk .paso__t { margin: 0 0 .45rem; font-size: 1.08rem; }
.blk .paso p { margin: 0; font-size: .95rem; line-height: 1.55; }

.faq-block { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.faq-block__head { position: sticky; top: calc(var(--hdr) + 1.5rem); }
.blk .faq-block__head h2 { margin: 0 0 .9rem; max-width: 18ch; }
.blk .faq-block__help { margin: 0 0 1.3rem; }
.faq-block .faqs { margin: 0; border: 0; display: grid; gap: .7rem; }
.faq-block .faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.3rem; transition: border-color .3s, box-shadow .35s var(--ease); }
.faq-block .faq:hover { border-color: rgba(1, 153, 214, .35); }
.faq-block .faq[open] { border-color: rgba(1, 153, 214, .5); box-shadow: var(--shadow); }
.faq-block .faq summary { align-items: center; padding: 1.15rem 0; }
.faq-block .faq summary::after { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-soft); font: 500 1.3rem/1 var(--body); transition: transform .35s var(--ease), background .3s, color .3s; }
.faq-block .faq[open] summary::after { background: var(--brand); color: #fff; }
.faq-block .faq__a { padding: 0 0 1.25rem; }
.faq-block .faq__a p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .faq-block { grid-template-columns: 1fr; }
  .faq-block__head { position: static; }
  .paso:not(:last-child)::after { display: none; }
}
.blk .pasos > .paso::before { content: none; }
.blk ol.pasos { counter-reset: none; padding-left: 0; }
