/* =========================================================
   Emilia Giraudo · the studio
   Layout: bandas de color a todo el ancho (crema → rosa → celeste → crema → chocolate),
   títulos enormes que mezclan serif cursiva + sans bold, tarjetas redondeadas y stickers.
   Para cambiar colores o tipografías, tocá solo estas variables.
   ========================================================= */
:root {
  /* Base 60% */
  --crema: #FFF6E9;
  --choco: #4A2412;
  /* Secundarios 30% */
  --rosa: #F2C6D6;
  --celeste: #BFD8F0;
  /* Acentos 10% */
  --naranja: #F2602B;
  --lima: #E4EC9A;

  --choco-soft: rgba(74, 36, 18, .72);
  --line: rgba(74, 36, 18, .18);

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --radius: 28px;
  --radius-sm: 16px;
  --maxw: 1200px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--choco);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
  font-size: 1.08em;
}
.display--md { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
.display--xl { font-size: clamp(3.6rem, 13vw, 10rem); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 34em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--orange { background: var(--naranja); color: var(--crema); box-shadow: 0 4px 0 var(--choco); }
.btn--orange:hover { box-shadow: 0 6px 0 var(--choco); }
.btn--ghost { border-color: var(--choco); color: var(--choco); }
.btn--sm { padding: 10px 20px; font-size: .9rem; box-shadow: none; }
.btn--sm:hover { box-shadow: none; }
.btn--lg { padding: 20px 36px; font-size: 1.1rem; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--crema);
}
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 246, 233, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.top__logo img { height: 54px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 30px; }
.top__nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; }
.top__nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.top__burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 110px); }
.hero__in {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__text { min-width: 0; }
.hero__text .lead { margin: 28px 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__collage { position: relative; height: 560px; max-width: 100%; }
.collage__card { position: absolute; border-radius: var(--radius); }
.collage__card--blue { background: var(--celeste); inset: 40px 0 70px 60px; transform: rotate(4deg); }
.collage__card--stripes {
  width: 46%; height: 42%; left: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, var(--rosa) 0 18px, var(--crema) 18px 36px);
  border: 2px solid var(--choco);
  transform: rotate(-6deg);
}

/* Celular */
.phone {
  position: absolute; left: 50%; top: 0;
  width: 250px; height: 510px;
  transform: translateX(-46%) rotate(-3deg);
  background: var(--choco);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 50px -20px rgba(74, 36, 18, .45);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; border-radius: 99px; background: var(--choco); z-index: 2;
}
.phone__screen {
  height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--crema); padding: 46px 14px 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.mini__bar { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.mini__brand { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.mini__brand b { font-family: var(--sans); font-style: normal; font-weight: 900; }
.mini__banner {
  background: var(--rosa); border-radius: 18px; height: 110px;
  display: grid; place-items: center; text-align: center;
  font-weight: 900; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1;
}
.mini__banner em { font-family: var(--serif); font-weight: 400; display: block; font-size: 1.15em; }
.mini__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.mini__prod { border-radius: 14px; }
.mini__prod--pink { background: var(--rosa); }
.mini__prod--blue { background: var(--celeste); }
.mini__btn {
  background: var(--naranja); color: var(--crema); text-align: center;
  font-weight: 800; font-size: .85rem; border-radius: 99px; padding: 10px;
}

/* Stickers */
.sticker { position: absolute; right: -6px; top: -10px; width: 150px; height: 150px; }
.sticker svg { width: 100%; height: 100%; overflow: visible; }
.sticker__bg { fill: var(--lima); stroke: var(--choco); stroke-width: 2; }
.sticker text { fill: var(--choco); font-family: var(--sans); font-weight: 800; font-size: 17px; letter-spacing: 2.5px; }
.sticker .sticker__mid { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 54px; letter-spacing: 0; }
.sticker--spin svg { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tag {
  position: absolute; display: inline-block;
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1;
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--choco);
  white-space: nowrap;
}
.tag--pink { background: var(--rosa); right: 4%; bottom: 40px; transform: rotate(7deg); }
.tag--lime { background: var(--lima); }

/* ---------- Cinta ---------- */
.ribbon { background: var(--choco); color: var(--crema); overflow: hidden; padding-block: 18px; }
.ribbon__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: -.02em;
  white-space: nowrap; animation: marquee 30s linear infinite;
}
.ribbon__track em { font-family: var(--serif); font-weight: 400; font-size: 1.15em; letter-spacing: 0; }
.ribbon__track i { font-style: normal; color: var(--lima); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Encabezado de sección ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head p { max-width: 24em; margin: 0; font-size: 1.05rem; }

/* ---------- Trabajos ---------- */
.works { background: var(--rosa); padding-block: clamp(64px, 9vw, 120px); }
.works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work {
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; padding: 14px 14px 18px;
  border-radius: var(--radius); min-width: 0;
  transition: transform .25s ease;
}
.work--wide { grid-column: span 2; }
.work--cream { background: var(--crema); color: var(--choco); }
.work--choco { background: var(--choco); color: var(--crema); }

.browser { flex: 1; display: flex; flex-direction: column; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--choco); background: var(--crema); }
.work--choco .browser { border-color: var(--crema); }
.browser__bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: var(--crema); color: var(--choco); border-bottom: 2px solid var(--choco);
  font-size: .75rem; font-weight: 600;
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--choco); }
.browser__bar span { margin-left: 8px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser__body { position: relative; overflow: hidden; flex: 1; aspect-ratio: 16 / 10; max-width: 100%; }
.work--wide .browser__body { aspect-ratio: 16 / 8; }
.browser__body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Placeholder con diseño (se ve si todavía no hay captura) */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  background: var(--celeste); color: var(--choco);
}
.ph--pink { background: var(--rosa); }
.ph--blue { background: var(--celeste); }
.ph--cream { background: var(--crema); }
.ph--stripes { background: repeating-linear-gradient(90deg, var(--celeste) 0 22px, var(--crema) 22px 44px); }
.ph__name {
  font-weight: 900; letter-spacing: -.04em; line-height: .95; text-align: center;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
.work--wide .ph__name { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.ph__name em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; }
.ph--stripes .ph__name { background: var(--crema); padding: 6px 24px 10px; border-radius: 999px; border: 2px solid var(--choco); }

.work__info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: 6px; }
.work__info h3 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.work__info small { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.05rem; letter-spacing: 0; }
.work__go { font-weight: 700; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid currentColor; }
.work--choco .work__go { color: var(--lima); }

