/* Maryland Peluquerías — demo conceptual Ingresify */

:root {
  --cream: #F6F1E9;
  --cream-soft: #EFE7D8;
  --graphite: #211D1A;
  --graphite-soft: #2C2620;
  --graphite-line: rgba(246, 241, 233, 0.14);
  --ink: #241F1B;
  --ink-soft: rgba(36, 31, 27, 0.68);
  --wine: #7A2436;
  --wine-light: #B8566B;
  --camel: #C8A97E;
  --line-light: rgba(36, 31, 27, 0.14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --motion-fast: 0.2s;
  --motion-base: 0.5s;
  --motion-slow: 0.9s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --side-pad: 20px;
  --frame-radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top var(--motion-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--camel);
  outline-offset: 3px;
}

svg { fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--side-pad);
  background: rgba(33, 29, 26, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--graphite-line);
}
.brand-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--cream);
  letter-spacing: 0.01em;
  transition: transform var(--motion-base) var(--ease);
}
.brand-mark.pulse { transform: scale(1.08); }
.brand-d { color: var(--wine-light); font-style: normal; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid var(--graphite-line);
  border-radius: 999px;
  min-height: 44px;
}
.header-call svg { width: 16px; height: 16px; }
.header-call span:last-child { display: none; }
@media (min-width: 480px) {
  .header-call span:last-child { display: inline; }
}

/* ---------- Scenes: shared ---------- */
.scene {
  position: relative;
  padding: 90px var(--side-pad) 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Entry scene ---------- */
.scene-entry {
  min-height: 92vh;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(200, 169, 126, 0.14), transparent 60%),
    var(--graphite);
}
.entry-mirror { margin-bottom: 28px; }
.mini-frame {
  width: 46px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  border: 2px solid var(--camel);
  opacity: 0.55;
  animation: mini-idle 5s ease-in-out infinite;
}
@keyframes mini-idle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(-2deg); }
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 14px;
}
.wordmark {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  font-style: italic;
  line-height: 1;
}
.wordmark-d { color: var(--wine-light); font-style: normal; }
.wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  margin-top: 8px;
}
.entry-lead {
  margin-top: 22px;
  font-size: 1.05rem;
  max-width: 30ch;
  color: rgba(246, 241, 233, 0.86);
}
.scroll-hint {
  position: absolute;
  bottom: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.4);
}

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}
.cta-primary {
  background: var(--wine);
  color: var(--cream);
  margin-top: 30px;
}
.cta-primary:hover { background: var(--wine-light); }
.cta-primary:active { transform: scale(0.97); }
.cta-block { width: 100%; max-width: 420px; }
.cta svg { width: 18px; height: 18px; }

/* ---------- Mirror scenes ---------- */
.scene-mirror {
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--graphite-soft);
  gap: 8px;
}
.scene-mirror + .scene-mirror { border-top: 1px solid var(--graphite-line); }

.mirror-stage {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  perspective: 1400px;
  margin: 0 auto 30px;
}
.mirror-frame {
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 44% 44% / 58% 58% 42% 42%;
  border: 3px solid var(--camel);
  box-shadow: 0 0 0 1px rgba(200, 169, 126, 0.25), 0 24px 60px rgba(0,0,0,0.35);
  padding: 10px;
  transform-style: preserve-3d;
  background: var(--graphite);
}
.mirror-glass {
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 40% 40% / 56% 56% 44% 44%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.1));
}
.strand-set { position: absolute; inset: -10%; }
.strand {
  position: absolute;
  width: 130%;
  height: 15%;
  left: -15%;
  border-radius: 999px;
  filter: blur(0.5px);
  opacity: 0.85;
}
.strand:nth-child(1) { top: 4%;  transform: rotate(-16deg); }
.strand:nth-child(2) { top: 24%; transform: rotate(-10deg); }
.strand:nth-child(3) { top: 44%; transform: rotate(-18deg); }
.strand:nth-child(4) { top: 64%; transform: rotate(-8deg); }
.strand:nth-child(5) { top: 82%; transform: rotate(-14deg); }

/* Extensiones: bandas largas y continuas en una sola diagonal -- sugiere longitud y caída de una melena larga */
.strand-set--copper .strand { height: 19%; }
.strand-set--copper .strand:nth-child(1) { top: 0%;  transform: rotate(-13deg); }
.strand-set--copper .strand:nth-child(2) { top: 20%; transform: rotate(-13deg); }
.strand-set--copper .strand:nth-child(3) { top: 40%; transform: rotate(-13deg); }
.strand-set--copper .strand:nth-child(4) { top: 60%; transform: rotate(-13deg); }
.strand-set--copper .strand:nth-child(5) { top: 80%; transform: rotate(-13deg); }

/* Color y balayage: bandas fragmentadas en ángulos alternos -- sugiere mechas/secciones de tono trabajadas por separado */
.strand-set--balayage .strand { height: 13%; }
.strand-set--balayage .strand:nth-child(1) { top: 2%;  transform: rotate(-22deg); }
.strand-set--balayage .strand:nth-child(2) { top: 22%; transform: rotate(8deg); }
.strand-set--balayage .strand:nth-child(3) { top: 44%; transform: rotate(-16deg); }
.strand-set--balayage .strand:nth-child(4) { top: 65%; transform: rotate(12deg); }
.strand-set--balayage .strand:nth-child(5) { top: 85%; transform: rotate(-20deg); }

/* Recogidos y alisado: líneas casi horizontales y muy juntas -- sugiere cabello alisado/recogido, liso y compacto */
.strand-set--texture .strand { height: 11%; }
.strand-set--texture .strand:nth-child(1) { top: 8%;  transform: rotate(-3deg); }
.strand-set--texture .strand:nth-child(2) { top: 26%; transform: rotate(2deg); }
.strand-set--texture .strand:nth-child(3) { top: 44%; transform: rotate(-4deg); }
.strand-set--texture .strand:nth-child(4) { top: 62%; transform: rotate(1deg); }
.strand-set--texture .strand:nth-child(5) { top: 80%; transform: rotate(-3deg); }

