/* ============================================================
   Réplica de leandroriviello.com
   Negro puro · Instrument Sans (display) · Inter Tight (texto)
   ============================================================ */
:root {
  --bg: #000;
  --fg: #fff;
  --dim: #b3b3b3;
  --muted: #7a7a7a;
  --line: #222;
  --accent: #35d15a;
  --radius: 26px;
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: 'Inter Tight', system-ui, sans-serif;
  line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--fg); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* tipografía display */
.hero-name, .big-title, .wordmark, .loader-name {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.04em; line-height: 0.9;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader-name { font-size: clamp(2rem, 8vw, 5rem); color: #fff; opacity: .9; animation: pulse 1.2s ease-in-out infinite; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes pulse { 0%,100%{opacity:.35} 50%{opacity:1} }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
}
.clock { font-size: 0.82rem; letter-spacing: 0.1em; font-weight: 500; font-variant-numeric: tabular-nums; }
.clock-label { color: var(--fg); }
.nav-toggle {
  background: none; border: 0; color: var(--fg); cursor: pointer;
  font-family: inherit; font-size: 0.82rem; letter-spacing: 0.14em; font-weight: 600; text-transform: uppercase;
  position: relative;
}
.nav-toggle::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.nav-toggle:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- MENU ---------- */
.menu {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s cubic-bezier(.76,0,.24,1);
  pointer-events: none;
}
.menu.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu-close { position: absolute; top: 22px; right: var(--pad); background: none; border: 0; color: #fff; cursor: pointer; font-family: inherit; font-size: 0.82rem; letter-spacing: 0.14em; font-weight: 600; }
.menu-list { list-style: none; text-align: center; }
.menu-list li { overflow: hidden; }
.menu-list a {
  font-family: 'Instrument Sans', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 5rem); line-height: 1.05; letter-spacing: -0.03em;
  display: inline-block; transition: color .25s ease; color: #fff;
}
.menu-list a:hover { color: var(--muted); }

/* ---------- LAYOUT ---------- */
section { padding: clamp(80px, 12vw, 180px) var(--pad); max-width: var(--maxw); margin: 0 auto; position: relative; }
.big-title { font-size: clamp(3rem, 13vw, 11rem); text-align: center; }
.reveal-lines .line { display: block; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; padding-top: 20vh; display: flex; flex-direction: column; }
.hero-top { display: flex; justify-content: center; margin-bottom: 4vh; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 0.8rem; letter-spacing: 0.16em; font-weight: 600; color: var(--dim); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s ease-out infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 #35d15a99} 70%{box-shadow:0 0 0 8px #35d15a00} 100%{box-shadow:0 0 0 0 #35d15a00} }
.hero-name { font-size: clamp(3.5rem, 15vw, 13rem); text-align: center; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin: 5vh 0; font-size: clamp(0.75rem, 1.4vw, 0.95rem); letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase; gap: 16px; flex-wrap: wrap;
}
.hero-role strong { font-weight: 700; }
.hero-role { color: var(--muted); }
.hero-role strong { color: var(--fg); }
.flag { font-size: 1.1em; }
.photo-frame {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid #ffffff38;
  box-shadow: 0 0 0 6px #080808, 0 0 0 7px #35d15a55, 0 30px 90px -42px #000;
}
.photo-frame img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.photo-frame:hover img { transform: scale(1.025); filter: saturate(1.07) contrast(1.025); }
.hero-photo { width: 100%; border-radius: 34px 34px 52px 16px; aspect-ratio: 16/10; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ABOUT ---------- */
.about { text-align: center; }
.about-photo { width: min(460px, 80%); margin: clamp(40px,7vw,90px) auto; border-radius: 46% 46% 34% 34% / 34% 34% 22% 22%; aspect-ratio: 3/4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { max-width: 760px; margin: 0 auto; }
.about-lead { font-size: clamp(1.3rem, 3vw, 2.1rem); font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 1.4em; }
.about-body { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--dim); margin-bottom: 2em; }

/* pill button */
.btn-pill {
  display: inline-block; background: var(--fg); color: #000;
  padding: 15px 30px; border-radius: 100px; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.06em; text-transform: uppercase; transition: transform .2s ease, background .2s ease;
}
.btn-pill:hover { transform: translateY(-3px); background: #e2e2e2; }

/* ---------- BRANDS ---------- */
.brands { max-width: 100%; }
.brands .big-title { margin-bottom: clamp(40px, 6vw, 80px); }
.brands-viewport { position: relative; }
.brands-track {
  display: flex; flex-wrap: nowrap; gap: clamp(16px, 2vw, 34px);
  overflow-x: auto; padding: 34px var(--pad);
  -webkit-overflow-scrolling: touch;
  cursor: grab; scrollbar-width: none; user-select: none;
}
.brands-track::-webkit-scrollbar { display: none; }
.brands-track.dragging { cursor: grabbing; }
.brand-card {
  flex: 0 0 auto; width: clamp(180px, 20vw, 230px); aspect-ratio: 1; border-radius: 20px;
  background: linear-gradient(160deg, #161616, #0a0a0a); border: 1px solid #1e1e1e;
  display: flex; align-items: center; justify-content: center; padding: clamp(28px, 3.5vw, 46px);
  box-shadow: 0 28px 56px -30px #000;
}
.brand-card:nth-child(odd) { transform: rotate(-3deg); }
.brand-card:nth-child(even) { transform: rotate(3deg); }
.brand-card img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; pointer-events: none; -webkit-user-drag: none; }

/* flechas de navegación (PC) */
.brands-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: #111; border: 1px solid var(--line); color: var(--fg);
  font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.brands-nav:hover { background: #1c1c1c; border-color: var(--accent); color: var(--accent); }
.brands-nav.prev { left: 8px; }
.brands-nav.next { right: 8px; }
.brands-nav[disabled] { opacity: .3; cursor: default; pointer-events: none; }
@media (max-width: 640px) { .brands-nav { display: none; } }

/* ---------- MOTIVATION ---------- */
.motivation { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.col-label { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.motivation-text p { font-size: clamp(1.2rem, 2.3vw, 1.9rem); font-weight: 500; line-height: 1.35; margin-bottom: 1.2em; }

/* ---------- FAQ ---------- */
.faq .big-title { margin-bottom: clamp(40px, 7vw, 90px); }
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #0e0e0e; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--fg); cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  padding: 26px 28px; font-size: clamp(0.85rem, 1.6vw, 1.05rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
}
.faq-ic { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; background: var(--fg); transition: transform .3s ease; }
.faq-ic::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-ic::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 28px 26px; color: var(--dim); font-size: clamp(0.95rem, 1.5vw, 1.12rem); max-width: 680px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .big-title { margin-bottom: 40px; }
.cta-photo { width: min(720px, 100%); margin: clamp(50px,8vw,100px) auto; border-radius: 18px 52px 18px 52px; aspect-ratio: 16/11; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-tagline { max-width: 720px; margin: 0 auto clamp(30px,5vw,50px); font-size: clamp(0.95rem, 1.8vw, 1.3rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.35; }
.socials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(50px, 9vw, 120px); }
.socials a { font-size: clamp(0.85rem, 1.5vw, 1.05rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 5px; transition: color .2s ease; }
.socials a:hover { color: var(--muted); }
.arr { display: inline-block; transition: transform .2s ease; }
.socials a:hover .arr { transform: translate(2px,-2px); }
.wordmark { font-size: clamp(3.2rem, 15vw, 12rem); text-align: center; line-height: 1; }
.site-footer { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(40px,6vw,70px); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); flex-wrap: wrap; gap: 14px; }
.to-top { background: none; border: 0; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color .2s ease; }
.to-top:hover { color: var(--fg); }

/* ---------- PROYECTOS ---------- */
.page-hero { padding-top: 22vh; }
.page-lead { max-width: 640px; margin: 24px auto 0; text-align: center; color: var(--dim); font-size: clamp(1rem, 1.8vw, 1.25rem); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: clamp(50px, 8vw, 90px); }
.project-card {
  background: #0c0c0c; border: 1px solid var(--line); border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, border-color .2s ease; min-height: 240px;
}
.project-card:hover { transform: translateY(-4px); border-color: #444; }
.project-emoji { font-size: 2.4rem; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-status { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 5px 12px; border-radius: 100px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.project-status.dev { color: var(--accent); border-color: #35d15a55; background: #35d15a12; }
.project-status.store { color: #4da3ff; border-color: #4da3ff55; background: #4da3ff12; }
.project-card h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.project-tagline { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-top: -8px; }
.project-desc { color: var(--dim); font-size: 0.98rem; flex-grow: 1; }
.project-link { color: var(--fg); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }
.project-link:hover { color: var(--accent); }
.projects-note { text-align: center; color: var(--muted); margin-top: 60px; font-size: 0.9rem; }

/* ---------- CONTACTO ---------- */
.contact-page { min-height: calc(100vh - 100px); padding-top: 22vh; display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1fr); align-items: start; gap: clamp(44px, 6vw, 100px); }
.contact-copy .status { margin-bottom: 28px; }
.contact-copy .big-title { max-width: 100%; text-align: left; font-size: clamp(4.2rem, 7vw, 6.5rem); overflow-wrap: anywhere; }
.contact-copy p { max-width: 500px; margin: 28px 0; color: var(--dim); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.35; }
.contact-copy > a { display: inline-flex; min-height: 44px; align-items: center; color: var(--fg); border-bottom: 1px solid var(--accent); font-size: 1rem; font-weight: 600; }
.contact-form { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 4vw, 38px); border: 1px solid #ffffff1f; border-radius: 28px; background: linear-gradient(145deg, #121b14 0%, #0c0c0c 54%); box-shadow: 0 26px 70px -48px #35d15a66; }
.contact-form label { display: flex; flex-direction: column; gap: 9px; color: var(--dim); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--fg); background: #050505; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: normal; transition: border-color .15s ease, box-shadow .15s ease; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px #35d15a1f; }
.contact-form select { appearance: none; }
.contact-fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn-pill { border: 0; cursor: pointer; align-self: flex-start; }
.contact-form .btn-pill:active { transform: scale(.96); }
.contact-notice { padding: 13px 14px; border: 1px solid #ffbd3e55; border-radius: 12px; color: #ffcf6b; background: #ffbd3e12; font-size: .9rem; }
.contact-notice.is-success { border-color: #35d15a55; color: var(--accent); background: #35d15a12; }
.contact-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.contact-footer { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 40px; }
.contact-footer a:hover { color: var(--fg); }

/* ---------- 404 / DESIERTO ---------- */
.notfound-body { min-height: 100vh; background: #000; }
.notfound-page { isolation: isolate; min-height: 100svh; max-width: none; overflow: hidden; padding: 0 var(--pad); display: grid; place-items: center; }
.notfound-desert-image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: contrast(1.08) brightness(.78); }
.notfound-page::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, #00000036 0%, #0000005e 48%, #0000009c 100%); }
.notfound-code { position: absolute; z-index: -1; top: 8vh; left: 50%; transform: translateX(-50%); color: #f5f5f5; font-family: 'Instrument Sans', sans-serif; font-size: clamp(14rem, 42vw, 46rem); font-weight: 700; letter-spacing: -.12em; line-height: .72; opacity: .22; text-shadow: 0 0 28px #fff4; user-select: none; }
.notfound-content { width: min(100%, 760px); margin-top: 8vh; text-align: center; }
.notfound-content .status { justify-content: center; color: #e9e9e9; position: relative; z-index: 1; text-shadow: 0 2px 12px #000; }
.notfound-content .status-dot { background: var(--accent); animation: none; box-shadow: 0 0 16px #35d15a99; }
.notfound-content h1 { margin: 23px 0 18px; color: #fff; font-family: 'Instrument Sans', sans-serif; font-size: clamp(3.5rem, 10vw, 8.5rem); font-weight: 700; line-height: .84; letter-spacing: -.07em; text-shadow: 0 5px 26px #000; }
.notfound-content p { max-width: 390px; margin: 0 auto 30px; color: #f0f0f0; font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 500; text-shadow: 0 2px 16px #000; }
.notfound-actions { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.notfound-actions .btn-pill { min-height: 48px; box-shadow: 0 10px 30px #0005; }
.notfound-actions .btn-pill:active { transform: scale(.96); }
.notfound-link { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 1px solid #ffffff66; color: #fff; font-size: .9rem; font-weight: 600; transition: color .15s ease, border-color .15s ease; }
.notfound-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- REVEAL (solo si el JS está activo) ---------- */
.js .reveal-lines .line { opacity: 0; }
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .motivation { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero { padding-top: 24vh; }
  .brand-card:nth-child(odd), .brand-card:nth-child(even) { transform: none; }
  .photo-frame { box-shadow: 0 0 0 4px #080808, 0 0 0 5px #35d15a55, 0 22px 64px -38px #000; }
  .hero-photo { border-radius: 22px 22px 36px 12px; }
  .cta-photo { border-radius: 14px 34px 14px 34px; }
  .contact-page { grid-template-columns: 1fr; padding-top: 18vh; }
  .notfound-code { top: 13vh; }
  .notfound-content { margin-top: 13vh; }
}
@media (max-width: 1050px) { .contact-page { grid-template-columns: 1fr; padding-top: 18vh; } .contact-copy .big-title { font-size: clamp(4rem, 13vw, 7rem); } }
@media (max-width: 520px) { .contact-fields-two { grid-template-columns: 1fr; } .contact-form { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal-lines .line, [data-reveal] { transform: none; opacity: 1; }
  .loader { display: none; }
}