/* ---------- Servicios ---------- */
.services { background: var(--celeste); padding-block: clamp(64px, 9vw, 120px); }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc {
  background: var(--crema); border-radius: var(--radius); padding: 30px 28px 32px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.svc--choco { background: var(--choco); color: var(--crema); }
.svc__label {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid currentColor; border-radius: 99px; padding: 5px 12px;
}
.svc h3 { margin: 8px 0 0; font-size: clamp(1.8rem, 2.8vw, 2.3rem); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.svc h3 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; display: block; font-size: 1.1em; }
.svc p { margin: 0; flex: 1; }
.chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .85rem; font-weight: 600; background: var(--rosa); color: var(--choco); padding: 6px 14px; border-radius: 99px; }
.svc--choco .chips li { background: var(--lima); }

/* ---------- Sobre mí ---------- */
.about { padding-block: clamp(72px, 10vw, 130px); }
.about__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__photo { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.polaroid {
  background: var(--crema); border: 2px solid var(--choco); border-radius: var(--radius);
  padding: 16px 16px 10px; transform: rotate(-3deg);
  box-shadow: 10px 12px 0 var(--rosa);
}
.polaroid__img {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 18px; overflow: hidden;
  background: repeating-linear-gradient(0deg, var(--rosa) 0 20px, var(--crema) 20px 40px);
  display: grid; place-items: center;
}
.polaroid__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.polaroid__ph {
  font-family: var(--serif); font-style: italic; font-size: 7rem; line-height: 1;
  background: var(--crema); width: 170px; height: 170px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--choco);
}
.polaroid__cap { text-align: center; margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1.1; }
.polaroid__cap em { color: var(--naranja); font-style: normal; }
.about__photo .tag { right: -14px; bottom: 120px; transform: rotate(-8deg); font-size: 1.35rem; }

