/* =========================================================
   JOY DISEÑA — portafolio
   Paleta pastel suave · collage · handwritten
   ========================================================= */

:root {
  --paper: #f3ead9;
  --paper-deep: #ebe0c9;
  --paper-shadow: #d4c4a3;
  --ink: #2d1620;
  --ink-soft: #5a3a48;
  --pink: #f0b8cc;
  --pink-deep: #d6789a;
  --pink-pop: #e995b3;
  --peach: #f4d4b5;
  --butter: #f5e3a8;
  --sage: #c4d4b8;
  --muted: #8a7a6f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Paper grain overlay - global */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background:
    radial-gradient(circle at 10% 20%, rgba(212, 196, 163, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 196, 163, 0.12), transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.28  0 0 0 0 0.09  0 0 0 0 0.14  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* ============ TYPOGRAPHY HELPERS ============ */
.display { font-family: 'Bagel Fat One', sans-serif; font-weight: 400; }
.serif { font-family: 'Instrument Serif', serif; font-weight: 400; }
.italic { font-style: italic; }
.hand { font-family: 'Caveat', cursive; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.section-title {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.section-title > span { white-space: nowrap; display: block; }
.section-title .display { color: var(--pink-deep); padding-bottom: 6px; }
.section-title .serif { color: var(--ink); }
.rotate-l { transform: rotate(-2deg); transform-origin: left; }
.rotate-r { transform: rotate(1.5deg); transform-origin: right; }

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
}

.prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--pink-deep); font-size: 1.1em; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 20px 10px 16px;
  background: rgba(243, 234, 217, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--pink-deep); }
.logo-dot {
  width: 12px; height: 12px;
  background: var(--pink-deep);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--pink-deep); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 8px 16px;
  border-radius: 100px;
  transition: transform 0.2s;
}
.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--pink-deep);
  color: var(--paper) !important;
}

