/* =============================================================
   CONNECTA — styles.css
   1. Tokens
   2. Reset & base
   3. Utilidades
   4. Tipografía de sección
   5. Componentes (botón, nav, menú, splash, cursor)
   6. Secciones
   7. Efectos
   8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg:        #000000;
  --bg-soft:   #070707;
  --bg-card:   #0a0a0a;
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .18);
  --text:      #ffffff;
  --muted:     rgba(255, 255, 255, .56);
  --muted-2:   rgba(255, 255, 255, .38);

  --accent:      #a30000;
  --accent-hi:   #c81212;
  --accent-soft: rgba(163, 0, 0, .18);

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-soft:   cubic-bezier(.25, .46, .45, .94);
  --ease-bounce: cubic-bezier(.34, 1.4, .64, 1);

  --gutter: 1.35rem;
  --maxw: 1120px;
  --nav-h: 74px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: #fff; color: #000;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.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;
}

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.grain {
  position: fixed; inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, -1%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

/* =============================================================
   4. TIPOGRAFÍA DE SECCIÓN
   ============================================================= */
.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.6rem;
}
.services .kicker,
.results .kicker { text-align: center; }

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.0;
  max-width: 17ch;
  margin-bottom: clamp(2.8rem, 6vw, 4.6rem);
}
.section-title em { font-style: normal; color: var(--accent); }
.section-title.center { max-width: 20ch; margin-inline: auto; text-align: center; }
.section-title.big { font-size: clamp(2.1rem, 5vw, 3.9rem); }

.services .section-title { text-align: center; margin-inline: auto; }

/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* ---------- Botón ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .95rem 1.7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: -.005em;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }
.btn:hover {
  border-color: var(--accent-hi);
  box-shadow: 0 10px 44px -12px rgba(163, 0, 0, .85);
}
.btn > span { position: relative; }
.btn-arrow {
  width: 17px; height: 17px; flex: none;
  transition: transform .45s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-lg { padding: 1.15rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: .62rem 1.15rem; font-size: .82rem; }

.section-cta { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--nav-h);
  transition: background .5s var(--ease-out), backdrop-filter .5s var(--ease-out),
              border-color .5s var(--ease-out), transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(0, 0, 0, .72);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-solid { background: rgba(0, 0, 0, .5); backdrop-filter: blur(16px) saturate(140%); }
}
.nav-inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; }
.nav-mark { width: 40px; height: auto; }
.nav-word {
  font-weight: 600; font-size: 1.02rem; letter-spacing: -.03em;
}
/* Enlaces a las galerías: siempre visibles en la barra */
.nav-pages { display: flex; gap: 1.4rem; margin-right: .3rem; }
.nav-pages a {
  position: relative;
  font-size: .86rem;
  color: var(--muted);
  transition: color .35s var(--ease-out);
  white-space: nowrap;
}
.nav-pages a::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-pages a:hover, .nav-pages a.is-current { color: var(--text); }
.nav-pages a:hover::after,
.nav-pages a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }

.nav-toggle {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-content: center; gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .35s var(--ease-out), background .35s var(--ease-out);
}
.nav-toggle:hover { border-color: var(--accent); background: rgba(163, 0, 0, .12); }
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: #fff;
  transition: transform .4s var(--ease-out), opacity .3s var(--ease-out);
}
body.menu-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Menú móvil ---------- */
.menu {
  position: fixed; inset: 0;
  z-index: 65;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  padding: calc(var(--nav-h) + 1.4rem) var(--gutter) 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
/* Si sobra sitio, el bloque se centra en vertical */
.menu-links { margin-top: auto; }
.menu-cta { margin-bottom: auto; }
body.menu-open .menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.menu-links { display: grid; gap: .3rem; }
.menu-links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: 600; letter-spacing: -.04em;
  padding-block: .35rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
body.menu-open .menu-links a { opacity: 1; transform: none; }
.menu-links a:nth-child(1) { transition-delay: .06s; }
.menu-links a:nth-child(2) { transition-delay: .11s; }
.menu-links a:nth-child(3) { transition-delay: .16s; }
.menu-links a:nth-child(4) { transition-delay: .21s; }
.menu-links a:nth-child(5) { transition-delay: .26s; }
.menu-links a i {
  font-family: var(--mono); font-style: normal;
  font-size: .72rem; color: var(--accent); letter-spacing: .1em;
}
.menu-extra {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.menu-extra a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .3s var(--ease-out);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
  transition-delay: .3s;
}
body.menu-open .menu-extra a { opacity: 1; transform: none; }
.menu-extra a:hover { color: var(--accent-hi); }

.menu-cta { align-self: flex-start; }

/* En pantallas altas el menú se reparte mejor */
@media (min-width: 960px) {
  .menu { padding-inline: max(var(--gutter), 8vw); }
  .menu-links a { font-size: clamp(2rem, 4.2vw, 3rem); }
}

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid; place-content: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash-mark {
  width: min(250px, 56vw);
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation: markWipe 1.2s var(--ease-out) .1s forwards;
}
@keyframes markWipe { to { clip-path: inset(0 -3% 0 0); } }
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s var(--ease-out), clip-path .9s var(--ease-out);
  clip-path: inset(0 0 100% 0);
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring {
  position: absolute; top: 0; left: 0;
  border-radius: 999px;
  transform: translate3d(-100px, -100px, 0);
}
.cursor-dot { width: 5px; height: 5px; background: #fff; margin: -2.5px 0 0 -2.5px; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--accent);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              margin .35s var(--ease-out), background-color .35s var(--ease-out),
              border-color .35s var(--ease-out);
}
body.cursor-hover .cursor-ring {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  background: var(--accent-soft);
  border-color: var(--accent-hi);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =============================================================
   6. SECCIONES
   ============================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 6rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  left: 50%; top: 58%;
  width: min(150vw, 1100px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(163, 0, 0, .30), rgba(163, 0, 0, .07) 45%, transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  animation: glowDrift 16s var(--ease-soft) infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate(-50%, -50%) scale(1); opacity: .85; }
  to   { transform: translate(-50%, -56%) scale(1.16); opacity: 1; }
}
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; }

