:root {
  color-scheme: dark;

  /* Color */
  --bg: #070c13;
  --surface: #0b131e;
  --surface-2: #0e1825;
  --border: #1d2c40;
  --border-strong: #2a3d57;
  --text: #f3f5fc;
  --muted: #b0bdd2;
  --soft: #94a6c0;
  --placeholder: #6f7f96;

  --brand: #b594ff;
  --brand-soft: #b594ff1f;
  --brand-line: #b594ff40;

  --link: #568dfd;
  --link-hover: #8fb2ff;

  --status: #4ce2df;
  --status-soft: #4ce2df14;
  --status-line: #4ce2df3d;

  --gradient: linear-gradient(
    110deg,
    #792ee3,
    #5b46e4 50%,
    #326fcf
  );

  --gradient-text: linear-gradient(
    100deg,
    #b37afa 5%,
    #9171f6 47%,
    #568dfd 100%
  );

  /* Tipografía */
  --font:
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  --font-mono:
    'SFMono-Regular',
    Consolas,
    'Liberation Mono',
    Menlo,
    monospace;

  --fs-h1: clamp(34px, 12px + 3vw, 56px);
  --fs-h2: clamp(28px, 24px + .9vw, 36px);
  --fs-h3: 17px;
  --fs-lead: clamp(17px, 15px + .35vw, 20px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 12px;
  --fs-metric: clamp(20px, 19.2px + .22vw, 22px);

  /* Espaciado */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --section-y: clamp(56px, 1.8vw + 40px, 72px);

  /* Rejilla */
  --max-width: 1320px;
  --stat-value-width: 96px;
  --gutter: clamp(24px, 3vw, 48px);
  --grid-gap: 24px;
  --header-height: 64px;
  --radius: 12px;
}

@media (max-width: 767px) {
  :root {
    --gutter: 24px;
    --section-y: 48px;
    --header-height: 64px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top:
    calc(
      var(--header-height) + var(--space-3)
    );

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;

  font-optical-sizing: auto;

  background: var(--bg);
  color: var(--text);

  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 880px;

  z-index: -1;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 71% 22%,
      #2425621c,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 7% 35%,
      #12313213,
      transparent 44%
    );
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button {
  color: inherit;
  font: inherit;

  cursor: pointer;

  border: 0;
  background: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

svg {
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: #7554bb;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;

  border-radius: 4px;
}

.icon {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

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

.skip-link {
  position: fixed;

  z-index: 100;

  top: 8px;
  left: 12px;

  padding: 12px 20px;

  background: #fff;
  color: #111;

  border-radius: 6px;

  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* =========================================================
   CONTENEDOR
   ========================================================= */

.container {
  width:
    calc(
      100% - 2 * var(--gutter)
    );

  max-width: var(--max-width);

  margin-inline: auto;
}

.grid-12 {
  display: grid;

  grid-template-columns:
    repeat(
      12,
      minmax(0, 1fr)
    );

  gap: var(--grid-gap);
}

/* =========================================================
   ETIQUETAS
   ========================================================= */

.eyebrow,
.project-state,
.process-num,
.process-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;

  line-height: 1.4;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;

  margin-bottom: var(--space-2);

  color: var(--soft);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;

  top: 0;

  z-index: 40;

  background: #080e18e8;

  border-bottom: 1px solid #25334a;

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: var(--header-height);

  display: flex;

  align-items: center;

  gap: var(--space-4);
}

.brand {
  flex-shrink: 0;

  line-height: 1.15;
}

.brand-name {
  display: block;

  color: #f8f9ff;

  font-size: 18px;
  font-weight: 700;

  letter-spacing: -.02em;
}

.brand-role {
  display: block;

  margin-top: 4px;

  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;

  letter-spacing: .08em;

  color: var(--soft);
}

.desktop-nav {
  margin-left: auto;
}

.nav-links {
  display: flex;

  gap: var(--space-4);

  align-items: center;
}

.nav-links a {
  padding-block: 12px;

  font-size: 14px;
  font-weight: 500;

  color: var(--muted);

  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;

  align-items: center;

  gap: var(--space-2);
}

.menu-button {
  display: none;

  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;

  color: #dbe5fb;

  background: #101a2a;

  border: 1px solid #26364d;
  border-radius: 8px;
}

.mobile-panel {
  border-top: 1px solid var(--border);

  padding:
    var(--space-2)
    var(--gutter)
    var(--space-3);

  background: #0a1220;
}

.mobile-panel a {
  display: block;

  padding: 12px 4px;

  font-size: 16px;
}

.mobile-panel .button {
  display: flex;

  margin-top: var(--space-1);

  padding-inline: var(--space-3);
}

/* =========================================================
   BOTONES
   ========================================================= */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  min-height: 44px;

  padding: 10px 20px;

  border:
    1px solid transparent;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;

  line-height: 1.3;

  transition:
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.button-primary {
  color: #fff;

  background: var(--gradient);

  box-shadow:
    0 7px 26px #6944ed20,
    inset 0 1px 0 #ffffff15;

  border-color: #967eff3b;
}

.button-primary:hover {
  box-shadow:
    0 8px 26px #714ff344,
    inset 0 1px 0 #ffffff20;

  transform: translateY(-2px);
}

.button-secondary {
  color: #f0f3fb;

  background: #080d18ac;

  border-color: #637fa8;
}

.button-secondary:hover {
  background: #17233b;

  border-color: #a69cff;

  transform: translateY(-2px);
}

.button-lg {
  min-height: 56px;

  padding-inline: var(--space-4);

  font-size: 16px;
}

.header-cta {
  min-height: 44px;

  padding: 10px 18px;

  font-size: 14px;
}

/* =========================================================
   ENLACES
   ========================================================= */

.section-link,
.text-link,
.contact-action {
  display: inline-flex;

  align-items: center;

  gap: var(--space-1);

  color: var(--link);

  font-weight: 500;

  transition: color .2s ease;
}

.section-link:hover,
.text-link:hover,
.contact-action:hover {
  color: var(--link-hover);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  isolation: isolate;

  overflow: hidden;
  overflow: clip;
}

.hero-inner {
  align-items: center;

  padding-top:
    clamp(
      40px,
      5vw,
      80px
    );
}

.hero-copy {
  grid-column: 1 / span 7;

  padding-bottom:
    clamp(
      32px,
      3vw,
      48px
    );
}

h1 {
  margin-top: 0;

  font-size: var(--fs-h1);
  font-weight: 700;

  line-height: 1.05;

  letter-spacing: -.02em;

  text-wrap: balance;
}

.gradient-text {
  display: inline-block;

  color: #a99aff;

  background: var(--gradient-text);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 34em;

  margin-top: var(--space-2);

  color: var(--muted);

  font-size: var(--fs-lead);

  line-height: 1.6;
}

.hero-description strong {
  font-weight: 600;

  color: var(--text);
}

.hero-description-mobile {
  display: none;
}

.hero-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: var(--space-2);

  margin-top: var(--space-3);
}

.hero-meta {
  display: flex;

  flex-wrap: wrap;

  gap:
    var(--space-1)
    var(--space-3);

  margin-top: var(--space-3);

  color: var(--soft);

  font-size: var(--fs-small);
}

.hero-meta > span {
  display: flex;

  align-items: center;

  gap: var(--space-1);
}

.hero-meta .icon {
  width: 18px;
  height: 18px;

  color: var(--brand);
}

.hero-visual {
  position: relative;

  grid-column: 8 / span 5;

  align-self: center;

  justify-self: end;

  width: 100%;

  max-width: 500px;
}

.hero-visual::before {
  content: '';

  position: absolute;

  inset: -8% -10% 4% -10%;

  z-index: -1;

  background:
    radial-gradient(
      ellipse at 50% 35%,
      #6457f95c 0%,
      #33389636 27%,
      #16314913 52%,
      transparent 69%
    );

  filter: blur(8px);
}

.hero-portrait {
  width: 100%;
  height: auto;

  -webkit-mask-image:
    linear-gradient(
      #000 90%,
      transparent
    ),
    linear-gradient(
      90deg,
      #000 80%,
      transparent
    );

  -webkit-mask-composite:
    source-in;

  mask-image:
    linear-gradient(
      #000 90%,
      transparent
    ),
    linear-gradient(
      90deg,
      #000 80%,
      transparent
    );

  mask-composite: intersect;
}

.hero-quote {
  position: absolute;

  right: 0;
  bottom: var(--space-3);

  display: flex;

  gap: var(--space-1);

  align-items: flex-start;

  max-width: 280px;

  padding:
    12px
    var(--space-2);

  background:
    linear-gradient(
      125deg,
      #102036,
      #091320fa
    );

  border: 1px solid #294b73;

  border-radius: 10px;

  box-shadow:
    0 9px 35px #01071555;

  color: #c5d6f1;

  font-size: var(--fs-small);
  font-style: italic;

  line-height: 1.5;
}

.quote-mark {
  color: var(--brand);

  font-size: 22px;

  font-style: normal;

  line-height: 1;
}

/* =========================================================
   SECCIONES
   ========================================================= */

.section {
  padding-top: var(--section-y);
}

/* Ajuste que te funcionó visualmente */
#proyectos,
#servicios {
  scroll-margin-top: -100px;
}

.section-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: var(--space-3);

  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;

  line-height: 1.1;

  letter-spacing: -.02em;

  text-wrap: balance;
}

.section-intro {
  max-width: 42em;

  margin-top: var(--space-1);

  color: var(--soft);

  text-wrap: pretty;
}

.section-link {
  flex-shrink: 0;

  font-size: var(--fs-small);
}

/* =========================================================
   PROYECTOS
   ========================================================= */

.project-grid {
  align-items: start;
}

.project-card {
  grid-column: span 4;

  display: flex;

  flex-direction: column;

  align-self: start;

  min-width: 0;

  padding:
    var(--space-3)
    var(--space-3)
    0;

  border: 1px solid #25364e;

  border-radius: var(--radius);

  background:
    linear-gradient(
      125deg,
      #0b121e 0%,
      #0b151c 100%
    );

  transition: border-color .2s ease;
}

.project-card:hover,
.project-card:focus-within {
  border-color: #506384;
}

.project-state {
  align-self: flex-start;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 12px;

  font-size: 11px;

  letter-spacing: .1em;

  color: var(--soft);
}

.project-state::before {
  content: '';

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--status);
}

