/* ============================================================
   CRIS-L — PORTAFOLIO WEB
   Sistema: identidad "metro / andén urbano"
   Tipografía: Antonio (display) + Nunito (texto)
   Paleta: negro #111111, carbón #333333, gris #BDBDBD,
           papel #F2F2F2, amarillo señal #FFC107
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --black: #111111;
  --charcoal: #333333;
  --gray: #BDBDBD;
  --paper: #F2F2F2;
  --yellow: #FFC107;
  --white: #FFFFFF;

  --font-display: 'Antonio', 'Arial Narrow', sans-serif;
  --font-body: 'Nunito', -apple-system, sans-serif;

  --max-w: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --station: 76px; /* altura del nav */

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 1px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  border-radius: 2px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--black); color: var(--paper); }
.btn-primary:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--paper); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   NAV — "andén" superior + línea de recorrido lateral
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--station);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(242,242,242,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--black);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s var(--ease), color .2s var(--ease);
  position: relative;
}
.nav-links a .num {
  font-family: var(--font-display);
  color: var(--gray);
  font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { background: var(--black); color: var(--paper); }
.nav-links a:hover .num, .nav-links a.active .num { color: var(--yellow); }
.nav-cta { display: none; }
@media (min-width: 900px){ .nav-cta { display: inline-flex; padding: 10px 20px; font-size: 12px; } }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 2px solid var(--black);
  background: transparent;
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--black); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-links {
    position: fixed;
    top: var(--station); left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 15px; }
  .nav-toggle { display: inline-flex; }
}

/* Línea de recorrido lateral (desktop) */
.line-track {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
@media (min-width: 1180px) { .line-track { display: flex; } }
.line-track .rail {
  width: 2px;
  background: var(--gray);
  flex: 1;
  position: relative;
}
.line-track .stop {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--charcoal);
  margin: 0 -1px;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: pointer;
}
.line-track .stop.active { background: var(--yellow); border-color: var(--black); transform: scale(1.3); }
.line-track .stop-wrap { display: flex; flex-direction: column; align-items: center; }
.line-track .stop-wrap:first-child .rail-before { display:none; }
.line-track .rail-seg { width: 2px; height: 46px; background: var(--gray); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-top: var(--station);
  background: var(--black);
  color: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(242,242,242,0.045) 78px 79px);
  pointer-events: none;
}
.hero-tunnel {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% 100%, rgba(255,193,7,0.10), transparent 60%),
    repeating-radial-gradient(ellipse at 50% 120%, rgba(255,255,255,0.03) 0 2px, transparent 2px 40px);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero-sign {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--black);
  padding: 7px 14px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 28px;
}
.hero-sign svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 8.2rem);
  color: var(--paper);
  margin-bottom: 18px;
}
.hero h1 .line2 { color: var(--gray); }
.hero-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-tagline strong { color: var(--paper); font-weight: 800; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero .btn-primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.hero .btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.hero .btn-ghost { border-color: var(--gray); color: var(--paper); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--black); border-color: var(--paper); }

.hero-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(242,242,242,0.18);
}
.hero-strip .tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-strip .tag::before { content: "—"; color: var(--yellow); }

/* ============================================================
   SECCIÓN base
   ============================================================ */
section { position: relative; }
.section-pad { padding: clamp(64px, 10vw, 128px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 6vw, 64px);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.section-head .desc { max-width: 380px; color: var(--charcoal); font-weight: 600; font-size: 15px; }

.divider {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--black) 0 14px, transparent 14px 22px);
}

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 800px){ .about-grid { grid-template-columns: 1fr; } }
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  text-transform: none;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 24px;
}
.about-lead strong { color: var(--charcoal); border-bottom: 4px solid var(--yellow); }
.about-body { font-size: 16.5px; color: var(--charcoal); font-weight: 500; }
.about-body + .about-body { margin-top: 14px; }

.about-facts { display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--black); }
.fact { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(17,17,17,0.15); gap: 16px; }
.fact .k { font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; color: var(--charcoal); }
.fact .v { font-family: var(--font-display); font-size: 1.4rem; text-align: right; }

/* ============================================================
   CONTACTO
   ============================================================ */
.services { background: var(--black); color: var(--paper); }
.services .eyebrow { color: var(--gray); }
.services .eyebrow::before { background: var(--yellow); }
.services .section-head h2 { color: var(--paper); }
.services .section-head .desc { color: var(--gray); }

.svc-group + .svc-group { margin-top: 56px; }
.svc-group-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(242,242,242,0.25);
}
.svc-group-head .idx {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--yellow);
}
.svc-group-head h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--paper);
}
.svc-list { display: flex; flex-direction: column; }
.svc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(242,242,242,0.12);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.svc-row:hover { background: rgba(255,193,7,0.06); padding-left: 12px; }
.svc-name { font-weight: 800; font-size: 16.5px; }
.svc-sub { color: var(--gray); font-size: 14px; font-weight: 500; grid-column: 1; }
.svc-price {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--yellow);
  white-space: nowrap;
  text-align: right;
}
.svc-price .cur { font-family: var(--font-body); font-size: 12px; color: var(--gray); font-weight: 700; margin-right: 4px; }