.hero-logo { display: grid; justify-items: center; gap: .85rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.hero-mark { width: clamp(140px, 19vw, 225px); height: auto; }
.hero-word {
  font-size: clamp(.95rem, 1.7vw, 1.15rem);
  font-weight: 600;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
  max-width: 16ch;
}
.hero-title .w { display: inline-block; }
.hero-title .accent {
  color: var(--accent);
  text-shadow: 0 0 46px rgba(163, 0, 0, .55);
}

.hero-sub {
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
  font-size: clamp(.9rem, 1.4vw, 1rem);
  color: var(--muted);
  font-weight: 300;
  letter-spacing: .01em;
}

.hero-cta { margin-top: clamp(2.2rem, 5vw, 3.2rem); }

.hero-scroll {
  position: absolute;
  bottom: 1.9rem;
  /* Centrado sin transform: la animación de entrada lo anularía */
  left: 0; right: 0;
  width: max-content;
  margin-inline: auto;
  display: grid; justify-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted-2);
  transition: color .4s var(--ease-out);
}
/* El espacio sobrante que deja letter-spacing tras la última letra
   descentraba el texto respecto a la línea */
.hero-scroll-text { text-indent: .3em; }
.hero-scroll:hover { color: var(--text); }
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: #fff;
  animation: scrollLine 2.2s var(--ease-soft) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------- Marcas / marquee ---------- */