.project-card-header {
  display: flex;

  align-items: flex-start;

  gap: 12px;
}

.project-card-header > .icon {
  width: 26px;
  height: 26px;

  margin-top: 1px;

  color: var(--brand);

  stroke-width: 1.6;
}

.project-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;

  line-height: 1.3;

  letter-spacing: -.01em;
}

.project-description {
  flex-grow: 1;

  margin-top: var(--space-2);

  color: var(--muted);

  font-size: 14px;

  line-height: 1.6;
}

.project-stats {
  display: grid;

  grid-template-columns:
    var(--stat-value-width)
    minmax(0, 1fr);

  align-content: start;
  align-items: baseline;

  column-gap: 12px;
  row-gap: 6px;

  margin-top: var(--space-2);
  margin-bottom: var(--space-2);

  padding-top: 14px;

  border-top: 1px solid #223044;

  line-height: 1.3;
}

.project-stat {
  display: contents;
}

.project-stat strong {
  font-family: var(--font-mono);

  font-size: 16px;
  font-weight: 600;

  line-height: 1.3;

  letter-spacing: -.02em;

  color: var(--text);

  white-space: nowrap;
}

.project-stat--text strong {
  font-family: var(--font);

  font-size: 14px;
  font-weight: 600;

  letter-spacing: -.01em;
}

