/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --pink:      #ff2e5f;   /* rosa de marca (tomado de las piezas de Instagram) */
  --pink-2:    #ff6b8e;
  --pink-deep: #d91f4f;
  --rose:      #ffd9e2;
  --blush:     #fff3f6;
  --ink:       #2b0b14;
  --ink-soft:  #5a2a38;
  --white:     #ffffff;
  --line:      rgba(43, 11, 20, .14);

  --sans:  "Lato", "Carlito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;

  --ease:   cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --maxw:   1320px;
  --nav-h:  76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
section[id], main[id] { scroll-margin-top: calc(var(--nav-h) - 8px); }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--pink); }
.eyebrow--light { color: rgba(255,255,255,.85); }

/* Reveal: solo se oculta si hay JS; y se muestra solo a los 6 s aunque el JS falle */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
  animation: revealSafety .01s 6s forwards;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }

/* =============================================================
   4. Typography
   ============================================================= */
.h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-top: 14px;
}
.h2 em { color: var(--pink); font-size: 1.05em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; margin-top: 22px; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--sm { padding: 12px 22px; font-size: .72rem; }
.btn--block { width: 100%; }
.btn--light { background: var(--white); color: var(--pink); }
.btn--light:hover { box-shadow: 0 14px 30px rgba(43, 11, 20, .22); }
.btn--ghost { border-color: rgba(255,255,255,.85); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--pink); }
.btn--pink { background: var(--pink); color: var(--white); }
.btn--pink:hover { background: var(--pink-deep); box-shadow: 0 14px 30px rgba(255, 46, 95, .35); }

