/* =========================================================
   ENEA CREATIVE AGENCY — estilos
   Paleta del brandbook: #012A4A · #2C7DA0 · #E0E0E0 · #E2CC95 · #27331F
   Tipografías: Kudyashev Display + The Youngest Script.
   Si tenéis los archivos de fuente, ponedlos en /assets/fonts/ y se usarán
   automáticamente (ver @font-face). Mientras, se usan alternativas de Google.
   ========================================================= */

/* Descomentar cuando estén los archivos en /assets/fonts/
@font-face {
  font-family: "Kudyashev Display";
  src: url("../assets/fonts/KudyashevDisplay.woff2") format("woff2"),
       url("../assets/fonts/KudyashevDisplay.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "The Youngest Script";
  src: url("../assets/fonts/TheYoungestScript.woff2") format("woff2"),
       url("../assets/fonts/TheYoungestScript.otf") format("opentype");
  font-display: swap;
}
*/

:root {
  --navy: #012A4A;
  --navy-2: #023A63;
  --blue: #2C7DA0;
  --grey: #E0E0E0;
  --paper: #ECEBE7;
  --gold: #E2CC95;
  --olive: #27331F;
  --ink: #0B1C2C;

  --f-display: "Kudyashev Display", "Cormorant Garamond", Georgia, serif;
  --f-script: "The Youngest Script", "Herr Von Muellerhoff", cursive;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --ease: cubic-bezier(.2,.7,.1,1);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--navy); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(90px, 14vw, 180px) 0; position: relative; }
