/* GN4, S. A. - paleta derivada del logo: azul #00548a y cian #0084b4; dorado solo para acciones */
:root {
  --brand: #00548a;      /* azul del logo */
  --brand-2: #0084b4;    /* cian del logo */
  --sky: #63c3ec;        /* cian aclarado para leerse sobre fondo oscuro */
  --bg: #06172a;
  --bg-2: #081f38;
  --panel: #0b2946;
  --panel-2: #0e3357;
  --paper: #f5f9fc;      /* superficies claras donde vive el logo */
  --ink: #06304f;        /* texto sobre superficies claras */
  --ink-2: #47657e;
  --line: rgba(150, 205, 240, .14);
  --line-brand: rgba(99, 195, 236, .36);
  --line-gold: rgba(201, 162, 74, .42);
  --gold: #c9a24a;
  --gold-2: #e3c06f;
  --text: #eef5fb;
  --muted: #a6bdd3;
  --danger: #ff9a9a;
  --radius: 10px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  accent-color: var(--brand-2);
  color-scheme: dark;
  scrollbar-color: var(--panel-2) var(--bg);
}
::selection { background: var(--brand-2); color: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 "Manrope", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; text-wrap: balance; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--gold); color: #0a1a2b; padding: 10px 16px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.icon { flex: none; }

.eyebrow { color: var(--sky); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
.h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.015em; }
.h3 { font-size: 1.3rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 6px;
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #0a1a2b; box-shadow: 0 8px 24px -12px rgba(201, 162, 74, .8); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201, 162, 74, .9); }
.btn--ghost { border-color: var(--line-brand); color: var(--text); }
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); background: rgba(99, 195, 236, .08); }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: .92rem; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 600; }
.link .icon { transition: transform .25s var(--ease); }
.link:hover .icon { transform: translateX(4px); }

.chip { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: rgba(0, 132, 180, .16); border: 1px solid var(--line-brand); color: var(--sky); }
.chip--lg { width: 58px; height: 58px; }
.chip--ring { background: transparent; }
.round { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--gold); color: #0a1a2b; transition: transform .25s var(--ease); }
.round:hover { transform: translateX(4px); }

/* Navegacion: barra clara, el territorio del logo */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--paper); color: var(--ink); border-bottom: 1px solid rgba(0, 84, 138, .14); transition: box-shadow .3s; }
.nav.is-stuck { box-shadow: 0 10px 30px -18px rgba(3, 20, 38, .7); }
.nav :focus-visible, .foot :focus-visible { outline-color: var(--brand); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; transition: min-height .3s var(--ease); }
.nav.is-stuck .nav__in { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { height: 84px; width: auto; transition: height .3s var(--ease); }
.nav.is-stuck .brand__logo { height: 62px; }
.brand__logo--lg { height: 128px; }
.logo-art { width: min(74%, 340px); height: auto; }
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__menu > a:not(.btn) { position: relative; padding: 10px 0; font-weight: 600; color: var(--ink); }
.nav__menu > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--brand-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__menu > a:not(.btn):hover::after, .nav__menu > a[aria-current]::after { transform: scaleX(1); }
.nav__menu > a[aria-current] { color: var(--brand); }
.nav__lang { display: inline-flex !important; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-2) !important; }
.nav__toggle { display: none; width: 48px; height: 48px; background: none; border: 1px solid rgba(0, 84, 138, .3); border-radius: 8px; cursor: pointer; padding: 0; }
.nav__toggle i { display: block; width: 20px; height: 2px; background: var(--brand); margin: 4px auto; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }

/* Portada */
.hero { position: relative; min-height: min(760px, 100svh); display: flex; align-items: center; padding: 156px 0 120px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.hero__art { position: absolute; inset: 0 0 0 38%; z-index: -2; }
.hero__art .art { width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 34%, color-mix(in srgb, var(--bg) 0%, transparent) 70%), linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 30%); }
.hero__photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; }
.hero__photo.is-on { opacity: 1; }
.hero__in { position: relative; }
.hero__slides { display: grid; max-width: 620px; border-left: 2px solid var(--gold); padding-left: 30px; }
.hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.hero__slide.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.hero__title { margin: 0; color: var(--text); font-size: clamp(2.2rem, 5.4vw, 3.7rem); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__sub { margin: 22px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d5e4f1; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 38px 0 0 32px; }
.hero__dots { display: flex; gap: 4px; margin: 30px 0 0 24px; }
.hero__dots button { width: 44px; height: 32px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; }
.hero__dots button::before { content: ""; position: absolute; inset: 14px 6px; border-radius: 2px; background: rgba(255, 255, 255, .25); transition: background .3s; }
.hero__dots button.is-on::before { background: var(--gold); }
.hero__badge { position: absolute; right: max(16px, calc((100% - var(--wrap)) / 2)); bottom: 44px; display: flex; align-items: center; gap: 16px; padding: 18px 26px; background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line); border-radius: var(--radius); color: var(--sky); backdrop-filter: blur(8px); }
.hero__badge strong { display: block; font-size: 2rem; line-height: 1; font-weight: 700; }
.hero__badge div span:last-child { color: var(--text); font-size: .85rem; }