.project-stat span {
  min-width: 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.3;

  text-wrap: pretty;
}

.project-details {
  border-top: 1px solid #223044;
}

.project-details summary {
  list-style: none;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  min-height: 44px;

  color: var(--link);

  cursor: pointer;

  font-size: var(--fs-small);
  font-weight: 500;
}

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

.project-details summary .icon {
  width: 16px;
  height: 16px;

  transition: transform .2s ease;
}

.project-details[open] summary .icon {
  transform: rotate(45deg);
}

.project-details summary:hover {
  color: var(--link-hover);
}

.project-detail-body {
  padding-bottom: var(--space-3);

  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}

.project-detail-body p {
  margin-bottom: var(--space-2);
}

.project-detail-body strong {
  color: var(--text);

  font-weight: 600;
}

.project-detail-body .text-link {
  font-size: var(--fs-small);
}

/* =========================================================
   SERVICIOS
   ========================================================= */

.service-card {
  grid-column: span 4;
  grid-row: span 2;

  display: grid;

  grid-template-rows: subgrid;

  row-gap: 0;

  align-content: start;

  padding: var(--space-3);

  background:
    linear-gradient(
      130deg,
      #0b111c,
      #0b151d
    );

  border: 1px solid var(--border);

  border-radius: var(--radius);

  transition: border-color .2s ease;
}

