:root {
  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Paleta dark — tokens activos v0.2.0 */
  --color-primary:    #fdbb0d;                    /* Gold — marca, CTAs, links */
  --color-secondary:  #c9960a;                    /* Gold oscuro — gradients, hover */
  --color-accent:     #fdbb0d;
  --color-bg:         #020300;                    /* Fondo global */
  --color-bg-elevated:#0d0e09;                    /* Fondo ligeramente elevado */
  --color-surface:    #141510;                    /* Cards y paneles */
  --color-text:       #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --color-border:     rgba(255, 255, 255, 0.09);

  /* Sombras */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.55);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 28px rgba(253, 187, 13, 0.28);

  /* Espaciado */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radios */
  --radius-base: 10px;
  --radius-card: 18px;
  --radius-pill: 999px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-main {
  min-height: calc(100vh - 220px);
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: var(--space-2xl) 0;
}

/* ─── Header ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 3, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  min-height: 56px;
}

.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

.site-header__cta {
  flex-shrink: 0;
}

/* ─── Brand ───────────────────────────────────── */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.site-brand__mark {
  width: 10px;
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  flex-shrink: 0;
}

.site-brand__text {
  line-height: 1;
}

/* ─── Nav ─────────────────────────────────────── */
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav__list a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ─── Tipografía ──────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

/* ─── Botones ─────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 22px;
  border-radius: var(--radius-base);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

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

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--color-accent);
  color: #020300;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(253, 187, 13, 0.32);
}

.button-primary:hover {
  background: #ffc929;
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.button-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.button-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.button-ghost {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
}

.button-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ─── Post cards ──────────────────────────────── */
.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s, transform 0.25s var(--ease-out);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(253, 187, 13, 0.3);
}

.post-card h2 {
  margin-top: 0;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--color-accent);
}

/* ─── Hero ─────────────────────────────────────── */
.hq-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #020300;
  background-image: url('https://www.henryquevedo.com/wp-content/uploads/2026/04/henry-web.jpg');
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hq-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(2, 3, 0, 0.95) 0%,
    rgba(2, 3, 0, 0.78) 45%,
    rgba(2, 3, 0, 0.15) 100%
  );
  pointer-events: none;
}

.hq-hero__container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hq-hero__content {
  max-width: 52%;
}

.hq-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--space-lg);
}

.hq-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 var(--space-lg);
  position: relative;
}

.hq-hero__greeting {
  background: #fdbb0d;
  color: #000000;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 700;
  width: fit-content;
  padding: 3px 7px;
  position: absolute;
  left: -90px;
  top: 58px;
  transform: rotate(-90deg);
}

.hq-hero__name {
  display: block;
  font-size: clamp(5rem, 10vw, 8.75rem);
  color: #fdbb0d;
  text-shadow: 0 0 48px rgba(253, 187, 13, 0.28);
}

.hq-hero__subtitle {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  margin: 0 0 var(--space-2xl);
}

.hq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hq-hero__cta-primary {
  background: #fdbb0d;
  color: #020300;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(253, 187, 13, 0.35);
}

.hq-hero__cta-primary:hover {
  background: #ffc929;
  box-shadow: 0 8px 32px rgba(253, 187, 13, 0.5);
}

.hq-hero__cta-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.hq-hero__cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 1024px) {
  .hq-hero__content {
    max-width: 68%;
  }
}

