/* ============================================================
   JAYLAB STUDIO — styles.css
   Paleta: Blanco hueso #FAFAF8 · Carbón #1A1A18 · Ocre #C8932A
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #FAFAF8;
  --bg-alt:      #F2F0EB;
  --surface:     #FFFFFF;
  --border:      rgba(26,26,24,.08);
  --border-mid:  rgba(26,26,24,.14);

  --ink:         #1A1A18;
  --ink-2:       #3D3D3A;
  --ink-3:       #6B6B67;

  --ochre:       #C8932A;
  --ochre-light: #E8B84B;
  --ochre-pale:  rgba(200,147,42,.10);
  --ochre-mid:   rgba(200,147,42,.20);

  --font-sans:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 1px 4px rgba(26,26,24,.06);
  --shadow-md:   0 4px 20px rgba(26,26,24,.08);
  --shadow-lg:   0 12px 48px rgba(26,26,24,.12);

  --ease-out:    cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── UTILITIES ──────────────────────────────────────────── */
.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(80px, 10vw, 140px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--ochre);
  border-radius: 2px;
}
.section-tag--light {
  color: var(--ochre-light);
}
.section-tag--light::before {
  background: var(--ochre-light);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title em {
  font-style: normal;
  color: var(--ochre);
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--ink-3);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .2s var(--ease-spring), box-shadow .2s ease, background .2s ease, color .2s ease;
  position: relative;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ochre);
  color: #fff;
  box-shadow: 0 4px 16px rgba(200,147,42,.35);
}
.btn--primary:hover {
  background: var(--ochre-light);
  box-shadow: 0 8px 24px rgba(200,147,42,.45);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--border-mid);
}
.btn--ghost:hover {
  background: var(--ochre-pale);
  color: var(--ochre);
  box-shadow: inset 0 0 0 1.5px var(--ochre);
}

.btn--outline-dark {
  background: transparent;
  color: var(--bg);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
}
.btn--outline-dark:hover {
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: rgba(250,250,248,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
}
.nav__logo-img {
  height: 36px;
  width: auto;
}
.nav__logo-text {
  color: var(--ink);
}
.nav__logo-text span {
  color: var(--ochre);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav__link:hover {
  background: var(--ochre-pale);
  color: var(--ochre);
}

.nav__cta-link {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  transition: background .18s ease, transform .2s var(--ease-spring);
}
.nav__cta-link:hover {
  background: var(--ochre);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,147,42,.18) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,147,42,.1) 0%, transparent 70%);
  bottom: 0; left: -80px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(60px, 8vw, 100px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ochre-pale);
  border: 1px solid var(--ochre-mid);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ochre);
  margin-bottom: 32px;
  animation: fadeUp .7s var(--ease-out) both;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  background: var(--ochre);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: 28px;
  animation: fadeUp .7s .1s var(--ease-out) both;
}
.hero__title-accent {
  color: var(--ochre);
  position: relative;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--ochre-mid);
  border-radius: 2px;
  transform-origin: left;
  animation: underlineIn .6s .8s var(--ease-out) both;
}
@keyframes underlineIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--ink-3);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeUp .7s .2s var(--ease-out) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 72px;
  animation: fadeUp .7s .3s var(--ease-out) both;
}

.hero__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  animation: fadeUp .7s .4s var(--ease-out) both;
}
.hero__stat {
  padding-right: 32px;
}
.hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
}
.hero__stat-label {
  font-size: .8rem;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-mid);
  margin-right: 32px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp .7s .6s var(--ease-out) both;
}
.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ochre), transparent);
  border-radius: 2px;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .4; transform: scaleY(.5); transform-origin: top; }
}

/* ─── SERVICIOS ──────────────────────────────────────────── */
.servicios {
  background: var(--bg-alt);
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .3s ease, border-color .3s ease;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ochre-pale) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--ochre-mid); }
.service-card:hover::before { opacity: 1; }

.service-card--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.service-card--featured .service-card__num,
.service-card--featured .service-card__desc,
.service-card--featured .service-card__list li { color: rgba(250,250,248,.6); }
.service-card--featured .service-card__title { color: var(--bg); }
.service-card--featured .service-card__icon { color: var(--ochre-light); }
.service-card--featured .service-card__arrow { color: var(--ochre-light); }
.service-card--featured::before {
  background: linear-gradient(135deg, rgba(200,147,42,.12) 0%, transparent 60%);
}

