/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --bg:         #161618;
  --bg-2:       #1C1C26;
  --bg-3:       #222238;
  --accent:     #E8C547;
  --accent-2:   #4A9EBF;
  --text:       #F0F0F0;
  --text-muted: #8F8FA8;
  --border:     rgba(232,197,71,0.18);
  --border-2:   rgba(240,240,240,0.10);
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

.mono  { font-family: var(--font-mono); }
.accent { color: var(--accent); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ============================================
   CURSOR PERSONALIZADO
   ============================================ */
.cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s;
}
.cursor-follower { display: none; }
.cursor--hover { width: 16px !important; height: 16px !important; }
.cursor-follower.cursor--hover { transform: translate(-50%,-50%) scale(1.5); }

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width .1s linear;
}

/* reveal gestionado 100% por GSAP — sin CSS inicial */

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  transition: background .4s, padding .3s;
}
.nav.scrolled {
  background: rgba(22,22,24,.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
  padding: 1rem 3rem;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .08em;
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: .45rem 1.2rem !important;
  font-weight: 600 !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { opacity: .85; }
.nav__menu-btn { display: none; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { margin-bottom: 4rem; }
.section-tag {
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

/* Fondo */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,197,71,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,197,71,.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero__bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 35% 50%, rgba(26,26,46,.6) 0%, rgba(22,22,24,.98) 65%);
}

/* Líneas decorativas */
.hero__lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__line {
  position: absolute;
  background: rgba(232,197,71,.15);
}
.hero__line--h1 { top: 18%; left: 0; right: 0; height: 1px; transform: scaleX(0); transform-origin: left; }
.hero__line--h2 { display: none; }
.hero__line--v1 { left: 58%; top: 0; bottom: 0; width: 1px; transform: scaleY(0); transform-origin: top; }

/* Foto */
.hero__image-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  z-index: 1;
  overflow: hidden;
}
.hero__image-wrap--placeholder::after {
  content: '[ foto ]';
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.hero__image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.05);
}
.hero__image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 40%),
              linear-gradient(to top, var(--bg) 0%, transparent 30%);
}

/* Contenido */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 3rem 2rem;
  max-width: 660px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero__tag {
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
}
.hero__tag-line {
  flex: 1;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  max-width: 120px;
}

.hero__name {
  font-family: var(--font-head);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 1.8rem;
  overflow: visible;
}
.hero__name-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}
.hero__name-line--accent { color: var(--accent); }

.hero__claim {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero__claim em { color: var(--text); font-style: normal; }

.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero__stat { display: flex; flex-direction: column; gap: .2rem; }
.hero__stat-number {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.hero__stat-number::after { content: '+'; font-size: 1.2rem; }
.hero__stat-label {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .82rem;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  transition: color .2s;
  opacity: 0;
  border: 1px solid var(--border-2);
  padding: .7rem 1.4rem;
}
.hero__cta:hover { color: var(--accent); border-color: var(--border); }

/* ============================================
   IMAGE BREAKS (fullscreen entre secciones)
   ============================================ */
.img-break {
  position: relative;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}
.img-break__inner {
  position: absolute;
  inset: 0;
}
.img-break__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.img-break__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,22,24,.85) 0%, rgba(22,22,24,.2) 60%);
}
.img-break--1 .img-break__overlay { background: linear-gradient(to top, rgba(22,22,24,.9) 0%, rgba(22,22,24,.3) 60%); }
.img-break--3 .img-break__overlay { background: linear-gradient(135deg, rgba(22,22,24,.50) 0%, rgba(34,34,56,.30) 100%); }
.img-break--ctrl .img-break__overlay { background: linear-gradient(to top, rgba(22,22,24,.92) 0%, rgba(22,22,24,.25) 70%); }
.img-break--ctrl .img-break__img { object-position: center 30%; }

.img-break__text {
  position: relative;
  z-index: 2;
}
.img-break__text span {
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .4rem;
}
.img-break__text p {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
}
.img-break__text--right {
  margin-left: auto;
  text-align: right;
}

/* ============================================
   CAMINO
   ============================================ */
.camino {
  padding: 8rem 0;
  background: var(--bg-2);
}
.camino__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: start;
}
.camino__sticky-img {
  position: sticky;
  top: 120px;
}
.camino__sticky-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--border);
}
.camino__sticky-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
  filter: grayscale(15%) contrast(1.05);
}
.camino__sticky-photo.active { opacity: 1; }
.camino__sticky-placeholder {
  position: absolute;
  inset: 0;
  display: none;
}

.camino__timeline { display: flex; flex-direction: column; }
.camino__step {
  padding: 2.5rem 0;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.camino__step-year {
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.camino__step h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .8rem;
}
.camino__step p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: .5rem;
}
.camino__insight {
  color: var(--text) !important;
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 1rem !important;
}
.camino__step--now h3 { color: var(--accent); }
.camino__link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(232,197,71,.4);
  transition: border-color .2s;
}
.camino__link:hover { border-color: var(--accent); }
.camino__badge {
  display: inline-block;
  margin-top: 1rem;
  padding: .4rem 1rem;
  background: rgba(232,197,71,.08);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .1em;
}
.camino__divider {
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: .2;
}

/* ============================================
   CÓMO TRABAJO
   ============================================ */