.script { font-family: var(--f-script); font-weight: 400; }
.gold { color: var(--gold); }

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .num {
  font-family: var(--f-display);
  font-size: 15px; letter-spacing: 0;
  border: 1px solid currentColor; border-radius: 99px;
  padding: 2px 10px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--split { display: grid; grid-template-columns: 1fr 2fr; align-items: start; gap: 24px; }
.section__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0;
}
.section__title em { color: var(--blue); }
[data-theme="dark"] .section__title em { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 30px;
  border-radius: 99px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  position: relative; overflow: hidden;
  transition: color .4s var(--ease);
  isolation: isolate;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold::before { background: var(--grey); }
.btn--ghost { border: 1px solid rgba(224,224,224,.4); color: var(--grey); }
.btn--ghost::before { background: var(--grey); }
.btn--ghost:hover { color: var(--navy); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy);
  display: grid; place-items: center;
}
.loader__logo { width: min(320px, 60vw); opacity: 0; }
.loader__bubbles span {
  position: absolute; border-radius: 50%;
  mix-blend-mode: screen;
}
.loader__bubbles span:nth-child(1) { width: 26vmin; height: 26vmin; background: var(--blue); opacity: .55; left: 8%; top: 10%; }
.loader__bubbles span:nth-child(2) { width: 12vmin; height: 12vmin; background: var(--gold); opacity: .5; left: 4%; top: 22%; }
.loader__bubbles span:nth-child(3) { width: 14vmin; height: 14vmin; background: var(--grey); opacity: .5; left: 14%; top: 26%; }
body:not(.js) .loader { display: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 999;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
}
.cursor__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); opacity: 0; transition: opacity .2s; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: transform .5s var(--ease), background .4s, padding .4s, color .4s;
  color: var(--grey);
}
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(1,42,74,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-light { color: var(--navy); }
.nav.is-light.is-scrolled { background: rgba(236,235,231,.85); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { position: relative; display: block; width: 110px; height: 46px; }
.nav__logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s; }
.nav__logo-img--dark { opacity: 0; }
.nav.is-light .nav__logo-img--light { opacity: 0; }
.nav.is-light .nav__logo-img--dark { opacity: 1; }

.nav__menu { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 32px); }
.nav__link {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  position: relative; overflow: hidden; display: inline-block; height: 1.6em;
}
.nav__link span { display: inline-block; transition: transform .5s var(--ease); }
.nav__link span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
  color: var(--gold);
}
.nav.is-light .nav__link span::after { color: var(--blue); }
.nav__link:hover span { transform: translateY(-100%); }
.nav__link.is-active::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
}
.nav__link--cta {
  border: 1px solid currentColor; border-radius: 99px; padding: 8px 18px; height: auto;
}
.nav__link--cta span::after { top: calc(100% + 8px); }
.nav__link--cta:hover span { transform: translateY(calc(-100% - 8px)); }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 26px; }
.menu-open .nav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.menu-open .nav { color: var(--grey); background: transparent; backdrop-filter: none; }
.menu-open .nav .nav__logo-img--light { opacity: 1; }
.menu-open .nav .nav__logo-img--dark { opacity: 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: var(--grey);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(40px, 11vw, 64px); line-height: 1.1;
  display: flex; align-items: baseline; gap: 14px;
}
.mobile-menu a small { font-family: var(--f-body); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.mobile-menu__script { font-family: var(--f-script); color: var(--gold); font-size: 48px; margin: 40px 0 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  background: var(--navy); color: var(--grey);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(60px, 8vw, 100px);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero__eyebrow { color: var(--grey); }
.hero__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(52px, 10.5vw, 176px);
  line-height: .92; letter-spacing: -.02em;
  margin: 0 0 clamp(32px, 5vw, 60px);
}
.hero__title em { font-style: italic; color: var(--gold); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line__in { display: inline-block; will-change: transform; }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 460px; margin: 0; font-size: clamp(16px, 1.3vw, 18px); color: rgba(224,224,224,.8); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble { position: absolute; border-radius: 50%; will-change: transform; }
.bubble--a { width: 34vmax; height: 34vmax; background: var(--blue); opacity: .45; right: -8vmax; top: -10vmax; }
.bubble--b { width: 14vmax; height: 14vmax; background: var(--gold); opacity: .55; right: 22vmax; top: 8vmax; mix-blend-mode: screen; }
.bubble--c { width: 18vmax; height: 18vmax; background: var(--grey); opacity: .14; right: 6vmax; top: 18vmax; }
.bubble--d { width: 6vmax; height: 6vmax; background: var(--gold); opacity: .8; left: 46%; bottom: 18%; }
.bubble--e { width: 60vmax; height: 60vmax; border: 1px solid rgba(224,224,224,.12); left: -20vmax; bottom: -30vmax; }

.hero__badge {
  position: absolute; z-index: 2;
  right: var(--gutter); top: 120px;
  width: clamp(110px, 11vw, 160px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero__badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.hero__badge text { fill: var(--grey); font-family: var(--f-body); font-size: 15px; letter-spacing: .26em; text-transform: uppercase; }
.hero__badge-script { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 32px); color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(224,224,224,.6);
}
.hero__scroll i { width: 1px; height: 44px; background: rgba(224,224,224,.25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--gold); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee__track { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; will-change: transform; }
.marquee--gold { background: var(--gold); color: var(--navy); padding: 20px 0; }
.marquee--gold span { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 36px); font-weight: 400; }
.marquee--gold b { font-size: 16px; color: var(--blue); }
.marquee--big { padding: clamp(40px, 6vw, 80px) 0; background: var(--paper); color: var(--navy); border-top: 1px solid rgba(1,42,74,.12); border-bottom: 1px solid rgba(1,42,74,.12); }
.marquee--big span { font-family: var(--f-display); font-weight: 300; font-size: clamp(56px, 10vw, 160px); line-height: 1; }
.marquee--big em { font-family: var(--f-script); font-style: normal; color: var(--blue); font-size: clamp(64px, 11vw, 180px); line-height: 1; }
.marquee--big b { color: var(--gold); font-size: clamp(30px, 4vw, 60px); }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about__statement {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: 1.1; letter-spacing: -.01em;
  max-width: 1200px; margin: 0 0 clamp(60px, 9vw, 130px);
}
.about__statement em { color: var(--blue); }
.reveal-words .w { display: inline-block; opacity: .12; transition: none; }

.about__grid { display: grid; grid-template-columns: 1fr; }
.about__text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(40px, 6vw, 100px); align-items: start; }
.about__text .stats { grid-column: 1 / -1; }
.about__media { position: relative; }
.parallax-wrap { overflow: hidden; border-radius: var(--radius); }
.about__img { aspect-ratio: 4/5; position: relative; scale: 1.15; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__caption {
  position: absolute; right: -10px; bottom: 20px;
  font-size: clamp(48px, 6vw, 84px); color: var(--gold); margin: 0;
  text-shadow: 0 2px 30px rgba(1,42,74,.35);
  transform: rotate(-6deg);
}
.about__text p { font-size: clamp(16px, 1.25vw, 19px); margin: 0 0 22px; max-width: 560px; color: rgba(1,42,74,.85); }
.about__text strong { color: var(--navy); font-weight: 600; box-shadow: inset 0 -.45em 0 rgba(226,204,149,.6); }

.art { position: absolute; inset: 0; overflow: hidden; }
.art--about { background: var(--navy); }
.art--about span { position: absolute; border-radius: 50%; }
.art--about span:nth-child(1) { width: 90%; height: 72%; background: var(--blue); left: -30%; top: -12%; opacity: .9; }
.art--about span:nth-child(2) { width: 34%; height: 27%; background: var(--gold); left: 8%; bottom: 14%; }
.art--about span:nth-child(3) { width: 60%; height: 48%; background: var(--grey); right: -26%; bottom: -10%; }

.stats { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); max-width: 420px; gap: 16px; border-top: 1px solid rgba(1,42,74,.15); padding-top: 30px; }
.stat__num { font-family: var(--f-display); font-size: clamp(44px, 5vw, 76px); line-height: 1; display: block; font-weight: 300; }
.stat__label { font-size: 13px; color: rgba(1,42,74,.65); display: block; margin-top: 6px; line-height: 1.35; }

/* Equipo */
.team { margin-top: clamp(80px, 11vw, 150px); }
.team__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vw, 50px); }
.team__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; margin: 0; }
.team__title em { color: var(--blue); }
.team__script { font-size: clamp(40px, 4.6vw, 70px); color: var(--gold); margin: 0; transform: rotate(-5deg); line-height: 1; }
.team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.member:nth-child(even) { margin-top: clamp(0px, 4vw, 60px); }
.member__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--grey); position: relative; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter .7s var(--ease), transform 1.1s var(--ease); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1,42,74,.55), transparent 45%); opacity: 0; transition: opacity .6s var(--ease); }
.member:hover .member__photo img { filter: none; transform: scale(1); }
.member:hover .member__photo::after { opacity: 1; }
.member__name { font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; margin: 14px 4px 0; }
.member__name em { color: var(--blue); }
@media (hover: none) { .member__photo img { filter: none; } }
@media (max-width: 1024px) { .team__grid { grid-template-columns: repeat(3, 1fr); } .member:nth-child(even) { margin-top: 0; } }
@media (max-width: 560px) { .team__grid { grid-template-columns: repeat(2, 1fr); } .member:last-child { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; } .team__script { display: none; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(70px, 10vw, 140px); }
.value {
  padding: 34px 30px 38px; border-radius: var(--radius);
  background: #fff; border: 1px solid rgba(1,42,74,.08);
  transition: transform .5s var(--ease), background .5s, color .5s;
}
.value:hover { transform: translateY(-8px); background: var(--navy); color: var(--grey); }
.value:hover p { color: rgba(224,224,224,.75); }
.value__n { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--blue); }
.value:hover .value__n { color: var(--gold); }
.value h3 { font-family: var(--f-display); font-weight: 400; font-size: 38px; margin: 16px 0 10px; line-height: 1; }
.value p { margin: 0; color: rgba(1,42,74,.7); transition: color .5s; }

