/* =========================================================
   paulamateub · portfolio
   Base en blanco y negro. Paleta de marca solo en botones.
   ========================================================= */
:root {
  /* Blanco y negro */
  --ink: #111111;
  --ink-soft: #555555;
  --line: #e6e6e6;
  --paper: #ffffff;
  --gray: #f2f2f2;

  /* Paleta de marca (solo botones y elementos que se indiquen) */
  --brand-white: #FDFEFF;
  --brand-lavender: #ABC4FF;
  --brand-lime: #DDF344;
  --brand-blue: #4849E8;

  --radius: 16px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Botones (paleta de marca) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: var(--brand-white);
  font-weight: 600; font-size: 1rem;
  border: 2px solid var(--brand-blue);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover, .btn:focus-visible {
  background: var(--brand-lime);
  color: var(--brand-blue);
  border-color: var(--brand-lime);
  transform: translateY(-2px);
}
.btn--sm { padding: 9px 20px; font-size: .9rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--ink); transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 88px;
}
.hello { color: var(--ink); font-family: var(--hand); font-size: 2.2rem; line-height: 1; margin-bottom: 4px; }
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 800; line-height: .95; letter-spacing: -.035em;
}
.hero__role { color: var(--brand-blue); font-size: 1.15rem; font-weight: 600; margin: 18px 0 16px; }
.hero__bio { color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }
.hero__photo {
  position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 4/5;
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
  border-radius: var(--radius); background: var(--gray);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
/* Etiquetas tipo bocadillo sobre la foto */
.word-tag {
  position: absolute; z-index: 2;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: .8rem; line-height: 1.2;
  padding: 7px 13px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.word-tag::after {
  content: ""; position: absolute; bottom: -5px; left: 16px;
  width: 11px; height: 11px; background: var(--ink); transform: rotate(45deg);
}

/* ---------- Secciones ---------- */
.section { padding-top: 88px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.shd { margin-bottom: 40px; }
.kicker {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-soft); margin-bottom: 10px;
}
.kicker--lime { color: var(--brand-lime); }
.kicker--ink { color: var(--ink); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; max-width: 900px; }
.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 640px; margin-bottom: 40px; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

.block + .block { margin-top: 80px; }
.work-title { display: flex; align-items: flex-start; gap: 12px; }
.dot { margin-top: .6em; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-lime); flex: none; }
.work-title h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.work-desc { color: var(--ink-soft); margin: 6px 0 28px 24px; }
.work-desc--sm { margin-top: 2px; }
.subh {
  display: inline-block; margin: -8px 0 0 24px;
  font-weight: 700; font-size: 1.05rem;
  border-bottom: 2px solid var(--ink);
}

/* ---------- Rejilla de reels ---------- */
.reels { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.reels--5 { grid-template-columns: repeat(5, 1fr); }
.reel {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 9/16; border-radius: var(--radius);
  background: var(--gray);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
a.reel:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.reel-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center;
  transition: opacity .3s, transform .3s;
}
.reel-play::after {
  content: ""; margin-left: 4px;
  border-left: 13px solid var(--ink);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.reel.is-playing .reel-play { opacity: 0; }
a.reel:hover .reel-play { opacity: 0; }
.reel-name { display: block; padding: 10px 2px 0; font-weight: 600; font-size: .9rem; line-height: 1.2; }

/* Slider de reels por páginas: cada página son 2 filas de 4, se desliza en horizontal */
.reel-pages {
  display: flex; gap: 16px; align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 14px;
}
.reel-pages::-webkit-scrollbar { display: none; }
.reel-page { flex: 0 0 100%; scroll-snap-align: start; }
.reel-slider { position: relative; }
/* Flechas a los lados, a media altura (entre las dos filas) */
.reel-slider__arrow {
  position: absolute; z-index: 3; top: calc(50% - 7px);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.reel-slider__arrow--prev { left: 0; }
.reel-slider__arrow--next { left: 100%; }
@media (min-width: 1340px) {
  .reel-slider__arrow--prev { left: -36px; }
  .reel-slider__arrow--next { left: calc(100% + 36px); }
}
.reel-slider__hint { margin-top: 4px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }

/* ---------- Flechas de slider ---------- */
.slider__arrow {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.slider__arrow:hover { background: var(--ink); color: var(--paper); }

/* ---------- Contacto ---------- */
.contact { text-align: center; padding-top: 120px; padding-bottom: 120px; border-top: 1px solid var(--line); margin-top: 48px; }
.contact__title { font-size: clamp(3rem, 9vw, 7rem); margin: 0 auto 20px; }
.contact__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer__logo { height: 40px; width: auto; filter: invert(1); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: .9rem; }
.footer__links a { opacity: .8; }
.footer__links a:hover { opacity: 1; }
.footer__copy { margin-left: auto; font-size: .85rem; opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .reels--5 { grid-template-columns: repeat(3, 1fr); }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav__inner { height: 64px; }
  .nav__logo img { height: 30px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 56px; }
  .hero__photo { max-width: 340px; }
  .word-tag { font-size: .72rem; }
  .word-tag[style*="left"] { left: 0 !important; }
  .word-tag[style*="right"] { right: 0 !important; }
  .section { padding-top: 64px; }
  .reels, .reels--5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reel-pages { gap: 10px; }
  .work-desc, .subh { margin-left: 0; }
  .reel-play { width: 36px; height: 36px; }
  .reel-play::after { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }
  .reel-name { font-size: .78rem; }
  .slider__arrow { display: none; }
  .contact { padding-top: 80px; padding-bottom: 80px; }
  .contact__btns .btn { flex: 1 1 100%; }
  .footer__copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