/* Ilustración animada */
.art__bars rect { transform-box: fill-box; transform-origin: bottom; animation: grow 1.1s var(--ease) both; animation-delay: var(--d); }
.art__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s .6s var(--ease) forwards; }
.art__area, .art__dots, .art__windows { opacity: 0; animation: fade 1s 1.6s forwards; }
.art__windows { animation: fade 1s 1.2s forwards, twinkle 5s 2.4s ease-in-out infinite; }
.art__pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s 2.4s ease-out infinite; opacity: 0; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes twinkle { 50% { opacity: .45; } }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4.5); } }

/* Franja de pilares */
.strip { position: relative; z-index: 2; margin-top: -64px; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -40px #000; }
.strip__item { padding: 34px 30px; border-left: 1px solid var(--line); }
.strip__item:first-child { border-left: 0; }
.strip__icon { display: block; color: var(--sky); margin-bottom: 18px; transition: transform .4s var(--ease); }
.strip__item:hover .strip__icon { transform: translateY(-4px); }
.strip__item h2, .strip__item h3 { font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.strip__item p { font-size: .93rem; margin: 0; }
.strip__grid--boxed { margin-top: 0; }

/* Bloque Nosotros (diagonal) */
.about { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); margin-top: 90px; background: var(--bg-2); border-block: 1px solid var(--line); }
.about__media { position: relative; min-height: 340px; clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%); background: linear-gradient(160deg, #fff 0%, #e4f1f9 100%); }
.about__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, transparent 79.2%, var(--brand-2) 79.4%, var(--brand-2) 80.1%, transparent 80.3%, transparent 81.2%, var(--brand) 81.4%); pointer-events: none; }
.about__media > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about__art { position: absolute; inset: 0; display: grid; place-items: center; padding-right: 26%; }
.about__art--box { position: relative; inset: auto; padding: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); background-color: var(--paper); overflow: hidden; }
.about__art--sm { aspect-ratio: auto; padding: 26px; }
.about__art--sm .logo-art { width: min(100%, 230px); }
.about__body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 60px max(16px, calc((100vw - var(--wrap)) / 2)) 60px 12px; }
.about__text p { font-size: .97rem; }
.about__closing { color: var(--text) !important; }
.about__list { border-left: 1px solid var(--line-brand); padding-left: 36px; }
.about__list li { display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 1.05rem; font-weight: 500; }

/* Secciones */
.section { padding: 96px 0 0; }
.section--band { margin-top: 96px; padding: 90px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: end; margin-bottom: 40px; }
.section__head--plain { grid-template-columns: 1fr; }
.section__head .h2 { max-width: 20em; }
.section__lead { margin: 0; padding-left: 24px; border-left: 1px solid var(--line-brand); max-width: 30em; font-size: .95rem; }


/* Razones */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { position: relative; padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), transparent); overflow: hidden; transition: border-color .35s; }
.reason::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--brand-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.reason:hover { border-color: var(--line-brand); }
.reason:hover::before { transform: scaleX(1); }
.reason__n { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--sky); margin-bottom: 20px; }
.reason h3 { font-size: 1.15rem; margin-bottom: 12px; }
.reason p { margin: 0; font-size: .95rem; }

