/* ════════════════════════════════════════════════════════════════════════════
   RAÚL BECAS Y AYUDAS
   Hoja de estilos única. Paleta tomada de su identidad visual:
   azul eléctrico, naranja y azul marino profundo sobre papel cálido.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ink:          #070a16;
  --ink-soft:     #0d1327;
  --ink-line:     rgba(255, 255, 255, .12);

  --blue:         #2f6bff;
  --blue-bright:  #5b9bff;
  --blue-deep:    #1440ad;
  --accent:       #f26a21;
  --accent-soft:  #ff9457;

  --paper:        #fbfaf7;
  --paper-2:      #f3f0ea;
  --paper-3:      #eae5db;

  --text:         #13161f;
  --text-2:       #4a5164;
  --text-3:       #5e6577;
  --line:         rgba(19, 22, 31, .12);

  --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --shell:        1200px;
  --radius:       18px;
  --radius-lg:    28px;

  --shadow-sm:    0 1px 2px rgba(19, 22, 31, .05), 0 6px 16px -10px rgba(19, 22, 31, .18);
  --shadow-md:    0 2px 4px rgba(19, 22, 31, .04), 0 18px 44px -22px rgba(19, 22, 31, .32);
  --shadow-blue:  0 20px 60px -26px rgba(47, 107, 255, .55);

  --ease:         cubic-bezier(.22, .68, .32, 1);

  /* Estrella de David maciza, usada como ornamento de marca en toda la web.
     Va como máscara para que herede el color del elemento (currentColor). */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 15.18 6.5H21.53L18.35 12L21.53 17.5H15.18L12 23L8.82 17.5H2.47L5.65 12L2.47 6.5H8.82Z'/%3E%3C/svg%3E");
}

/* Utilidad: cualquier elemento con estas propiedades se dibuja como estrella */
.star-dot,
.section-kicker::before,
.eyebrow-dot,
.ticker-dot,
.portrait-caption-line,
.about-photo-line,
.community-card h3::before,
.pull-quote::after,
.collab-commit-quote::before {
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  background-color: currentColor;
  background-image: none;
  flex: none;
}

/* ── 2. Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ── 3. Cabecera ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(7, 10, 22, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
}

/* Marca: estrella de David sobre pastilla azul */
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-bright);
  background: linear-gradient(150deg, rgba(47, 107, 255, .24), rgba(47, 107, 255, .05));
  border: 1px solid rgba(91, 155, 255, .34);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.brand-mark svg { width: 25px; height: 25px; }

.brand:hover .brand-mark {
  color: #fff;
  background: linear-gradient(150deg, rgba(47, 107, 255, .5), rgba(47, 107, 255, .16));
  border-color: rgba(91, 155, 255, .65);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand-text span {
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav a {
  position: relative;
  padding: .5rem .8rem;
  font-size: .89rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .74);
  border-radius: 9px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .22rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav .nav-cta {
  margin-left: .5rem;
  padding: .55rem 1.15rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--blue-bright); color: #fff; }
.nav .nav-cta.is-active::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  place-items: center;
}
.nav-toggle-bars { display: block; width: 20px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars i:first-child { margin-bottom: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars i:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── 4. Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  padding-top: clamp(7rem, 13vh, 9.5rem);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute;
  z-index: -2;
  top: -22%;
  right: -14%;
  width: min(940px, 105vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 107, 255, .42), rgba(47, 107, 255, .12) 42%, transparent 68%);
  filter: blur(10px);
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  left: -18%;
  bottom: -32%;
  width: min(620px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 106, 33, .2), transparent 66%);
  filter: blur(8px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.6rem;
  padding: .42rem .95rem .42rem .7rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .8);
}
.eyebrow-dot {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(3rem, 8.4vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .95;
  margin-bottom: 1.5rem;
}
.hero-title-line {
  display: block;
  color: transparent;
  background: linear-gradient(96deg, var(--blue-bright) 8%, #a9c8ff 55%, var(--blue-bright) 92%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-quote {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.9vw, 1.5rem);
  line-height: 1.42;
  font-weight: 400;
  color: rgba(255, 255, 255, .94);
  max-width: 30ch;
  margin-bottom: 1.3rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--accent);
}
.hero-quote em {
  font-style: italic;
  color: var(--accent-soft);
}

.hero-lede {
  max-width: 46ch;
  color: rgba(255, 255, 255, .66);
  font-size: 1.02rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.6rem;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-line);
}
.hero-social-label {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  font-weight: 600;
}