/* ============ HERO ============ */
.hero {
  padding: 100px 24px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Variant: hero usando el banner ilustrado (imagen completa con texto) */
.hero--banner {
  padding: 0;
  min-height: auto;
  display: block;
}
.hero--banner .hero-banner-wrap {
  display: block;
  width: 100%;
  margin: 0;
}
.hero--banner .hero-banner {
  display: block;
  width: 100%;
  height: auto;
  background: #f3ead9;
}
@media (max-width: 720px) {
  /* Espacio arriba para que el menú no tape la imagen en móvil */
  .hero--banner { padding-top: 96px; background: #f3ead9; }
}

.hero-paper {
  position: relative;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-height: 720px;
  padding: 56px 64px 0;
  background: var(--paper-deep);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 2px 0 var(--paper-shadow),
    0 8px 24px rgba(45, 22, 32, 0.08),
    0 24px 60px rgba(45, 22, 32, 0.12);
  overflow: hidden;
}

.hero-greet {
  position: absolute;
  top: 32px;
  left: 64px;
  font-size: 28px;
  z-index: 10;
  transform: rotate(-2deg);
}
.hero-greet-r {
  position: absolute;
  top: 52px;
  right: 64px;
  font-size: 26px;
  z-index: 10;
  transform: rotate(2deg);
  text-align: right;
}
.hero-greet .hand,
.hero-greet-r .hand { color: var(--ink); font-weight: 600; }

.hero-stack {
  position: relative;
  margin-top: 80px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-name {
  font-family: 'Bagel Fat One', sans-serif;
  font-weight: 400;
  text-align: center;
  width: 100%;
  z-index: 2;
  line-height: 0.82;
  letter-spacing: -0.02em;
  position: relative;
}
.hero-name-row { display: block; }
.hero-name-word {
  display: inline-block;
  color: var(--pink);
  -webkit-text-stroke: 0;
}
.hero-name-word.w1 {
  font-size: clamp(110px, 14vw, 200px);
  color: var(--pink);
  transform: translateX(-30%) translateY(-10px) rotate(-2deg);
}
.hero-name-word.w2 {
  font-size: clamp(180px, 26vw, 360px);
  color: var(--pink-pop);
  transform: translateY(-20px) rotate(1deg);
}

/* Johana — recortada, anclada al fondo del paper (toca el marquee) */
.hero-photo {
  position: absolute;
  right: 28%;
  bottom: 0;
  height: 88%;
  width: auto;
  max-width: 44%;
  z-index: 4;
  pointer-events: none;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  user-select: none;
}

/* "esta soy yo" — handwritten tag apunta a la cara */
.hero-this {
  position: absolute;
  top: 24%;
  right: 18%;
  transform: rotate(-3deg);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 9;
  pointer-events: auto;
  white-space: nowrap;
}
.hero-this-arrow {
  width: 58px;
  height: 38px;
  flex-shrink: 0;
}
.hero-this-text {
  font-size: clamp(28px, 2.6vw, 38px);
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}

.hero-meta {
  position: absolute;
  bottom: 20px;
  left: 64px;
  right: 64px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  z-index: 10;
  pointer-events: none;
}
.hero-meta .mono {
  background: rgba(243, 234, 217, 0.85);
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hero stickers */
.sticker { position: absolute; z-index: 8; pointer-events: none; }
.s-star {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 56px;
  color: var(--pink-deep);
}
.hero .s-star { top: 62%; left: 6%; transform: rotate(-12deg); }
.hero .s-heart { bottom: 14%; right: 4%; transform: rotate(12deg); }

.s-tape {
  width: 110px;
  height: 28px;
  background: linear-gradient(180deg, rgba(244, 212, 181, 0.6), rgba(244, 212, 181, 0.4));
  border: 1px dashed rgba(45, 22, 32, 0.12);
}
.hero .s-tape.t1 { top: 22px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.hero .s-tape.t2 { bottom: 22px; left: 18%; transform: rotate(4deg); width: 80px; background: linear-gradient(180deg, rgba(240, 184, 204, 0.55), rgba(240, 184, 204, 0.35)); }

/* Marquee */
.hero-marquee {
  margin-top: 0;
  padding: 12px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  gap: 32px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.marquee-track .dot { color: var(--pink); font-size: 14px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ ABOUT ============ */
.about {
  padding: 140px 32px 100px;
  max-width: 1320px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text { padding-top: 12px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px dashed rgba(45, 22, 32, 0.25);
}
.stat-num {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 52px;
  color: var(--pink-deep);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* COLLAGE */
.about-collage {
  position: relative;
  min-height: 620px;
}

.polaroid {
  position: absolute;
  background: #fff;
  padding: 10px 10px 36px;
  box-shadow: 0 6px 16px rgba(45, 22, 32, 0.18), 0 1px 2px rgba(45,22,32,0.1);
  border-radius: 2px;
}
.polaroid-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--paper-shadow);
  overflow: hidden;
}
.polaroid-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9);
}
.polaroid-img-cutout {
  background: linear-gradient(180deg, var(--pink) 0%, var(--peach) 100%);
  position: relative;
}
.polaroid-img-cutout::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(45,22,32,0.08) 1.2px, transparent 1.6px);
  background-size: 5px 5px;
  pointer-events: none;
}
.polaroid-img-cutout img {
  object-fit: contain;
  object-position: center bottom;
  filter: none;
  position: relative;
  z-index: 1;
}
.polaroid-cap {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  text-align: center;
  color: var(--ink);
  font-size: 20px;
}
.polaroid-cap.mono { font-size: 9px; letter-spacing: 0.08em; }

.pl-1 {
  width: 240px;
  top: 20px; left: 30px;
  transform: rotate(-5deg);
  z-index: 3;
}
.pl-2 {
  width: 200px;
  bottom: 60px; right: 20px;
  transform: rotate(6deg);
  z-index: 3;
}

.ticket {
  position: absolute;
  top: 80px;
  right: 30px;
  width: 220px;
  background: var(--paper);
  padding: 18px 16px;
  transform: rotate(3deg);
  z-index: 4;
  border: 1px dashed rgba(45, 22, 32, 0.3);
  box-shadow: 0 4px 12px rgba(45, 22, 32, 0.1);
}
.ticket p {
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

.badge-circle {
  position: absolute;
  bottom: 50px;
  left: 60px;
  width: 160px; height: 160px;
  z-index: 5;
  transform: rotate(-8deg);
  animation: spin 30s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.collage-arrow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.collage-arrow.a1 { top: 60px; left: 220px; width: 160px; }
.collage-arrow.a2 { bottom: 200px; right: 180px; width: 140px; transform: scaleX(-1); }

.sh-2 { top: 220px; left: 220px; transform: rotate(-12deg); }

/* ============ SERVICES ============ */
.services {
  padding: 100px 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px 24px 0 0;
  position: relative;
  margin-top: 60px;
}
.services::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 40px;
  background:
    radial-gradient(circle at 12px 0, var(--ink) 12px, transparent 13px),
    radial-gradient(circle at 12px 0, var(--paper) 12px, transparent 13px);
  background-size: 24px 40px;
  background-position: 0 -20px;
}

.services-head {
  max-width: 1320px;
  margin: 0 auto 56px;
}
.services .kicker { color: var(--peach); }
.services .section-title .display { color: var(--pink); }
.services .section-title .serif { color: var(--paper); }

.services-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 32px 26px 36px;
  border-radius: 4px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.service-card:nth-child(odd) { transform: rotate(-1deg); }
.service-card:nth-child(even) { transform: rotate(1deg); }
.service-card:hover { transform: rotate(0) translateY(-6px); }

.sc-2 { background: var(--pink); }
.sc-3 { background: var(--peach); }
.sc-4 { background: var(--butter); }

.service-num {
  font-size: 11px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.service-card h3 {
  font-family: 'Bagel Fat One', sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 0.95;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 18px;
  flex: 1;
}
.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(45, 22, 32, 0.08);
  padding: 4px 8px;
  border-radius: 100px;
  color: var(--ink);
}
.service-corner {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  color: var(--pink-deep);
  font-weight: 700;
}

/* ============ PORTFOLIO ============ */
.portfolio {
  padding: 120px 32px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-head {
  text-align: center;
  margin-bottom: 64px;
}
.portfolio-head .kicker { display: block; }
.portfolio-head .section-title { align-items: center; }
.portfolio-sub {
  font-size: 22px;
  color: var(--ink-soft);
  margin-top: 16px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

/* ============ PORTFOLIO PAGER ============ */
.portfolio-pager {
  margin: 64px auto 0;
  max-width: 1320px;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.portfolio-pager.is-visible { display: flex; }
.portfolio-pager .pg-num,
.portfolio-pager .pg-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portfolio-pager .pg-num:hover,
.portfolio-pager .pg-arrow:hover:not(:disabled) {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--paper);
  transform: translateY(-2px);
}
.portfolio-pager .pg-num.is-active {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-2deg);
}
.portfolio-pager .pg-arrow {
  font-size: 18px;
  font-family: 'Bagel Fat One', sans-serif;
}
.portfolio-pager .pg-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.portfolio-pager .pg-count {
  margin-left: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
@media (max-width: 720px) {
  .portfolio-pager { gap: 6px; margin-top: 40px; }
  .portfolio-pager .pg-num,
  .portfolio-pager .pg-arrow { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; }
  .portfolio-pager .pg-count { width: 100%; text-align: center; margin: 8px 0 0; }
}

.project {
  position: relative;
  cursor: pointer;
  background: #fff;
  padding: 12px 12px 24px;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(45, 22, 32, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project:nth-child(odd) { transform: rotate(-1deg); }
.project:nth-child(even) { transform: rotate(0.8deg); }
.project:hover {
  transform: rotate(0) translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(45, 22, 32, 0.2);
  z-index: 10;
}

.project-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-shadow);
  position: relative;
}
.project-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.project:hover .project-img img { transform: scale(1.05); }

.project-img.placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(45,22,32,0.04) 14px 28px),
    linear-gradient(180deg, var(--paper-deep), var(--paper));
}
.ph-1 { background-color: var(--pink); }
.ph-2 { background-color: var(--peach); }
.ph-3 { background-color: var(--butter); }

.ph-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
}
.ph-icon {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 80px;
  color: var(--ink);
  opacity: 0.55;
  line-height: 1;
}
.ph-label {
  font-size: 10px;
  color: var(--ink);
}
.ph-sub {
  font-size: 22px;
  color: var(--ink);
  opacity: 0.7;
}

.project-meta {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-title {
  font-family: 'Bagel Fat One', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 4px;
  margin-bottom: 8px;
}
.project-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--pink-deep);
}
.project-cta {
  font-size: 20px;
  color: var(--pink-deep);
}

.project-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 20px;
  background: linear-gradient(180deg, rgba(240, 184, 204, 0.7), rgba(240, 184, 204, 0.5));
  border: 1px dashed rgba(45, 22, 32, 0.15);
  pointer-events: none;
}
.project:nth-child(even) .project-tape {
  background: linear-gradient(180deg, rgba(244, 212, 181, 0.7), rgba(244, 212, 181, 0.5));
  transform: translateX(-50%) rotate(2deg);
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: 120px 32px 100px;
  max-width: 1320px;
  margin: 0 auto;
}

.testi-head {
  text-align: center;
  margin-bottom: 64px;
}
.testi-head .section-title { align-items: center; }

.testi-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  min-height: 360px;
}

