/* Alonso Pareja · portafolio
   Concepto: hoja de presentación profesional. Secciones blancas y ordenadas,
   negro para los momentos de video, naranja solo como acento. Montserrat con
   contraste de grosores: títulos en 300, nombres y datos clave en 600. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #ffffff;
  --grey: #f4f3f1;
  --ink: #111111;
  --black: #0b0b0b;
  --text: #3d3d3d;
  --muted: #767676;
  --line: #e4e2df;
  --line-dark: #2a2a2a;
  --orange: #ff5b14;
  --orange-ink: #d94300; /* naranja con contraste suficiente sobre blanco para texto */

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); text-wrap: balance; font-weight: 300; }
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--white); }

.wrap {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
.h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em; }
.h2 span { font-weight: 600; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.01em; font-weight: 400; }
.h4 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; font-weight: 300; }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink); font-weight: 400; }
.lead--sub { margin-top: 14px; color: var(--text); font-size: clamp(17px, 1.4vw, 19px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 2px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--solid { background: var(--orange); color: var(--black); }
.btn--solid:hover { background: var(--white); }
.btn--line { border: 1px solid rgba(255, 255, 255, .45); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* ---------- Encabezado ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--white); }
.top__in {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.top__brand { font-size: 18px; font-weight: 300; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.top__brand b { font-weight: 700; }
.top__nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: 15px; font-weight: 500; }
.top__nav a { text-decoration: none; color: var(--text); transition: color .2s; }
.top__nav a:hover { color: var(--ink); }
.top__cta { color: var(--ink) !important; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: #d8d6d2; overflow: hidden; }
.hero__in {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.hero__photo { align-self: end; padding-top: 48px; }
.hero__photo img {
  width: 100%; max-width: 470px; margin-inline: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  animation: rise 1s var(--ease) both;
}
.hero__text { padding-block: clamp(48px, 7vw, 96px); min-width: 0; }
.hero__name { display: flex; flex-direction: column; color: var(--white); font-size: clamp(56px, 8.4vw, 124px); line-height: .92; letter-spacing: -.035em; }
.hero__first { font-weight: 200; }
.hero__last { font-weight: 700; color: var(--orange); }
.hero__role { margin-top: 24px; font-size: 16px; font-weight: 500; color: var(--white); letter-spacing: .02em; }
.hero__lede { margin-top: 14px; max-width: 54ch; font-size: 17px; line-height: 1.7; color: #b9b6b0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec--white { background: var(--white); }
.sec--grey { background: var(--grey); }
.sec--dark { background: var(--black); color: #b9b6b0; }
.sec--dark .h2, .sec--dark .h3, .sec--dark .lead { color: var(--white); }
.sec__head { max-width: 640px; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; }
.split--tight { align-items: end; }
.split__body { display: grid; gap: 18px; max-width: 70ch; min-width: 0; }


.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 88px); }
.services li { padding-top: 20px; border-top: 2px solid var(--ink); }
.services h3 { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
.services p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Reproductor ---------- */
.media { min-width: 0; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; background: #161616; overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center; color: var(--white);
}
.player__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.player__poster:hover img { transform: scale(1.025); }
.player__poster--title { background: radial-gradient(120% 90% at 30% 20%, #262626 0%, #121212 60%, #0b0b0b 100%); }
.player__label {
  position: absolute; left: clamp(18px, 3vw, 32px); bottom: clamp(16px, 2.6vw, 28px);
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-align: left;
}
.player__label small { display: block; margin-top: 6px; font-size: clamp(14px, 1.2vw, 16px); font-weight: 300; letter-spacing: 0; color: #c9c6c0; }
.player__btn {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .3s var(--ease);
}
.player__btn::after {
  content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--black);
}
.player__poster:hover .player__btn { transform: scale(1.08); }

.media__bar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 12px; font-size: 14px; color: #8b8882; }
.media__zoom {
  font-size: 14px; font-weight: 600; color: inherit; display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.media__zoom svg { width: 14px; height: 14px; }
.media__zoom:hover { color: var(--orange); }
.player:fullscreen { background: #000; }

/* ---------- Destacado ---------- */
.feature__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.feature__text { display: grid; gap: 18px; }
.feature__text .h2 span { display: block; font-weight: 300; font-size: .6em; line-height: 1.2; margin-top: 8px; color: #d8d6d2; }
.feature__text .h2 { font-weight: 600; }

/* ---------- Trabajo ---------- */
#trabajo .h2 span { font-weight: 600; }
.index { display: flex; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.index a {
  flex: 1 1 auto; padding: 22px 28px 0 0; margin-right: 28px; text-decoration: none;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; color: var(--ink); position: relative;
  transition: color .25s;
}
.index a:last-child { margin-right: 0; padding-right: 0; }
.index a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.index a:hover { color: var(--orange-ink); }
.index a:hover::before, .index a:focus-visible::before { transform: scaleX(1); }

.client { padding-block: clamp(72px, 9vw, 120px); }
#trabajo { padding-bottom: 0; }
#trabajo > .wrap { padding-bottom: clamp(64px, 8vw, 104px); }

/* Opción Atlántico: negro */
.client--dark { background: var(--black); color: #b9b6b0; padding-bottom: 0; }
.client--dark .h3 { color: var(--white); }
.client--dark .client__meta { color: #8b8882; }
.client--dark .client__meta a { color: var(--orange); }
.client--dark { padding-bottom: 0; }
.client--dark .band .h4, .client--dark .band__num span { color: var(--white); }
.client--dark .band { margin-top: clamp(72px, 9vw, 112px); }
.client--dark .portrait { background: #1c1c1c; }
.client--dark .client__logo { height: 64px; }
/* LHPA: papel */
.client--paper { background: var(--grey); }
/* Minciencias: blanco */
.client--white { background: var(--white); }
/* Bielas: tinta */
.client--ink { background: #161514; color: #b9b6b0; }
.client--ink .h3 { color: var(--white); }
.client--ink .media__bar { color: #8b8882; }
.client__head { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.client__logo { width: auto; height: 52px; flex: none; }
.client__logo--wide { height: 36px; }
.client__sub { margin-top: 4px; font-size: 17px; font-weight: 400; }
.client__body { display: grid; gap: 12px; max-width: 72ch; margin-top: 24px; }
.client__meta { font-size: 15px; color: var(--muted); }
.client__meta a { color: var(--orange-ink); font-weight: 600; text-decoration: none; }
.client__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Reels de Instagram: el embed oficial se recorta para mostrar solo el video */
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 40px; }
.reel figcaption { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.reel figcaption strong { color: var(--white); font-weight: 600; }
.reel__frame { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--black); }
.reel__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__frame[data-ratio="0.5625"] > img { object-fit: contain; }
.reel__frame iframe { position: absolute; left: 0; border: 0; transform-origin: 0 0; background: var(--black); }

/* Anuario */
.band { background: var(--black); color: #b9b6b0; border-top: 1px solid var(--line-dark); margin-top: clamp(64px, 8vw, 104px); padding-block: clamp(64px, 8vw, 104px); }
.band__num { margin-top: 10px; font-size: 16px; color: var(--muted); }
.band__num span { font-size: clamp(44px, 5vw, 64px); font-weight: 200; color: var(--ink); letter-spacing: -.03em; margin-right: 6px; line-height: 1; }
.portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin-top: 40px; }
.portrait { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #e9e8e6; }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.portrait:hover img { transform: scale(1.03); }
.sheet { margin-top: clamp(10px, 1.4vw, 18px); }
.sheet button { display: block; width: 100%; }
.sheet img { width: 100%; filter: grayscale(1); transition: filter .5s; }
.sheet button:hover img { filter: none; }

/* Diseños LHPA */
.designs { display: grid; gap: clamp(14px, 1.8vw, 24px); margin-top: 40px; }
.designs--story { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.designs--post { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; margin-top: clamp(14px, 1.8vw, 24px); }
.design { display: grid; gap: 10px; }
.design img { width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px -12px rgba(0,0,0,.18); transition: transform .5s var(--ease); }
.designs--story .design img { aspect-ratio: 9 / 16; object-fit: cover; }
.designs--post .design img { aspect-ratio: 3 / 4; object-fit: cover; }
.design:hover img { transform: translateY(-4px); }
.designs__note { font-size: 15px; color: var(--muted); line-height: 1.6; padding-left: clamp(0px, 1vw, 12px); align-self: center; max-width: 34ch; }

/* Cápsulas */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 28px); margin-top: 40px; }
.cap figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; color: var(--muted); }
.cap figcaption strong { color: var(--ink); font-size: 16px; }

/* Proyecto propio */
.own { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 4vw, 56px); align-items: center; padding-bottom: clamp(8px, 2vw, 24px); }
.own__text { display: grid; gap: 8px; }
.own__text p:last-child { margin-top: 10px; }

/* ---------- Trayectoria ---------- */
.cv li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 4px 24px; padding-block: 18px; border-top: 1px solid #dddad6; align-items: baseline; }
.cv li:last-child { border-bottom: 1px solid #dddad6; }
.cv__role { font-weight: 600; color: var(--ink); }
.cv__org { color: var(--text); }
.cv__when { text-align: right; font-size: 14px; color: var(--muted); }

/* ---------- Equipo ---------- */
.kit > div:last-child { border-bottom: 1px solid #dddad6; }
.kit > div { padding-block: 18px; border-top: 1px solid #dddad6; }
.kit p strong { display: block; font-size: 19px; color: var(--ink); line-height: 1.3; }

/* ---------- Clientes ---------- */
.sec--clients .h2 span { font-weight: 600; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border: 1px solid var(--line); }
.logos li { display: grid; place-items: center; min-height: clamp(120px, 12vw, 160px); padding: 24px; border-left: 1px solid var(--line); }
.logos li:first-child { border-left: 0; }
.logos img { width: auto; height: 80px; max-width: 80%; object-fit: contain; }
.logos img[src*="lhpa"] { height: 96px; }
.logos .logos__wide { height: auto; max-height: 52px; max-width: 92%; }

/* ---------- Contacto ---------- */
.contact .h2 span { color: var(--orange); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 12px; }
.mail__addr { font-size: clamp(18px, 2.2vw, 28px); font-weight: 500; color: var(--white); text-decoration: none; overflow-wrap: anywhere; min-width: 0; transition: color .15s; }
.mail__addr:active { color: var(--orange); }
.mail__copy { font-size: 14px; font-weight: 600; color: var(--white); border: 1px solid #444; padding: 10px 16px; border-radius: 2px; transition: border-color .2s, color .2s; }
.mail__copy:hover { border-color: var(--orange); color: var(--orange); }
.contact__ig { margin-top: 8px; font-size: 15px; }
.contact__ig a { color: var(--white); font-weight: 600; text-decoration: none; margin-left: 6px; }
.contact__ig a:hover { color: var(--orange); }

/* ---------- Pie ---------- */
.foot { background: var(--black); color: #77746f; font-size: 14px; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-dark); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

/* ---------- Visor de imágenes ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: calc(56px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(11, 11, 11, .96); display: none; place-items: center;
}
.lightbox[open] { display: grid; animation: fade .25s ease; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); color: var(--white); font-size: 14px; font-weight: 600; padding: 8px 4px; }
.lightbox__close:hover { color: var(--orange); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100dvh; display: grid; align-content: center; gap: 20px; padding-block: 64px; }
.notfound__code { color: var(--orange-ink); font-weight: 600; }
.notfound__text { max-width: 40ch; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature__grid, .own { grid-template-columns: minmax(0, 1fr); }
  .designs--post { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .designs__note { grid-column: 1 / -1; padding-left: 0; max-width: 60ch; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos li:nth-child(3) { border-left: 0; }
  .logos li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header: 60px; }
  .top__nav a:not(.top__cta):not([href="#trabajo"]) { display: none; }

  /* Hero móvil: la foto se monta sobre el nombre */
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__photo { padding-top: 32px; }
  .hero__photo img { width: min(76vw, 340px); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); }
  .hero__text { position: relative; z-index: 2; padding-top: 0; padding-bottom: 48px; }
  .hero__name { font-size: clamp(56px, 19vw, 120px); margin-top: -.95em; }
  .hero__last { align-self: flex-end; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .index { flex-direction: column; border-top: 0; }
  .index a { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .services { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .services li { padding-block: 18px; border-top: 1px solid var(--line); }
  .services li:first-child { border-top: 2px solid var(--ink); }
  .client__head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .client__logo { height: 44px; }
  .client__logo--wide { height: 30px; }
  .reels {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
    padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
    scrollbar-width: none;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 82%; scroll-snap-align: center; }
  .portraits, .designs--story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .cv li { grid-template-columns: minmax(0, 1fr); }
  .cv__when { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

