/* ==========================================================
   VERTEX LAB — 3D Design & Print
   Paleta de marca: #0B0B0B · #9CA3AF · #F5F5F5
   ========================================================== */

:root {
  --black: #0B0B0B;
  --gray: #9CA3AF;
  --white: #F5F5F5;
  --ink-2: #1A1A1A;
  --line-dark: rgba(245, 245, 245, .12);
  --line-light: rgba(11, 11, 11, .12);
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --track: .42em;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Logo VL ---------- */
.vl { width: 44px; height: auto; fill: none; stroke: currentColor; stroke-width: 7; stroke-linejoin: miter; }
.vl--sm { width: 38px; }

/* ---------- La "E" sin columna de la marca ---------- */
.e {
  display: inline-block;
  width: .56em;
  height: .7em;
  margin: 0 var(--track, .42em) 0 0;
  vertical-align: baseline;
  --t: .055em;
  background:
    linear-gradient(currentColor, currentColor) top / 100% var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% var(--t) no-repeat;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font: 400 12px/1 var(--font);
  letter-spacing: .28em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost { color: var(--white); border-color: var(--line-dark); }
.btn--ghost:hover { border-color: var(--white); }
.btn--full { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--white);
  transition: background .4s, padding .4s, color .4s;
}
.nav.is-scrolled {
  background: rgba(11, 11, 11, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
}
.nav__logo { display: flex; }
.nav__links { display: flex; align-items: center; gap: 38px; }
.nav__links a {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid var(--line-dark); padding: 10px 20px !important; transition: border-color .3s, background .3s, color .3s; }
.nav__cta:hover { background: var(--white); color: var(--black); }

.nav__toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; position: relative; color: inherit; }
.nav__toggle span { position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor; transition: transform .3s; }
.nav__toggle span:first-child { top: 14px; }
.nav__toggle span:last-child { top: 22px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad) 80px;
  background: radial-gradient(ellipse at 70% 40%, #1c1c1c 0%, var(--black) 60%);
  color: var(--white);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content { position: relative; max-width: 760px; }
.wordmark {
  font-size: clamp(26px, 5vw, 72px);
  letter-spacing: var(--track);
  line-height: 1.1;
  white-space: nowrap;
  font-weight: 300;
}
.hero__tag {
  margin-top: 18px;
  font-size: clamp(11px, 1.5vw, 16px);
  letter-spacing: .6em; text-transform: uppercase; color: var(--gray);
}
.hero__lead { margin-top: 36px; max-width: 460px; color: rgba(245,245,245,.72); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__side {
  position: absolute; right: var(--pad); bottom: 90px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gray);
}
.hero__side::after { content: ""; width: 28px; height: 1px; background: var(--gray); margin-top: 14px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 48px; background: var(--line-dark); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--white); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* entrada del hero */
.hero__content > * { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; }
.hero__content > *:nth-child(2) { animation-delay: .15s; }
.hero__content > *:nth-child(3) { animation-delay: .3s; }
.hero__content > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section--light { background: var(--white); color: var(--black); }
.section--gray { background: #E9E9E9; color: var(--black); }
.section--dark { background: var(--black); color: var(--white); }
.section__head { margin-bottom: clamp(48px, 7vw, 80px); }
.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gray); margin-bottom: 18px; }
.section h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: .04em; line-height: 1.15; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.service {
  position: relative; padding: 44px 32px 48px 0;
  border-right: 1px solid var(--line-light);
  transition: background .4s;
}
.service + .service { padding-left: 32px; }
.service:last-child { border-right: 0; }
.service__num { font-size: 12px; letter-spacing: .2em; color: var(--gray); }
.service__icon { display: block; width: 46px; height: 46px; margin: 34px 0 30px; fill: none; stroke: var(--black); stroke-width: 1.2; transition: transform .6s var(--ease); }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); }
.service h3 { font-size: 22px; letter-spacing: .06em; margin-bottom: 12px; }
.service p { color: #4b4b4b; font-size: 16px; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step { position: relative; padding-top: 36px; border-top: 1px solid var(--line-dark); }
.step::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px;
  background: var(--white); transform: rotate(45deg);
}
.step__n { display: block; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gray); margin-bottom: 26px; letter-spacing: .04em; }
.step h3 { font-size: 20px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 12px; }
.step p { color: rgba(245,245,245,.62); font-size: 16px; }