/* ---- Nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--gutter);
  color: var(--white);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-heart { width: 30px; height: auto; color: var(--white); transition: color .35s; }
.nav.is-scrolled .brand-heart { color: var(--pink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.25rem; font-weight: 300; letter-spacing: .28em; text-transform: uppercase; }
.brand-sub  { font-size: .62rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; margin-top: 5px; opacity: .85; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: currentColor; transition: right .35s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav .btn--sm { background: var(--white); color: var(--pink); }
.nav.is-scrolled .btn--sm { background: var(--pink); color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--pink);
  color: var(--white);
  min-height: 100svh;
  padding-top: var(--nav-h);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hearts-strip {
  height: 64px; flex: none;
  background: url("assets/img/hearts.svg") 0 0 / 120px 64px repeat-x;
  animation: heartsSlide 22s linear infinite;
}
@keyframes heartsSlide { to { background-position-x: -240px; } }
.hero-wm {
  position: absolute; right: -8%; bottom: -14%;
  width: min(78vw, 880px); aspect-ratio: 80 / 62;
  background: url("assets/img/heart-big.svg") center / contain no-repeat;
  opacity: .22; pointer-events: none;
  will-change: transform;
}
.hero-inner {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(28px, 5vh, 64px) var(--gutter) clamp(40px, 7vh, 88px);
  display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; opacity: .92; margin-bottom: 22px; }
.hero-title {
  font-size: clamp(3.3rem, 7.3vw, 8.4rem);
  font-weight: 400; line-height: .94; letter-spacing: -.012em; text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding: .02em 0 .12em; white-space: nowrap; }
.hero-title .line > span { display: block; transform: translateY(108%); animation: lineUp 1.05s var(--ease) forwards; animation-delay: calc(var(--i) * .14s + .2s); }
.hero-title em { font-size: 1.04em; }
@keyframes lineUp { to { transform: none; } }
.hero-sub { max-width: 40ch; font-size: clamp(1.02rem, 1.5vw, 1.25rem); font-weight: 300; margin-top: 26px; opacity: 0; animation: fadeUp .9s var(--ease) .75s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; animation: fadeUp .9s var(--ease) .95s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); opacity: 0; animation: fadeUp 1.1s var(--ease) .5s forwards; }
.photo { position: relative; overflow: hidden; background: var(--rose); }
.photo .ph, .photo .ph-img { position: absolute; inset: 0; }
.photo .ph {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.14) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--pink-2), var(--pink-deep));
}
.photo .ph span { font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.6); padding: 8px 14px; border-radius: 999px; }
/* Si existe la foto (webp o jpg) tapa el placeholder; si no existe, queda el placeholder */
.photo .ph-img { background-size: cover; background-position: center; background-image: var(--a), var(--b); }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; box-shadow: 0 40px 80px rgba(120, 0, 30, .35); will-change: transform; }
.badge { position: absolute; left: -12%; bottom: 6%; width: clamp(110px, 14vw, 164px); animation: spin 28s linear infinite; }
.badge text { font-family: var(--sans); font-size: 15.5px; font-weight: 700; letter-spacing: 3.6px; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Marquee ---- */
.marquee { background: var(--ink); color: var(--white); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 300; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--pink); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Manifiesto ---- */
.manifesto { padding: clamp(84px, 13vw, 190px) 0; background: var(--blush); }
.manifesto-grid { display: grid; grid-template-columns: 3fr 9fr; gap: 24px; align-items: start; }
.manifesto-grid .eyebrow { padding-top: 14px; }
.manifesto-text { font-size: clamp(1.8rem, 4.2vw, 3.8rem); font-weight: 300; line-height: 1.14; letter-spacing: -.01em; max-width: 24em; }
.manifesto-text em { color: var(--pink); font-size: 1.08em; }

/* ---- Servicios ---- */
.services { background: var(--white); padding: clamp(72px, 10vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 290px; padding: clamp(24px, 3vw, 38px);
  border-radius: 26px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 190px; height: 150px;
  background: url("assets/img/heart-big.svg") center / contain no-repeat; opacity: .12; pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s;
}
.card:hover { box-shadow: 0 26px 60px rgba(255, 46, 95, .28); }
.card:hover::after { transform: rotate(-8deg) scale(1.12); opacity: .2; }
.card h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.card p { margin-top: 12px; max-width: 34ch; font-size: .98rem; opacity: .92; }
.card-num { margin-bottom: auto; padding-bottom: 28px; font-size: .8rem; font-weight: 700; letter-spacing: .22em; opacity: .75; }
.card-link { margin-top: 20px; align-self: flex-start; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.card-link span { display: inline-block; transition: transform .3s var(--ease); }
.card-link:hover span { transform: translateX(5px); }
.card--pink { background: var(--pink); color: var(--white); }
.card--pink::after, .card--ink::after { filter: brightness(2.2); }
.card--white { background: var(--blush); }
.card--rose { background: var(--rose); }
.card--ink { background: var(--ink); color: var(--white); }
.card--tall { grid-column: span 3; grid-row: span 2; min-height: 540px; }
.card--tall h3 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .95; }
.card--tall p { font-size: 1.12rem; }
.bento > .card:nth-child(2), .bento > .card:nth-child(3) { grid-column: span 3; }
.bento > .card:nth-child(n+4) { grid-column: span 2; }

/* ---- Trabajos ---- */
.work { background: var(--blush); padding: clamp(72px, 10vw, 150px) 0; }
.reel {
  display: flex; gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  --reel-pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: var(--reel-pad);
  padding: 8px var(--reel-pad) 28px;
  scrollbar-width: thin; scrollbar-color: var(--pink) transparent;
}
.tile { flex: 0 0 clamp(250px, 27vw, 360px); aspect-ratio: 4 / 5; border-radius: 22px; scroll-snap-align: start; }
.tile figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: var(--white); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
}
.tile .ph-img { transition: transform .8s var(--ease); }
.tile:hover .ph-img { transform: scale(1.06); }

/* ---- Instagram ---- */
.insta { position: relative; background: var(--pink); color: var(--white); padding: clamp(84px, 12vw, 170px) 0; overflow: hidden; text-align: center; }
.insta-wm { position: absolute; left: 50%; top: 50%; width: min(120vw, 1100px); aspect-ratio: 80 / 62; transform: translate(-50%, -50%); background: url("assets/img/heart-big.svg") center / contain no-repeat; opacity: .2; pointer-events: none; }
.insta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.insta-title { font-size: clamp(2.8rem, 8.6vw, 8rem); font-weight: 400; line-height: .95; text-transform: uppercase; letter-spacing: -.01em; margin-top: 18px; }
.insta-title em { font-size: 1.04em; }
.insta-sub { font-size: 1.15rem; font-weight: 300; max-width: 38ch; margin-top: 24px; }
.insta-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ---- Turnos ---- */
.booking { background: var(--white); padding: clamp(72px, 10vw, 150px) 0; }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.info { margin-top: 38px; display: grid; gap: 18px; }
.info div { border-top: 1px solid var(--line); padding-top: 14px; }
.info dt { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.info dd { margin: 4px 0 0; font-size: 1.05rem; }
.form { display: grid; gap: 22px; background: var(--blush); padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; background: transparent;
  border: 0; border-bottom: 2px solid var(--line); border-radius: 0; outline: 0;
  font-size: 1.05rem; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--pink); }
.field.is-error input, .field.is-error select { border-bottom-color: #c4001f; }
.form-note { min-height: 1.4em; font-size: .9rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.footer { background: var(--ink); color: var(--white); padding: clamp(48px, 6vw, 84px) 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.footer-brand { font-size: 1.6rem; font-weight: 300; letter-spacing: .24em; text-transform: uppercase; }
.footer-brand span { font-weight: 700; color: var(--pink); }
.footer-small { font-size: .85rem; opacity: .7; margin-top: 6px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.footer-nav a:hover { color: var(--pink-2); opacity: 1; }
.footer-right { text-align: right; }

/* =============================================================
   7. Cursor (solo con mouse; oculto hasta el primer movimiento)
   ============================================================= */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: 0; transition: opacity .25s; }
  .cursor.is-ready { opacity: 1; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot  { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--ink); }
  .cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--ink); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s; }
  .cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .55); }
  .cursor.on-dark .cursor-dot { background: #fff; }
  .cursor.on-dark .cursor-ring { border-color: #fff; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 1020px) {
  .nav { gap: 12px; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: var(--pink); color: var(--white);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav-links a { font-size: 1.5rem; font-weight: 400; letter-spacing: .2em; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; }
  .nav.is-open { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav.is-open .brand-heart { color: var(--white); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { width: min(78%, 360px); margin-top: 8px; }
  .badge { left: -16%; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--tall, .bento > .card:nth-child(2), .bento > .card:nth-child(3), .bento > .card:nth-child(n+4) { grid-column: span 1; grid-row: auto; }
  .card--tall { grid-column: span 2; min-height: 380px; }
  .booking-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
}
@media (max-width: 620px) {
  :root { --nav-h: 68px; }
  .brand-name { font-size: 1.05rem; }
  .hearts-strip { height: 52px; background-size: 98px 52px; }
  .hero-title { font-size: clamp(2.6rem, 15vw, 5rem); }
  .hero-title .line { white-space: normal; }
  .hero-cta .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: 1fr; }
  .card--tall, .bento > .card:nth-child(n) { grid-column: span 1; }
  .card, .card--tall { min-height: 250px; }
  .card--tall { min-height: 340px; }
  .insta-links .btn { width: 100%; }
}

/* =============================================================
   9. Reduced motion — solo lo realmente intrusivo (loops continuos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .badge { animation: none; }
  .hearts-strip { animation: none; }
  .marquee-track { animation-duration: 90s; }
}