.testi-card {
  background: #fff;
  padding: 24px 22px;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(45, 22, 32, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi-card p {
  font-family: 'Instrument Serif', serif;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}
.testi-card p em {
  font-style: italic;
  color: var(--pink-deep);
}
.testi-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(45,22,32,0.2);
}
.testi-card footer strong {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 600;
  color: var(--pink-deep);
}

.tc-1 { transform: rotate(-2deg); background: var(--paper); }
.tc-2 { transform: rotate(1.5deg) translateY(20px); background: var(--pink); }
.tc-3 { transform: rotate(-1deg) translateY(10px); background: var(--peach); }
.tc-4 { transform: rotate(2deg); background: var(--paper); }

.testi-collage .ss-1 { top: -30px; left: 22%; transform: rotate(-15deg); color: var(--pink-deep); }
.testi-collage .ss-2 { bottom: -20px; right: 30%; transform: rotate(20deg); color: var(--pink-deep); font-size: 42px; }
.testi-collage .sh-3 { top: 40%; right: -10px; transform: rotate(15deg); }

/* ============ CONTACT ============ */
.contact {
  padding: 120px 32px 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px 24px 0 0;
  margin-top: 60px;
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 40px;
  background:
    radial-gradient(circle at 12px 0, var(--ink) 12px, transparent 13px),
    radial-gradient(circle at 12px 0, var(--paper) 12px, transparent 13px);
  background-size: 24px 40px;
  background-position: 0 -20px;
}

.contact-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.contact-title .display { color: var(--pink); }
.contact-title .serif { color: var(--paper); }
.contact .kicker { color: var(--peach); }
.contact .prose { color: rgba(243, 234, 217, 0.75); max-width: 44ch; }
.contact .prose em { color: var(--pink); }

.contact-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--paper);
  flex-wrap: nowrap;
}
.contact-list li > *:last-child { min-width: 0; word-break: break-word; }
.contact-list li .mono { color: var(--peach); font-size: 10px; }
.contact-list a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 234, 217, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-list a:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.contact-right {
  position: relative;
  padding: 20px;
}