/* Retrato */
.hero-portrait {
  margin: 0;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.portrait-frame {
  position: relative;
  border-radius: clamp(20px, 3vw, 30px);
  overflow: hidden;
  background: #05060d;
  border: 1px solid rgba(91, 155, 255, .3);
  box-shadow: var(--shadow-blue), inset 0 0 0 1px rgba(255, 255, 255, .04);
  isolation: isolate;
}
.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  object-position: 50% 22%;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(7, 10, 22, .78), transparent);
  pointer-events: none;
}
.portrait-halo {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(47, 107, 255, .55), transparent 62%);
  filter: blur(28px);
}

.portrait-caption {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.1rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
}
.portrait-caption-line {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Ticker */
.ticker {
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
  padding: .85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}
.ticker-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  color: var(--accent);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 5. Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .88rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease),
              box-shadow .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn svg { width: 19px; height: 19px; transition: transform .22s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(47, 107, 255, .8);
}
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 18px 38px -14px rgba(47, 107, 255, .9); }

.btn-ghost {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }

.btn-block { width: 100%; }

/* Chips de red social */
.social-inline {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.social-chip {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .22s var(--ease), background .22s var(--ease),
              color .22s var(--ease), border-color .22s var(--ease);
}
.social-chip svg { width: 19px; height: 19px; }
.social-chip:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--net-color, var(--blue));
  border-color: transparent;
}