.svc-note {
  margin-top: 44px;
  padding: 22px 24px;
  border: 1px dashed rgba(242,242,242,0.35);
  border-radius: 2px;
  font-size: 14px;
  color: var(--gray);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.svc-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--yellow); }

.svc-terms {
  margin-top: 56px;
  padding: 28px 24px;
  border: 1px solid rgba(242,242,242,0.25);
  border-radius: 2px;
  background: rgba(255,193,7,0.04);
}
.svc-terms h3 {
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: var(--paper);
}
.svc-terms p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 14px;
}
.svc-terms p:last-child { margin-bottom: 0; }
.svc-terms strong { color: var(--yellow); }

/* ============================================================
   PORTAFOLIO
   ============================================================ */
.work { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px;
  border: 2px solid var(--black);
  background: transparent;
  border-radius: 2px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.filter-btn:hover { background: rgba(17,17,17,0.08); }
.filter-btn.active { background: var(--black); color: var(--paper); }

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 700px){ .masonry { grid-template-columns: 1fr; } }
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
  background: var(--black);
}
.tile img { width: 100%; height: auto; aspect-ratio: 3334 / 4167; display: block; object-fit: cover; background: var(--black); transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: var(--paper);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.tile:hover .tile-info { opacity: 1; transform: translateY(0); }
.tile-info .cat { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--yellow); text-transform: uppercase; }
.tile-info .sub { font-family: var(--font-display); font-size: 1.1rem; }
.tile.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17,17,17,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 900px); max-height: 82vh; border: 2px solid var(--paper); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 46px; height: 46px;
  border: 2px solid var(--paper);
  background: transparent; color: var(--paper);
  border-radius: 2px;
  font-size: 20px;
}
.lightbox-caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: var(--gray); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ============================================================
   PROCESO
   ============================================================ */
.process { background: var(--paper); }
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 800px){ .process-line { grid-template-columns: 1fr; gap: 0; } }
.process-line::before {
  content: "";
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--black) 0 10px, transparent 10px 16px);
}
@media (max-width: 800px){
  .process-line::before { top: 0; bottom: 0; left: 26px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--black) 0 10px, transparent 10px 16px); }
}
.process-step { position: relative; padding-top: 68px; }
@media (max-width: 800px){ .process-step { padding-top: 0; padding-left: 68px; padding-bottom: 40px; } }
.process-step .dot {
  position: absolute; top: 0; left: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.process-step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.process-step p { color: var(--charcoal); font-size: 14.5px; font-weight: 500; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--black); color: var(--paper); overflow: hidden; }
.contact .eyebrow { color: var(--gray); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px,6vw,80px); align-items: end; }
@media (max-width: 850px){ .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { color: var(--paper); font-size: clamp(2.6rem, 8vw, 5.5rem); margin-bottom: 20px; }
.contact-sub { color: var(--gray); font-size: 17px; font-weight: 600; max-width: 480px; margin-bottom: 32px; }
.contact .btn-primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.contact .btn-primary:hover { background: var(--paper); border-color: var(--paper); }

.contact-panel { border-top: 2px solid rgba(242, 242, 242, 0.25); padding-top: 28px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(242,242,242,0.15); gap: 16px; }
.contact-row .k { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.contact-row .v { font-family: var(--font-display); font-size: 1.15rem; text-align: right; }
.contact-row .v.placeholder { color: var(--yellow); font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-row a.v:hover { color: var(--yellow); }

.socials { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 2px solid rgba(242,242,242,0.3);
  border-radius: 2px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.social-btn:hover { border-color: var(--yellow); background: rgba(255,193,7,0.08); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--black);
  color: var(--gray);
  border-top: 2px solid rgba(242,242,242,0.2);
  padding: 22px 0;
}
.foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.foot-stripe { height: 8px; width: 100%;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--black) 14px 28px);
}
.foot-brand { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.02em; color: var(--paper); }
.foot small { font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Visually hidden (skip link) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--black);
  padding: 12px 18px; font-weight: 800; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================================
   IMAGEN MIA
   ============================================================ */

/* FOTO DE SOBRE MÍ */
.about-photo {
  width: 220px;
  height: 215px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s ease;
}

/* EFECTO AL PASAR EL CURSOR */
.about-photo:hover img {
  transform: scale(1.08);
  filter: brightness(0.68);
}

/* TEXTO SOBRE LA FOTO */
.about-photo-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.about-photo-caption span {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.about-photo:hover .about-photo-caption {
  opacity: 1;
}


/* VISOR DE IMAGEN GRANDE */
.about-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.about-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.about-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

/* BOTÓN CERRAR */
.about-lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}


/* MÓVIL */
@media (max-width: 700px) {
  .about-photo {
    width: 120px;
    height: 118px;
  }

  .about-lightbox {
    padding: 20px;
  }

  .about-lightbox img {
    max-width: 95vw;
    max-height: 85vh;
  }
}