/* envelope */
.envelope {
  position: relative;
  background: var(--pink);
  padding: 50px 32px 32px;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  transform: rotate(-3deg);
  max-width: 420px;
  margin: 0 auto;
}
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--pink-pop), var(--pink));
  clip-path: polygon(0 0, 100% 0, 50% 80%);
  z-index: 1;
}
.envelope-note {
  position: relative;
  background: var(--paper);
  padding: 20px 22px;
  z-index: 2;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.envelope-note p {
  font-family: 'Caveat', cursive;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}
.envelope-note .sig {
  margin-top: 8px;
  font-size: 22px;
  color: var(--pink-deep);
}

.contact-right .s-tape { background: linear-gradient(180deg, rgba(244, 212, 181, 0.5), rgba(244, 212, 181, 0.3)); border-color: rgba(243, 234, 217, 0.2); }
.t3 { top: 20px; left: 30px; transform: rotate(-15deg); }
.t4 { bottom: 30px; right: 20px; transform: rotate(20deg); width: 90px; }

/* footer */
.site-footer {
  margin-top: 120px;
  padding: 32px 0 24px;
  border-top: 1px solid rgba(243, 234, 217, 0.15);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.footer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: 'Bagel Fat One', sans-serif;
  font-size: clamp(40px, 7vw, 88px);
  color: var(--pink);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-display > span { white-space: nowrap; }
.footer-display .footer-heart {
  display: inline-flex;
  align-items: center;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px dashed rgba(243, 234, 217, 0.2);
}
.footer-meta .mono { color: rgba(243, 234, 217, 0.55); }
.footer-back {
  font-size: 22px;
  color: var(--peach);
  text-decoration: none;
  white-space: nowrap;
}
.footer-back:hover { color: var(--pink); }

/* ============ CV BUTTON ============ */
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 24px 14px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 17px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 4px 4px 0 var(--pink-deep);
  width: fit-content;
}
.cv-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pink-deep);
}
.cv-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--pink);
  color: var(--ink);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
}
.cv-text { font-weight: 600; }
.cv-mono {
  color: rgba(243, 234, 217, 0.6);
  font-size: 10px;
  padding-left: 8px;
  border-left: 1px solid rgba(243, 234, 217, 0.2);
}
.cv-btn-dark {
  background: var(--paper);
  color: var(--ink);
  margin-top: 28px;
  box-shadow: 4px 4px 0 var(--pink);
}
.cv-btn-dark:hover { box-shadow: 6px 6px 0 var(--pink); }
.cv-btn-dark .cv-icon { background: var(--pink-deep); color: var(--paper); }
.cv-btn-dark .cv-mono { color: var(--ink-soft); border-left-color: rgba(45,22,32,0.2); }

