/* Arturo Galán García — Web personal premium */
:root {
  --ink: #0b1220;
  --ink-2: #101828;
  --ink-3: #1d2939;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e7ec;
  --soft: #f8fafc;
  --soft-2: #f2f4f7;
  --white: #ffffff;
  --gold: #eab308;
  --gold-2: #f97316;
  --gold-dark: #a16207;
  --blue: #2563eb;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --shadow: 0 28px 90px rgba(16, 24, 40, 0.16);
  --shadow-soft: 0 14px 44px rgba(16, 24, 40, 0.08);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(234, 179, 8, 0.28);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 16px;
  left: -999px;
  z-index: 999;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.06em;
  box-shadow: 0 14px 34px rgba(234, 179, 8, 0.22);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-weight: 850;
  letter-spacing: -0.035em;
}

.brand-sub {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.nav-cta {
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 999px;
  background: var(--white);
}

.section {
  padding: 112px 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 78px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 16%, rgba(234, 179, 8, 0.22), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(37, 99, 235, 0.24), transparent 31%),
    linear-gradient(135deg, #060a12 0%, #0b1220 48%, #111827 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 22%, black 0%, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -280px;
  height: 460px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(234, 179, 8, 0.18), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  align-items: center;
  gap: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.058em;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.2rem, 8vw, 7.1rem);
}

h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.35rem);
}

h3 {
  font-size: 1.36rem;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 790px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 16px 42px rgba(234, 179, 8, 0.22);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.trust-strip span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.9rem;
  font-weight: 700;
}

.signature-panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.065));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.28);
}

.signature-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 30px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-size: 2.25rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.panel-label {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signature-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.panel-text {
  margin: 26px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.profile-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-facts div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
}

.profile-facts dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.78);
}

.section-soft {
  background: linear-gradient(180deg, var(--soft), #fff);
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 8% 12%, rgba(234,179,8,0.18), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(37,99,235,0.18), transparent 30%),
    linear-gradient(135deg, #101828, #070b13);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.rich-text p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.14rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.section-head {
  max-width: 790px;
  margin-bottom: 44px;
}

.section-head p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-dark .section-head p:not(.eyebrow) {
  color: rgba(255,255,255,0.67);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 286px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, #fff, #fff),
    radial-gradient(circle at 0 0, rgba(234,179,8,0.16), transparent 30%);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 179, 8, 0.48);
  box-shadow: var(--shadow);
}

.card-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.card p,
.project-card p,
.method-step p {
  color: var(--muted);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.method-step {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.065);
}

.method-step span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 44px;
  border-radius: 15px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 950;
}

.method-step p {
  color: rgba(255,255,255,0.67);
}

.projects {
  display: grid;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
  gap: 18px;
}

.project-card {
  min-height: 245px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.project-featured {
  grid-row: span 2;
  display: flex;
  align-items: flex-end;
  min-height: 508px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 12%, rgba(234,179,8,0.26), transparent 30%),
    linear-gradient(135deg, var(--ink), var(--ink-2));
  border-color: rgba(16,24,40,0.2);
}

.project-featured p {
  color: rgba(255,255,255,0.72);
}

.project-kicker {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-featured .project-kicker {
  color: var(--gold);
}

.statement {
  max-width: 940px;
  text-align: center;
}

.statement blockquote {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.statement-author {
  margin: 24px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.contact-section {
  background: var(--white);
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  padding: 50px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 4% 0%, rgba(234,179,8,0.16), transparent 28%),
    linear-gradient(180deg, var(--soft), var(--white));
  box-shadow: var(--shadow);
}

.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-points div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.contact-points strong,
.contact-points span {
  display: block;
}

.contact-points strong {
  color: var(--ink-2);
}

.contact-points span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.14);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255,255,255,0.68);
  background: #060a12;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin: 0;
}

.footer-brand {
  color: var(--white);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .btn,
  .card {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 88px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: rgba(11,18,32,0.98);
    box-shadow: 0 22px 70px rgba(0,0,0,0.34);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .hero-grid,
  .split,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

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

  .project-featured {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 390px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand-sub {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .signature-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards,
  .method-grid,
  .projects {
    grid-template-columns: 1fr;
  }

  .project-featured {
    min-height: 340px;
  }

  .contact-card,
  .signature-panel {
    padding: 28px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
