/* =========================================================
   Nova Communications · Landing
   Marca: Manual de Marca Nova (4.1 colores, 3.1 tipografía Inter)
   ========================================================= */

:root {
  /* Colores oficiales (Manual de Marca 4.1) */
  --navy: #193D6B;
  --salmon: #F69786;
  --white: #FFFFFF;
  --black: #000000;

  /* Derivados de los oficiales (tintes y sombras del azul marino, no colores nuevos) */
  --navy-deep: #0F2747;
  --navy-ink: #0A1B33;
  --navy-70: rgba(25, 61, 107, .7);
  --navy-12: rgba(25, 61, 107, .12);
  --navy-06: rgba(25, 61, 107, .06);
  --salmon-20: rgba(246, 151, 134, .2);
  --paper: #F6F7FA;
  --text: #13253F;
  --muted: #4F5F76;
  --line: rgba(25, 61, 107, .14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 76px;
  /* Ángulo de la "N" del logotipo (Manual 2.2) */
  --slant: 25deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section-tint { background: var(--paper); }
.section-dark { background: var(--navy); color: var(--white); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--salmon); color: var(--navy-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--salmon); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--salmon); transform: skewX(calc(var(--slant) * -1)); }
.eyebrow-light { color: rgba(255, 255, 255, .82); }
.eyebrow .dot { display: none; }
.h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; letter-spacing: -.035em; max-width: 18ch; }
.h2-xl { font-size: clamp(40px, 6.4vw, 84px); max-width: 14ch; }
.h2 em, .hero-title em { font-style: normal; color: var(--salmon); }
.hl { background: linear-gradient(transparent 62%, var(--salmon-20) 62%, var(--salmon-20) 92%, transparent 92%); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 58ch; margin-top: 22px; }
.section-dark .lead { color: rgba(255, 255, 255, .78); }
.opt { font-weight: 400; opacity: .65; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s;
  overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 14px 34px -12px rgba(10, 27, 51, .45); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-salmon { --bg: var(--salmon); --fg: var(--navy-ink); }
.btn-navy { --bg: var(--navy); --fg: var(--white); }
.btn-ghost-light { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { --bg: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--white); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* ---------- Progreso ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--salmon); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background-color .35s, color .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  color: var(--navy); box-shadow: 0 1px 0 var(--line);
  --header-h: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-iso { width: 46px; height: 31px; color: currentColor; }
.brand-name { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.brand-name span { font-size: 10px; font-weight: 600; letter-spacing: .2em; margin-top: 4px; opacity: .8; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { position: relative; white-space: nowrap; font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; opacity: .88; transition: opacity .2s; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--salmon); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav ul a:hover, .nav ul a.is-active { opacity: 1; }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { min-height: 42px; padding: 10px 20px; font-size: 15px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 27px; }
.menu-open .menu-btn span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 110px;
  background:
    radial-gradient(1200px 700px at 85% 10%, rgba(246, 151, 134, .16), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-ink) 100%);
  color: var(--white); overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(46px, 7.6vw, 108px); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .16s; }
.js .hero-title .line:nth-child(4) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-lead { margin-top: 30px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.js .hero-copy .eyebrow, .js .hero-lead, .js .hero-actions { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.js .hero-lead { animation-delay: .4s; }
.js .hero-actions { animation-delay: .52s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; aspect-ratio: 4 / 5; max-height: 74vh; justify-self: end; width: 100%; }
.js .hero-visual { opacity: 0; animation: fadeIn 1.4s var(--ease) .3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.slash-frame {
  position: absolute; inset: 0;
  clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
  border-radius: 4px;
}
.slash-frame .ph { height: 100%; }
.slash { position: absolute; background: var(--salmon); transform: skewX(calc(var(--slant) * -1)); }
.slash-a { width: 14px; height: 46%; right: 8%; top: -4%; }
.slash-b { width: 14px; height: 30%; left: 2%; bottom: -3%; opacity: .9; }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: float 7s ease-in-out infinite;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--salmon); box-shadow: 0 0 0 4px rgba(246, 151, 134, .25); }
.chip-1 { top: 12%; left: -6%; }
.chip-2 { top: 48%; right: -4%; animation-delay: -2.3s; }
.chip-3 { bottom: 9%; left: 16%; animation-delay: -4.6s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 30px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--salmon); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marcadores de imagen ---------- */
.ph {
  position: relative; width: 100%; min-height: 180px; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    repeating-linear-gradient(-65deg, transparent 0 18px, var(--navy-06) 18px 19px),
    linear-gradient(135deg, #E9EDF4, #F6F7FA);
  border: 1.5px dashed rgba(25, 61, 107, .28);
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--navy);
  background: rgba(255, 255, 255, .9); padding: 8px 12px; border-radius: 10px; width: fit-content; max-width: calc(100% - 28px);
}
.ph-dark {
  background:
    repeating-linear-gradient(-65deg, transparent 0 22px, rgba(255, 255, 255, .05) 22px 23px),
    linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  border-color: rgba(255, 255, 255, .25); border-radius: 0;
}
.ph-dark::after { left: 30%; top: 22px; bottom: auto; max-width: 55%; background: rgba(10, 27, 51, .7); color: var(--white); }
.ph-iso { position: absolute; width: 38%; height: auto; aspect-ratio: 186 / 123; left: 50%; top: 45%; transform: translate(-50%, -50%); color: rgba(255, 255, 255, .16); --logo-accent: rgba(246, 151, 134, .35); }

/* ---------- Imágenes ---------- */
.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.slash-frame { background: var(--navy-deep); }
.slash-frame .cover { object-position: 58% 28%; }
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-06); isolation: isolate; }
.media .cover { transition: transform 1.2s var(--ease); }
.media:hover .cover { transform: scale(1.04); }
.media-about { aspect-ratio: 4 / 3.3; }
.media-slash { position: absolute; right: 9%; bottom: -12%; width: 16px; height: 46%; background: var(--salmon); transform: skewX(calc(var(--slant) * -1)); z-index: 1; }
.media-careers {
  margin-top: 34px; aspect-ratio: 16 / 8.5; border-radius: 4px;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}