/* ---------- Services ---------- */
.services { background: var(--navy); color: var(--grey); overflow: hidden; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(224,224,224,.18); }
.service {
  display: grid; grid-template-columns: 70px 1.3fr 1fr 40px; align-items: center; gap: 20px;
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid rgba(224,224,224,.18);
  position: relative; cursor: default;
}
.service::before {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: 0;
}
.service > * { position: relative; z-index: 1; transition: color .4s, transform .55s var(--ease); }
.service:hover::before { transform: scaleY(1); }
.service:hover > * { color: var(--navy); }
.service:hover .service__title { transform: translateX(18px); }
.service:hover .service__arrow { transform: rotate(-45deg); }
.service__n { font-family: var(--f-display); font-size: 18px; color: var(--gold); padding-left: 8px; }
.service__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 4vw, 60px); line-height: 1; margin: 0; }
.service__desc { margin: 0; color: rgba(224,224,224,.7); font-size: 15px; }
.service__arrow { font-size: 26px; justify-self: end; padding-right: 8px; }

/* ---------- Projects ---------- */
.projects { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 10px 20px; border-radius: 99px; border: 1px solid rgba(1,42,74,.25);
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); color: var(--grey); border-color: var(--navy); }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.project { grid-column: span 6; cursor: pointer; }
.project:nth-child(4n+1) { grid-column: span 7; }
.project:nth-child(4n+2) { grid-column: span 5; margin-top: clamp(0px, 8vw, 120px); }
.project:nth-child(4n+3) { grid-column: span 5; }
.project:nth-child(4n+4) { grid-column: span 7; margin-top: clamp(0px, 8vw, 120px); }
.project.is-hidden { display: none; }

.project__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; background: var(--navy);
  clip-path: inset(0 round var(--radius));
}
.project:nth-child(4n+2) .project__media, .project:nth-child(4n+3) .project__media { aspect-ratio: 4/5; }
.project__img { position: absolute; inset: -8% 0; transition: transform 1.1s var(--ease); }
.project__img img, .project__img video { width: 100%; height: 100%; object-fit: cover; }
.project:hover .project__img { transform: scale(1.06); }
.project__tags {
  position: absolute; left: 16px; top: 16px; right: 16px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none;
}
.project__tag {
  background: rgba(236,235,231,.92); color: var(--navy);
  padding: 6px 14px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.has-logo .project__tag { background: var(--paper); }
.project__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 4px 0; }
.project__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 40px); margin: 0; line-height: 1.05; }
.project__client { font-size: 13px; color: rgba(1,42,74,.6); margin: 4px 0 0; }
.project__year { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--blue); }

/* placeholder art — se ve mientras no hay imagen */
.ph { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; }
.ph span { position: absolute; border-radius: 50%; transition: transform 1.2s var(--ease); }
.ph__label { position: relative; z-index: 2; font-family: var(--f-script); font-size: clamp(44px, 5vw, 72px); color: var(--grey); text-align: center; line-height: 1; padding: 0 20px; }
.project:hover .ph span:nth-child(1) { transform: translate(8%, 6%) scale(1.08); }
.project:hover .ph span:nth-child(2) { transform: translate(-14%, -10%); }
.project:hover .ph span:nth-child(3) { transform: translate(10%, -12%) scale(.9); }
.ph--1 { background: var(--navy); }
.ph--1 span:nth-child(1) { width: 80%; aspect-ratio: 1; background: var(--blue); left: -20%; top: -30%; }
.ph--1 span:nth-child(2) { width: 30%; aspect-ratio: 1; background: var(--gold); right: 12%; bottom: 10%; }
.ph--1 span:nth-child(3) { width: 40%; aspect-ratio: 1; background: var(--grey); opacity: .2; right: -10%; top: 10%; }
.ph--2 { background: var(--blue); }
.ph--2 span:nth-child(1) { width: 90%; aspect-ratio: 1; background: var(--navy); right: -40%; bottom: -30%; }
.ph--2 span:nth-child(2) { width: 34%; aspect-ratio: 1; background: var(--gold); left: 10%; top: 10%; }
.ph--2 span:nth-child(3) { width: 22%; aspect-ratio: 1; background: var(--grey); left: 34%; bottom: 14%; opacity: .7; }
.ph--3 { background: var(--olive); }
.ph--3 span:nth-child(1) { width: 70%; aspect-ratio: 1; background: var(--gold); opacity: .85; left: -15%; bottom: -25%; }
.ph--3 span:nth-child(2) { width: 36%; aspect-ratio: 1; background: var(--grey); right: 8%; top: 8%; opacity: .35; }
.ph--3 span:nth-child(3) { width: 20%; aspect-ratio: 1; background: var(--blue); right: 20%; bottom: 18%; }
.ph--4 { background: var(--gold); }
.ph--4 .ph__label { color: var(--navy); }
.ph--logo { background: #fff; }
.has-logo .project__img { inset: 0; }
.ph--logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9% 8%; transition: transform 1.1s var(--ease); }
.project:hover .ph--logo img { transform: scale(1.05); }
.ph--4 span:nth-child(1) { width: 85%; aspect-ratio: 1; background: var(--grey); left: 30%; top: -40%; }
.ph--4 span:nth-child(2) { width: 30%; aspect-ratio: 1; background: var(--navy); left: 8%; bottom: 8%; }
.ph--4 span:nth-child(3) { width: 24%; aspect-ratio: 1; background: var(--blue); right: 10%; bottom: 20%; opacity: .8; }

