/* ═══════════════════════════════════════════════════════════
   FRAN DEMOLI — Web personal · frandemoli.com
   Sistema visual: monocromo cálido en oscuro (sin color de acento)
   Tipografías: Archivo (display) + Inter (body)
   Énfasis: hueso brillante + subrayado animado + movimiento
   ═══════════════════════════════════════════════════════════ */


/* ═══ DESIGN TOKENS ═══ */
:root {
  /* Fondos cálidos oscuros */
  --bg:            #0D0C0B;
  --surface:       #141312;
  --surface-2:     #1A1816;
  --surface-3:     #211E1B;

  /* Bordes (hueso translúcido) */
  --border:        rgba(236,231,221,0.09);
  --border-md:     rgba(236,231,221,0.16);
  --border-strong: rgba(236,231,221,0.28);

  /* Texto */
  --text:          #ECE7DD;   /* hueso */
  --hi:            #FBF8F1;    /* hueso brillante = énfasis */
  --text-muted:    #9C9388;
  --text-subtle:   #6B645B;

  /* Tipografías */
  --f-display:     'Archivo', system-ui, sans-serif;
  --f-body:        'Inter', system-ui, sans-serif;

  /* Layout */
  --container:     1180px;
  --container-narrow: 760px;
  --pad-x:         24px;
  --pad-x-md:      48px;
  --pad-y-section: clamp(72px, 10vw, 132px);

  /* Radios */
  --r-sm:          6px;
  --r:             10px;
  --r-lg:          16px;

  /* Sombras */
  --shadow:        0 12px 32px rgba(0,0,0,0.5);
  --shadow-lg:     0 24px 64px rgba(0,0,0,0.65);

  /* Transiciones */
  --t-fast:        180ms ease;
  --t:             260ms ease;
  --t-slow:        500ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:      cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Escalas tipográficas */
  --size-eyebrow:  12px;
  --size-body:     16px;
  --size-body-lg:  18px;
  --size-h3:       clamp(21px, 2.6vw, 26px);
  --size-h2:       clamp(30px, 4.6vw, 50px);
  --size-h1:       clamp(38px, 6vw, 72px);
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--f-body);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--hi); color: var(--bg); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2A2520; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4A433B; }


/* ═══ TIPOGRAFÍA ═══ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text);
}

p { line-height: 1.65; }
strong { color: var(--hi); font-weight: 600; }


/* Énfasis: hueso brillante + subrayado que se dibuja al revelar */
.hl {
  position: relative;
  color: var(--hi);
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 3px;
  background: var(--hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms var(--ease-out) 480ms;
}
.reveal.is-visible .hl::after { transform: scaleX(1); }


/* ═══ LAYOUT ═══ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--pad-x-md); }
}
.container--narrow { max-width: var(--container-narrow); }


/* ═══ EYEBROW / LABEL ═══ */
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: var(--size-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ═══ BOTONES ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }

/* Primario: claro sobre oscuro (premium, sin color) */
.btn--solid {
  background: var(--hi);
  color: #100F0E;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.btn--solid:active { transform: translateY(0); }

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

.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--lg svg { width: 18px; height: 18px; }


/* ═══ REVEAL ANIMATION (clip + blur, diferenciado) ═══ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 760ms ease,
    transform 760ms var(--ease-out),
    filter 760ms ease;
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }


/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,12,11,0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13,12,11,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (min-width: 768px) {
  .nav__inner { padding-inline: var(--pad-x-md); padding-block: 18px; }
}
.nav__brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.nav__logo { width: 30px; height: 30px; object-fit: contain; }
.nav__name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color var(--t-fast); }
.nav__link:hover { color: var(--hi); }
.nav__ig {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color var(--t-fast), transform var(--t-fast);
}
.nav__ig svg { width: 19px; height: 19px; }
.nav__ig:hover { color: var(--hi); transform: translateY(-1px); }


/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 132px 72px;
  overflow: hidden;
}

/* Fondo (gradiente por defecto; sustituible por foto vía --hero-img) */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 700px at 78% 12%, rgba(255,250,240,0.05), transparent 60%),
    linear-gradient(160deg, #1A1714 0%, #0D0C0B 55%, #080706 100%);
  background-size: cover;
  background-position: center;
}
.hero__media[style*="--hero-img"] {
  background-image: var(--hero-img);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,12,11,0.35) 0%, rgba(13,12,11,0.55) 60%, rgba(13,12,11,0.85) 100%);
}