.media-careers .cover { object-position: 50% 62%; }

/* ---------- Caminos ---------- */
.paths { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 7vw, 90px); }
.paths-head { display: flex; flex-direction: column; margin-bottom: 44px; }
.paths-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.path-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 320px;
  padding: 32px; border-radius: var(--radius-lg); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease), background-color .4s, color .4s, box-shadow .5s var(--ease);
  overflow: hidden; isolation: isolate;
}
.path-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%);
  transition: clip-path .7s var(--ease);
}
.path-card:hover, .path-card:focus-visible { color: var(--white); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 27, 51, .55); }
.path-card:hover::before, .path-card:focus-visible::before { clip-path: polygon(0 0, 140% 0, 100% 100%, 0 100%); }
.path-num { font-size: 15px; font-weight: 700; color: var(--salmon); letter-spacing: .04em; }
.path-kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; opacity: .65; }
.path-card h3 { font-size: clamp(24px, 2.3vw, 30px); letter-spacing: -.03em; margin-top: 6px; }
.path-card p { color: var(--muted); transition: color .4s; }
.path-card:hover p, .path-card:focus-visible p { color: rgba(255, 255, 255, .78); }
.path-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; }
.path-go .ico { transition: transform .35s var(--ease); }
.path-card:hover .path-go .ico { transform: translateX(6px); }