/* ============ PROJECT IMG FALLBACK ============ */
.project-img { position: relative; }
.project-img .img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(45,22,32,0.06) 14px 28px),
    linear-gradient(180deg, var(--pink) 0%, var(--peach) 100%);
  color: var(--ink);
}
.project-img.img-missing .img-fallback { display: flex; }
.pj-2 .project-img .img-fallback { background: linear-gradient(180deg, #d9cfe7, #e2f679); }
.pj-3 .project-img .img-fallback { background: linear-gradient(180deg, #b8c4d9, #f3ead9); }
.pj-4 .project-img .img-fallback { background: linear-gradient(180deg, var(--pink), var(--paper-deep)); }
.pj-5 .project-img .img-fallback { background: linear-gradient(180deg, var(--peach), var(--butter)); }
.pj-6 .project-img .img-fallback { background: linear-gradient(180deg, var(--butter), var(--pink)); }
.fb-icon {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: clamp(60px, 9vw, 110px);
  line-height: 1;
  opacity: 0.55;
}
.fb-label {
  font-size: 11px;
  color: var(--ink);
}

/* ============ FULL-PAGE GALLERY ============ */
.gallery {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0d0608;
  color: var(--paper);
  display: none;
  flex-direction: column;
}
.gallery.open { display: flex; }
body.gallery-open { overflow: hidden; }

.gallery-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(13, 6, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(243, 234, 217, 0.08);
  position: relative;
  z-index: 5;
}
.gallery-nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.gallery-num {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 44px;
  color: var(--pink-deep);
  line-height: 1;
}
.gallery-titles { display: flex; flex-direction: column; gap: 4px; }
.gallery-title {
  font-family: 'Bagel Fat One', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.gallery-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--pink);
}
.gallery-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 234, 217, 0.6);
}
.gallery-close {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid rgba(243, 234, 217, 0.3);
  color: var(--paper);
  padding: 10px 14px 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.gallery-close:hover {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: var(--paper);
}
.gallery-close .gal-x {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(243, 234, 217, 0.12);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}
.gallery-close:hover .gal-x { background: rgba(243, 234, 217, 0.25); }

.gallery-progress {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--pink-deep);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

.gallery-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.gal-intro {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 32px 60px;
}
.gal-intro-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 28px;
  background: rgba(243, 234, 217, 0.05);
  border: 1px solid rgba(243, 234, 217, 0.1);
  border-radius: 6px;
  margin-bottom: 32px;
}
.gal-intro-meta > div { display: flex; flex-direction: column; gap: 6px; }
.gal-intro-meta .mono { color: rgba(243, 234, 217, 0.5); font-size: 10px; }
.gal-intro-meta strong {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--paper);
  line-height: 1.2;
}
.gal-desc {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  line-height: 1.4;
  color: rgba(243, 234, 217, 0.92);
  text-wrap: pretty;
}
.gal-scroll-hint {
  margin-top: 32px;
  text-align: center;
  font-size: 24px;
  color: var(--pink);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.gal-fig {
  margin: 0 auto 40px;
  max-width: 1200px;
  padding: 0 32px;
  position: relative;
}
.gal-fig img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}
.gal-fig figcaption {
  margin-top: 12px;
  padding-left: 4px;
  color: rgba(243, 234, 217, 0.4);
  font-size: 10px;
}
.gal-fig.gal-fig-missing {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(243,234,217,0.04) 18px 36px);
  border: 1px dashed rgba(243, 234, 217, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.gal-fig.gal-fig-missing::after {
  content: 'imagen pendiente';
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 234, 217, 0.35);
}
.gal-fig.gal-fig-missing img { display: none; }
.gal-fig.gal-fig-missing figcaption { display: none; }