/* Spotlight que sigue el cursor (desktop, se activa por JS) */
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(251,248,241,0.07), transparent 60%);
}
.hero.spot-on .hero__spot { opacity: 1; }

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { margin-bottom: 22px; }
.hero__title {
  font-size: var(--size-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 18ch;
  margin-bottom: 26px;
}
.hero__sub {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 38px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }


/* ═══ TRUST STRIP ═══ */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 26px 10px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.trust__item { min-width: 0; }
.trust__num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(16px, 4.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hi);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trust__label { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }


/* ═══ SECCIÓN BASE ═══ */
.sect { padding-block: var(--pad-y-section); position: relative; }
.sect--surface { background: var(--surface); }
.sect__head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 30ch; }
.sect__label { display: block; margin-bottom: 18px; }
.sect__title { font-size: var(--size-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.sect__intro {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 60ch;
}


/* ═══ QUIÉN SOY ═══ */
.about__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: start; }
}

.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.about__photo-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-subtle); opacity: 0.4;
}
.about__photo-ph svg { width: 64px; height: 64px; }

.about__text { display: flex; flex-direction: column; gap: 24px; }
.about__lead {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--hi);
}
.about__body { display: flex; flex-direction: column; gap: 16px; }
.about__body p { font-size: var(--size-body-lg); color: var(--text-muted); }
.about__signature {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-subtle);
}
.about__signature img { width: 36px; height: 36px; object-fit: contain; opacity: 0.85; }


/* ═══ QUÉ HAGO (capas) ═══ */
.layers-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .layers-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.layer-card {
  padding: 34px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.sect--surface .layer-card { background: var(--surface-3); }
.layer-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.layer-card:hover { border-color: var(--border-md); transform: translateY(-4px); }
.layer-card:hover::before { transform: scaleX(1); }
.layer-card__num {
  font-family: var(--f-display);
  font-size: 13px; font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.16em;
  display: block; margin-bottom: 20px;
}
.layer-card__title { font-size: var(--size-h3); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.layer-card__body { font-size: 15px; color: var(--text-muted); line-height: 1.65; }


/* ═══ CON QUIÉNES TRABAJÉ — CARRUSEL DE LOGOS ═══ */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 18px; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--speed, 48s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group { display: flex; flex-shrink: 0; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

.logo-chip {
  flex-shrink: 0;
  width: 170px;
  height: 92px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
}
.logo-chip img {
  max-height: 50px; max-width: 100%; width: auto; object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--t), transform var(--t);
}
.logo-chip:hover img { opacity: 1; transform: scale(1.05); }
.logo-chip__ph { display: flex; align-items: center; justify-content: center; color: var(--text-subtle); opacity: 0.35; }
.logo-chip__ph svg { width: 34px; height: 34px; }

.logos-note { margin-top: 24px; font-size: 13px; color: var(--text-subtle); }

/* En mobile achicamos los chips para que entren más logos por fila */
@media (max-width: 640px) {
  .logo-chip { width: 116px; height: 66px; margin-right: 8px; padding: 10px 12px; }
  .logo-chip img { max-height: 34px; }
  .marquee + .marquee { margin-top: 10px; }
  .eyebrow { letter-spacing: 0.1em; font-size: 11px; }
}


/* ═══ CONTACTO ═══ */
.contact { text-align: center; }
.contact__title { font-size: var(--size-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; max-width: 20ch; margin-inline: auto; }
.contact__sub { margin: 22px auto 38px; font-size: clamp(15px, 1.6vw, 18px); color: var(--text-muted); max-width: 48ch; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact__note { margin-top: 22px; font-size: 13px; color: var(--text-subtle); }


/* ═══ FOOTER ═══ */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 44px; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr; gap: 48px; }
  .footer__contact { align-items: flex-end; text-align: right; }
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__logo { width: 44px; height: 44px; object-fit: contain; }
.footer__tagline { font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--text); max-width: 38ch; line-height: 1.4; }
.footer__contact { display: flex; flex-direction: column; gap: 13px; }
.footer__link { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; color: var(--text-muted); transition: color var(--t-fast); width: fit-content; }
.footer__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer__link:hover { color: var(--hi); }
.footer__legal { padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 768px) { .footer__legal { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__legal p { font-size: 12.5px; color: var(--text-subtle); letter-spacing: 0.01em; }


/* ═══ WHATSAPP FLOTANTE ═══ */
.wa-float {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 90;
  width: 54px; height: 54px;
  background: var(--hi);
  color: #100F0E;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.wa-float svg { width: 27px; height: 27px; }
.wa-float:hover { transform: scale(1.07) translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.55); }
@media (min-width: 1024px) {
  .wa-float { bottom: 30px; right: 30px; width: 58px; height: 58px; }
  .wa-float svg { width: 29px; height: 29px; }
}


/* ═══ FOCUS / A11Y ═══ */
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; }