.service-card:hover {
  border-color: #6c62a2;
}

.service-card-head {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  margin-bottom: var(--space-1);
}

.service-card-head .icon {
  width: 24px;
  height: 24px;

  margin-top: 1px;

  color: var(--brand);

  stroke-width: 1.6;
}

.service-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;

  line-height: 1.3;

  letter-spacing: -.01em;
}

.service-card p {
  color: var(--muted);

  font-size: 14px;

  line-height: 1.6;
}

.service-card-cta {
  border-color: var(--brand-line);

  background:
    linear-gradient(
      135deg,
      #1a1440,
      #0d1a33
    );
}

.service-cta-body .button {
  margin-top: var(--space-2);
}

/* =========================================================
   SOBRE MÍ
   ========================================================= */

.about-copy {
  grid-column: 1 / span 5;
}

.about-copy h2 {
  margin-bottom: var(--space-3);
}

.about-role {
  margin-bottom: var(--space-2);

  color: var(--soft);

  font-size: var(--fs-small);
}

.about-role strong {
  color: var(--text);

  font-weight: 600;
}

.about-copy p + p {
  margin-top: var(--space-2);
}

.about-copy p:not(.about-role) {
  color: var(--muted);
}

.process {
  grid-column: 7 / span 6;
}

.process-label {
  display: block;

  margin-bottom: var(--space-2);

  color: var(--soft);
}

.process-steps {
  counter-reset: step;
}

.process-step {
  display: grid;

  grid-template-columns:
    40px 1fr;

  gap: var(--space-2);

  padding-block: var(--space-2);

  border-top: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: 1px solid var(--border);
}

.process-num {
  color: var(--brand);

  padding-top: 3px;
}

.process-step h3 {
  font-size: var(--fs-h3);
  font-weight: 600;

  line-height: 1.3;
}

.process-step p {
  margin-top: 4px;

  color: var(--muted);

  font-size: 15px;
}

/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section {
  margin-top: var(--space-4);

  padding-block: var(--section-y);

  border-top: 1px solid #233348;
  border-bottom: 1px solid #233348;

  background:
    linear-gradient(
      110deg,
      #0b121a40,
      #0b253229
    );
}

.contact-inner {
  align-items: start;
}