/* Beneficios */
.benefits { display: grid; gap: 0; }
.benefit { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit p { margin: 0; max-width: 70ch; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 96px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat { display: flex; align-items: center; gap: 16px; padding: 26px 28px; color: var(--sky); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.stat div span:last-child { color: var(--text); font-size: .9rem; }

/* Llamada a la acción */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin: 96px 0; padding: 48px; border-radius: var(--radius); border: 1px solid var(--line-brand);
  background: radial-gradient(90% 160% at 100% 0%, rgba(0, 132, 180, .45), transparent 62%), var(--panel); }
.cta .h2 { max-width: 18em; }

/* Cabecera de páginas internas */
.pagehead { padding: 184px 0 70px; background: radial-gradient(70% 120% at 85% 0%, rgba(0, 132, 180, .4) 0%, transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.pagehead__lead { margin: 18px 0 0; font-size: 1.1rem; max-width: 40em; }

.prose-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; padding-top: 80px; }
.prose p { font-size: 1.02rem; }
.prose__lead { font-size: 1.2rem !important; color: var(--text); }
.prose-grid__media > img { border-radius: var(--radius); width: 100%; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 80px; }
.duo__card { padding: 38px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.duo__card .h3 { margin: 22px 0 12px; }
.duo__card p { margin: 0; }


/* Contacto */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 70px 0 110px; align-items: start; }
.contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--wide, .contact form .btn, .form__error { grid-column: 1 / -1; }
.contact form .btn { justify-self: start; }
.field label { font-size: .9rem; font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid rgba(150, 205, 240, .3); border-radius: 6px; caret-color: var(--sky); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field select option { background: var(--panel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(99, 195, 236, .28); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.form__error { color: var(--danger); margin: 0; }
.hp { position: absolute; left: -9999px; }
.notice { display: flex; gap: 20px; align-items: center; padding: 32px; border: 1px solid var(--line-brand); border-radius: var(--radius); background: var(--panel); }
.notice p { margin: 6px 0 0; }
.contact__info { display: grid; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.contact__info li { display: flex; gap: 16px; align-items: center; padding: 10px 0; }
.contact__info small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.contact__info .btn { justify-content: center; }

/* Pie: vuelve la superficie clara del logo */
.foot { background: var(--paper); color: var(--ink); color-scheme: light; }
.foot ::selection { background: var(--brand); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding: 64px 0 48px; }
.foot__about { margin: 22px 0 0; max-width: 36em; font-size: .93rem; color: var(--ink-2); }
.foot__h { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; font-weight: 700; }
.foot__links li { padding: 6px 0; color: var(--ink-2); }
.foot__links a { color: var(--ink); font-weight: 500; text-decoration: underline transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.foot__links a:hover { color: var(--brand); text-decoration-color: var(--brand-2); }
.foot__links--icons li { display: flex; gap: 10px; align-items: center; }
.foot__links--icons .icon { color: var(--brand-2); }
.foot__bar { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(0, 84, 138, .16); color: var(--ink-2); font-size: .85rem; }
.foot__bar a { color: var(--brand); font-weight: 600; }

/* Áreas de servicio (Inicio) */
[hidden] { display: none !important; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.areacard { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 132, 180, .26) 0%, transparent 46%), var(--panel);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.areacard:hover { transform: translateY(-6px); border-color: var(--line-brand); box-shadow: 0 28px 44px -30px #000; }
.areacard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.areacard__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand)); box-shadow: 0 14px 24px -14px rgba(0, 132, 180, .9); transition: transform .5s var(--ease); }
.areacard:hover .areacard__icon { transform: rotate(-6deg) scale(1.06); }
.areacard__num { color: var(--muted); font-size: .9rem; }
.areacard__num strong { color: var(--text); font-size: 2rem; font-weight: 700; line-height: 1; margin-right: 4px; font-variant-numeric: tabular-nums; }
.areacard h3 { font-size: 1.3rem; }
.areacard ul { display: grid; gap: 8px; flex: 1; align-content: start; }
.areacard li { position: relative; padding-left: 18px; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.areacard li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.areacard__go { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 600; padding-top: 16px; border-top: 1px solid var(--line); }
.areacard__go .icon { transition: transform .3s var(--ease); }
.areacard:hover .areacard__go .icon { transform: translateX(6px); }

/* Página de servicios */
.pagehead__split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.pagehead__num { margin: 0; text-align: right; color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.pagehead__num strong { display: block; color: var(--sky); font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 800; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pagehead--svc { border-bottom: 0; padding-bottom: 54px; }

.svcx { padding-bottom: 20px; }
.svcx__bar { position: sticky; top: 77px; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.svcx__bar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--line-brand); background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.tab span { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(99, 195, 236, .16); color: var(--sky); font-variant-numeric: tabular-nums; transition: inherit; }
.tab:hover { border-color: var(--sky); transform: translateY(-1px); }
.tab.is-on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.tab.is-on span { background: rgba(255, 255, 255, .22); color: #fff; }
.search { position: relative; flex: 0 1 340px; color: var(--sky); }
.search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; pointer-events: none; }
.search input { width: 100%; min-height: 46px; padding: 10px 14px 10px 44px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid rgba(150, 205, 240, .3); border-radius: 999px; caret-color: var(--sky); transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: #8fa9c1; }
.search input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(99, 195, 236, .28); }
.svcx__status { margin: 26px 0 -30px; color: var(--sky); font-weight: 600; }

.area { padding-top: 64px; scroll-margin-top: 150px; }
.area__head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.area__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand)); box-shadow: 0 16px 26px -16px rgba(0, 132, 180, .9); }
.area__tag { display: inline-block; margin: 10px 0 0; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-brand); color: var(--sky); font-size: .8rem; font-weight: 600; }
.area__lead { margin: 10px 0 0; max-width: 60ch; }
.area__count { margin: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; }

.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.box { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; scroll-margin-top: 170px; isolation: isolate;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s, opacity .8s var(--ease); }
.box::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 195, 236, .2), transparent 62%); }
.box::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand-2), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.box:hover, .box:focus-within { transform: translateY(-4px); border-color: var(--line-brand); box-shadow: 0 26px 44px -30px #000; }
.box:hover::before, .box:focus-within::before { opacity: 1; }
.box:hover::after, .box:focus-within::after, .box:target::after { transform: scaleX(1); }
.box:target { border-color: var(--gold); }
.box__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.box__head h3 { font-size: 1.1rem; line-height: 1.25; }
.box__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; color: var(--sky); background: rgba(0, 132, 180, .18); border: 1px solid var(--line-brand); transition: background .4s, color .4s, transform .5s var(--ease); }
.box:hover .box__icon { background: var(--brand-2); color: #fff; transform: rotate(-6deg); }
.box__count { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: rgba(99, 195, 236, .14); color: var(--sky); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.box__sum { margin: 14px 0 0; font-size: .93rem; }
.box__items { margin-top: 18px; }
.box__items li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); color: #d5e4f1; font-size: .95rem; line-height: 1.45; transition: color .2s, padding-left .3s var(--ease); }
.box__items li::before { content: ""; position: absolute; left: 6px; top: 16px; width: 6px; height: 11px; border: solid var(--sky); border-width: 0 2px 2px 0; rotate: 45deg; transition: border-color .2s; }
.box__items li:hover { color: #fff; padding-left: 34px; }
.box__items li:hover::before { border-color: var(--gold-2); }
.box__items mark { background: rgba(227, 192, 111, .32); color: #fff; border-radius: 3px; padding: 0 2px; }
.box.is-collapsed:not(.is-searching) .box__items li:nth-child(n+5) { display: none; }
.box.is-opening .box__items li:nth-child(n+5) { animation: item-in .45s var(--ease) both; animation-delay: calc((var(--n, 0)) * 60ms); }
.box.is-opening .box__items li:nth-child(6) { --n: 1; }
.box.is-opening .box__items li:nth-child(7) { --n: 2; }
.box.is-opening .box__items li:nth-child(n+8) { --n: 3; }
@keyframes item-in { from { opacity: 0; transform: translateY(-8px); } }
.box__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.box__foot .link { margin-left: auto; min-height: 44px; }
.box__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--sky); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.box__more .icon { transition: rotate .35s var(--ease); }
.box__more[aria-expanded="true"] .icon { rotate: 135deg; }
.box.is-searching .box__more { display: none; }
.boxes > .box:not([hidden]) { animation: box-in .45s var(--ease) both; }
@keyframes box-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.svcx__empty { margin-top: 64px; padding: 48px 28px; text-align: center; border: 1px dashed var(--line-brand); border-radius: var(--radius); }
.svcx__empty p { color: var(--text); font-size: 1.1rem; max-width: 34em; margin-inline: auto; }
.svcx__empty div { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }

@media (max-width: 1020px) {
  .areas { grid-template-columns: 1fr; }
  .svcx__bar { position: static; }
  .svcx__bar-in { flex-direction: column; align-items: stretch; gap: 12px; }
  .search { flex-basis: auto; }
  .area__head { grid-template-columns: auto 1fr; }
  .area__count { grid-column: 2; }
}
@media (max-width: 560px) {
  .pagehead__split { flex-direction: column; align-items: flex-start; gap: 24px; }
  .pagehead__num { text-align: left; }
  .boxes { grid-template-columns: 1fr; }
  .area { padding-top: 48px; }
  .area__icon { width: 52px; height: 52px; }
}

/* Noticias */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.post:hover, .post:focus-within { transform: translateY(-6px); border-color: var(--line-brand); box-shadow: 0 28px 44px -30px #000; }
.post__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(140deg, var(--brand-2), var(--brand) 55%, var(--panel)); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
.post__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.post__date { color: var(--sky); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.post__body h3 { font-size: 1.18rem; line-height: 1.3; }
.post__body h3 a::after { content: ""; position: absolute; inset: 0; }
.post__body h3 a:focus-visible { outline: none; }
.post:has(h3 a:focus-visible) { outline: 2px solid var(--sky); outline-offset: 3px; }
.post__body p { margin: 0; font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 600; font-size: .92rem; }
.post__go .icon { transition: transform .3s var(--ease); }
.post:hover .post__go .icon { transform: translateX(6px); }

.news-list { padding: 64px 0 20px; }
.news-list .post:first-child { grid-column: span 2; }
.news-list .post:first-child .post__media { aspect-ratio: 21 / 9; }
.news-list .post:first-child .post__body h3 { font-size: 1.5rem; }
.news-empty { padding: 56px 28px; text-align: center; border: 1px dashed var(--line-brand); border-radius: var(--radius); }
.news-empty p { color: var(--text); font-size: 1.1rem; margin: 18px auto 0; max-width: 32em; }
.news-empty .icon { margin-inline: auto; color: var(--sky); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 48px; color: var(--muted); }

.article { padding: 56px 0 0; }
.article__in { max-width: 760px; margin-inline: auto; }
.article__media { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article__media img { width: 100%; }
.article__lead { color: var(--text) !important; font-size: 1.25rem; line-height: 1.55; margin-bottom: 32px; }
.article__body p { color: #d5e4f1; font-size: 1.08rem; line-height: 1.8; margin-bottom: 1.3em; }
.article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.pagehead__meta { margin: 18px 0 0; color: var(--sky); font-weight: 600; }
.news-more { padding-top: 88px; }

@media (max-width: 1020px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .news-list .post:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
  .news-list .post:first-child .post__media { aspect-ratio: 16 / 9; }
  .news-list .post:first-child .post__body h3 { font-size: 1.25rem; }
}

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Adaptable */
@media (max-width: 1020px) {
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; }
  .about__media { min-height: 220px; clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); }
  .about__media::after { display: none; }
  .about__art { padding-right: 0; padding-bottom: 8%; }
  .about__art .logo-art { width: min(56%, 240px); }
  .about__body { padding: 48px 16px; }
  .section__head { grid-template-columns: 1fr auto; }
  .section__lead { grid-column: 1 / -1; grid-row: 2; padding-left: 16px; }
  .reasons { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 24px; background: var(--paper); border-bottom: 1px solid rgba(0, 84, 138, .16); box-shadow: 0 24px 40px -24px rgba(3, 20, 38, .8); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .nav__menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__menu > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(0, 84, 138, .14); }
  .nav__menu > a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 18px; justify-content: center; }
  .hero { padding: 130px 0 150px; }
  .hero__art { inset: 30% 0 0 0; opacity: .55; }
  .hero::after { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 50%, color-mix(in srgb, var(--bg) 30%, transparent) 100%); }
  .hero__slides { padding-left: 20px; }
  .hero__cta { margin-left: 0; }
  .hero__dots { margin-left: -6px; }
  .hero__badge { bottom: 78px; padding: 12px 18px; }
  .about__body, .prose-grid, .duo, .contact, .foot__grid { grid-template-columns: 1fr; }
  .about__list { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-brand); padding-top: 28px; }
  .contact form { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; }
  .section { padding-top: 72px; }
}
@media (max-width: 560px) {
  .strip__grid { grid-template-columns: 1fr; }
  .strip__item { border-left: 0; border-top: 1px solid var(--line); }
  .strip__item:first-child { border-top: 0; }
  .nav .brand__logo { height: 66px; }
  .nav__in { min-height: 84px; }
  .benefit { grid-template-columns: 1fr; gap: 14px; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .foot__bar { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