[data-net='instagram'] { --net-color: #d62976; --net-glow: 214, 41, 118; }
[data-net='tiktok']    { --net-color: #111827; --net-glow: 37, 244, 238; }
[data-net='youtube']   { --net-color: #ff0033; --net-glow: 255, 0, 51; }
[data-net='x']         { --net-color: #0b0b0f; --net-glow: 90, 100, 120; }
[data-net='telegram']  { --net-color: #229ed9; --net-glow: 34, 158, 217; }
[data-net='linkedin']  { --net-color: #0a66c2; --net-glow: 10, 102, 194; }

/* ── 6. Secciones genéricas ───────────────────────────────────────────────── */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 11vh, 7.5rem);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 52rem; }
.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  max-width: none;
}
.section-head-center {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section-kicker::before {
  content: '';
  width: 13px;
  height: 13px;
  color: var(--accent);
}
.section-kicker span {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: 0;
  color: var(--accent);
  padding-right: .65rem;
  border-right: 1px solid var(--line);
}
.section-kicker-light { color: rgba(255, 255, 255, .5); }
.section-kicker-light span { border-right-color: rgba(255, 255, 255, .2); }
.section-head-center .section-kicker { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  letter-spacing: -.03em;
}

.section-intro {
  margin: 1.25rem 0 0;
  color: var(--text-2);
  font-size: 1.03rem;
  max-width: 44ch;
}
.section-intro-center { margin-inline: auto; }
.section-community .section-intro { color: rgba(255, 255, 255, .68); }
.section-contact .contact-lede { color: rgba(255, 255, 255, .7); }

/* Animación de entrada */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── 7. Quién es ───────────────────────────────────────────────────────────── */
.section-about { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.25rem, 6vw, 4.5rem);
  align-items: start;
}

.about-text .lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.about-text p { color: var(--text-2); }

.pull-quote {
  margin: 2.25rem 0 0;
  padding: 1.75rem 1.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.pull-quote::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--blue-bright), var(--accent));
}
.pull-quote::after {
  content: '';
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  width: 16px;
  height: 16px;
  color: rgba(91, 155, 255, .5);
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.4;
  font-style: italic;
}
.pull-quote figcaption {
  margin-top: .9rem;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  font-weight: 600;
}

/* Columna derecha: retrato + tarjeta de principios */
.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-photo {
  margin: 0;
  /* El original tiene 516 px de ancho: por encima de este tamaño se vería
     blando. Limitarlo mantiene la foto nítida en pantallas de alta densidad. */
  max-width: 330px;
  align-self: flex-start;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.about-photo-frame::after {
  /* Velo azul muy sutil para unificar las dos fotos con la paleta */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(47, 107, 255, .1), transparent 55%);
  pointer-events: none;
}
.about-photo-frame img {
  width: 100%;
  /* Vertical y algo más cerrado: menos cielo, más protagonista */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

.about-photo figcaption {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .95rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.about-photo-line {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.about-aside {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.about-aside-title {
  font-size: .76rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.principles li {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.principles li:first-of-type { border-top: 0; padding-top: 0; }
.principles li:last-of-type { padding-bottom: 0; }
.principle-num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  flex: none;
  width: 1.8rem;
  padding-top: .18rem;
  letter-spacing: .04em;
}
.principles h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}
.principles p {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── 8. Qué hace ───────────────────────────────────────────────────────────── */
.section-work {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.work-grid {
  display: grid;
  /* 6 tarjetas: 3 columnas exactas para que no queden celdas vacías */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-card {
  position: relative;
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.15rem);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.work-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.work-card:hover { background: #fff; }
.work-card:hover::before { transform: scaleX(1); }

.work-num {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-3);
}
.work-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 1.15rem 0 1.35rem;
  border-radius: 13px;
  color: var(--blue);
  background: linear-gradient(150deg, rgba(47, 107, 255, .13), rgba(47, 107, 255, .04));
  border: 1px solid rgba(47, 107, 255, .18);
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.work-icon svg { width: 24px; height: 24px; }
.work-card:hover .work-icon {
  color: var(--accent);
  background: linear-gradient(150deg, rgba(242, 106, 33, .14), rgba(242, 106, 33, .04));
  border-color: rgba(242, 106, 33, .24);
}
.work-card h3 {
  font-size: 1.2rem;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.work-card p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.58;
}

.work-note {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  background: rgba(47, 107, 255, .06);
  border: 1px solid rgba(47, 107, 255, .16);
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.55;
}
.work-note svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: .12rem; }

/* ── 9. Comunidad ──────────────────────────────────────────────────────────── */
.section-community {
  position: relative;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.community-glow {
  position: absolute;
  z-index: -1;
  top: -40%;
  left: 50%;
  translate: -50% 0;
  width: min(1000px, 130vw);
  aspect-ratio: 1.5;
  background: radial-gradient(ellipse at 50% 50%, rgba(47, 107, 255, .3), transparent 66%);
  filter: blur(12px);
}
.section-community .section-title { color: #fff; }

/* Sin cifras configuradas, el atributo `hidden` debe ganar a `display: grid` */
.stats[hidden] { display: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.stat {
  background: rgba(255, 255, 255, .035);
  padding: 1.9rem 1.4rem;
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(150deg, #fff, var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
}
.stat-label {
  display: block;
  margin-top: .7rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .02em;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.community-card {
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--ink-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 155, 255, .4);
  background: rgba(255, 255, 255, .07);
}
.community-card h3 {
  font-size: 1.18rem;
  margin-bottom: .65rem;
  position: relative;
  padding-top: 1.3rem;
}
.community-card h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  color: var(--accent);
}
.community-card p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
}

/* ── 9b. Disponibilidad (portada) ─────────────────────────────────────────── */
.hero-availability[hidden],
.hero-location[hidden] { display: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.6rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .5rem 1rem .5rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
}
.hero-location svg { width: 16px; height: 16px; flex: none; color: var(--accent-soft); }

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .5rem 1rem .5rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 155, 255, .32);
  background: rgba(47, 107, 255, .12);
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
}
.availability-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #4ade80;
}
.availability-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, .5);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(.7); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── 9c. Colaboraciones ───────────────────────────────────────────────────── */
.section-collab {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.15rem;
}

.collab-card {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 1.9rem);
  transition: background .3s var(--ease);
}
.collab-card:hover { background: #fff; }

.collab-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  color: var(--blue);
  background: rgba(47, 107, 255, .1);
  border: 1px solid rgba(47, 107, 255, .18);
}
.collab-icon svg { width: 22px; height: 22px; }

.collab-card h3 {
  font-size: 1.12rem;
  letter-spacing: -.02em;
  margin-bottom: .55rem;
}
.collab-card p {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.58;
}

/* Panel: proceso + compromiso */
.collab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.collab-process,
.collab-commit {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.25rem);
}
.collab-commit {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.collab-panel-title {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.6rem;
}
.collab-commit .collab-panel-title { color: rgba(255, 255, 255, .55); }

.process li {
  display: flex;
  gap: 1.15rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.process li:first-child { border-top: 0; padding-top: 0; }
.process li:last-child { padding-bottom: 0; }
.process-num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  flex: none;
  width: 2rem;
  padding-top: .18rem;
}
.process h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}
.process p {
  font-size: .93rem;
  color: var(--text-2);
  line-height: 1.55;
}

.collab-commit-quote {
  position: relative;
  padding-top: 1.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.4;
  margin-bottom: .9rem;
}
.collab-commit-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.collab-commit-note {
  font-size: .9rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.collab-commit .btn { margin-top: auto; }

/* ── 9d. Credenciales profesionales ───────────────────────────────────────── */
.credentials[hidden] { display: none; }

.credentials {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.credentials li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 1.25rem;
  background: var(--paper);
}
.cred-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cred-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

/* ── 9e. Pasos del proceso ────────────────────────────────────────────────── */
.steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.steps-grid .community-card h3 { padding-top: 0; }
.steps-grid .community-card h3::before { content: none; }

.step-num {
  display: block;
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: transparent;
  background: linear-gradient(150deg, var(--blue-bright), rgba(91, 155, 255, .45));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── 10. Reseñas ──────────────────────────────────────────────────────────── */
.section-reviews[hidden] { display: none; }

.section-reviews { background: var(--paper); }

.demo-badge[hidden] { display: none; }

.demo-badge {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 1.25rem 0 0;
  padding: .8rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed rgba(242, 106, 33, .5);
  background: rgba(242, 106, 33, .08);
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 46ch;
}
.demo-badge svg { width: 19px; height: 19px; flex: none; margin-top: .1rem; color: var(--accent); }
.demo-badge strong { color: var(--text); font-weight: 650; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.review-card::before {
  content: '';
  position: absolute;
  top: clamp(1.6rem, 3vw, 2.1rem);
  right: clamp(1.6rem, 3vw, 2.1rem);
  width: 15px;
  height: 15px;
  color: rgba(47, 107, 255, .32);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  background-color: currentColor;
}

.review-card blockquote {
  margin: 0;
  flex: 1;
  padding-right: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--text);
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.review-name { font-weight: 650; font-size: .95rem; }
.review-detail { font-size: .85rem; color: var(--text-3); }

/* ── 10b. Redes sociales (estilos conservados para los iconos del pie) ────── */
.section-social { background: var(--paper); }

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.social-card { position: relative; }
.social-card > a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 1.95rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.social-card > a:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--net-glow, 47, 107, 255), .45);
  box-shadow: 0 26px 50px -26px rgba(var(--net-glow, 47, 107, 255), .55);
}

.social-card-glow {
  position: absolute;
  z-index: -1;
  top: -60%;
  right: -30%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--net-glow, 47, 107, 255), .22), transparent 68%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.social-card > a:hover .social-card-glow { opacity: 1; }

.social-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--net-color, var(--blue));
  background: rgba(var(--net-glow, 47, 107, 255), .1);
  border: 1px solid rgba(var(--net-glow, 47, 107, 255), .2);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.social-card-icon svg { width: 24px; height: 24px; }
.social-card > a:hover .social-card-icon {
  transform: scale(1.06);
  color: #fff;
  background: var(--net-color, var(--blue));
  border-color: transparent;
}

.social-card-body { display: block; flex: 1; }
.social-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.social-card-handle {
  display: block;
  margin-top: .15rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-3);
}
.social-card-desc {
  display: block;
  margin-top: .75rem;
  font-size: .93rem;
  color: var(--text-2);
  line-height: 1.55;
}