/* Luz que sigue al cursor */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(246, 151, 134, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spotlight:hover::after { opacity: 1; }

/* ---------- Cinta ---------- */
.marquee { overflow: hidden; background: var(--salmon); color: var(--navy-ink); padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin-block: 10px; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { width: 14px; height: 22px; background: var(--navy); transform: skewX(calc(var(--slant) * -1)); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Quiénes somos ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.about-visual .ph { aspect-ratio: 4 / 3.3; border-radius: var(--radius-lg); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.pillar { padding: 34px 28px 10px 0; position: relative; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar-n { display: block; font-size: 14px; font-weight: 700; color: var(--salmon); margin-bottom: 26px; }
.pillar h3 { font-size: 22px; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 16px; }

/* ---------- Servicios ---------- */
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section-head-split .lead { margin-top: 0; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column; padding: 34px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  overflow: hidden;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(10, 27, 51, .45); border-color: rgba(25, 61, 107, .3); }
.svc-feature { min-height: 340px; background: linear-gradient(160deg, var(--white) 40%, #EEF2F8); }
.svc-feature::before { content: ""; position: absolute; right: -40px; top: -60px; width: 30px; height: 260px; background: var(--salmon); transform: skewX(calc(var(--slant) * -1)); opacity: .9; transition: transform .7s var(--ease); }
.svc-feature:hover::before { transform: skewX(calc(var(--slant) * -1)) translateX(-30px); }
.svc-feature::before { z-index: 2; }
.svc-media { position: relative; margin: -34px -34px 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-06); }
.svc-media .cover { transition: transform 1.2s var(--ease); }
.svc-feature:hover .svc-media .cover { transform: scale(1.05); }
.svc-media + .svc-icon { position: relative; z-index: 2; margin-top: -30px; box-shadow: 0 0 0 5px var(--white); }
.svc-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--navy); color: var(--white); display: grid; place-items: center; margin-bottom: 26px; transition: transform .5s var(--ease); }
.svc:hover .svc-icon { transform: rotate(-6deg) scale(1.05); }
.svc-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-icon svg circle[r="1.4"] { fill: currentColor; }
.svc-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.svc h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; max-width: 18ch; }
.svc p { color: var(--muted); max-width: 48ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: s; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 2px solid var(--navy); }
.step-n { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--salmon); color: var(--navy-ink); font-weight: 700; display: grid; place-items: center; }
.step h4 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }

.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 32px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.note .ico { margin-top: 3px; color: var(--navy); }
.note-light { color: rgba(255, 255, 255, .7); }
.note-light .ico { color: var(--salmon); }

/* ---------- Trabaja con nosotros ---------- */
.careers { overflow: hidden; isolation: isolate; background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%); }
.careers-bg span { position: absolute; z-index: -1; background: var(--salmon); transform: skewX(calc(var(--slant) * -1)); opacity: .1; }
.careers-bg span:first-child { width: 220px; height: 140%; top: -20%; left: 38%; }
.careers-bg span:last-child { width: 60px; height: 140%; top: -20%; left: 52%; opacity: .18; }
.careers-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(40px, 6vw, 90px); align-items: start; }
.traits { margin-top: 34px; display: grid; gap: 14px; }
.traits li { display: flex; gap: 14px; align-items: center; font-size: 17px; font-weight: 500; }
.traits li::before { content: ""; width: 10px; height: 18px; flex: none; background: var(--salmon); transform: skewX(calc(var(--slant) * -1)); }