.projects__empty { grid-column: 1 / -1; text-align: center; color: rgba(1,42,74,.6); padding: 60px 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; justify-content: flex-end; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1,42,74,.6); opacity: 0; transition: opacity .5s; backdrop-filter: blur(4px); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(860px, 100%); height: 100%; overflow-y: auto;
  background: var(--paper); color: var(--navy);
  transform: translateX(100%); transition: transform .7s var(--ease);
  padding: clamp(24px, 4vw, 56px);
}
.modal.is-open .modal__panel { transform: translateX(0); }
.modal__close { position: sticky; top: 0; float: right; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--grey); font-size: 16px; z-index: 3; transition: transform .4s var(--ease); }
.modal__close:hover { transform: rotate(90deg); }
.modal__eyebrow { margin-top: 8px; }
.modal__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6vw, 80px); line-height: .98; margin: 0 0 20px; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 30px; padding: 20px 0; border-top: 1px solid rgba(1,42,74,.15); border-bottom: 1px solid rgba(1,42,74,.15); }
.modal__meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(1,42,74,.55); }
.modal__meta dd { margin: 4px 0 0; font-weight: 500; }
.modal__desc { font-size: 18px; max-width: 640px; }
.modal__gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.modal__gallery > * { grid-column: 1 / -1; }
.modal__gallery > .ig { grid-column: span 3; }
.modal__gallery > .g-third { grid-column: span 2; margin: 0; }
.modal__gallery > .g-third img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; }
.modal__gallery > * { border-radius: 16px; overflow: hidden; position: relative; }
.modal__gallery .ph { position: relative; aspect-ratio: 16/10; }
.modal__gallery img, .modal__gallery video, .modal__gallery iframe { width: 100%; display: block; border: 0; }
.modal__gallery iframe { aspect-ratio: 16/9; height: auto; }
.modal__link { margin-top: 30px; }
.modal__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.modal__links .modal__link { margin-top: 0; }
.btn--line { border: 1px solid var(--navy); color: var(--navy); }
.btn--line::before { background: var(--navy); }
.btn--line:hover { color: var(--grey); }
.modal__gallery > .ig { overflow: visible; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ig__label { font-family: var(--f-display); font-size: 24px; color: var(--navy); }
.ig__frame { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(1,42,74,.1); }
.ig__frame iframe { width: 100%; height: 640px; border: 0; display: block; }
.ig__link { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); align-self: flex-start; border-bottom: 1px solid currentColor; }
@media (max-width: 640px) { .modal__gallery > .ig, .modal__gallery > .g-third { grid-column: 1 / -1; } .ig__frame iframe { height: 600px; } }
.modal__gallery .browser { background: #fff; border: 1px solid rgba(1,42,74,.12); box-shadow: 0 30px 60px -30px rgba(1,42,74,.45); margin: 0; }
.browser a { display: block; }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #F3F3F1; border-bottom: 1px solid rgba(1,42,74,.08); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(1,42,74,.18); }
.browser__bar i:nth-child(1) { background: #E2CC95; }
.browser__bar i:nth-child(2) { background: #2C7DA0; opacity: .6; }
.browser__url { flex: 1; margin-left: 10px; background: #fff; border-radius: 99px; padding: 5px 14px; font-size: 13px; color: rgba(1,42,74,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__go { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.browser img { width: 100%; display: block; transition: transform .8s var(--ease); }
.browser a:hover img { transform: scale(1.02); }
.modal .btn--gold::before { background: var(--navy); }
.modal .btn--gold:hover { color: var(--grey); }
body.modal-open { overflow: hidden; }

/* ---------- Clients ---------- */
.clients { margin-top: clamp(90px, 12vw, 170px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid rgba(1,42,74,.15); scroll-margin-top: 90px; }
.clients .testimonials { margin-top: 10px; }
.client-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(1,42,74,.15); border-left: 1px solid rgba(1,42,74,.15); }
.client {
  border-right: 1px solid rgba(1,42,74,.15); border-bottom: 1px solid rgba(1,42,74,.15);
  aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; padding: 20px;
  position: relative; overflow: hidden;
}
.client > span, .client a > span { font-family: var(--f-display); font-size: clamp(20px, 2vw, 30px); line-height: 1.1; position: relative; z-index: 1; transition: color .4s; }
.client::before { content: ""; position: absolute; inset: 0; background: var(--navy); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .7s var(--ease); }
.client:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.client:hover span { color: var(--gold); }
.client img { max-height: 70px; width: auto; object-fit: contain; position: relative; z-index: 1; }
.client--you { grid-column: span 2; aspect-ratio: auto; }
.client--you a { display: grid; place-items: center; width: 100%; height: 100%; }
.client--you span { font-family: var(--f-script) !important; font-size: clamp(36px, 3.6vw, 54px) !important; color: var(--blue); }

.testimonials { margin-top: clamp(70px, 10vw, 130px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.testimonials__track { position: relative; min-height: 260px; }
.testimonial { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
.testimonial.is-active { opacity: 1; pointer-events: auto; position: relative; }
.testimonial blockquote { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.2vw, 62px); line-height: 1.1; margin: 0 0 26px; max-width: 1100px; }
.testimonial figcaption { font-size: 14px; letter-spacing: .04em; color: rgba(1,42,74,.7); }
.testimonial figcaption strong { color: var(--navy); }
.testimonials__nav { display: flex; align-items: center; gap: 14px; }
.t-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(1,42,74,.3); font-size: 18px; transition: background .3s, color .3s; }
.t-btn:hover { background: var(--navy); color: var(--grey); }
.testimonials__count { font-family: var(--f-display); font-size: 18px; }

/* ---------- Internacionalización ---------- */
.intl { background: var(--navy); color: var(--grey); overflow: hidden; }
.intl + .contact { padding-top: clamp(40px, 6vw, 80px); }
.intl__map-wrap { position: relative; }
.intl__map { position: relative; width: 100%; aspect-ratio: 1000 / 520; }
.intl__map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.map__sphere { fill: rgba(44,125,160,.06); stroke: rgba(224,224,224,.1); stroke-width: 1; }
.map__graticule { fill: none; stroke: rgba(224,224,224,.05); stroke-width: .6; }
.map__country { fill: rgba(224,224,224,.14); stroke: var(--navy); stroke-width: .5; opacity: 0; transition: fill 1s var(--ease), opacity .8s var(--ease) var(--d, 0s); }
.is-in .map__country { opacity: 1; }
.is-lit .map__country { transition-delay: 0s; }
.is-lit .map__country.is-home { fill: var(--gold); cursor: pointer; }
.is-lit .map__country.is-trip { fill: var(--blue); cursor: pointer; }
.map__country.is-home:hover { fill: #f0dfb4; }
.map__country.is-trip:hover { fill: #3d97bd; }
.map__route { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; transition: opacity .4s, stroke-width .4s; }
.map__route--travel { stroke: #fff; stroke-width: 2.2; stroke-dasharray: 2 18; opacity: 0; }
.intl__map.is-done .map__route--travel { opacity: .9; animation: travel 1.6s linear infinite; }
@keyframes travel { to { stroke-dashoffset: -40; } }
.map__dot { fill: var(--grey); stroke: var(--navy); stroke-width: 2; }
.map__city.is-home .map__dot { fill: var(--gold); }
.map__pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.intl__map.is-done .map__pulse { animation: ping 2.4s var(--ease) infinite; }
.map__city:nth-child(2) .map__pulse { animation-delay: .6s !important; }
.map__city:nth-child(3) .map__pulse { animation-delay: 1.2s !important; }
.map__city:nth-child(4) .map__pulse { animation-delay: 1.8s !important; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
.map__label { fill: var(--grey); font-family: var(--f-display); font-size: 20px; paint-order: stroke; stroke: var(--navy); stroke-width: 4px; stroke-linejoin: round; }
.map__city.is-home .map__label { fill: var(--gold); }
.intl__map.has-focus .map__route:not(.is-focus), .intl__map.has-focus .map__city:not(.is-focus):not(.is-home) { opacity: .25; }
.map__route.is-focus:not(.map__route--travel) { stroke-width: 2.6; }
.map__city.is-focus .map__dot { fill: var(--gold); }
.intl__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 28px; color: var(--gold); margin: 0; }

.intl__tooltip {
  position: absolute; left: 0; top: 0; pointer-events: none;
  background: var(--grey); color: var(--navy);
  padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.intl__tooltip.is-on { opacity: 1; }
.intl__legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: rgba(224,224,224,.7); }
.intl__legend li { display: flex; align-items: center; gap: 10px; }
.sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.sw--home { background: var(--gold); }
.sw--trip { background: var(--blue); }

.intl__bottom { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 100px); margin-top: clamp(60px, 8vw, 110px); align-items: start; }
.intl__text { font-size: clamp(17px, 1.4vw, 21px); margin: 0; color: rgba(224,224,224,.82); max-width: 520px; }
.intl__text strong { color: var(--gold); font-weight: 500; }
.cities { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(224,224,224,.18); }
.city {
  display: grid; grid-template-columns: 50px 1fr auto; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid rgba(224,224,224,.18);
  transition: padding .5s var(--ease), color .4s;
}
.city:hover { padding-left: 14px; color: var(--gold); }
.city__n { font-family: var(--f-display); font-size: 16px; color: var(--gold); }
.city__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 4vw, 58px); line-height: 1; }
.city__country { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(224,224,224,.6); }
@media (max-width: 820px) {
  .intl__bottom { grid-template-columns: 1fr; }
  .map__label { font-size: 30px; stroke-width: 6px; }
  .map__dot { r: 8; }
}

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--grey); overflow: hidden; }
.contact__bubbles .bubble--a { top: auto; bottom: -14vmax; right: -10vmax; opacity: .35; }
.contact__bubbles .bubble--c { top: 10%; right: 18%; }
.contact .container { position: relative; z-index: 2; }
.contact__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(52px, 9vw, 150px); line-height: .95; letter-spacing: -.02em; margin: 0 0 clamp(50px, 7vw, 100px); }
.contact__title em { color: var(--gold); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.contact__big {
  display: block; width: fit-content; max-width: 100%;
  font-family: var(--f-display); font-size: clamp(24px, 3vw, 44px); line-height: 1.2;
  margin-bottom: 14px; overflow-wrap: anywhere;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.contact__big:hover { background-size: 100% 1px; color: var(--gold); }
.contact__meta { display: flex; gap: 40px; margin: 40px 0 0; flex-wrap: wrap; }
.contact__meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(224,224,224,.5); }
.contact__meta dd { margin: 6px 0 0; font-size: 17px; }
.contact__meta a { border-bottom: 1px solid var(--gold); }

.contact__form { display: flex; flex-direction: column; gap: 22px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(224,224,224,.3);
  color: var(--grey); font: inherit; font-size: 17px; padding: 26px 0 12px; outline: none; resize: vertical;
  transition: border-color .3s; border-radius: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field label { position: absolute; left: 0; top: 26px; font-size: 17px; color: rgba(224,224,224,.55); pointer-events: none; transition: transform .35s var(--ease), color .35s, font-size .35s; transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.field.is-error input, .field.is-error textarea { border-color: #ff8f7a; }
.chips { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(224,224,224,.55); margin-bottom: 12px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 18px; border-radius: 99px; border: 1px solid rgba(224,224,224,.3); font-size: 14px; transition: all .3s; }
.chips input:checked + span { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact__form .btn { align-self: flex-start; margin-top: 10px; }
.form__note { margin: 0; font-size: 14px; color: var(--gold); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--grey); border-top: 1px solid rgba(224,224,224,.12); padding: 60px 0 40px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px 50px; }
.footer__logo { width: 150px; }
.footer__slogan { font-family: var(--f-display); font-style: italic; font-size: 22px; margin: 0; color: rgba(224,224,224,.8); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { grid-column: 1 / -1; font-size: 13px; color: rgba(224,224,224,.5); margin: 20px 0 0; padding-top: 24px; border-top: 1px solid rgba(224,224,224,.1); }

/* ---------- Animación base (sin JS se ve todo) ---------- */
.js .fade-up { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .section__head--split { grid-template-columns: 1fr; }
  .client-wall { grid-template-columns: repeat(3, 1fr); }
  .client--you { grid-column: span 3; min-height: 120px; }
}
@media (max-width: 820px) {
  .about__grid, .contact__grid, .about__text { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .project, .project:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .project:nth-child(n) .project__media { aspect-ratio: 4/3; }
  .service { grid-template-columns: 44px 1fr 30px; }
  .service__desc { grid-column: 2 / 3; grid-row: 2; }
  .service__arrow { grid-row: 1; grid-column: 3; }
  .hero__badge, .hero__scroll { display: none; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .about__caption { right: 10px; }
}
@media (max-width: 560px) {
  .client-wall { grid-template-columns: repeat(2, 1fr); }
  .client--you { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat__label { font-size: 12px; }
  .hero__actions .btn { flex: 1; padding: 0 18px; white-space: nowrap; font-size: 13px; }
  .hero__actions { width: 100%; }
  .bubble--b { right: -4vmax; top: 30vmax; }
}

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

/* ---------- Páginas legales ---------- */
.legal-page { background: var(--paper); }
.legal-head { background: var(--navy); color: var(--grey); padding: 24px 0 0; }
.legal-head__inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(50px, 8vw, 100px); }
.legal-head__logo img { width: 110px; }
.legal-head__back { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.legal-head__back:hover { color: var(--gold); }
.legal-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(48px, 8vw, 110px); line-height: .95; margin: 0 0 40px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; }
.legal-tabs a { padding: 9px 18px; border-radius: 99px; border: 1px solid rgba(224,224,224,.3); font-size: 13px; transition: background .3s, color .3s; }
.legal-tabs a:hover { border-color: var(--gold); }
.legal-tabs a.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.legal { max-width: 900px; padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(80px, 10vw, 140px); }
.legal section { margin-bottom: 44px; }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin: 0 0 16px; }
.legal h3 { font-family: var(--f-display); font-weight: 500; font-size: 24px; margin: 28px 0 12px; color: var(--blue); }
.legal p, .legal li { font-size: 16px; color: rgba(1,42,74,.85); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
.legal__lead { font-size: clamp(18px, 1.6vw, 22px) !important; color: var(--navy) !important; margin: 0 0 50px; }
.treats { display: grid; gap: 16px; margin: 24px 0; }
.treat { background: #fff; border: 1px solid rgba(1,42,74,.08); border-radius: 18px; padding: 22px 26px; }
.treat h3 { margin-top: 0; }
.treat dl { margin: 0; }
.treat dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(1,42,74,.08); }
.treat dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(1,42,74,.55); padding-top: 3px; }
.treat dd { margin: 0; font-size: 15px; }
.cookie-table { display: grid; gap: 10px; }
.cookie-table > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(1,42,74,.1); }
.cookie-table code { font-size: 13px; color: var(--navy); background: rgba(44,125,160,.1); padding: 3px 8px; border-radius: 6px; align-self: start; width: fit-content; }
.cookie-table p { margin: 0; }
@media (max-width: 640px) {
  .treat dl > div, .cookie-table > div { grid-template-columns: 1fr; gap: 4px; }
}

/* enlaces legales del pie y aceptación del formulario */
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: rgba(224,224,224,.6); margin: 10px 0 0; }
.footer__legal a:hover { color: var(--gold); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(224,224,224,.75); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid rgba(224,224,224,.45); border-radius: 5px; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.consent input:checked { background: var(--gold); border-color: var(--gold); }
.consent input:checked::after { content: "✓"; color: var(--navy); font-size: 13px; font-weight: 700; }
.consent input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent a { color: var(--gold); border-bottom: 1px solid currentColor; }
.consent.is-error input { border-color: #ff8f7a; }

/* =========================================================
   WEB MULTIPÁGINA
   ========================================================= */

/* Cabecera de cada página */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--grey);
  padding: clamp(150px, 19vw, 230px) 0 clamp(70px, 9vw, 120px);
}
.page-hero__bubbles { position: absolute; inset: 0; pointer-events: none; }
.page-hero__bubbles .bubble--a { width: 30vmax; height: 30vmax; right: -9vmax; top: -12vmax; }
.page-hero__bubbles .bubble--b { width: 10vmax; height: 10vmax; right: 20vmax; top: 6vmax; }
.page-hero__bubbles .bubble--d { left: auto; right: 12vmax; bottom: 14%; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--grey); }
.page-hero__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(50px, 9vw, 140px); line-height: .95; letter-spacing: -.02em;
  margin: 0; max-width: 1200px;
}
.page-hero__title em { color: var(--gold); }
.page-hero__lead { max-width: 520px; margin: 30px 0 0; font-size: clamp(16px, 1.3vw, 18px); color: rgba(224,224,224,.8); }
.page-hero + .section { padding-top: clamp(70px, 10vw, 130px); }
.page-hero + .services { border-top: 1px solid rgba(224,224,224,.12); }
.page-hero + .about .about__statement { margin-top: 0; }

/* Botón azul marino (sobre fondos claros) */
.btn--navy { background: var(--navy); color: var(--grey); }
.btn--navy::before { background: var(--gold); }
.btn--navy:hover { color: var(--navy); }
.section__more { display: flex; justify-content: center; margin-top: clamp(50px, 7vw, 90px); }

/* Inicio: presentación */
.home-intro { background: var(--paper); }
.home-intro .about__statement { margin-bottom: 44px; }

/* Inicio: accesos a cada página */
.explore-wrap { background: var(--navy); color: var(--grey); }
.explore { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(224,224,224,.18); }
.explore__item a {
  display: grid; grid-template-columns: 70px 1.3fr 1fr 40px; align-items: center; gap: 20px;
  padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid rgba(224,224,224,.18);
  position: relative;
}
.explore__item a::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.explore__item a > * { position: relative; transition: color .4s, transform .55s var(--ease); }
.explore__item a:hover::before { transform: scaleY(1); }
.explore__item a:hover > * { color: var(--navy); }
.explore__item a:hover .explore__t { transform: translateX(18px); }
.explore__item a:hover .explore__a { transform: rotate(-45deg); }
.explore__n { font-family: var(--f-display); font-size: 18px; color: var(--gold); padding-left: 8px; }
.explore__t { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.2vw, 64px); line-height: 1; }
.explore__d { font-size: 15px; color: rgba(224,224,224,.7); }
.explore__a { font-size: 26px; justify-self: end; padding-right: 8px; }

/* Inicio: llamada a la acción */
.cta { background: var(--navy); color: var(--grey); overflow: hidden; border-top: 1px solid rgba(224,224,224,.12); }
.cta .container { position: relative; z-index: 2; }
.cta .contact__bubbles .bubble--a { top: auto; bottom: -14vmax; right: -10vmax; opacity: .35; }
.cta .contact__bubbles .bubble--c { top: 10%; right: 18%; }
.cta__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(52px, 9vw, 150px); line-height: .95; letter-spacing: -.02em; margin: 0 0 clamp(36px, 5vw, 60px); }
.cta__title em { color: var(--gold); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.cta__mail { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 34px); border-bottom: 1px solid var(--gold); overflow-wrap: anywhere; }
.cta__mail:hover { color: var(--gold); }

/* Contacto como página propia */
.contact--page { padding-top: clamp(150px, 19vw, 220px); }

/* Menú móvil: página actual */
.mobile-menu a.is-active { color: var(--gold); }

@media (max-width: 820px) {
  .explore__item a { grid-template-columns: 44px 1fr 30px; }
  .explore__d { grid-column: 2 / 3; grid-row: 2; }
  .explore__a { grid-row: 1; grid-column: 3; }
}

/* Etiquetas de categoría en móvil: más pequeñas y sin tapar el logo */
@media (max-width: 560px) {
  .project__tags { left: 12px; top: 12px; right: 12px; gap: 4px; }
  .project__tag { font-size: 9px; padding: 5px 9px; letter-spacing: .08em; }
  .has-logo .ph--logo img { padding: 25% 10% 5%; }
}

/* H1 descriptivo (SEO) bajo los títulos creativos */
.page-hero__h1 {
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; letter-spacing: 0;
  color: rgba(224,224,224,.82); max-width: 640px; margin: 28px 0 0;
}
.contact__h1 { margin: -30px 0 clamp(50px, 7vw, 90px); }
h1.hero__eyebrow { font-size: 12px; font-weight: 500; line-height: 1.6; }

/* Enlaces internos y textos de apoyo (SEO) */
.home-intro__text { max-width: 760px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(1,42,74,.8); margin: -10px 0 36px; }
.home-intro__text a, .services__cta a, .modal__cta a { color: inherit; border-bottom: 1px solid var(--gold); transition: color .3s; }
.home-intro__text a:hover, .modal__cta a:hover { color: var(--blue); }
.home-intro__text strong, .services__cta strong { font-weight: 600; }
.services__cta { margin-top: clamp(50px, 7vw, 90px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px 60px; align-items: center; }
.services__cta p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); color: rgba(224,224,224,.82); max-width: 640px; }
.services__cta a:hover { color: var(--gold); }
.services__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.modal__cta { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(1,42,74,.12); font-size: 17px; }
@media (max-width: 820px) { .services__cta { grid-template-columns: 1fr; } .services__actions { justify-content: flex-start; } }

/* Página 404 */
.page-hero--404 { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* =========================================================
   PÁGINAS DE SERVICIO
   ========================================================= */
.crumbs { font-size: 12px; letter-spacing: .08em; color: rgba(224,224,224,.6); margin: 0 0 22px; }
.crumbs a { color: rgba(224,224,224,.85); border-bottom: 1px solid rgba(226,204,149,.5); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; opacity: .5; }

.svc-intro { background: var(--paper); }
.svc-intro .about__statement { margin-bottom: clamp(40px, 6vw, 70px); }
.svc-intro__text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(40px, 6vw, 100px); }
.svc-intro__text p { margin: 0; font-size: clamp(16px, 1.25vw, 19px); color: rgba(1,42,74,.85); }

.svc-process { background: var(--paper); padding-top: 0; }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.svc-step {
  position: relative; background: #fff; border: 1px solid rgba(1,42,74,.08); border-radius: var(--radius);
  padding: 30px 26px 34px; transition: transform .5s var(--ease), background .5s, color .5s;
}
.svc-step:hover { transform: translateY(-8px); background: var(--navy); color: var(--grey); }
.svc-step:hover p { color: rgba(224,224,224,.78); }
.svc-step__n { font-family: var(--f-display); font-size: 46px; line-height: 1; color: var(--gold); display: block; margin-bottom: 22px; }
.svc-step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; margin: 0 0 12px; }
.svc-step p { margin: 0; font-size: 15px; color: rgba(1,42,74,.75); transition: color .5s; }
.svc-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -16px; top: 42px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-size: 14px;
}