.como-trabajo {
  padding: 8rem 0;
  background: var(--bg);
}
.valores__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-2);
  border: 1px solid var(--border-2);
}
.valor-card {
  background: var(--bg);
  padding: 2rem 1.8rem;
  transition: background .25s;
  position: relative;
  overflow: hidden;
}
.valor-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .4s ease;
}
.valor-card:hover { background: var(--bg-2); }
.valor-card:hover::before { width: 100%; }
.valor-card__num {
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .15em;
  margin-bottom: .8rem;
  opacity: .6;
}
.valor-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.valor-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   SKILLS
   ============================================ */
.skills {
  padding: 8rem 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.skills__bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-head);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 900;
  color: rgba(232,197,71,.025);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: .05em;
  z-index: 0;
}
.skills .container { position: relative; z-index: 2; }
.skills__group { position: relative; z-index: 2; }
.skills__layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 3rem;
}
.skills__group-title {
  font-size: .7rem;
  color: var(--accent-2);
  letter-spacing: .15em;
  margin-bottom: 1rem;
  font-weight: 400;
}
.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.skill-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .35rem .85rem;
  border: 1px solid;
  letter-spacing: .04em;
  transition: all .25s;
  cursor: default;
}
.skill-tag:hover, .skill-tag:active {
  font-size: .82rem;
  padding: .4rem 1rem;
}
.skill-tag--high {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,197,71,.05);
}
.skill-tag--high:hover, .skill-tag--high:active { background: var(--accent); color: var(--bg); font-size: .84rem; padding: .4rem 1rem; }
.skill-tag--mid {
  border-color: rgba(74,158,191,.4);
  color: var(--accent-2);
  background: rgba(74,158,191,.04);
}
.skill-tag--mid:hover, .skill-tag--mid:active { background: var(--accent-2); color: var(--bg); font-size: .84rem; padding: .4rem 1rem; }

/* ============================================
   FUERA DEL TRABAJO
   ============================================ */
.fuera {
  padding: 8rem 0 4rem;
  background: var(--bg);
}
.fuera__intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 3rem;
}
.fuera__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-2);
  border: 1px solid var(--border-2);
  margin-bottom: 2.5rem;
}
.fuera__card {
  background: var(--bg-2);
  padding: 2.5rem;
  transition: background .3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fuera__card:hover { background: var(--bg-3); }
.fuera__card-tag {
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .15em;
  border: 1px solid var(--border);
  display: inline-block;
  padding: .2rem .6rem;
  width: fit-content;
}
.fuera__card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.fuera__card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
}
.fuera__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.fuera__tags span {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--accent-2);
  border: 1px solid rgba(74,158,191,.25);
  padding: .2rem .55rem;
}
.fuera__card-img {
  margin-top: auto;
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: transparent;
}
.fuera__card-img:empty { display: none; }
.fuera__card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform .6s ease, filter .4s;
}
.fuera__card:hover .fuera__card-img img {
  transform: scale(1.04);
  filter: grayscale(0%);
}
.fuera__conclusion {
  font-size: .95rem;
  color: var(--text);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  max-width: 680px;
}

/* ============================================
   POR QUÉ AHORA
   ============================================ */
.por-que {
  padding: 4rem 0 8rem;
  position: relative;
  overflow: hidden;
}
.por-que__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  filter: grayscale(80%);
}
.por-que__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg) 35%, rgba(22,22,24,.88) 100%);
  opacity: 1;
  filter: none;
}
.por-que .container { position: relative; z-index: 1; }
.por-que__content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
}
.por-que__lead {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.por-que__text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: .95rem;
}
.por-que__text strong { color: var(--accent); }
.por-que__quote {
  margin-top: 2rem;
  padding: 1.4rem 1.8rem;
  border-left: 3px solid var(--accent);
  background: rgba(232,197,71,.04);
  font-style: italic;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.7;
}
.por-que__aside {
  border: 1px solid var(--border);
  background: rgba(22,22,24,.6);
  backdrop-filter: blur(8px);
}
.por-que__fact {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.por-que__fact:last-child { border-bottom: none; }
.por-que__fact-label {
  font-size: .62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .15em;
}
.por-que__fact-value {
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto {
  padding: 8rem 0 6rem;
  background: var(--bg-2);
  text-align: center;
}
.contacto .section-header { margin-bottom: 1.5rem; }
.contacto__sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.contacto__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.8rem;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .08em;
  font-family: var(--font-mono);
  transition: all .2s;
  border: 1px solid transparent;
  text-transform: uppercase;
}
.btn--primary { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn--primary:hover { opacity: .85; }
.btn--secondary { background: transparent; color: var(--accent-2); border-color: var(--accent-2); }
.btn--secondary:hover { background: var(--accent-2); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border-2); }
.btn--ghost:hover { color: var(--text); border-color: rgba(240,240,240,.25); }
.contacto__location {
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .camino__layout {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  .nav { padding: 1rem 1.5rem; }
  .nav__links { display: none; }
  .nav__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav__menu-btn span {
    width: 24px; height: 1.5px;
    background: var(--text);
    display: block;
    transition: all .3s;
  }

  .hero__content { padding: 7rem 1.5rem 3rem; max-width: 100%; }
  .hero__image-wrap { display: none; }
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }

  .camino__layout { grid-template-columns: 1fr; }
  .camino__sticky-img { display: none; }

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

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

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

  .por-que__content { grid-template-columns: 1fr; gap: 3rem; }

  .img-break { height: 45vh; }

  .contacto__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .section-title { font-size: 2.4rem; }
  .valores__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.2rem; }
  .hero__stat-number { font-size: 1.8rem; }
}