.contact-heading {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.contact-faq {
  grid-column: 1 / span 5;
  grid-row: 2;

  margin-top: var(--space-2);
}

.contact-faq .eyebrow {
  margin-bottom: var(--space-1);
}

.contact-heading p {
  max-width: 44ch;

  margin-top: var(--space-2);

  color: var(--muted);
}

.contact-heading .contact-direct {
  display: flex;

  align-items: center;

  gap: var(--space-1);

  margin-top: var(--space-3);

  color: var(--soft);

  font-size: var(--fs-small);
}

.contact-direct .icon {
  width: 16px;
  height: 16px;

  color: var(--brand);
}

.contact-main {
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;

  position: sticky;

  top:
    calc(
      var(--header-height) + var(--space-3)
    );
}

.contact-form-card {
  display: flex;

  flex-direction: column;

  gap: var(--space-2);

  padding: var(--space-3);

  border: 1px solid #22394b;

  border-radius: var(--radius);

  background:
    linear-gradient(
      130deg,
      #101b2755,
      #0b161ee0
    );
}

.contact-message {
  width: 100%;

  min-height: 112px;

  padding: var(--space-2);

  resize: none;

  border: 1px solid var(--border-strong);

  border-radius: 8px;

  background: var(--bg);

  color: var(--text);

  font: inherit;

  font-size: var(--fs-body);

  line-height: 1.6;

  transition: border-color .2s ease;
}

.contact-message::placeholder {
  color: var(--placeholder);

  opacity: 1;
}

.contact-message:hover {
  border-color: #3d5576;
}

.contact-message:focus-visible {
  outline: none;

  border-color: var(--link);

  box-shadow:
    0 0 0 3px #568dfd33;
}

.contact-send {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: var(--space-2);
}

.contact-send .button {
  width: 100%;
}

.contact-alt {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap:
    0
    var(--space-3);

  padding-top: var(--space-2);

  border-top: 1px solid var(--border);

  font-size: var(--fs-small);
}

.contact-alt li {
  display: flex;

  align-items: center;

  gap: 2px;
}

.contact-alt a {
  display: inline-flex;

  align-items: center;

  gap: var(--space-1);

  min-height: 40px;

  color: var(--link);

  transition: color .2s ease;
}

.contact-alt a:hover {
  color: var(--link-hover);
}

.contact-alt .icon {
  width: 16px;
  height: 16px;
}

.copy-email {
  width: 40px;
  height: 40px;

  display: grid;

  place-items: center;

  color: var(--soft);

  border-radius: 6px;
}

.copy-email .icon {
  width: 16px;
  height: 16px;
}

.copy-email:hover {
  color: var(--text);

  background: #24314a;
}

/* =========================================================
   PAINS
   ========================================================= */

.pains {
  border-block: 1px solid var(--border);

  background:
    linear-gradient(
      180deg,
      #0b131e,
      #0b131e66
    );
}

.pains-inner {
  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr);

  align-items: center;

  column-gap: var(--space-5);

  padding-block: var(--space-4);
}

.pains-inner .eyebrow {
  margin: 0;
}

.pains-list {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: var(--space-4);
}

.pain {
  display: flex;

  align-items: center;

  gap: 12px;
}

.pain-icon {
  display: grid;

  place-items: center;

  flex:
    0 0 40px;

  width: 40px;
  height: 40px;

  border: 1px solid var(--brand-line);

  border-radius: 10px;

  background: var(--brand-soft);

  color: var(--brand);
}

.pain-icon .icon {
  width: 20px;
  height: 20px;
}

.pain p {
  max-width: 30ch;

  color: var(--text);

  font-size: 16px;

  line-height: 1.45;
}

.pains-foot {
  grid-column: 2;

  margin-top: var(--space-2);

  color: var(--soft);

  font-size: 14px;

  line-height: 1.5;
}

.pains-foot strong {
  color: var(--text);

  font-weight: 600;
}

/* =========================================================
   ANTES / DESPUÉS
   ========================================================= */

.project-ba {
  margin-top: var(--space-2);

  color: var(--muted);

  font-size: 15px;

  line-height: 1.5;
}

.project-ba .ba-label {
  font-family: var(--font-mono);

  font-size: 12px;
  font-weight: 500;

  letter-spacing: .08em;

  color: var(--soft);
}

.project-ba .ba-arrow {
  margin-inline: 6px;

  color: var(--soft);
}

.project-ba .ba-after {
  color: var(--text);

  font-weight: 600;
}

/* =========================================================
   MANIFIESTO
   ========================================================= */

.manifesto {
  margin-top: var(--section-y);

  padding-block:
    clamp(
      48px,
      5vw,
      72px
    );

  border-block: 1px solid var(--border);

  background:
    linear-gradient(
      110deg,
      #0c132033,
      #15133b35 55%,
      #0b26302b
    );
}