/* ---------- Trabajos ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 16px; }
.work { margin: 0; position: relative; overflow: hidden; background: var(--black); color: var(--white); }
.work--tall { grid-row: span 2; }
.work--wide { grid-column: span 2; }
.work__media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s var(--ease); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work:hover .work__media { transform: scale(1.05); }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px;
  font-size: 18px; letter-spacing: .04em;
  background: linear-gradient(transparent, rgba(11,11,11,.75));
}
.work figcaption span { display: block; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }

/* Ilustraciones de muestra (reemplazar por fotos reales) */
.work__media--vase {
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(245,245,245,.06) 22px 24px),
    radial-gradient(ellipse 34% 46% at 50% 52%, #2a2a2a, #121212 70%, transparent 71%),
    linear-gradient(#3a3a3a, #232323);
}
.work__media--grid {
  background:
    linear-gradient(rgba(245,245,245,.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(245,245,245,.08) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 50% 50%, #2b2b2b, #0e0e0e 70%);
}
.work__media--case {
  background:
    radial-gradient(circle at 34% 30%, #111 0 7%, transparent 7.5%),
    radial-gradient(circle at 34% 30%, #2d2d2d 0 11%, transparent 11.5%),
    linear-gradient(135deg, #3b3b3b, #161616);
}
.work__media--box {
  background:
    linear-gradient(160deg, transparent 52%, rgba(245,245,245,.06) 52% 53%, transparent 53%),
    linear-gradient(120deg, #1b1b1b 0 55%, #0d0d0d 55%),
    #111;
}

/* ---------- Equipo / Impresora ---------- */
.printer { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.printer__visual { margin: 0; position: relative; padding: 0; background: radial-gradient(circle at 50% 45%, #1d1d1d, var(--black) 70%); border: 1px solid var(--line-dark); }
.printer__stage { width: 100%; aspect-ratio: 4 / 5; cursor: grab; }
.printer__stage:active { cursor: grabbing; }
.printer__stage canvas { display: block; width: 100% !important; height: 100% !important; }
.printer__visual figcaption { position: absolute; left: 20px; bottom: 16px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gray); }

.printer__lead { margin-top: 24px; color: rgba(245,245,245,.7); max-width: 520px; }
.printer__lead strong { color: var(--white); font-weight: 400; }
.perks { list-style: none; padding: 0; margin: 44px 0 0; border-top: 1px solid var(--line-dark); }
.perks li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.perks li > span { font-size: 12px; letter-spacing: .2em; color: var(--gray); padding-top: 5px; }
.perks h3 { font-size: 18px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.perks p { color: rgba(245,245,245,.6); font-size: 16px; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.about__text p:not(.eyebrow) { margin-top: 28px; color: #3d3d3d; max-width: 520px; }
.stats { list-style: none; padding: 0; margin: 48px 0 0; display: flex; gap: clamp(24px, 5vw, 56px); }
.stats strong { display: block; font-weight: 300; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.stats span { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #6b6b6b; }
.materials ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-light); }
.materials li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line-light);
  font-size: 15px; color: #4b4b4b;
  transition: padding-left .4s var(--ease);
}
.materials li:hover { padding-left: 10px; }
.materials li span { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--black); font-weight: 400; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); }
.contact__info > p:not(.eyebrow) { margin-top: 24px; color: rgba(245,245,245,.65); }
.contact__list { list-style: none; padding: 0; margin: 44px 0 0; }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact__list span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gray); }
.contact__list a { transition: color .3s; overflow-wrap: anywhere; text-align: right; }
.contact__list a:hover { color: var(--gray); }
.contact__list p { text-align: right; line-height: 1.4; }
.contact__list small { font-size: 13px; color: var(--gray); }

.form { display: flex; flex-direction: column; gap: 26px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 0 10px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark);
  color: var(--white); font: 300 17px var(--font);
  outline: none; border-radius: 0; resize: vertical;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s;
}
.field select option { color: var(--black); }
.field label {
  position: absolute; left: 0; top: 22px; pointer-events: none;
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--gray);
  transition: top .3s var(--ease), font-size .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--white); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 0; font-size: 10px; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #c96a6a; }
.form__note { min-height: 1.4em; font-size: 14px; color: var(--gray); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); border-top: 1px solid var(--line-dark); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__word { letter-spacing: var(--track); font-size: 14px; }
.footer__social { margin-left: auto; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gray); transition: color .3s; }
.footer__social:hover { color: var(--white); }
.footer__social + .footer__copy { margin-left: 32px; }
.footer__copy { margin-left: auto; font-size: 12px; letter-spacing: .12em; color: var(--gray); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service { padding: 40px 24px 40px 0; }
  .service + .service { padding-left: 0; }
  .service:nth-child(even) { padding-left: 24px; border-right: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .about, .contact, .printer { grid-template-columns: 1fr; }
  .hero__side { display: none; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: var(--black);
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav__links a { font-size: 15px; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .wordmark { letter-spacing: .28em; }
  .hero__tag { letter-spacing: .42em; }
  .works { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .work--tall { grid-row: span 1; }
  .work--wide { grid-column: span 1; }
  .footer__copy, .footer__social + .footer__copy { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .services, .steps { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 36px 0; border-right: 0; }
  .service + .service { border-top: 1px solid var(--line-light); }
  .stats { flex-wrap: wrap; }
  .materials li { grid-template-columns: 1fr; gap: 4px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__content > * { opacity: 1; transform: none; }
}