/* ---------- Formularios ---------- */
.form-card { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.form-title { font-size: 26px; letter-spacing: -.03em; }
.form-sub { color: var(--muted); margin: 6px 0 24px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23193D6B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px var(--navy-12); }
.field.has-error input, .field.has-error select { border-color: #B3261E; }
.field-error { font-size: 13px; color: #B3261E; font-weight: 500; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 6px 0 20px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.consent a { color: var(--navy); font-weight: 600; }
.consent.has-error span { color: #B3261E; }
.form-status { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-pending { padding: 14px 16px; border-radius: 12px; background: #FFF4F1; border: 1px solid var(--salmon); color: var(--navy-ink); }
.form-status.is-error { padding: 14px 16px; border-radius: 12px; background: #FDECEA; color: #8C1D18; }
.form-status.is-ok { padding: 14px 16px; border-radius: 12px; background: #EAF3EC; color: #1E5631; }
.btn[disabled] { opacity: .6; cursor: progress; }


/* ---------- Cultura ---------- */
.culture-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.culture-gallery .media { aspect-ratio: 4 / 3; }
.culture-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.culture-grid .ph { aspect-ratio: auto; min-height: 240px; border-radius: var(--radius-lg); }
.culture-grid .ph-tall { grid-row: span 2; min-height: 500px; }
.culture-grid .ph-wide { grid-column: span 2; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.value { padding-top: 22px; border-top: 2px solid var(--navy); }
.value h3 { font-size: 20px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 15.5px; }
.brand-values { margin-top: 64px; padding: 34px clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--navy); color: var(--white); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.brand-values .eyebrow { color: rgba(255, 255, 255, .8); margin: 0; }
.brand-values ul { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-values li { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: 15px; transition: background-color .3s, color .3s, border-color .3s; }
.brand-values li:hover { background: var(--salmon); color: var(--navy-ink); border-color: var(--salmon); }


/* ---------- Contacto ---------- */
.contact { background: radial-gradient(900px 500px at 100% 0%, rgba(246, 151, 134, .14), transparent 60%), linear-gradient(170deg, var(--navy-deep), var(--navy-ink)); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-ways { display: grid; gap: 12px; margin-top: 40px; max-width: 420px; }
.way { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; transition: background-color .3s, transform .4s var(--ease); }
a.way:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.way > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.way small { color: rgba(255, 255, 255, .65); font-size: 13.5px; }
.way-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--salmon); color: var(--navy-ink); flex: none; }
.way-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-forms { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 28px; }
.tab { position: relative; z-index: 1; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: color .35s; }
.tab[aria-selected="true"] { color: var(--white); }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 14px) / 2); border-radius: 999px; background: var(--navy); transition: transform .5s var(--ease); transform: translateX(calc(var(--i, 0) * (100% + 4px))); }
.no-js-hide { display: none; }
.panel[hidden] { display: none; }
.panel { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .78); padding: 72px 0 34px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-logo { width: 150px; height: auto; aspect-ratio: 186 / 143; color: var(--white); margin-bottom: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; width: fit-content; }
.footer-nav a:hover { color: var(--salmon); }
.footer-h { font-size: 15px; color: var(--white); margin-bottom: 10px; letter-spacing: 0; }
.footer-link { color: var(--white); font-weight: 600; text-underline-offset: 3px; }
.footer-link:hover { color: var(--salmon); }
.footer-book { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; color: var(--white); font-weight: 600; text-decoration: none; }
.footer-book:hover { border-color: var(--salmon); color: var(--salmon); }
.footer-book svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pending-inline { display: block; margin-top: 8px; color: var(--salmon); font-weight: 500; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; padding-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.disclaimer { max-width: 70ch; }

/* ---------- WhatsApp y aviso ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--salmon); color: var(--navy-ink); box-shadow: 0 18px 40px -14px rgba(10, 27, 51, .6); transition: transform .4s var(--ease); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--salmon); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 150; max-width: min(92vw, 440px); padding: 14px 20px; border-radius: 14px; background: var(--navy-ink); color: var(--white); font-size: 15px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- WhatsApp junto a los formularios ---------- */
.wa-inline { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; }
.wa-inline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--salmon); box-shadow: 0 0 0 4px var(--salmon-20); }
.wa-inline:hover { text-decoration: underline; }

/* ---------- Asistente Nova ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nova-chat { display: none; }
.js .nova-chat { display: block; }
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 22px 8px 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px;
  box-shadow: 0 18px 40px -14px rgba(10, 27, 51, .65), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -16px rgba(10, 27, 51, .7), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.launcher-ico { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--salmon); color: var(--navy-ink); }
.launcher-ico::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--salmon); animation: ping 2.6s var(--ease) infinite; }
.launcher-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-open .chat-launcher { opacity: 0; pointer-events: none; transform: scale(.8); }

.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 110;
  width: min(400px, calc(100vw - 40px)); height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); color: var(--text); border-radius: 24px;
  box-shadow: 0 40px 90px -30px rgba(10, 27, 51, .6), 0 0 0 1px var(--line);
  transform-origin: 100% 100%; animation: chatIn .45s var(--ease);
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.chat-head {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: var(--white); overflow: hidden; isolation: isolate;
}
.chat-head::after { content: ""; position: absolute; z-index: -1; right: 70px; top: -30px; width: 12px; height: 140px; background: var(--salmon); opacity: .35; transform: skewX(calc(var(--slant) * -1)); }
.chat-avatar { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.chat-avatar svg { width: 30px; height: 20px; color: var(--white); }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 17px; letter-spacing: -.01em; }
.chat-head p { font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-icon-btn { width: 38px; height: 38px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--white); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .12); }
.chat-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-notice { margin: 0; padding: 9px 16px; font-size: 11.5px; line-height: 1.45; color: var(--muted); background: #FFF6F3; border-bottom: 1px solid rgba(246, 151, 134, .35); }
.chat-notice a { color: var(--navy); font-weight: 600; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; max-width: 88%; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; align-items: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg-bot .msg-bubble { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-user .msg-bubble { background: var(--navy); color: var(--white); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg-bubble p + p, .msg-bubble p + ul, .msg-bubble ul + p { margin-top: 6px; }
.msg-bubble ul { list-style: disc; padding-left: 18px; }
.msg-bubble li + li { margin-top: 3px; }
.msg-notice .msg-bubble { background: #FFF4F1; border-color: var(--salmon); }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-action { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.chat-action:hover { background: var(--navy); color: var(--white); }
.chat-action-wa { border-color: var(--salmon); background: var(--salmon); color: var(--navy-ink); }
.chat-action-wa:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chat-options { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; width: 88%; }
.chat-option { text-align: left; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--ease); }
.chat-option:hover { background: var(--navy); color: var(--white); transform: translateX(3px); }
.msg-typing .msg-bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); opacity: .35; animation: dot 1.2s infinite ease-in-out; }
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { opacity: 1; transform: translateY(-3px); } }

.chat-suggest { display: flex; gap: 6px; padding: 8px 14px 4px; overflow-x: auto; background: var(--paper); scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest:empty { display: none; }
.chat-chip { flex: none; max-width: 260px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: border-color .2s, background-color .2s; }
.chat-chip:hover { border-color: var(--salmon); background: #FFF6F3; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; line-height: 1.35; }
.chat-form textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px var(--navy-12); }
.chat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 14px; background: var(--salmon); color: var(--navy-ink); cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease), background-color .2s; }
.chat-send:hover { transform: translateX(2px); }
.chat-send[disabled] { opacity: .5; cursor: progress; }
.chat-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 12px; background: var(--white); }
.chat-wa { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; }
.chat-wa:hover { text-decoration: underline; }
.chat-wa[hidden] { display: none; }
.chat-wa svg { width: 18px; height: 18px; fill: none; stroke: var(--salmon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-count { font-size: 12px; color: var(--muted); }

@media (max-width: 600px) {
  .chat-launcher { right: 16px; bottom: 16px; padding: 8px; min-height: 0; }
  .launcher-label { display: none; }
  .chat-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .chat-open { overflow: hidden; }
}

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1140px) {
  :root { --header-h: 66px; }
  .menu-btn { display: block; color: inherit; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: center; gap: 30px;
    padding: 90px var(--gutter) 40px; background: var(--navy-ink); color: var(--white);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav ul a { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; padding: 8px 0; opacity: 1; }
  .nav ul a::after { display: none; }
  .nav-cta { min-height: 54px; font-size: 17px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open { overflow: hidden; }
}
@media (max-width: 960px) {
  .hero { padding-bottom: 90px; }
  .hero-grid, .about-grid, .careers-grid, .contact-grid, .section-head-split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; justify-self: start; aspect-ratio: 5 / 4; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .paths-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-feature { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .culture-grid { grid-template-columns: 1fr 1fr; }
  .culture-grid .ph-tall { grid-row: auto; grid-column: span 2; min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: span 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(40px, 12.5vw, 60px); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { aspect-ratio: 4 / 3.4; max-width: none; margin-top: 8px; }
  .hero-chip { font-size: 12px; padding: 7px 12px; }
  .chip-1 { top: 6%; left: 2%; }
  .chip-2 { top: auto; bottom: 30%; right: 2%; }
  .chip-3 { bottom: 4%; left: 8%; }
  .scroll-cue { display: none; }
  .pillars, .values { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 26px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .culture-gallery { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }
  .culture-grid .ph-tall, .culture-grid .ph-wide { grid-column: auto; }
  .culture-grid .ph-tall { min-height: 300px; }
  .tab { font-size: 13px; padding: 8px 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

/* Solo se desactivan los efectos intrusivos; las apariciones suaves se mantienen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 90s; }
  .hero-chip, .wa-float::before, .scroll-cue span, .launcher-ico::after { animation: none; }
}