.strand-set--copper .strand:nth-child(1) { background: linear-gradient(90deg, #4A2E22, #8B4A2B); }
.strand-set--copper .strand:nth-child(2) { background: linear-gradient(90deg, #8B4A2B, #C97B4A); }
.strand-set--copper .strand:nth-child(3) { background: linear-gradient(90deg, #C97B4A, #E3B089); }
.strand-set--copper .strand:nth-child(4) { background: linear-gradient(90deg, #8B4A2B, #C97B4A); }
.strand-set--copper .strand:nth-child(5) { background: linear-gradient(90deg, #4A2E22, #8B4A2B); }

.strand-set--balayage .strand:nth-child(1) { background: linear-gradient(90deg, #7A2436, #B8566B); }
.strand-set--balayage .strand:nth-child(2) { background: linear-gradient(90deg, #C97B4A, #E9D2A6); }
.strand-set--balayage .strand:nth-child(3) { background: linear-gradient(90deg, #E9D2A6, #F3E7C9); }
.strand-set--balayage .strand:nth-child(4) { background: linear-gradient(90deg, #C97B4A, #E9D2A6); }
.strand-set--balayage .strand:nth-child(5) { background: linear-gradient(90deg, #7A2436, #B8566B); }

.strand-set--texture .strand:nth-child(1) { background: linear-gradient(90deg, #4A3B2A, #C8A97E); }
.strand-set--texture .strand:nth-child(2) { background: linear-gradient(90deg, #C8A97E, #EFE7D8); }
.strand-set--texture .strand:nth-child(3) { background: linear-gradient(90deg, #3A322B, #6B5A45); }
.strand-set--texture .strand:nth-child(4) { background: linear-gradient(90deg, #C8A97E, #EFE7D8); }
.strand-set--texture .strand:nth-child(5) { background: linear-gradient(90deg, #4A3B2A, #C8A97E); }

.scene-copy { max-width: 34ch; }
.scene-index {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--camel);
  margin-bottom: 10px;
}
.scene-copy h2 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-style: italic;
  margin-bottom: 14px;
}
.scene-copy p {
  font-size: 0.98rem;
  color: rgba(246, 241, 233, 0.78);
}

/* ---------- Reputation scene ---------- */
.scene-reputation {
  background: var(--cream);
  color: var(--ink);
  min-height: auto;
  padding-top: 76px;
  padding-bottom: 76px;
}
.rep-figure {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
}
.rep-number {
  font-size: clamp(4.5rem, 22vw, 7rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--wine);
}
.rep-of {
  font-size: 1.4rem;
  margin-top: 10px;
  color: var(--ink-soft);
}
.rep-detail {
  margin-top: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.rep-quote {
  margin: 34px 0 0;
  max-width: 32ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
}
.rep-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Contact scene ---------- */
.scene-contact {
  background: var(--cream-soft);
  color: var(--ink);
  min-height: auto;
  padding-top: 76px;
  padding-bottom: 60px;
}
.scene-contact h2 {
  font-size: clamp(2.1rem, 7vw, 2.8rem);
  font-style: italic;
  margin-bottom: 8px;
}
.scene-contact .cta-primary { background: var(--wine); color: var(--cream); }

.contact-grid {
  margin-top: 46px;
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 30px;
  text-align: left;
}
.contact-block h3 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--wine);
  margin-bottom: 10px;
}
.contact-block p { color: var(--ink); font-size: 1rem; }
.contact-block ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.95rem;
}
.contact-block ul li span {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  min-height: 44px;
}
.text-link svg { width: 16px; height: 16px; }
.contact-note {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: rgba(246, 241, 233, 0.62);
  text-align: center;
  padding: 40px var(--side-pad) 36px;
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 14px;
}
.site-footer p + p { margin-top: 8px; }

/* ---------- Reveal, no-JS-safe defaults: everything visible until js-ready ---------- */
/* Reputation + contact scenes: simple one-shot fade via IntersectionObserver, no GSAP */
.js-ready .reveal-scene .reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--motion-slow) var(--ease), transform var(--motion-slow) var(--ease);
}
.js-ready .reveal-scene.in-view .reveal-item {
  opacity: 1;
  transform: none;
}

/* Mirror scenes on mobile only: simple one-shot fade for frame + copy (desktop is driven by GSAP inline styles) */
@media (max-width: 1023.98px) {
  .js-ready .scene-mirror .mirror-frame,
  .js-ready .scene-mirror .scene-copy {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--motion-slow) var(--ease), transform var(--motion-slow) var(--ease);
  }
  .js-ready .scene-mirror.in-view .mirror-frame,
  .js-ready .scene-mirror.in-view .scene-copy {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Desktop (>=1024px): mirror scenes get real height for pin ---------- */
@media (min-width: 1024px) {
  .scene-mirror {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: center;
    gap: 36px;
  }
  .scene-mirror + .scene-mirror { border-top: none; }
  .mirror-stage {
    width: auto;
    height: min(46vh, 420px);
    aspect-ratio: 3 / 4;
    max-width: none;
    margin: 0 auto;
  }
  .scene-copy { max-width: 40ch; }

  .scene-reputation, .scene-contact { padding-top: 110px; padding-bottom: 110px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mini-frame { animation: none; }
  .js-ready .reveal-scene .reveal-item,
  .js-ready .scene-mirror .mirror-frame,
  .js-ready .scene-mirror .scene-copy {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .brand-mark.pulse { transform: none; }
}