.clients { padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.clients-kicker {
  text-align: center;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}

.marquee {
  border-block: 1px solid var(--line);
  padding-block: clamp(1rem, 2.2vw, 1.5rem);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track span {
  font-size: clamp(1.3rem, 2.9vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  padding-right: .4em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios ---------- */
.services { background: var(--bg); }
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 1rem;
  row-gap: .5rem;
  padding-block: clamp(1.4rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease-out);
}
.svc::before {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.svc:hover::before { transform: scaleX(1); }
.svc-num {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted-2);
  padding-top: .55em;
  transition: color .4s var(--ease-out);
}
.svc:hover .svc-num { color: var(--accent-hi); }
.svc-name {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.04em;
  transition: transform .55s var(--ease-out);
}
.svc:hover .svc-name { transform: translateX(10px); }
.svc-desc {
  grid-column: 2;
  color: var(--muted);
  font-size: clamp(.9rem, 1.5vw, 1rem);
  font-weight: 300;
  max-width: 46ch;
}
.svc-arrow {
  grid-row: 1 / span 2;
  grid-column: 3;
  width: 22px; height: 22px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  align-self: center;
}
.svc:hover .svc-arrow { opacity: 1; transform: none; }

/* ---------- Resultados ---------- */
.results { overflow: hidden; }
.results-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.results-word span {
  display: block;
  font-size: clamp(3.5rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(163, 0, 0, .30);
  white-space: nowrap;
}
.results .container { position: relative; z-index: 1; }
.stats {
  display: grid;
  gap: clamp(2.4rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.4rem, 5vw, 3.4rem);
}
.stat { text-align: center; }
.stat-num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: clamp(2.8rem, 7.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-plus {
  color: var(--accent);
  font-size: .52em;
  line-height: 1.1;
  margin-right: .06em;
}
.stat-unit { color: var(--accent); }
.stat-label {
  margin-top: .9rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Proyectos ---------- */
.phones {
  display: grid;
  gap: clamp(3.5rem, 7vw, 4.5rem);
}
.project { display: grid; justify-items: center; text-align: center; }
.project-name {
  margin-top: 2rem;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.project-name::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: var(--accent);
  margin: .8rem auto 0;
}
.project-handle {
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--accent-hi);
}
.project-desc {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 300;
  max-width: 42ch;
}

.phone { perspective: 1000px; }
.phone-frame {
  position: relative;
  width: min(268px, 64vw);
  aspect-ratio: 9 / 19.2;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1e1e1e, #050505 55%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 0 70px -30px rgba(163, 0, 0, .5);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  transform-style: preserve-3d;
}
.phone:hover .phone-frame {
  box-shadow:
    0 0 0 1px rgba(163, 0, 0, .5),
    0 46px 90px -30px rgba(0, 0, 0, .95),
    0 0 90px -20px rgba(163, 0, 0, .6);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #0b0b0b;
  container-type: inline-size;
}
/* Dynamic Island */
.phone-screen::after {
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 18px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
  pointer-events: none;
}

/* ---------- Perfil de Instagram reconstruido con HTML/CSS ---------- */
.ig {
  position: relative;
  height: 100%;
  background: #000;
  /* Todo el perfil escala con el ancho del móvil */
  font-size: 10px;
  font-size: 4cqi;
  color: #fff;
  overflow: hidden;
  /* El contenedor .project centra el texto; el perfil va alineado a la izquierda */
  text-align: left;
}
/* Difuminado inferior: la cuadrícula se disuelve en negro en vez de enseñar
   cuadros de color que delatan que no son fotos reales.
   Al poner la captura real (.phone-shot va por encima) deja de verse. */
.ig::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(to bottom, transparent, #000 78%);
  z-index: 3;
  pointer-events: none;
}

/* Barra de estado */
.ig-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9em 1.6em .3em;
  font-size: 1.05em; font-weight: 600; letter-spacing: -.01em;
}
.ig-status-icons { display: flex; align-items: center; gap: .45em; }
.ig-status-icons i { display: block; background: #fff; }
.ig-status-icons .sig { width: 1.5em; height: .9em; clip-path: polygon(0 65%,18% 65%,18% 100%,0 100%,0 65%,27% 42%,45% 42%,45% 100%,27% 100%,27% 42%,55% 20%,72% 20%,72% 100%,55% 100%,55% 20%,82% 0,100% 0,100% 100%,82% 100%); }
.ig-status-icons .wifi { width: 1.2em; height: .9em; clip-path: polygon(50% 100%, 0 35%, 12% 22%, 50% 62%, 88% 22%, 100% 35%); }
.ig-status-icons .bat { width: 1.7em; height: .85em; border-radius: .22em; opacity: .9; }

/* Cabecera */
.ig-top {
  display: flex; align-items: center; gap: .8em;
  padding: .5em 1.4em 1em;
}
.ig-back { width: .7em; height: .7em; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); flex: none; }
.ig-handle { flex: 1; font-size: 1.35em; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.ig-dots { width: 1.1em; height: 3px; flex: none; background: radial-gradient(circle, #fff 42%, transparent 44%) 0 0/33.4% 100% repeat-x; }

/* Avatar + cifras */
.ig-head { display: flex; align-items: center; gap: .8em; padding: 0 1.4em 1em; }
.ig-avatar {
  width: 6.4em; height: 6.4em; flex: none;
  border-radius: 999px;
  display: grid; place-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--a, #333), var(--b, #111));
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.ig-avatar b { font-size: 2.1em; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig-stats { flex: 1; min-width: 0; text-align: center; display: grid; gap: .1em; padding-inline: .1em; }
.ig-stats b { font-size: 1.3em; font-weight: 700; letter-spacing: -.03em; }
.ig-stats i {
  font-size: .62em; font-style: normal; color: rgba(255, 255, 255, .62);
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* Bio */
.ig-bio { display: grid; gap: .18em; padding: 0 1.4em 1em; }
.ig-bio b { font-size: 1.1em; font-weight: 600; }
.ig-bio span { font-size: 1.05em; color: rgba(255, 255, 255, .74); line-height: 1.35; }

/* Destacadas */
.ig-highlights { display: flex; gap: 1em; padding: 0 1.4em 1.1em; overflow: hidden; }
.ig-highlights span {
  display: grid; justify-items: center; gap: .35em;
  font-size: .92em; color: rgba(255, 255, 255, .72);
  white-space: nowrap;
}
.ig-highlights i {
  width: 4.2em; height: 4.2em; border-radius: 999px;
  background: linear-gradient(145deg, var(--a, #333), var(--b, #111));
  box-shadow: 0 0 0 1.2px rgba(255, 255, 255, .28);
}

/* Pestañas */
.ig-tabs { display: flex; border-top: 1px solid rgba(255, 255, 255, .14); }
.ig-tabs i { flex: 1; height: 2.9em; position: relative; opacity: .45; }
.ig-tabs i::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 1.5em; height: 1.5em;
}
/* Cuadrícula */
.ig-tabs i:nth-child(1)::before {
  background: radial-gradient(circle at 50% 50%, #fff 0 1px, transparent 1.2px) 0 0 / 33.4% 33.4% repeat;
}
/* Reels */
.ig-tabs i:nth-child(2)::before {
  border: 1.2px solid #fff; border-radius: .28em;
}
/* Etiquetadas */
.ig-tabs i:nth-child(3)::before {
  border: 1.2px solid #fff; border-radius: 999px;
}
.ig-tabs i.on { opacity: 1; }
.ig-tabs i.on::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 1.5px; background: #fff;
}

/* Rejilla de publicaciones */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-grid i {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  /* Fondo con profundidad: luz suave arriba, sombra abajo y viñeta.
     Simula una foto sin serlo, en lugar de un degradado plano. */
  background:
    radial-gradient(120% 80% at 30% 12%, rgba(255,255,255,.20), transparent 55%),
    radial-gradient(100% 70% at 78% 92%, rgba(0,0,0,.55), transparent 60%),
    linear-gradient(155deg, var(--a, #333), var(--b, #111));
  background-blend-mode: overlay, multiply, normal;
}
.ig-grid i::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(115% 90% at 50% 45%, transparent 40%, rgba(0,0,0,.42));
}
.ig-grid i img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

/* Captura real del perfil: ocupa toda la pantalla del móvil */
.phone-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 4;
  animation: shotIn .6s var(--ease-out) both;
}
@keyframes shotIn { from { opacity: 0; } to { opacity: 1; } }
/* La captura ya trae su propia barra de estado: sobra nuestra isla */
.phone-screen.has-shot::after { content: none; }

/* Variedad entre miniaturas */
.ig-grid i:nth-child(2n) { background:
  radial-gradient(110% 75% at 70% 15%, rgba(255,255,255,.16), transparent 55%),
  radial-gradient(100% 70% at 20% 90%, rgba(0,0,0,.6), transparent 60%),
  linear-gradient(35deg, var(--b, #111), var(--a, #333)); }
.ig-grid i:nth-child(3n) { background:
  radial-gradient(120% 80% at 45% 10%, rgba(255,255,255,.12), transparent 50%),
  linear-gradient(200deg, var(--a, #333), #0b0b0b); }
.ig-grid i:nth-child(5n) { background:
  radial-gradient(120% 85% at 60% 20%, rgba(255,255,255,.22), transparent 58%),
  linear-gradient(120deg, var(--b, #111), #0f0f0f); }
.ig-grid i:nth-child(7n) { background:
  radial-gradient(110% 80% at 25% 18%, rgba(255,255,255,.14), transparent 52%),
  linear-gradient(75deg, var(--a, #333), var(--b, #111)); }

/* Iconos de reel y carrusel, como en un perfil real */
.ig-grid i::after {
  content: "";
  position: absolute;
  top: .55em; right: .55em;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}
.ig-grid i:nth-child(3n+1)::after {
  width: 0; height: 0;
  border-left: .62em solid #fff;
  border-top: .38em solid transparent;
  border-bottom: .38em solid transparent;
}
.ig-grid i:nth-child(3n+2)::after {
  width: .68em; height: .68em;
  border: 1.2px solid #fff;
  border-radius: .16em;
  box-shadow: -.18em .18em 0 -.06em rgba(0, 0, 0, .5), -.16em .16em 0 0 #fff;
}
.ig-grid i:nth-child(3n)::after { content: none; }

/* ---------- UGC ---------- */
.ugc-lead {
  color: var(--muted);
  font-size: clamp(.94rem, 1.35vw, 1.02rem);
  font-weight: 300;
  max-width: 58ch;
  margin-top: -2rem;
  margin-bottom: clamp(2.6rem, 5vw, 3.6rem);
}

.ugc-grid { display: grid; gap: clamp(1.6rem, 3.5vw, 2.2rem); }
.ugc-item { margin: 0; }

.ugc-video {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 26px 60px -36px rgba(0, 0, 0, .95);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.ugc-item:hover .ugc-video {
  transform: translateY(-5px);
  box-shadow: 0 32px 70px -32px rgba(163, 0, 0, .7);
}
.ugc-player {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0b0b0b;
}

/* Reproducciones */
.ugc-views {
  position: absolute;
  left: .8rem; bottom: .8rem;
  z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .75rem .42rem .6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  pointer-events: none;
}
@supports (backdrop-filter: blur(8px)) {
  .ugc-views { backdrop-filter: blur(8px); }
}
.ugc-views svg { width: 13px; height: 13px; color: var(--accent-hi); }
.ugc-views b {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* Botón de sonido */
.ugc-sound {
  position: absolute;
  right: .8rem; bottom: .8rem;
  z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
@supports (backdrop-filter: blur(8px)) {
  .ugc-sound { backdrop-filter: blur(8px); }
}
.ugc-sound:hover { background: var(--accent); border-color: var(--accent); }
.ugc-sound svg { width: 19px; height: 19px; }
.ugc-sound .ico-on { display: none; }
.ugc-sound.is-on .ico-off { display: none; }
.ugc-sound.is-on .ico-on { display: block; }

.ugc-item figcaption {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  padding-top: 1rem;
}
.ugc-item figcaption b {
  font-size: 1rem; font-weight: 600; letter-spacing: -.02em;
}
.ugc-item figcaption span {
  font-family: var(--mono);
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Equipo ---------- */
.team-grid { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.member { margin: 0; }

.member-photo {
  position: relative;
  aspect-ratio: 4 / 5;          /* solo mientras no hay foto */
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #1c1c1c, #0b0b0b);
  display: grid;
  place-content: center;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .95);
}
/* Con foto, el marco se adapta a ella: se ve entera, sin recortes */
.member-photo.has-photo { aspect-ratio: auto; display: block; }
.member-photo img {
  position: static;
  display: block;
  width: 100%; height: auto;
  /* Baja un poco la saturación para que las fotos convivan con el negro;
     al pasar el ratón recuperan el color completo */
  filter: saturate(.82) contrast(1.04);
  transition: filter .6s var(--ease-out), transform .8s var(--ease-out);
}
.member:hover .member-photo { box-shadow: 0 34px 80px -34px rgba(163, 0, 0, .75); }
.member:hover .member-photo img { filter: none; transform: scale(1.035); }

/* Velo inferior solo para el marco vacío; con foto se ve entera y limpia */
.member-photo::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .75));
  pointer-events: none;
}
.member-photo.has-photo::after { content: none; }
.member-initial {
  font-size: clamp(4rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(163, 0, 0, .55);
}

.member figcaption { padding-top: 1.5rem; }
.member-name {
  font-size: clamp(1.2rem, 1.9vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
}
.member-name span {
  display: block;
  margin-top: .45rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.member-desc {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: .96rem;
  font-weight: 300;
  max-width: 46ch;
}

/* ---------- Opiniones (bloque estilo Google) ---------- */
:root {
  --gr-ink:   #1f1f1f;
  --gr-grey:  #5f6368;
  --gr-line:  #e3e3e3;
  --gr-star:  #fbbc04;
}

.gr { display: grid; gap: 1.1rem; min-width: 0; }

/* Barra resumen */
.gr-head {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2.1rem);
  background: #fff;
  border-radius: 20px;
  color: var(--gr-ink);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9);
}
.gr-brand { display: grid; gap: .7rem; }
.gr-title { display: flex; align-items: center; gap: .6rem; }
.gr-title b {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.gr-g { width: 22px; height: 22px; flex: none; }
.gr-score { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.gr-score > b {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.gr-score > i {
  font-style: normal;
  font-size: .85rem;
  color: var(--gr-grey);
}

.gr-stars { display: inline-flex; gap: 3px; }
.gr-stars i {
  width: 19px; height: 19px;
  background: var(--gr-star);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.gr-stars.sm i { width: 15px; height: 15px; }
.gr-stars i.off { background: #dadce0; }

.gr-actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
/* El botón vive sobre fondo blanco: relleno rojo y texto blanco */
.gr-cta {
  align-self: start;
  justify-self: start;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.gr-cta::before { background: #111; }
.gr-cta:hover { border-color: #111; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.gr-profile {
  font-size: .82rem;
  color: #1a73e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gr-profile:hover { color: var(--accent); }

/* Carrusel */
.gr-carousel { position: relative; min-width: 0; }
.gr-track {
  display: flex;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: .4rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gr-track::-webkit-scrollbar { display: none; }

.gr-card {
  flex: 0 0 auto;
  width: min(320px, 82vw);
  scroll-snap-align: start;
  display: grid;
  gap: .85rem;
  align-content: start;
  padding: 1.4rem;
  background: #fff;
  color: var(--gr-ink);
  border-radius: 18px;
  box-shadow: 0 20px 50px -32px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.gr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -30px rgba(163, 0, 0, .75);
}
.gr-card-head { display: flex; align-items: center; gap: .75rem; }
.gr-avatar {
  width: 42px; height: 42px; flex: none;
  display: grid; place-content: center;
  border-radius: 999px;
  background: var(--c, #A30000);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  overflow: hidden;
}
.gr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gr-meta { display: grid; gap: .1rem; min-width: 0; }
.gr-meta b {
  font-size: .95rem; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gr-meta i { font-style: normal; font-size: .76rem; color: var(--gr-grey); }
.gr-text {
  font-size: .93rem;
  line-height: 1.6;
  color: #3c4043;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gr-text.is-open { -webkit-line-clamp: unset; }
.gr-more {
  justify-self: start;
  font-size: .84rem;
  font-weight: 500;
  color: #1a73e8;
  padding: 0;
}
.gr-more:hover { text-decoration: underline; }

/* Flechas */
.gr-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px; height: 42px;
  display: none;
  place-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, .8);
  border: 1px solid var(--line-2);
  color: #fff;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), opacity .35s;
}
.gr-nav svg { width: 20px; height: 20px; }
.gr-nav:hover { background: var(--accent); border-color: var(--accent); }
.gr-nav[disabled] { opacity: .25; pointer-events: none; }
.gr-prev { left: -14px; }
.gr-next { right: -14px; }

/* Puntos */
.gr-dots { display: flex; justify-content: center; gap: 7px; }
.gr-dots button {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background .35s var(--ease-out), width .35s var(--ease-out);
}
.gr-dots button.is-active { background: var(--accent); width: 22px; }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; }
.contact-glow {
  position: absolute;
  left: 50%; top: 30%;
  width: min(140vw, 900px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(163, 0, 0, .22), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }
.contact-sub {
  text-align: center;
  color: var(--muted);
  font-weight: 300;
  margin-top: -2rem;
  margin-bottom: clamp(2.8rem, 6vw, 4rem);
}
.contact-grid { display: grid; gap: .9rem; }
.contact-card {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 10, 10, .5);
  transition: border-color .5s var(--ease-out), transform .5s var(--ease-out), background .5s var(--ease-out);
}
.contact-card:hover {
  border-color: rgba(163, 0, 0, .6);
  background: rgba(163, 0, 0, .07);
  transform: translateY(-3px);
}
.contact-icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  transition: color .45s var(--ease-out), background .45s var(--ease-out);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-card:hover .contact-icon { color: #fff; background: var(--accent); }
.contact-meta { display: grid; gap: .18rem; min-width: 0; }
.contact-meta i {
  font-family: var(--mono); font-style: normal;
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted-2);
}
.contact-meta b {
  font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.4rem;
}
.footer-inner { display: grid; justify-items: center; gap: .8rem; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; letter-spacing: -.03em; }
.footer-brand .nav-mark { width: 36px; height: auto; }
.footer-tag { color: var(--muted); font-size: .88rem; font-weight: 300; }
.footer-copy { color: var(--muted-2); font-size: .74rem; font-family: var(--mono); letter-spacing: .04em; }

/* =============================================================
   6b. PÁGINA DE FORMULARIO
   ============================================================= */
.page-form { background: var(--bg); }

.form-back {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-left: auto;
  font-size: .85rem;
  color: var(--muted);
  transition: color .35s var(--ease-out);
}
.form-back:hover { color: var(--text); }
.form-back svg { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }
.form-back:hover svg { transform: translateX(-3px); }

.form-wrap {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)) var(--gutter) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.form-inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }

.form-head { margin-bottom: clamp(2.2rem, 5vw, 3rem); }
.form-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: 1rem;
}
.form-title em { font-style: normal; color: var(--accent); }
.form-lead { color: var(--muted); font-weight: 300; max-width: 52ch; }

.form-progress { margin-bottom: 2.2rem; }
.form-progress-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}
.form-progress-count b { color: var(--accent); font-weight: 500; }
.form-progress-bar { height: 2px; background: var(--line); overflow: hidden; }
.form-progress-bar i {
  display: block; height: 100%;
  background: var(--accent);
  transition: width .6s var(--ease-out);
}

.step { border: 0; padding: 0; margin: 0; display: none; }
.step.is-active { display: grid; gap: 1.5rem; animation: stepIn .5s var(--ease-out); }
/* Sin JS: se muestran todos los pasos y se ocultan los botones de navegación */
.no-js .step { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
.no-js .form-actions [data-next], .no-js .form-actions [data-prev] { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.field { display: grid; gap: .6rem; }
.field-row { display: grid; gap: 1.5rem; }
.field > label,
.field-legend {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .82);
}
.field > label span,
.field-legend span { color: var(--accent-hi); }
.field > label em { font-style: normal; color: var(--muted-2); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: .98rem;
  font-weight: 300;
  transition: border-color .35s var(--ease-out), background .35s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .26); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(163, 0, 0, .06);
}
.field .is-invalid,
.field .is-invalid:focus {
  border-color: var(--accent-hi);
  background: rgba(200, 18, 18, .1);
  box-shadow: 0 0 0 1px rgba(200, 18, 18, .45);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A30000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.6rem;
  cursor: pointer;
}
.field select option { background: #101010; color: #fff; }

.choice-grid { display: grid; gap: .55rem; }
.choice-grid.is-invalid { outline: 1px solid var(--accent-hi); outline-offset: 6px; border-radius: 12px; }
.choice {
  position: relative;
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  font-size: .92rem;
  font-weight: 300;
  cursor: pointer;
  transition: border-color .35s var(--ease-out), background .35s var(--ease-out);
}
.choice:hover { border-color: var(--line-2); }
.choice input {
  appearance: none;
  width: 17px; height: 17px; flex: none;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.choice input[type="radio"] { border-radius: 999px; }
.choice input:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #000;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(163, 0, 0, .1);
}

.consent {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .84rem; font-weight: 300; color: var(--muted);
  cursor: pointer;
}
.consent input {
  appearance: none;
  width: 17px; height: 17px; flex: none;
  margin-top: .18rem;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  transition: border-color .3s, background .3s;
}
.consent input:checked { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #000; }
.consent.is-invalid { color: var(--accent-hi); }
.consent.is-invalid input { border-color: var(--accent-hi); }

.form-error {
  margin-top: 1.4rem;
  font-size: .84rem;
  color: var(--accent-hi);
  font-family: var(--mono);
  letter-spacing: .02em;
}

.form-actions {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.btn-ghost { border-color: var(--line-2); }
.btn-ghost::before { background: rgba(255, 255, 255, .1); }
.btn-ghost:hover { border-color: var(--line-2); box-shadow: none; }
.btn-arrow.flip { order: -1; }
.form-actions [data-next] { margin-left: auto; }
.btn.is-sending { pointer-events: none; opacity: .7; }

/* Los dos botones de envío */
.form-send { display: grid; gap: .7rem; margin-left: auto; }
.form-send .btn { width: 100%; }
.btn-ico { width: 19px; height: 19px; flex: none; }
.btn-wa {
  background: #25D366;
  border-color: #25D366;
  color: #062e14;
  font-weight: 600;
}
.btn-wa::before { background: #1ebe5a; }
.btn-wa:hover { border-color: #1ebe5a; box-shadow: 0 10px 34px -14px rgba(37, 211, 102, .9); }

@media (min-width: 540px) {
  .form-send { grid-auto-flow: column; justify-content: end; }
  .form-send .btn { width: auto; }
}

.form-done { text-align: center; display: grid; justify-items: center; gap: 1.1rem; padding-block: 2rem 1rem; }
.form-done-mark { width: 130px; height: auto; margin-bottom: .5rem; }
.form-done h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -.04em; }
.form-done p { color: var(--muted); font-weight: 300; max-width: 44ch; }
.form-done-note { font-size: .86rem; color: var(--accent-hi); }
.form-done .btn { margin-top: 1rem; }

.form-alt {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.form-alt > p {
  font-family: var(--mono);
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.1rem;
}
.form-alt-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.form-alt-links a {
  font-size: .95rem; font-weight: 400;
  color: var(--muted);
  transition: color .35s var(--ease-out);
}
.form-alt-links a:hover { color: var(--accent-hi); }

@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   6c. PÁGINAS DE GALERÍA (Fotografía y Vídeos)
   ============================================================= */
.page-gallery { background: var(--bg); }

.gallery-wrap {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.gallery-wrap .container { position: relative; z-index: 1; }

.gallery-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.gallery-title {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  max-width: 16ch;
  margin-bottom: 1.3rem;
}
.gallery-title em { font-style: normal; color: var(--accent); }
.gallery-lead {
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(.94rem, 1.35vw, 1.02rem);
  max-width: 54ch;
}
.gallery-count {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Mosaico de fotos ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 12vw;
  gap: .6rem;
}
.shot {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0d0d0d;
  grid-row: span 2;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.shot.is-visible { opacity: 1; transform: none; }
.shot.is-tall { grid-row: span 3; }
.shot.is-wide { grid-row: span 2; grid-column: span 2; }
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), filter .5s var(--ease-out);
  filter: saturate(.9);
}
.shot:hover img { transform: scale(1.05); filter: none; }
.shot::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  border-radius: inherit;
  transition: box-shadow .5s var(--ease-out);
  pointer-events: none;
}
.shot:hover::after { box-shadow: inset 0 0 0 1px rgba(163, 0, 0, .8); }

/* ---------- Rejilla de vídeos ---------- */
.clip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.clip {
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.clip.is-visible { opacity: 1; transform: none; }
.clip-box {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 22px 55px -38px rgba(0, 0, 0, .95);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.clip:hover .clip-box {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -32px rgba(163, 0, 0, .7);
}
.clip-player { width: 100%; height: 100%; object-fit: cover; display: block; background: #0b0b0b; }

/* ---------- Estado vacío ---------- */
.photo-grid.is-empty, .clip-grid.is-empty { display: block; }
.gallery-empty {
  display: grid; justify-items: center; gap: 1rem;
  text-align: center;
  padding: clamp(3rem, 9vw, 6rem) 1.5rem;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
}
.gallery-empty img { width: 120px; height: auto; opacity: .85; margin-bottom: .5rem; }
.gallery-empty p { font-size: 1.1rem; font-weight: 500; }
.gallery-empty-sub { color: var(--muted); font-weight: 300; font-size: .95rem !important; max-width: 40ch; }
.gallery-empty .btn { margin-top: .8rem; }

/* ---------- Llamada final ---------- */
.gallery-cta {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  display: grid; justify-items: center; gap: 1.6rem;
  text-align: center;
}
.gallery-cta h2 {
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

/* ---------- Visor a pantalla completa ---------- */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: rgba(0, 0, 0, .93);
  animation: lbIn .3s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) {
  .lightbox { background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); }
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1);
}
.lb-btn {
  position: absolute;
  z-index: 2;
  width: 46px; height: 46px;
  display: grid; place-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-2);
  color: #fff;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-pos {
  position: absolute;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--muted);
}

@media (min-width: 720px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 9vw; gap: .8rem; }
  .clip-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}
@media (min-width: 1280px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 7vw; }
  .clip-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   7. EFECTOS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: un elemento con .reveal y data-split nunca debe quedar invisible */
.reveal[data-split] { opacity: 1; transform: none; }
/* Defensa: si el JS no llega a arrancar, el contenido se muestra igualmente */
html:not(.is-ready) .reveal { animation: revealSafety .01s 6s forwards; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.no-js .reveal, .no-js [data-anim] { opacity: 1 !important; transform: none !important; filter: none !important; }
.no-js .splash { display: none; }

.svc.reveal:nth-child(2) { transition-delay: .05s; }
.svc.reveal:nth-child(3) { transition-delay: .1s; }
.svc.reveal:nth-child(4) { transition-delay: .15s; }
.svc.reveal:nth-child(5) { transition-delay: .2s; }
.svc.reveal:nth-child(6) { transition-delay: .25s; }
.stat.reveal:nth-child(2), .project.reveal:nth-child(2) { transition-delay: .1s; }
.stat.reveal:nth-child(3), .project.reveal:nth-child(3) { transition-delay: .2s; }
.gr-carousel.reveal { transition-delay: .12s; }

/* Entrada del hero */
[data-anim] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
}
/* Seguridad: si el JS fallara, el contenido aparece igualmente */
html:not(.is-ready) [data-anim] { animation: animSafety .01s 5s forwards; }
@keyframes animSafety { to { opacity: 1; transform: none; filter: none; } }
.is-ready [data-anim] {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
}
.is-ready [data-anim="1"] { transition-delay: .05s; }
.is-ready [data-anim="2"] { transition-delay: .18s; }
.is-ready [data-anim="3"] { transition-delay: .26s; }
.is-ready [data-anim="4"] { transition-delay: .34s; }
.is-ready [data-anim="5"] { transition-delay: .42s; }
.is-ready [data-anim="6"] { transition-delay: .56s; }
.is-ready [data-anim="7"] { transition-delay: .68s; }
.is-ready [data-anim="8"] { transition-delay: .9s; }

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
@media (min-width: 540px) {
  :root { --gutter: 2rem; }
}

@media (min-width: 720px) {
  .ugc-grid { grid-template-columns: repeat(3, 1fr); }
  .ugc-item:nth-child(2) { margin-top: 2.5rem; }
  .ugc-item:nth-child(3) { margin-top: 5rem; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .member:nth-child(2n) { margin-top: 3.5rem; }

  .gr-head {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-inline: 2.2rem;
  }
  .gr-actions { align-items: flex-end; }
  .gr-nav { display: grid; }
}

@media (min-width: 1080px) {
  .gr-card { width: min(364px, 32%); }
}

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stat { position: relative; }
  .stat + .stat::before {
    content: "";
    position: absolute; left: 0; top: 12%;
    width: 1px; height: 62%;
    background: var(--line);
  }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { flex-direction: column; align-items: flex-start; gap: 1.6rem; padding: 1.8rem; }
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .footer-tag { justify-self: center; }
  .footer-copy { justify-self: end; }
}

@media (min-width: 960px) {
  :root { --gutter: 2.6rem; --nav-h: 82px; }
  .nav-cta { display: inline-flex; }
  .services .section-title { max-width: 20ch; }
  .svc { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr) 3rem; align-items: center; }
  .svc-desc { grid-column: 3; grid-row: 1; text-align: left; }
  .svc-arrow { grid-column: 4; grid-row: 1; justify-self: end; }
  .phones { grid-template-columns: repeat(2, 1fr); gap: 4.5rem clamp(2rem, 4vw, 3.5rem); align-items: start; }
  /* La segunda columna baja un poco: da ritmo y evita el bloque cuadrado */
  .project:nth-child(2n) { margin-top: 5rem; }
  .phone-frame { width: min(304px, 64vw); }
}

@media (min-width: 1280px) {
  :root { --gutter: 4rem; }
  .phones { gap: 5rem clamp(3rem, 5vw, 5rem); }
  .phone-frame { width: min(300px, 64vw); }
}

/* En monitores grandes el contenido no crece más: solo aumenta el margen */
@media (min-width: 1600px) {
  :root { --gutter: 6rem; }
}

/* =============================================================
   9. REDUCED MOTION — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .hero-glow { animation: none; }
  .hero-scroll-line::after { animation: none; opacity: .4; }
  .marquee-track { animation-duration: 90s; }
}