.svc-dna { background: var(--navy); color: var(--grey); }
.svc-dna__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(224,224,224,.15); border: 1px solid rgba(224,224,224,.15); border-radius: var(--radius); overflow: hidden; }
.svc-dna__item { background: var(--navy); padding: 34px 30px 38px; transition: background .5s; }
.svc-dna__item:hover { background: #023457; }
.svc-dna__item h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; margin: 22px 0 10px; line-height: 1; }
.svc-dna__item p { margin: 0; color: rgba(224,224,224,.75); font-size: 15px; }
.svc-dna__swatch { height: 56px; display: flex; align-items: center; gap: 8px; font-family: var(--f-display); color: var(--gold); }
.svc-dna__swatch--color i { width: 40px; height: 40px; border-radius: 50%; display: block; }
.svc-dna__swatch--color i:nth-child(1) { background: var(--gold); }
.svc-dna__swatch--color i:nth-child(2) { background: var(--blue); }
.svc-dna__swatch--color i:nth-child(3) { background: var(--grey); }
.svc-dna__swatch--type { font-size: 52px; }
.svc-dna__swatch--logo { font-size: 56px; width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 50%; justify-content: center; line-height: 1; padding-bottom: 8px; }
.svc-dna__swatch--voice { font-size: 58px; line-height: 1; padding-top: 18px; }
.svc-dna__swatch--image i { width: 64px; height: 48px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--gold)); display: block; }
.svc-dna__swatch--shapes i:nth-child(1) { width: 40px; height: 40px; border: 2px solid var(--gold); transform: rotate(45deg); display: block; }
.svc-dna__swatch--shapes i:nth-child(2) { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); display: block; margin-left: 10px; }