.social-card-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .89rem;
  font-weight: 600;
  color: var(--text);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.social-card-cta svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.social-card > a:hover .social-card-cta { color: var(--net-color, var(--blue)); }
.social-card > a:hover .social-card-cta svg { transform: translate(3px, -3px); }

.social-empty {
  padding: 2.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-3);
}

/* ── 11. Preguntas frecuentes ─────────────────────────────────────────────── */
.section-faq {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 62rem;
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem .25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -.018em;
  transition: color .22s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }

.faq-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  translate: -50% -50%;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(180deg);
}
.faq-item[open] .faq-icon::after { opacity: 0; }

.faq-answer {
  padding: 0 3.5rem 1.7rem .25rem;
  max-width: 68ch;
  color: var(--text-2);
  font-size: .98rem;
  animation: faqIn .4s var(--ease);
}
.faq-answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
}
.faq-answer a:hover { color: var(--accent); }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ── 12. Contacto ─────────────────────────────────────────────────────────── */
.section-contact {
  background: var(--paper-2);
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  padding: clamp(1.9rem, 5vw, 3.6rem);
  border-radius: clamp(24px, 4vw, 36px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 90px -50px rgba(7, 10, 22, .8);
}
.contact-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -50%;
  left: -12%;
  width: min(680px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .34), transparent 65%);
  filter: blur(10px);
}
.contact-panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -55%;
  right: -10%;
  width: min(520px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 106, 33, .22), transparent 66%);
  filter: blur(10px);
}