.service-card__icon {
  color: var(--ochre);
  margin-bottom: 20px;
  width: 52px; height: 52px;
  background: var(--ochre-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.service-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}

.service-card__desc {
  font-size: .9375rem;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative; z-index: 1;
}
.service-card__list li {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-card__list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--ochre);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-card__arrow {
  position: absolute;
  bottom: 28px; right: 28px;
  font-size: 1.25rem;
  color: var(--ochre);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .25s var(--ease-spring);
}
.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── PORTFOLIO ──────────────────────────────────────────── */
.portfolio {
  background: var(--bg);
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.portfolio__filter {
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all .2s ease;
}
.portfolio__filter:hover {
  color: var(--ochre);
  border-color: var(--ochre-mid);
  background: var(--ochre-pale);
}
.portfolio__filter--active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.portfolio__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-spring), box-shadow .3s ease, border-color .3s ease;
}

.work-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ochre-pale) 0%, transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.work-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ochre-mid);
}

.work-item:hover::before {
  opacity: 1;
}

.work-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.work-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.work-item__index {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ochre);
}

.work-item__badge {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.work-item__status {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--ochre);
  background: var(--ochre-pale);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--ochre-mid);
  white-space: nowrap;
}

.work-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  transition: color .2s ease;
}
.work-item:hover .work-item__title {
  color: var(--ochre);
}

.work-item__summary {
  font-size: .925rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.work-item__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.work-item__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-item__col-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.work-item__col-text {
  font-size: .84rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.work-item__deliverables {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-item__deliverables li {
  font-size: .84rem;
  color: var(--ink-3);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.work-item__deliverables li::before {
  content: '▸';
  color: var(--ochre);
  font-size: .75rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.work-item__footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.work-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-item__tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--border-mid);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all .2s ease;
}

.work-item:hover .work-item__tag {
  border-color: var(--ochre-mid);
  background: var(--ochre-pale);
  color: var(--ochre);
}

/* work-item hidden state */
.work-item.hidden {
  display: none;
}

/* ─── SOBRE MÍ ───────────────────────────────────────────── */
.sobre {
  background: var(--bg-alt);
  overflow: hidden;
}

.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.sobre__visual {
  position: relative;
}

.sobre__img-frame {
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.sobre__img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: .875rem;
  font-weight: 500;
}

.sobre__deco {
  position: absolute;
  top: -20px; right: -20px;
}
.sobre__deco-ring {
  width: 80px; height: 80px;
  border: 2px solid var(--ochre-mid);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sobre__deco-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--ochre);
  border-radius: 50%;
}

.sobre__skills-cloud {
  position: absolute;
  bottom: -16px; right: -16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 220px;
  justify-content: flex-end;
}
.sobre__skill {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-spring);
}
.sobre__skill:hover {
  background: var(--ochre-pale);
  color: var(--ochre);
  border-color: var(--ochre-mid);
  transform: translateY(-2px);
}

.sobre__content .section-tag { margin-bottom: 12px; }
.sobre__content .section-title { margin-bottom: 24px; }

.sobre__text {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.sobre__text strong { color: var(--ochre); font-weight: 700; }

.sobre__values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 28px;
}
.sobre__value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
}
.sobre__value-icon {
  color: var(--ochre);
  font-size: .6rem;
}

/* ─── CTA FINAL ──────────────────────────────────────────── */
.cta-final {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-final__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,147,42,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,147,42,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--bg);
  margin-bottom: 20px;
  line-height: 1.05;
}
.cta-final__title span { color: var(--ochre-light); }

.cta-final__sub {
  font-size: 1.0625rem;
  color: rgba(250,250,248,.55);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.cta-final__note {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: rgba(250,250,248,.4);
  font-weight: 500;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #111110;
  padding-block: 32px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1) opacity(.7);
}
.footer__brand-name {
  font-weight: 700;
  font-size: .9rem;
  color: rgba(250,250,248,.55);
  letter-spacing: -.01em;
}
.footer__copy {
  font-size: .82rem;
  color: rgba(250,250,248,.35);
}
.footer__socials {
  display: flex;
  gap: 4px;
}
.footer__social {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,250,248,.4);
  transition: color .2s ease, background .2s ease;
}
.footer__social:hover {
  color: var(--ochre-light);
  background: rgba(200,147,42,.1);
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: 1fr 1fr; }
  .portfolio__list { grid-template-columns: 1fr; }
  .sobre__inner { grid-template-columns: 1fr; }
  .sobre__visual { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(250,250,248,.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav__link, .nav__cta-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .nav__burger { display: flex; }

  .hero__title { font-size: clamp(2.5rem, 8vw, 3.5rem); }
  .hero__stats { gap: 24px; }
  .hero__stat { padding-right: 0; }
  .hero__stat-divider { display: none; }

  .servicios__grid { grid-template-columns: 1fr; }
  .work-item__details { grid-template-columns: 1fr; gap: 14px; }

  .cta-final__actions { flex-direction: column; align-items: center; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ochre-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ochre); }

/* ─── SELECTION ──────────────────────────────────────────── */
::selection { background: var(--ochre-mid); color: var(--ink); }