.svc-coherence { background: var(--paper); }
.svc-coherence__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-coherence__card { background: #fff; border: 1px solid rgba(1,42,74,.08); border-radius: var(--radius); padding: 36px 34px 40px; }
.svc-coherence__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 24px; }
.svc-coherence__card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; margin: 22px 0 12px; }
.svc-coherence__card p { margin: 0; color: rgba(1,42,74,.8); font-size: 16px; }
.svc-coherence__note { margin: clamp(36px, 5vw, 56px) 0 0; font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; max-width: 900px; }
.svc-coherence__note a { color: var(--blue); border-bottom: 1px solid var(--gold); }

.svc-related { background: var(--paper); padding-top: 0; }
.svc-related__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-related__card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(1,42,74,.08); transition: transform .5s var(--ease), box-shadow .5s; }
.svc-related__card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(1,42,74,.5); }
.svc-related__logo { display: grid; place-items: center; aspect-ratio: 1; padding: 14%; }
.svc-related__logo img { width: 100%; height: 100%; object-fit: contain; }
.svc-related__name { display: flex; justify-content: space-between; padding: 14px 18px; border-top: 1px solid rgba(1,42,74,.08); font-family: var(--f-display); font-size: 20px; }
.svc-related__name i { font-style: normal; color: var(--blue); transition: transform .4s var(--ease); }
.svc-related__card:hover .svc-related__name i { transform: translateX(6px); }

