/* ==========================================================================
   Xquenda — Soluciones Tecnológicas
   Sistema de diseño: tema oscuro premium, acento rojo de marca
   ========================================================================== */

:root {
  /* Color */
  --bg: #0c0e12;
  --surface: #14171d;
  --surface-2: #1b1f27;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f5;
  --muted: #a2abb8;
  --brand: #e03131;
  --brand-strong: #cf2929;
  --brand-deep: #9c0202;
  --brand-soft: rgba(224, 49, 49, 0.12);
  --light-bg: #f4f5f7;
  --light-text: #191c22;
  --light-muted: #555e6b;

  /* Type */
  --font-heading: "Prompt", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Rhythm */
  --radius: 16px;
  --radius-sm: 10px;
  --section-y: clamp(4rem, 9vw, 7rem);
  --container: 1160px;
  --header-h: 76px;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

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

ul { padding-left: 1.2em; }

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

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

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-strong);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(12, 14, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(12, 14, 18, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--brand-soft);
}

.main-nav .btn {
  margin-left: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 25px -10px rgba(207, 41, 41, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(207, 41, 41, 0.75);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand-soft);
}

.btn-light {
  background: #fff;
  color: var(--light-text);
}

.btn-light:hover {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Hero (portada)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(4rem, 10vw, 8rem)) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 420px at 82% 8%, rgba(207, 41, 41, 0.22), transparent 65%),
    radial-gradient(560px 380px at 8% 92%, rgba(156, 2, 2, 0.16), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 20%, #000 30%, transparent 75%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.hero h1 {
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #ff6b6b, var(--brand-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hero-meta .item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}

.hero-meta .item > span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Hero interior (páginas)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(620px 320px at 85% 0%, rgba(207, 41, 41, 0.16), transparent 65%);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
}

.page-hero .lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

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

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Grids y tarjetas
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 49, 49, 0.45);
  box-shadow: var(--shadow-card);
}

.card h3,
.card h4 {
  margin-bottom: 0.45em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.card .icon svg {
  width: 26px;
  height: 26px;
}

/* Lista con palomitas */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--brand-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e03131" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center/60% no-repeat;
}

/* --------------------------------------------------------------------------
   Misión / Visión
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split .media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.split .media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stat-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
  color: #fff;
  margin-top: 1.4rem;
}

.stat-chip strong {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-chip > span {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Muro de clientes (banda clara)
   -------------------------------------------------------------------------- */
.clients-band {
  background: var(--light-bg);
  color: var(--light-text);
  padding-block: var(--section-y);
}

.clients-band .section-head p {
  color: var(--light-muted);
}

.clients-band .eyebrow {
  color: var(--brand-strong);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.logo-wall .logo-item {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.logo-wall .logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -14px rgba(25, 28, 34, 0.25);
}

.logo-wall img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.75);
  transition: filter 0.25s;
}

.logo-wall .logo-item:hover img {
  filter: grayscale(0) opacity(1);
}

/* Logo blanco sobre transparente: se invierte para fondo claro */
.logo-wall .invert img {
  filter: invert(1) grayscale(1) opacity(0.75);
}

.logo-wall .invert:hover img {
  filter: invert(1) grayscale(1) opacity(1);
}

/* --------------------------------------------------------------------------
   Portafolio
   -------------------------------------------------------------------------- */
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 49, 49, 0.45);
  box-shadow: var(--shadow-card);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card .body {
  padding: 1.4rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.project-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.4rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3em;
}

.project-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Tecnologías
   -------------------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.tech-item:hover {
  border-color: rgba(224, 49, 49, 0.45);
  transform: translateY(-3px);
}

.tech-item:hover .tech-ico {
  background: var(--brand);
}

.tech-ico {
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--muted);
  mask: var(--i) center / contain no-repeat;
  -webkit-mask: var(--i) center / contain no-repeat;
  transition: background 0.25s;
}

.tech-item span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Proceso (pasos numerados)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 2rem 4rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 2.9rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--border-strong);
}

.steps h3 {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.35rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   FAQ (acordeón nativo)
   -------------------------------------------------------------------------- */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 0.8rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq details[open] {
  border-color: rgba(224, 49, 49, 0.45);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  min-height: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>') center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand-strong) 0%, var(--brand-deep) 90%);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.cta-banner > * {
  position: relative;
}

.cta-banner h2 {
  margin-bottom: 0.35em;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   Formulario de contacto
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.field label .req {
  color: var(--brand);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23a2abb8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
  cursor: pointer;
}

.field select:invalid {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field .error {
  display: none;
  color: #ff8787;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--brand);
}

.field.invalid .error {
  display: block;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.contact-aside .card + .card {
  margin-top: 1.1rem;
}

.contact-aside a {
  color: var(--brand);
  font-weight: 600;
}

.contact-aside a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #08090c;
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-grid a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-about img {
  height: 56px;
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--muted);
  max-width: 34ch;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand-soft);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Prosa (política de privacidad, historia)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1.02rem;
}

.prose .meta {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
}

/* --------------------------------------------------------------------------
   Animaciones de entrada
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    background: rgba(12, 14, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .main-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .main-nav .btn {
    margin: 0.5rem 0 0;
  }

  .grid-2,
  .grid-3,
  .split {
    grid-template-columns: 1fr;
  }

  .split .media {
    order: -1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.5rem; }
}