.contact-intro .section-title { color: #fff; margin-bottom: 1.1rem; }
.contact-lede { max-width: 38ch; }

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.75rem 0;
}
.contact-tags li {
  padding: .38rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  font-size: .8rem;
  color: rgba(255, 255, 255, .8);
}

.contact-facts li[hidden] { display: none; }

.contact-facts {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0 0 1.6rem;
}
.contact-facts li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .74);
}
.contact-facts svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: .1rem;
  color: var(--blue-bright);
}
.contact-facts strong {
  display: block;
  font-weight: 600;
  color: #fff;
}
.contact-facts em {
  display: block;
  margin-top: .1rem;
  font-style: normal;
  font-size: .84rem;
  color: rgba(255, 255, 255, .58);
}

.footer-links[hidden] { display: none; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
  width: 100%;
  margin-top: .35rem;
}
.footer-links a {
  color: rgba(255, 255, 255, .62);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: #fff; }

.contact-direct {
  font-size: .92rem;
  color: rgba(255, 255, 255, .62);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
}
.contact-direct a {
  color: var(--blue-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  word-break: break-word;
}
.contact-direct a:hover { color: var(--accent-soft); }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-full, .form-footer { grid-column: 1 / -1; }

.field label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  /* Una sola línea siempre: mantiene alineados los campos de la misma fila */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem 1rem;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: inherit;
  font-size: .96rem;
  transition: border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .34); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .2);
}
.field .is-invalid {
  border-color: #ff7a7a;
  box-shadow: 0 0 0 4px rgba(255, 122, 122, .16);
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
}
.select-wrap select option { background: var(--ink-soft); color: #fff; }
.select-wrap svg {
  position: absolute;
  right: .95rem;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, .6);
  pointer-events: none;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: .3rem;
}
.form-note {
  margin: 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .58);
  text-align: center;
}
.form-note.is-error { color: #ffb3b3; }

/* ── 13. Pie ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #04060f;
  color: #fff;
  padding-top: clamp(3.5rem, 8vh, 5rem);
  border-top: 1px solid var(--ink-line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.25rem, 6vw, 4rem);
  padding-bottom: 3rem;
}

.brand-footer { margin-bottom: 1.15rem; }
.footer-tagline {
  max-width: 32ch;
  font-size: .95rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1.5rem;
}
.footer-location[hidden] { display: none; }

.footer-location {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.35rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .62);
}
.footer-location svg { width: 17px; height: 17px; flex: none; color: var(--accent-soft); }

.social-inline-footer .social-chip { width: 40px; height: 40px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-nav > div { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav h3 {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .25rem;
}
.footer-nav a {
  font-size: .93rem;
  color: rgba(255, 255, 255, .68);
  width: fit-content;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-nav a:hover { color: #fff; transform: translateX(3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--ink-line);
  font-size: .8rem;
  color: rgba(255, 255, 255, .56);
}
.footer-bottom p { margin: 0; }
.footer-legal { max-width: 56ch; text-align: right; }

/* ── 14. Adaptación a pantallas ───────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .work-grid, .social-grid, .community-grid,
  .collab-grid, .steps-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collab-panel { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  /* Apiladas: el retrato pasa a acompañar al texto, no a dominarlo */
  .about-side { flex-direction: row; align-items: flex-start; }
  .about-side > * { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }

  /* Marca y botón deben quedar por encima del panel desplegable:
     el logo sigue visible y el botón de cerrar se puede pulsar. */
  .nav-toggle { display: grid; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }

  .nav {
    position: fixed;
    z-index: 1;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 5.5rem 1.25rem 1.75rem;
    background: rgba(7, 10, 22, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ink-line);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .38s var(--ease), opacity .3s var(--ease), visibility .38s;
  }
  body.menu-open .nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a {
    padding: .9rem .75rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    border-radius: 0;
  }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { color: var(--blue-bright); }
  .nav .nav-cta {
    margin: 1rem 0 0;
    padding: .95rem;
    text-align: center;
    justify-content: center;
    border-bottom: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-portrait {
    grid-row: 1;
    max-width: 320px;
    margin-bottom: .5rem;
    justify-self: start;
  }
  .portrait-caption { display: none; }

  .section-head-split { grid-template-columns: 1fr; align-items: start; }
  .section-intro { max-width: 52ch; }

  .contact-panel { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

@media (max-width: 700px) {
  .work-grid, .social-grid, .community-grid,
  .collab-grid, .steps-grid, .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-text span { font-size: .62rem; letter-spacing: .14em; }
  .hero { padding-top: 6.5rem; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-portrait { max-width: 100%; }
  /* Retrato más bajo en móvil para que el nombre entre en la primera pantalla */
  .portrait-frame img { aspect-ratio: 4 / 3; object-position: 50% 26%; }

  .contact-form { grid-template-columns: 1fr; }
  .work-grid, .social-grid, .community-grid { grid-template-columns: 1fr; }
  .about-side { flex-direction: column; }
  .faq-answer { padding-right: 1rem; }
  .work-grid, .stats { border-radius: 20px; }
  .footer-nav { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── 15. Preferencias del sistema ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

@media print {
  .site-header, .nav-toggle, .ticker, .hero-glow, .community-glow { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section-community, .contact-panel, .site-footer { background: #fff !important; color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