.gal-outro {
  max-width: 920px;
  margin: 60px auto 0;
  padding: 60px 32px 100px;
  text-align: center;
  border-top: 1px dashed rgba(243, 234, 217, 0.15);
}
.gal-outro p {
  font-size: 48px;
  color: var(--pink);
  margin-bottom: 24px;
}

/* gallery empty + loading states */
.gal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 120px;
}
.gal-loading .hand {
  font-size: 32px;
  color: rgba(243, 234, 217, 0.5);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.gal-empty {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 32px 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gal-empty-icon {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 120px;
  color: var(--pink-deep);
  opacity: 0.6;
  line-height: 1;
}
.gal-empty h3 {
  font-family: 'Bagel Fat One', sans-serif;
  font-weight: 400;
  font-size: 36px;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.gal-empty p {
  font-size: 28px;
  color: rgba(243, 234, 217, 0.6);
}
.gal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid rgba(243, 234, 217, 0.3);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.gal-back:hover {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
}

@media (max-width: 720px) {
  .gallery-nav { padding: 14px 18px; }
  .gallery-num { font-size: 32px; }
  .gallery-title { font-size: 22px; }
  .gallery-cat { font-size: 9px; }
  .gallery-close span:not(.gal-x) { display: none; }
  .gallery-close { padding: 6px; }
  .gal-intro { padding: 48px 20px 32px; }
  .gal-intro-meta { grid-template-columns: 1fr; gap: 14px; padding: 18px 20px; }
  .gal-desc { font-size: 20px; }
  .gal-fig { padding: 0 18px; margin-bottom: 24px; }
  .gal-outro { padding: 40px 20px 80px; }
  .gal-outro p { font-size: 36px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { gap: 16px; padding: 8px 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-collage { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 720px) {
  .nav { flex-direction: column; gap: 8px; padding: 8px 16px; top: 8px; }
  .nav-links { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .hero-paper { padding: 40px 24px 0; min-height: 560px; }
  .hero-greet, .hero-greet-r { position: static; transform: none; text-align: left; font-size: 20px; margin-bottom: 4px; }
  .hero-greet-r { text-align: right; }
  .hero-stack { min-height: 320px; margin-top: 24px; }
  .hero-name-word.w1 { transform: translateX(-18%) rotate(-2deg); }
  .hero-name-word.w2 { transform: rotate(1deg); }
  .hero-photo { right: 4%; height: 72%; max-width: 70%; }
  .hero-this { top: 16%; right: 4%; transform: rotate(-4deg); }
  .hero-this-text { font-size: 20px; }
  .hero-meta { position: static; flex-direction: column; gap: 6px; margin-top: 12px; padding-bottom: 16px; }
  .hero-meta .mono { align-self: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testi-collage { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 38px; }
  .modal-content { padding: 48px 24px 32px; }
  .mb-head { grid-template-columns: 1fr; gap: 16px; }
  .mb-cat { text-align: left; }
  .mb-title { font-size: 40px; }
  .mb-num { font-size: 60px; }
  .mb-gallery { grid-template-columns: 1fr; }
  .mb-gallery .mb-item.span2 { grid-column: span 1; }
  .mb-meta { grid-template-columns: 1fr; }
}
