/* ==========================================================
   REGO Agency — basado en el branding del portafolio 2026
   Marino profundo + azul rey, tarjetas blancas redondeadas,
   display condensada (Anton) + script caligráfica (Great Vibes)
   ========================================================== */

:root {
  --navy: #1c1a5e;
  --navy-deep: #141247;
  --royal: #4054a8;
  --royal-2: #5566b8;
  --peri: #8e97d4;
  --paper: #f1f0ee;
  --white: #ffffff;
  --ink: #1c1a5e;
  --muted: #5b5f86;
  --wa: #25d366;

  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(20, 18, 71, .45);
  --shadow-soft: 0 10px 30px -14px rgba(20, 18, 71, .25);

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-script: "Great Vibes", "Brush Script MT", cursive;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- Tipografía de marca ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .9;
}
.script {
  font-family: var(--f-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}

/* Encabezado estilo portafolio: palabra display + script encimada */
.heading { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.heading h2, .split__copy h2, .invite__copy h2 {
  display: flex; flex-wrap: wrap; align-items: baseline;
  position: relative;
}
.heading h2 .display, .split__copy h2 .display, .invite__copy h2 .display {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  color: var(--navy);
}
.heading h2 .script, .split__copy h2 .script, .invite__copy h2 .script {
  font-size: clamp(3rem, 7.4vw, 6rem);
  color: var(--navy);
  margin-left: -.35em;
  transform: translateY(.28em) rotate(-4deg);
  -webkit-text-stroke: 6px var(--paper);
  paint-order: stroke fill;
}
.heading p { margin-top: 26px; font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.heading--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.heading--row p { margin-top: 0; max-width: 380px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 .95rem/1 var(--f-body);
  padding: 17px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn--light { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.btn--light:hover { background: var(--paper); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--navy { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.btn--navy:hover { background: var(--royal); }
.btn--wa { background: var(--wa); color: #06331a; }
.btn--wa:hover { background: #1fbe5b; }

.pill {
  display: inline-block;
  background: var(--royal);
  color: var(--white);
  font-family: var(--f-display);
  font-size: clamp(.8rem, 1.4vw, 1rem);
  letter-spacing: .02em;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Logo (RE / GO apilado) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo__mark {
  display: inline-flex; flex-direction: column;
  font-family: var(--f-display);
  font-size: 1.55rem; line-height: .96; letter-spacing: .05em;
}
.logo__mark span:last-child { margin-left: .06em; }
.logo__mark--sm { font-size: 1.3rem; }
.logo__mark--xs { font-size: .95rem; }
.logo__sub {
  font-size: .55rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.25; opacity: .8;
  border-left: 1px solid rgba(255,255,255,.35); padding-left: 10px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background-color .35s, box-shadow .35s, padding .35s;
  padding-block: 18px;
}
.nav.is-scrolled {
  background: rgba(20, 18, 71, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.6);
  padding-block: 10px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav__links a {
  text-decoration: none; font-weight: 600; font-size: .9rem; opacity: .85;
  position: relative; padding-block: 6px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
@media (min-width: 921px) { .nav__mobile-only { display: none; } }

.lang {
  display: inline-flex; background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: 3px;
  font: 700 .72rem/1 var(--f-body); color: var(--white); cursor: pointer;
}
.lang span { padding: 7px 9px; border-radius: 999px; transition: background-color .25s, color .25s; }
.lang .lang__on { background: var(--white); color: var(--navy); }

.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 130px 90px;
  color: var(--white);
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(142,151,212,.55), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(64,84,168,.6), transparent 70%),
    var(--navy);
  overflow: hidden;
}
.hero::after { /* marca de agua REGO */
  content: "REGO";
  position: absolute; right: -2vw; bottom: -6vw;
  font-family: var(--f-display); font-size: 34vw; line-height: .8;
  color: rgba(255,255,255,.035); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero__title { position: relative; margin: 30px 0 34px; width: fit-content; }
.hero__title .display { display: block; font-size: clamp(4.6rem, 10vw, 9.5rem); color: var(--paper); }
.hero__script {
  position: absolute; right: -.7em; bottom: -.5em;
  font-size: clamp(3.4rem, 6.4vw, 6.2rem);
  color: var(--white);
  transform: rotate(-8deg);
  -webkit-text-stroke: 10px var(--navy);
  paint-order: stroke fill;
}
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 520px; color: rgba(255,255,255,.86); }
.hero__lead strong { color: var(--white); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero__stack { position: relative; height: clamp(420px, 44vw, 580px); }
.frame {
  position: absolute; margin: 0;
  background: var(--white); padding: 10px; border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  transition: transform .8s var(--ease);
}
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 10px); }
.frame--a { width: 46%; height: 78%; left: 4%; top: 6%; transform: rotate(-7deg); }
.frame--b { width: 38%; height: 58%; right: 2%; top: 0; transform: rotate(6deg); }
.frame--c { width: 40%; height: 62%; right: 16%; bottom: 0; transform: rotate(-2deg); z-index: 2; }
.hero__stack:hover .frame--a { transform: rotate(-10deg) translate(-10px, -6px); }
.hero__stack:hover .frame--b { transform: rotate(9deg) translate(10px, -8px); }
.hero__stack:hover .frame--c { transform: rotate(0deg) translateY(-8px); }
.hero__badge {
  position: absolute; left: -2%; bottom: 6%; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: var(--royal); color: var(--white);
  padding: 14px 18px; border-radius: var(--radius); max-width: 250px;
  font-size: .78rem; font-weight: 600; line-height: 1.35;
  box-shadow: var(--shadow);
}
.hero__badge-num { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; }

/* ---------- MARQUEE ---------- */
.clients { background: var(--white); padding-block: 38px 34px; overflow: hidden; }
.clients__label {
  text-align: center; font-family: var(--f-display); text-transform: uppercase;
  font-size: 1.2rem; letter-spacing: .04em; color: var(--navy); margin-bottom: 14px;
}
.clients__label .script { font-size: 2.1rem; text-transform: none; margin-left: 4px; color: var(--royal); }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--peri); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECCIONES ---------- */
.section { padding-block: clamp(80px, 11vw, 140px); position: relative; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--glow {
  background:
    radial-gradient(55% 60% at 50% 45%, rgba(255,255,255,.9), rgba(142,151,212,.8) 55%, transparent 100%),
    linear-gradient(180deg, var(--royal), var(--navy));
}

/* ---------- SERVICIOS ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc {
  background: var(--white); border-radius: var(--radius); padding: 28px 26px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  display: flex; flex-direction: column; gap: 12px;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc--big { grid-column: span 2; padding: 36px 34px; }
.svc--navy { background: var(--royal); color: var(--white); }
.svc h3 { font-family: var(--f-body); font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.svc--big h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: .95; }
.svc p { color: var(--muted); font-size: .93rem; }
.svc--navy p { color: rgba(255,255,255,.85); }
.svc__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white); margin-bottom: 6px;
}
.svc--navy .svc__icon { background: var(--white); color: var(--royal); }
.svc__icon svg, .feat__dot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.tags li { font-size: .74rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--navy); }
.svc--navy .tags li { background: rgba(255,255,255,.16); color: var(--white); }
.tags--light li { background: rgba(255,255,255,.18); color: var(--white); backdrop-filter: blur(6px); }

/* ---------- NFC + WALLET ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.section--navy .split__copy h2 .display { color: var(--paper); }
.section--navy .split__copy h2 .script { color: var(--white); -webkit-text-stroke-color: var(--navy); }
.split__copy > p { margin: 34px 0 24px; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

.devices { position: relative; height: 520px; }
.nfc {
  position: absolute; left: 0; top: 60px; z-index: 2;
  width: min(360px, 78%); aspect-ratio: 1.586;
  border-radius: 20px; padding: 24px;
  background: linear-gradient(135deg, var(--royal-2), var(--navy-deep));
  box-shadow: 0 40px 70px -25px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.25);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-10deg);
  animation: float 7s ease-in-out infinite;
}
.nfc__top { display: flex; justify-content: space-between; align-items: start; }
.nfc__waves { width: 34px; height: 34px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.nfc__name { font-weight: 700; font-size: 1.1rem; }
.nfc__name small { display: block; font-weight: 500; font-size: .75rem; opacity: .7; }

.phone {
  position: absolute; right: 0; top: 0;
  width: 270px; height: 520px; max-width: 70%;
  border-radius: 44px; background: #0b0a24;
  border: 10px solid #26244f;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  padding: 46px 16px 16px;
  overflow: hidden;
}
.phone__notch { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 90px; height: 24px; border-radius: 20px; background: #000; }
.phone__label { font-weight: 800; font-size: 1.5rem; color: var(--white); margin-bottom: 14px; }
.pass { position: relative; border-radius: 16px; padding: 16px; background: var(--paper); color: var(--navy); margin-top: -20px; box-shadow: 0 -8px 20px -10px rgba(0,0,0,.5); }
.pass--back { height: 60px; background: #e0b340; margin-top: 0; }
.pass--mid { height: 60px; background: var(--royal); }
.pass__row { display: flex; justify-content: space-between; align-items: center; }
.pass__kind { font-size: .62rem; font-weight: 800; letter-spacing: .14em; opacity: .7; }
.pass__pts { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; margin-top: 16px; }
.pass__cap { font-size: .72rem; color: var(--muted); }
.pass__dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 14px 0; }
.pass__dots i { aspect-ratio: 1; border-radius: 50%; background: var(--navy); }
.pass__dots i.off { background: transparent; border: 2px dashed var(--peri); }
.pass__qr {
  width: 88px; height: 88px; margin: 6px auto 0; border-radius: 8px; background: var(--white);
  padding: 6px; outline: 1px solid rgba(28,26,94,.12);
}
.pass__qr svg { width: 100%; height: 100%; display: block; fill: var(--navy); }
@keyframes float { 50% { transform: rotate(-7deg) translateY(-14px); } }

/* ---------- Hoja blanca estilo portafolio ---------- */
.card-sheet { background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(20,18,71,.6); }

/* ---------- INVITACIONES ---------- */
.invite { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); padding: clamp(28px, 5vw, 70px); align-items: center; }
.invite__copy h2 .display { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.invite__copy h2 .script { font-size: clamp(3rem, 6.4vw, 5.6rem); -webkit-text-stroke-color: var(--white); margin-left: 0; }
.invite__copy > p { margin: 34px 0 30px; color: var(--muted); font-size: 1.02rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 16px; margin-bottom: 36px; }
.feat { text-align: center; }
.feat__dot {
  width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: grid; place-items: center;
  transition: transform .45s var(--ease), background-color .3s;
}
.feat:hover .feat__dot { transform: scale(1.08) rotate(-6deg); background: var(--royal); }
.feat__dot svg { width: 28px; height: 28px; }
.feat__dot--txt { font-family: var(--f-display); font-size: 1.25rem; }
.feat p { font-size: .82rem; font-weight: 600; color: var(--royal); line-height: 1.3; }

.invite__media { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: end; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: #e9cfc9; box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot--tall { aspect-ratio: 3 / 5.4; }
.shot:not(.shot--tall) { aspect-ratio: 3 / 5; transform: translateY(-40px); }

/* ---------- PROYECTOS ---------- */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; gap: 18px; }
.proj {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  grid-column: span 2; grid-row: span 2;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.proj--tall { grid-row: span 3; }
.proj--wide { grid-column: span 4; grid-row: span 2; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.proj--cards img { object-fit: contain; background: var(--white); padding: 12px 12px 90px; }
.proj::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(20,18,71,.92));
}
.proj:hover img { transform: scale(1.06); }
.proj__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.proj__sector { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.proj h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1; margin: 6px 0 12px; }
.proj .tags { padding-top: 0; }

/* ---------- NOSOTROS ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.about__title { position: relative; }
.about__big { display: block; font-size: clamp(6rem, 17vw, 13rem); color: rgba(241,240,238,.1); }
.about__script {
  position: absolute; left: 22%; top: 34%;
  font-size: clamp(5rem, 13vw, 10rem); color: var(--white);
  transform: rotate(-8deg);
}
.about__lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.55; color: rgba(255,255,255,.88); }
.about__lead strong { color: var(--white); }
.mission { margin-top: 30px; padding: 26px 30px; background: var(--royal); border-radius: var(--radius); }
.mission__k { font-family: var(--f-display); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .03em; }
.mission__v { font-size: 1.1rem; margin-top: 4px; }
.mission__v em { font-family: var(--f-script); font-style: normal; font-size: 2rem; line-height: 1; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(60px, 8vw, 100px); }
.stat { border-top: 2px solid rgba(255,255,255,.18); padding-top: 20px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.72); font-size: .92rem; max-width: 300px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(50px, 7vw, 90px); }
.step { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 26px; transition: transform .45s var(--ease); }
.step:hover { transform: translateY(-6px); }
.step__n { font-family: var(--f-display); font-size: 1rem; color: var(--white); background: var(--navy); border-radius: 999px; padding: 4px 12px; }
.step h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta { background: var(--navy-deep); color: var(--white); padding-block: clamp(80px, 12vw, 150px); text-align: center; overflow: hidden; }
.cta__title { position: relative; display: inline-block; }
.cta__title .display { display: block; font-size: clamp(4.2rem, 14vw, 12rem); color: var(--paper); }
.cta__script {
  position: absolute; left: 50%; bottom: -.42em; translate: -50% 0;
  font-size: clamp(4rem, 12vw, 10rem); color: var(--white);
  transform: rotate(-6deg);
  -webkit-text-stroke: 10px var(--navy-deep); paint-order: stroke fill;
  white-space: nowrap;
}
.cta p { margin: clamp(70px, 9vw, 110px) auto 0; max-width: 520px; color: rgba(255,255,255,.78); font-size: 1.05rem; }

/* ---------- CONTACTO ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact__title { font-size: clamp(3.6rem, 8vw, 6.4rem); color: var(--white); text-shadow: 0 10px 40px rgba(20,18,71,.3); }
.person { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.person--main {
  margin: 30px 0 20px; background: var(--royal); color: var(--white);
  padding: 20px 24px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), background-color .25s;
}
.person--main:hover { transform: translateY(-3px); background: var(--navy); }
.person__name { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.person__line { font-size: .95rem; opacity: .9; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.people .person { background: rgba(255,255,255,.75); backdrop-filter: blur(8px); border-radius: var(--radius-sm); padding: 18px 20px; color: var(--navy); }
.person__role { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--royal); margin-bottom: 8px; }
.people .person a { font-size: .84rem; text-decoration: none; word-break: break-word; }
.people .person a:hover { text-decoration: underline; }

.form { padding: clamp(26px, 4vw, 42px); display: grid; gap: 16px; }
.form h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; }
.form label > span, .form legend { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; font: 500 1rem var(--f-body); color: var(--navy);
  border: 2px solid #e2e2ea; background: var(--paper);
  border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background-color .2s;
  resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--royal); background: var(--white); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; margin: 0 !important; padding: 8px 14px; border-radius: 999px;
  border: 2px solid #dcdcea; font-size: .82rem !important; font-weight: 600 !important; color: var(--navy);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.chip:hover span { border-color: var(--royal); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--peri); outline-offset: 2px; }
.form__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form__btns .btn { flex: 1 1 200px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-deep); color: var(--white); padding-block: 36px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__tag { font-family: var(--f-script); font-size: 2.2rem; line-height: 1; }
.footer__copy { font-size: .82rem; opacity: .7; }
.footer__copy a { text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 22px;
    background: var(--navy);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav__links a { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 2.6rem; opacity: 1; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .burger { display: block; }
  .nav__actions .btn { display: none; }

  .hero__grid, .split, .invite, .about, .contact { grid-template-columns: 1fr; }
  .hero { padding-block: 120px 70px; }
  .hero__stack { height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
  .devices { max-width: 480px; width: 100%; margin-inline: auto; }
  .projects { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .proj, .proj--wide { grid-column: span 2; grid-row: span 2; }
  .proj--tall { grid-column: span 1; grid-row: span 3; }
  .proj--tall:nth-child(3) { grid-column: span 2; }
  .about__title { min-height: 180px; }
}

@media (max-width: 600px) {
  .logo__sub { display: none; }
  .pill { font-size: .74rem; padding: 9px 16px; border-radius: 18px; }
  .hero__title { margin-bottom: 56px; }
  .services { grid-template-columns: 1fr; }
  .svc--big { grid-column: auto; padding: 30px 26px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .invite__media { grid-template-columns: 1fr 1fr; }
  .shot:not(.shot--tall) { transform: none; }
  .stats, .steps, .people { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; grid-auto-rows: 130px; }
  .proj, .proj--wide, .proj--tall, .proj--tall:nth-child(3) { grid-column: auto; grid-row: span 3; }
  .hero__stack { height: 360px; }
  .hero__badge { left: 0; max-width: 210px; font-size: .72rem; }
  .devices { height: 460px; }
  .phone { width: 230px; height: 460px; }
  .nfc { top: 40px; }
  .heading h2 .script, .split__copy h2 .script, .invite__copy h2 .script { margin-left: 0; }
}

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