.about__text { min-width: 0; }
.about__text .lead { margin-top: 28px; }
.about__text p { max-width: 36em; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.facts li { border-top: 2px solid var(--choco); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.facts b { font-size: 2.8rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.facts span { font-size: .9rem; color: var(--choco-soft); }

/* ---------- Contacto ---------- */
.contact { background: var(--choco); color: var(--crema); padding-block: clamp(72px, 10vw, 130px); }
.contact__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact .display em { color: var(--rosa); }
.contact .lead { margin: 22px 0 34px; }
.contact .btn--orange { box-shadow: 0 4px 0 var(--lima); }
.contact__list {
  list-style: none; padding: 0; margin: 60px 0 0; width: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid rgba(255, 246, 233, .25);
}
.contact__list li {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 12px; min-width: 0;
  border-right: 1px solid rgba(255, 246, 233, .25);
  overflow-wrap: anywhere;
}
.contact__list li:last-child { border-right: 0; }
.contact__k { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lima); }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { text-decoration: underline; }
.contact__mail { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.copy {
  font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--crema); border: 1.5px solid var(--crema);
  border-radius: 99px; padding: 3px 10px;
}
.copy:hover { background: var(--crema); color: var(--choco); }

/* ---------- Footer ---------- */
.foot { background: var(--choco); color: var(--crema); border-top: 1px solid rgba(255, 246, 233, .2); }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px; }
.foot img { height: 54px; width: auto; }
.foot p { margin: 0; font-size: .85rem; opacity: .8; }


/* =========================================================
   B · PORTFOLIO RAYADO
   ========================================================= */
.hb {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--celeste) 0 56px, var(--crema) 56px 112px);
  animation: stripes 40s linear infinite;
}
@keyframes stripes { to { background-position: 112px 0; } }
.hb__in { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 64px); padding-block: 28px 32px; min-height: min(780px, 92vh); }
.hb__row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hb__row span { background: var(--crema); padding: 4px 10px; border-radius: 6px; }
.hb__row a { text-decoration: none; }
.hb__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hb__word { position: relative; display: inline-block; }
.hb__by {
  position: absolute; left: 4%; top: -.75em; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  transform: rotate(-8deg); white-space: nowrap;
  animation: stick .7s var(--pop) .8s both;
}
.hb h1 {
  margin: 0; font-weight: 900; letter-spacing: -.06em; line-height: .85;
  font-size: clamp(4.4rem, 17vw, 15.5rem);
}
.hb h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; font-size: 1.05em; }
.hb h1 .ch { display: inline-block; animation: rise .8s var(--ease) both; }
.hb__sub {
  position: absolute; right: 2%; bottom: -1.15em;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2.8rem);
  transform: rotate(-4deg); white-space: nowrap; animation: stick .7s var(--pop) 1s both;
}
.hb__year { position: absolute; left: 1%; bottom: -1.6em; font-weight: 600; font-size: clamp(.9rem, 1.6vw, 1.2rem); }
.hb__card {
  margin-top: clamp(80px, 9vw, 110px);
  display: flex; flex-direction: column; align-items: center;
  animation: rise .8s var(--ease) .6s both;
}
.hb__card .hero__cta { justify-content: center; }
.hb__lead { margin: 0 0 22px; max-width: 520px; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.75; }
.hb__lead span {
  background: var(--crema); padding: 3px 10px; border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hb__card .btn--ghost { background: var(--crema); }

@media (max-width: 600px) {
  .hb { background: repeating-linear-gradient(90deg, var(--celeste) 0 34px, var(--crema) 34px 68px); }
  .hb__in { min-height: 0; }
  .hb__row--bottom { display: none; }
  .hb__sub { position: static; display: block; margin-top: 10px; transform: rotate(-3deg); }
  .hb__year { position: static; display: block; }
  .hb__by { position: static; display: block; margin-bottom: 4px; }
  .hb { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .hb { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__collage { height: 520px; max-width: 480px; width: 100%; justify-self: center; }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work--wide:last-child { grid-column: span 1; }
  .work--wide:last-child .browser__body { aspect-ratio: 16 / 10; }
  .services__grid { grid-template-columns: 1fr; }
  .about__in { grid-template-columns: 1fr; }
  .contact__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__list li:nth-child(2) { border-right: 0; }
  .contact__list li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 246, 233, .25); }
}

@media (max-width: 760px) {
  .top__logo img { height: 38px; }
  .top__burger {
    display: grid; gap: 6px; place-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    border: 2px solid var(--choco); background: transparent; cursor: pointer;
  }
  .top__burger span { display: block; width: 18px; height: 2px; background: var(--choco); transition: transform .2s; }
  .top__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .top__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .top__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--crema); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .top__nav.is-open { display: flex; }
  .top__nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .top__nav .btn { margin-top: 16px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .works__grid { grid-template-columns: 1fr; }
  .work--wide { grid-column: span 1; }
  .work--wide .browser__body { aspect-ratio: 16 / 10; }
  .hero__collage { height: 460px; }
  .phone { width: 210px; height: 430px; border-radius: 36px; }
  .mini__banner { height: 84px; font-size: 1.1rem; }
  .sticker { width: 118px; height: 118px; right: 0; }
  .tag { font-size: 1.3rem; }
  .collage__card--blue { inset: 40px 0 60px 30px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { flex-direction: row; align-items: baseline; gap: 14px; }
  .facts b { min-width: 2.4ch; }
  .contact__list { grid-template-columns: 1fr; }
  .contact__list li { border-right: 0; border-bottom: 1px solid rgba(255, 246, 233, .25); }
  .contact__list li:last-child { border-bottom: 0; }
  .about__photo { max-width: 320px; }
  .about__photo .tag { right: -4px; }
  .foot__in { flex-direction: column; text-align: center; }
}


/* =========================================================
   ANIMACIONES
   Todo se ve completo aunque no haya animación: las animaciones
   solo agregan movimiento. Si alguien tiene "reducir movimiento"
   activado en su dispositivo, se apagan solas (ver al final).
   ========================================================= */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --pop: cubic-bezier(.34, 1.56, .64, 1); }

/* --- Entrada del inicio --- */
.hero__title .line { display: block; animation: rise .9s var(--ease) both; }
.hero__title .line:nth-child(2) { animation-delay: .12s; }
.hero__title .line:nth-child(3) { animation-delay: .24s; }
.hero__in-1 { animation: fade .7s var(--ease) both; }
.hero__in-2 { animation: rise .8s var(--ease) .4s both; }
.hero__in-3 { animation: rise .8s var(--ease) .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes fade { from { opacity: 0; } }

/* Subrayado dibujado a mano bajo "online." */
.scribble { position: relative; display: inline-block; }
.scribble svg { position: absolute; left: 0; bottom: -.08em; width: 100%; height: .22em; overflow: visible; }
.scribble path {
  fill: none; stroke: var(--naranja); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 0;
  animation: draw 1s var(--ease) .9s both;
}
@keyframes draw { from { stroke-dashoffset: 340; } }

/* Collage: entra en capas y después flota */
.collage__card--blue { animation: card-in .9s var(--ease) .15s both; }
.collage__card--stripes { animation: card-in-2 .9s var(--ease) .3s both; }
@keyframes card-in { from { opacity: 0; transform: rotate(-4deg) scale(.9); } }
@keyframes card-in-2 { from { opacity: 0; transform: rotate(4deg) translateY(30px); } }

.phone { animation: phone-in 1s var(--ease) .25s both, float 6s ease-in-out 1.4s infinite; }
@keyframes phone-in { from { opacity: 0; transform: translateX(-46%) translateY(60px) rotate(4deg); } }
@keyframes float {
  0%, 100% { transform: translateX(-46%) rotate(-3deg) translateY(0); }
  50% { transform: translateX(-46%) rotate(-1.5deg) translateY(-12px); }
}

/* Productos del celu que aparecen uno por uno */
.mini__banner, .mini__prod, .mini__btn { animation: pop .5s var(--pop) both; }
.mini__banner { animation-delay: .7s; }
.mini__prod:nth-child(1) { animation-delay: .8s; }
.mini__prod:nth-child(2) { animation-delay: .88s; }
.mini__prod:nth-child(3) { animation-delay: .96s; }
.mini__prod:nth-child(4) { animation-delay: 1.04s; }
.mini__btn { animation-delay: 1.15s; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* Notificación de venta que aparece en el celu cada tanto */
.phone__screen { position: relative; }
.mini__toast {
  position: absolute; left: 10px; right: 10px; top: 40px;
  background: var(--choco); color: var(--crema); border-radius: 14px;
  padding: 9px 12px; font-size: .72rem; line-height: 1.25;
  box-shadow: 0 10px 20px -8px rgba(74, 36, 18, .5);
  opacity: 0; transform: translateY(-14px);
  animation: toast 7s var(--ease) 2.2s infinite;
}
.mini__toast b { display: block; color: var(--lima); font-size: .82rem; }
@keyframes toast {
  0%, 100% { opacity: 0; transform: translateY(-14px); }
  8%, 45% { opacity: 1; transform: translateY(0); }
  55% { opacity: 0; transform: translateY(-14px); }
}

/* Stickers que "se pegan" */
.sticker { animation: stick .7s var(--pop) .9s both; }
.hero .tag--pink { animation: stick-tag .7s var(--pop) 1.1s both; }
@keyframes stick { from { opacity: 0; transform: scale(.3) rotate(-30deg); } }
@keyframes stick-tag { from { opacity: 0; transform: scale(.4) rotate(-10deg); } }

/* Logo del header */
.top__logo img { animation: fade .8s var(--ease) both; transition: transform .3s var(--pop); }
.top__logo:hover img { transform: rotate(-3deg) scale(1.04); }

/* Cinta: se frena al pasar el mouse */
.ribbon:hover .ribbon__track { animation-play-state: paused; }

/* --- Aparición al scrollear (en navegadores que lo soportan) --- */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  .works__grid .reveal:nth-child(3n+2) { animation-range: entry 8% entry 78%; }
  .works__grid .reveal:nth-child(3n) { animation-range: entry 16% entry 86%; }
  .services__grid .reveal:nth-child(2) { animation-range: entry 8% entry 78%; }
  .services__grid .reveal:nth-child(3) { animation-range: entry 16% entry 86%; }
  @keyframes reveal { from { opacity: 0; translate: 0 60px; scale: .96; } }
}

/* --- Efectos al pasar el mouse --- */
.work { transition: transform .35s var(--pop), box-shadow .35s var(--ease); }
.work:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 22px 30px -18px rgba(74, 36, 18, .55); }
.work:nth-child(even):hover { transform: translateY(-8px) rotate(1deg); }
.browser__body .ph, .browser__body img { transition: transform .6s var(--ease); }
.work:hover .browser__body .ph, .work:hover .browser__body img { transform: scale(1.05); }
.ph__name { transition: transform .5s var(--pop); }
.work:hover .ph__name { transform: rotate(-3deg) scale(1.04); }
.work__go { transition: letter-spacing .3s var(--ease); }
.work:hover .work__go { letter-spacing: .04em; }

.svc { transition: transform .35s var(--pop); }
.svc:hover { transform: translateY(-6px) rotate(-.6deg); }
.chips li { transition: transform .3s var(--pop); }
.svc:hover .chips li { transform: translateY(-3px); }
.svc:hover .chips li:nth-child(2) { transition-delay: .05s; }
.svc:hover .chips li:nth-child(3) { transition-delay: .1s; }

.btn--orange:hover { transform: translateY(-2px) rotate(-1.5deg); }
.btn--ghost { transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.btn--ghost:hover { background: var(--choco); color: var(--crema); }

.polaroid { transition: transform .5s var(--pop); }
.polaroid:hover { transform: rotate(1deg) scale(1.02); }

.contact .display em { display: inline-block; animation: wiggle 4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg) translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mini__toast { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Contacto quieto: el contenido sube y lo descubre ---------- */
@media (min-height: 560px) {
  main > :not(.contact) { position: relative; z-index: 1; }
  .about { background: var(--crema); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .35); }
  .contact { position: sticky; bottom: 0; z-index: 0; }
  .foot { position: relative; z-index: 1; }
}

/* ---------- Sin barra: menú sobre las rayas + logo sticker ---------- */
html { scroll-padding-top: 24px; }
.top {
  position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0;
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0;
}
.top__in { padding-block: 22px 0; align-items: flex-start; }
.top__logo {
  display: inline-block; background: var(--crema); border: 2px solid var(--choco);
  border-radius: 18px; padding: 10px 16px; transform: rotate(-5deg);
  box-shadow: 4px 5px 0 var(--choco); transition: transform .3s var(--pop);
}
.top__logo:hover { transform: rotate(-1deg) scale(1.04); }
.top__logo:hover img { transform: none; }
.top__nav { margin-top: 8px; gap: 10px; }
.top__nav a:not(.btn) {
  background: var(--crema); padding: 8px 14px; border-radius: 99px; border: 2px solid transparent;
}
.top__nav a:not(.btn):hover { text-decoration: none; border-color: var(--choco); }
.hb__in { padding-top: 140px; }

@media (max-width: 760px) {
  .top__in { padding-block: 16px 0; }
  .top__logo { padding: 8px 12px; border-radius: 14px; }
  .top__burger { background: var(--crema); margin-top: 6px; }
  .top__nav {
    top: calc(100% + 12px); left: 16px; right: 16px; margin-top: 0;
    border: 2px solid var(--choco); border-radius: 20px; padding: 8px 20px 20px;
  }
  .top__nav a:not(.btn) { background: none; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .hb__in { padding-top: 110px; }
}

/* ---------- Rayas que se deforman con el mouse ---------- */
.hb__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
.hb.hb--canvas { background: var(--crema); animation: none; }
.hb.hb--canvas .hb__bg { display: block; }
.hb__in { position: relative; z-index: 1; }