@media (max-width: 767px) {
  .hq-hero {
    background-position: 80% center;
    background-size: cover;
    min-height: 90svh;
  }

  .hq-hero__overlay {
    background: rgba(2, 3, 0, 0.82);
  }

  .hq-hero__content {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hq-hero__cta-primary,
  .hq-hero__cta-secondary {
    transition: none;
    transform: none;
  }
}

/* ─── Grid ────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

/* ─── Cards ───────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s, transform 0.25s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(253, 187, 13, 0.3);
}

.card h3:first-child {
  margin-top: 0;
}

/* ─── Section destacada ───────────────────────── */
.section--featured {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  width: min(1200px, 92%);
  margin-inline: auto;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-2xl) var(--space-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .section--featured {
    padding: var(--space-3xl) var(--space-2xl);
  }
}

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 38rem;
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ─── Trust strip ─────────────────────────────── */
.trust-strip {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.trust-strip .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .trust-strip .container {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }
}

.trust-strip__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.badge {
  border: 1px solid rgba(253, 187, 13, 0.22);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  background: rgba(253, 187, 13, 0.1);
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ─── Misc ────────────────────────────────────── */
.section-compact {
  padding-top: 0;
}

.process-steps {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding-left: 20px;
}

/* ─── FAQ ─────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(253, 187, 13, 0.28);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--color-text);
}

.faq-panel {
  padding: 0 16px 14px;
  color: var(--color-text-muted);
}

/* ─── CTA Band ────────────────────────────────── */
.cta-band {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-card);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(253, 187, 13, 0.2);
}

.cta-band__title {
  margin: 0 0 var(--space-md);
  color: var(--color-text);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band__text {
  margin: 0 0 var(--space-xl);
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 1.0625rem;
}

.cta-band .button-primary {
  background: var(--color-accent);
  color: #020300;
  box-shadow: 0 4px 22px rgba(253, 187, 13, 0.38);
}

.cta-band .button-primary:hover {
  background: #ffc929;
  box-shadow: 0 8px 28px rgba(253, 187, 13, 0.5);
}

/* ─── Contact ─────────────────────────────────── */
.contact-layout {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.2fr 0.8fr;
}

/* ─── Filter chips ────────────────────────────── */
.filter-chips {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.chip {
  white-space: nowrap;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip.is-active {
  color: #020300;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.chip:hover:not(.is-active) {
  border-color: rgba(253, 187, 13, 0.4);
  color: var(--color-accent);
  background: rgba(253, 187, 13, 0.07);
}

/* ─── Project taxonomies ──────────────────────── */
.project-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

/* ─── Meta strip ──────────────────────────────── */
.meta-strip {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: var(--space-lg);
  margin: 0;
  list-style: none;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.meta-strip strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

/* ─── Case study ──────────────────────────────── */
.case-content {
  display: grid;
  gap: var(--space-lg);
}

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.case-nav a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.case-content img {
  width: 100%;
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}

/* ─── Responsive breakpoints ──────────────────── */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .meta-strip,
  .case-nav {
    grid-template-columns: 1fr;
    display: grid;
  }
}

/* ─── Accesibilidad ───────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 16px;
  background: var(--color-accent);
  color: #020300;
  text-decoration: none;
  border-radius: var(--radius-base);
  font-weight: 700;
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.button:focus-visible,
.chip:focus-visible,
.site-brand:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.faq-trigger:focus-visible {
  outline-offset: -2px;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header__actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: var(--space-md);
  }

  .site-nav__list {
    justify-content: center;
  }

  .site-header__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Footer ──────────────────────────────────── */
.site-footer {
  margin-top: var(--space-3xl);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
}

.site-footer__inner > p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.footer-nav-wrap .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-wrap a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-nav-wrap a:hover {
  color: var(--color-accent);
}

/* ─── Sobre mí ────────────────────────────────── */
.about-page-hero {
  padding-bottom: 0;
}

.about-page-hero__subtitle {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-top: var(--space-sm);
}

.about-bio__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
}

.about-bio__grid--no-media {
  grid-template-columns: 1fr;
}

.about-bio__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.about-bio__lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 var(--space-md);
}

.about-bio__body > *:first-child {
  margin-top: 0;
}

/* ─── Timeline ────────────────────────────────── */
.timeline {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.hq-js .timeline__item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hq-js .timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hq-js .timeline__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.timeline__marker {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-border);
}

.timeline__year {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.timeline__heading {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
}

.timeline__text {
  margin: 0;
  color: var(--color-text-muted);
}

.method-card h3 {
  margin-top: 0;
}

/* ─── 404 ─────────────────────────────────────── */
.error-block {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.error-block__title {
  margin-top: 0;
}

.error-block__list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

@media (max-width: 767px) {
  .about-bio__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .button:active,
  .card:hover,
  .post-card:hover {
    transform: none;
  }

  .button,
  .card,
  .post-card {
    transition: none;
  }
}