/* Servicio enlazado en la lista de Servicios */
.service__cover { position: absolute; inset: 0; z-index: 2; }
.service__more { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); display: block; margin-top: 6px; }
.service:hover .service__more { color: var(--navy); }

@media (max-width: 1024px) {
  .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-step:nth-child(2)::after { display: none; }
  .svc-dna__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .svc-intro__text, .svc-coherence__grid, .svc-steps, .svc-dna__grid { grid-template-columns: 1fr; }
  .svc-step::after { display: none; }
}

/* Textos legales: fecha y firma */
.legal__updated { font-size: 13px !important; letter-spacing: .08em; text-transform: uppercase; color: rgba(1,42,74,.55) !important; margin: 0 0 40px; }
.legal__sign { margin-top: 10px; padding-top: 24px; border-top: 1px solid rgba(1,42,74,.12); font-size: 15px !important; line-height: 1.8; }
.legal strong { color: var(--navy); font-weight: 600; }

/* =========================================================
   AVISO DE COOKIES (abajo a la derecha)
   ========================================================= */
.cookie-banner {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: min(400px, calc(100vw - 32px));
  background: var(--navy); color: var(--grey);
  border: 1px solid rgba(226,204,149,.55); border-radius: 20px;
  padding: 24px 24px 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  font-family: var(--f-body);
}
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner::before {
  content: ""; position: absolute; right: -18px; top: -18px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); opacity: .9; z-index: -1;
}
.cookie-banner__title { font-family: var(--f-display); font-size: 26px; line-height: 1; margin: 0 0 10px; }
.cookie-banner__text { font-size: 14px; line-height: 1.55; color: rgba(224,224,224,.82); margin: 0 0 18px; }
.cookie-banner__text a { color: var(--gold); border-bottom: 1px solid currentColor; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner__btn {
  height: 46px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold); background: transparent; transition: background .3s, color .3s;
}
.cookie-banner__btn[data-choice="accepted"] { background: var(--gold); color: var(--navy); }
.cookie-banner__btn:hover { background: var(--grey); border-color: var(--grey); color: var(--navy); }
.cookie-banner__btn:focus-visible { outline: 2px solid var(--grey); outline-offset: 2px; }
@media (max-width: 560px) { .cookie-banner { right: 16px; bottom: 16px; padding: 20px 18px 18px; } }

/* Contenido de terceros a la espera de consentimiento */
.consent-embed { position: relative; min-height: 420px; }
.consent-embed iframe { display: none; }
.consent-embed.is-allowed iframe { display: block; }
.consent-embed__notice {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 28px; text-align: center; background: linear-gradient(160deg, #fff, var(--paper));
}
.consent-embed__notice p { margin: 0; font-size: 15px; color: rgba(1,42,74,.8); max-width: 300px; }
.consent-embed__notice a { font-size: 13px; color: var(--blue); border-bottom: 1px solid currentColor; }
.consent-embed.is-allowed .consent-embed__notice { display: none; }