.manifesto-inner {
  position: relative;

  max-width: 920px;

  padding-left:
    clamp(
      24px,
      4vw,
      48px
    );
}

.manifesto-inner::before {
  content: '';

  position: absolute;

  left: 0;
  top: 2px;
  bottom: 2px;

  width: 2px;

  border-radius: 999px;

  background: var(--gradient);
}

.manifesto h2 {
  max-width: 22ch;

  font-size:
    clamp(
      28px,
      24px + 1.2vw,
      42px
    );
}

.manifesto p {
  max-width: 62ch;

  margin-top: var(--space-2);

  color: var(--muted);

  font-size: var(--fs-lead);

  line-height: 1.6;

  text-wrap: pretty;
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */

.testimonials {
  margin-top: var(--grid-gap);
}

.testimonial {
  grid-column: span 4;

  display: flex;

  flex-direction: column;

  gap: var(--space-2);

  padding: var(--space-3);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background:
    linear-gradient(
      130deg,
      #0b111c,
      #0b151d
    );
}

.testimonial blockquote {
  color: var(--text);

  font-size: 16px;

  line-height: 1.6;
}

.testimonial figcaption {
  color: var(--soft);

  font-size: var(--fs-small);
}

.testimonial figcaption strong {
  display: block;

  color: var(--text);

  font-weight: 600;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
  padding-bottom: var(--space-4);
}

.faq-shell {
  max-width: 920px;

  margin-inline: auto;
}

.faq-section .section-heading {
  margin-bottom: var(--space-3);
}

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

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

.faq-item summary {
  list-style: none;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: var(--space-2);

  min-height: 52px;

  padding-block: 10px;

  cursor: pointer;

  font-size: 16px;
  font-weight: 600;

  line-height: 1.35;
}

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

.faq-item summary:hover,
.faq-item[open] summary {
  color: var(--link-hover);
}

.faq-item summary .icon {
  width: 18px;
  height: 18px;

  color: var(--soft);

  transition: transform .2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 60ch;

  padding-bottom: var(--space-3);

  color: var(--muted);

  font-size: 15px;

  line-height: 1.6;
}

/* =========================================================
   CONTACTO AUXILIAR
   ========================================================= */

.contact-privacy {
  margin-top: -4px;

  color: var(--soft);

  font-size: 12px;

  line-height: 1.5;
}

.contact-privacy a {
  color: var(--link);

  text-decoration: underline;

  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.contact-privacy a:hover {
  color: var(--link-hover);
}

.contact-booking {
  display: inline-flex;

  align-items: center;

  gap: var(--space-1);

  color: var(--link);

  font-size: var(--fs-small);
  font-weight: 500;
}

.contact-booking:hover {
  color: var(--link-hover);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding-block: var(--space-3);
}

.footer-minimal {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: var(--space-2);

  color: #8394ad;

  font-size: var(--fs-small);
}

.footer-links {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: var(--space-1);
}

.footer-links a {
  color: #9fb6d5;

  transition: color .2s ease;
}

.footer-links a:hover {
  color: #d9e8ff;
}

.toast {
  position: fixed;

  z-index: 100;

  bottom: 24px;
  left: 50%;

  transform: translateX(-50%);

  max-width:
    calc(
      100% - 36px
    );

  padding: 12px 20px;

  border: 1px solid #487187;

  border-radius: 9px;

  background: #142436;

  color: #eaf3ff;

  box-shadow:
    0 8px 35px #0007;

  font-size: var(--fs-small);

  text-align: center;
}

/* =========================================================
   COOKIES
   ========================================================= */

.cookie-consent {
  position: fixed;

  z-index: 120;

  left: 50%;
  right: auto;

  bottom: 18px;

  transform: translateX(-50%);

  width:
    min(
      520px,
      calc(100% - 36px)
    );

  padding: 12px 14px;

  border: 1px solid #2d415d;

  border-radius: 10px;

  background: #0b1422f2;

  box-shadow:
    0 12px 36px #0007;

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.cookie-consent-row {
  display: flex;

  align-items: center;

  gap: 12px;
}

.cookie-consent-copy {
  flex:
    1 1 auto;

  min-width: 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.45;
}

.cookie-consent-copy a {
  color: var(--link-hover);

  text-decoration: underline;

  text-underline-offset: 3px;

  white-space: nowrap;
}

.cookie-consent-actions {
  display: flex;

  flex:
    0 0 auto;

  align-items: center;

  gap: 6px;
}

.cookie-consent-actions .button {
  min-height: 32px;

  padding: 6px 10px;

  border-radius: 7px;

  font-size: 12px;
}

.cookie-consent-actions .button-secondary {
  border-color: #3d506b;

  background: transparent;
}

.cookie-consent-actions .button-secondary:hover {
  background: #142033;

  transform: none;
}

.cookie-consent-actions .button-primary:hover {
  transform: none;
}

.cookie-settings-link {
  border: 0;

  padding: 0;

  background: transparent;

  color: #9fb6d5;

  font: inherit;
  font-size: var(--fs-small);

  cursor: pointer;
}

.cookie-settings-link:hover {
  color: #d9e8ff;
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 12px;
    right: 12px;

    bottom: 12px;

    width: auto;

    padding: 11px 12px;

    transform: none;
  }

  .cookie-consent-row {
    align-items: flex-start;

    gap: 10px;
  }

  .cookie-consent-copy {
    font-size: 12.5px;

    line-height: 1.4;
  }

  .cookie-consent-actions {
    gap: 4px;
  }

  .cookie-consent-actions .button {
    min-height: 30px;

    padding: 5px 8px;

    font-size: 11.5px;
  }
}

@media (max-width: 430px) {
  .cookie-consent-row {
    display: block;
  }

  .cookie-consent-actions {
    margin-top: 8px;

    justify-content: flex-end;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1139px) {
  .project-card {
    grid-column: span 6;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .header-cta {
    min-height: 40px;

    padding: 8px 14px;

    font-size: 13px;

    gap: 8px;

    white-space: nowrap;
  }

  .menu-button {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .project-card,
  .service-card {
    grid-column: span 6;
  }

  .about-copy,
  .process,
  .contact-heading,
  .contact-main,
  .contact-faq {
    grid-column: 1 / -1;

    grid-row: auto;
  }

  .contact-main {
    position: static;
  }

  .contact-faq {
    margin-top: 0;
  }

  .pains-inner {
    grid-template-columns: 1fr;

    row-gap: var(--space-2);

    padding-block: var(--space-3);
  }

  .pains-foot {
    grid-column: 1;

    margin-top: 0;
  }

  .about-layout,
  .contact-inner {
    row-gap: var(--space-5);
  }
}

/* Tablet + móvil */
@media (max-width: 1023px) {
  .hero {
    --hero-photo:
      min(
        66vw,
        380px
      );
  }

  .hero-inner {
    position: relative;

    padding-top:
      calc(
        var(--hero-photo) * .46
      );
  }

  .hero-copy {
    grid-column: 1 / -1;

    position: relative;

    z-index: 1;

    padding-bottom: var(--space-3);
  }

  h1,
  .hero-description {
    text-shadow:
      0 1px 18px #070c13e6,
      0 0 2px #070c13cc;
  }

  .gradient-text {
    display: inline;

    text-shadow: none;
  }

  .hero-visual {
    position: absolute;

    z-index: 0;

    top: -10px;

    right:
      calc(
        -1 * var(--gutter) - 8px
      );

    width: var(--hero-photo);

    max-width: none;

    margin: 0;

    pointer-events: none;
  }

  .hero-visual::before {
    inset: -10% -10% 10% -10%;

    background:
      radial-gradient(
        closest-side at 58% 34%,
        #6457f940 0%,
        #33389626 45%,
        #1631490d 74%,
        transparent 100%
      );
  }

  .hero-portrait {
    opacity: .9;

    -webkit-mask-image:
      radial-gradient(
        ellipse 58% 53% at 57% 37%,
        #000 43%,
        transparent 100%
      );

    -webkit-mask-composite:
      source-over;

    mask-image:
      radial-gradient(
        ellipse 58% 53% at 57% 37%,
        #000 43%,
        transparent 100%
      );

    mask-composite: add;
  }

  .hero-quote {
    display: none;
  }

  .hero-copy > * {
    max-width: 34em;
  }
}

@media (max-width: 767px) {
  .brand-role {
    max-width: 23ch;

    margin-top: 3px;

    font-size: 9px;

    line-height: 1.3;

    letter-spacing: .06em;
  }

  .testimonial {
    grid-column: 1 / -1;
  }

  .service-card p,
  .project-description {
    font-size: 15px;
  }

  .pains-list {
    grid-template-columns: 1fr;

    gap: var(--space-2);
  }

  .hero {
    --hero-photo:
      min(
        62vw,
        340px
      );
  }

  .hero-inner {
    padding-top:
      calc(
        var(--hero-photo) * .22
      );
  }

  .hero-copy {
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size:
      clamp(
        35px,
        9.35vw,
        41px
      );

    line-height: 1.025;

    letter-spacing: -.026em;

    max-width: 11.7ch;

    text-wrap: balance;
  }

  .gradient-text {
    line-height: 1.02;
  }

  .hero-description-desktop {
    display: none;
  }

  .hero-description-mobile {
    display: block;

    max-width: 32ch;

    margin-top: 20px;

    font-size: 16px;

    line-height: 1.52;

    text-wrap: pretty;
  }

  .hero-visual {
    top: 30px;

    right:
      calc(
        -1 * var(--gutter) - 14px
      );
  }

  .hero-visual::before {
    inset: -8% -12% 8% -8%;

    background:
      radial-gradient(
        closest-side at 60% 34%,
        #6457f93d 0%,
        #33389622 46%,
        #1631490b 74%,
        transparent 100%
      );
  }

  .hero-portrait {
    opacity: .88;
  }

  .hero-buttons {
    gap: 8px;

    margin-top: 18px;
  }

  .hero-buttons .button-primary {
    flex:
      1 1 100%;

    min-height: 52px;
  }

  .hero-buttons .button-secondary {
    flex:
      0 0 auto;

    min-height: 38px;

    width: auto;

    padding-inline: 0;

    border-color: transparent;

    background: transparent;

    color: var(--link-hover);

    box-shadow: none;

    justify-content: flex-start;
  }

  .hero-buttons .button-secondary:hover {
    transform: none;

    background: transparent;

    border-color: transparent;

    color: #cbd9ff;
  }

  .hero-meta {
    display: grid;

    grid-template-columns:
      auto 1fr;

    gap:
      8px 18px;

    margin-top: 16px;

    font-size: 13px;

    line-height: 1.35;
  }

  .hero-meta > span:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero-meta .icon {
    width: 16px;
    height: 16px;
  }

  .section-heading {
    display: block;

    margin-bottom: var(--space-4);
  }

  .section-link {
    margin-top: var(--space-2);
  }

  .project-card,
  .service-card {
    grid-column: 1 / -1;
  }

  .project-card {
    padding-inline: 20px;
  }

  .project-stats {
    column-gap: 10px;
  }

  .contact-section {
    padding-block: var(--space-6);
  }

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

  .contact-form-card {
    padding: var(--space-3);
  }

  .footer-minimal {
    flex-direction: column;

    align-items: flex-start;
  }

  .manifesto-inner {
    padding-left: var(--space-3);
  }
}

@media (max-width: 449px) {
  .header-cta .icon {
    display: none;
  }

  .header-cta {
    padding-inline: 12px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
  }
}

@media (max-width: 389px) {
  .header-cta {
    padding-inline: 10px;

    font-size: 12px;
  }
}

@media (max-width: 359px) {
  .header-cta {
    padding-inline: 10px;

    font-size: 12px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-role {
    max-width: 15ch;
  }

  .header-inner {
    gap: var(--space-1);
  }
}

@media (max-width: 379px) {
  .project-stat span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}