/* Paco Navarro Salón — demo conceptual Ingresify */

:root {
  --color-bg: #0e0e0e;
  --color-bg-panel: #17140f;
  --color-cream: #f3ede2;
  --color-cream-dim: #cfc7b8;
  --color-wood: #b98955;
  --color-accent: #f2c50d;
  --color-accent-ink: #14110a;
  --color-paper: #ede4d2;
  --color-ink: #17140f;

  --font-display: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --motion-fast: 200ms;
  --motion-base: 400ms;
  --motion-slow: 700ms;
  --ease-brand: cubic-bezier(.22,.61,.36,1);

  --edge: 18px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-behavior:smooth is intentionally NOT set here -- it conflicts with GSAP ScrollTrigger's
   own scrub/pin scroll handling (competing scroll animations can cause position jumps). */

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: 10px 16px; border-radius: 4px; z-index: 200;
  font-weight: 600; transition: top var(--motion-fast) var(--ease-brand);
}
.skip-link:focus { top: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border-radius: 2px; text-decoration: none; white-space: nowrap;
  transition: transform var(--motion-fast) var(--ease-brand), background var(--motion-fast) var(--ease-brand);
}
.btn-accent { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--color-cream); border: 1.5px solid var(--color-cream-dim); }
.btn-ghost:hover { border-color: var(--color-cream); }
.btn-compact { min-height: 44px; padding: 0 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--edge);
  background: rgba(14,14,14,0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(243,237,226,0.08);
}
.header-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-symbol { width: 30px; height: 30px; display: block; color: var(--color-cream); }
.header-symbol .brand-symbol { width: 100%; height: 100%; }
.header-wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--color-cream); line-height: 1;
}
.header-wordmark-sub { display: block; font-family: var(--font-body); font-size: 0.55rem; letter-spacing: 0.18em; font-weight: 500; color: var(--color-cream-dim); margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: none; align-items: center; min-height: 44px; font-size: 0.88rem; font-weight: 600; text-decoration: none; }

@media (min-width: 640px) {
  .header-phone { display: inline-flex; }
}

/* ---------- Brand symbol (SVG shared styling) ---------- */
.brand-symbol { overflow: visible; }
.brand-symbol .sym-brow,
.brand-symbol .sym-smile,
.brand-symbol .sym-smile-tick,
.brand-symbol .sym-second-line,
.brand-symbol .sym-eye {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}
.brand-symbol .sym-brow { stroke-width: 13; }
.brand-symbol .sym-smile { stroke-width: 13; }
.brand-symbol .sym-smile-tick { stroke-width: 10; }
.brand-symbol .sym-eye { stroke-width: 11; }
.brand-symbol .sym-second-line { stroke-width: 11; opacity: 0; }
.brand-symbol .sym-pivot { fill: var(--color-accent); opacity: 0; }
.brand-symbol .sym-contrast-highlight { color: var(--color-accent); opacity: 0; clip-path: inset(0 50% 0 0); }

/* symbol static states (fallback / reduced motion / no-JS) */
.brand-symbol[data-state="peeling"] .sym-eye { opacity: 0; }
.brand-symbol[data-state="corte"] .sym-pivot { opacity: 1; }
.brand-symbol[data-state="barba"] .sym-pivot { opacity: 1; }
.brand-symbol[data-state="barba"] .sym-second-line { opacity: 1; }
.brand-symbol[data-state="mechas"] .sym-contrast-highlight { opacity: 1; }

/* ---------- Layout helpers ---------- */
.eyebrow {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent);
  margin: 0 0 10px;
}
.eyebrow-dark { color: var(--color-wood); }

.scene-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.02;
  margin: 0 0 14px; color: var(--color-cream);
}
.scene-title--split { display: flex; flex-direction: column; }
.scene-title--split span:last-child { color: var(--color-accent); }

.scene-desc { font-size: 1.02rem; line-height: 1.55; color: var(--color-cream-dim); max-width: 42ch; margin: 0 0 18px; }

.scene-price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.price-num { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--color-cream); }
.price-meta { color: var(--color-cream-dim); font-size: 0.9rem; }

.price-list { margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.price-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(243,237,226,0.14);
  font-size: 0.95rem;
}
.price-list li span:last-child { color: var(--color-accent); font-weight: 600; white-space: nowrap; }

/* ---------- Scenes: mobile-first (stacked, no pin) ---------- */
.scene { position: relative; }

.scene-entry {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--edge) 48px;
}
.scene-media { display: block; width: 100%; }
.scene-media--bg { position: absolute; inset: 0; z-index: 0; }
.scene-media--bg img { width: 100%; height: 100%; object-fit: cover; }
.scene-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.7) 55%, rgba(14,14,14,0.96) 100%);
}
.scene-content { position: relative; z-index: 2; }
.entry-symbol-wrap { width: 84px; height: 84px; color: var(--color-cream); margin-bottom: 18px; }
.entry-symbol-wrap .brand-symbol { width: 100%; height: 100%; }
.entry-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 10vw, 3.6rem); margin: 0 0 12px; line-height: 1.02; }
.entry-lead { font-size: 1.05rem; color: var(--color-cream-dim); max-width: 40ch; margin: 0 0 24px; }
.entry-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-cream-dim);
  z-index: 2;
}

.scene-service { padding: 64px var(--edge); background: var(--color-bg); }
.scene-service .scene-pin { display: flex; flex-direction: column; gap: 24px; }
.scene-service .scene-media { border-radius: 2px; overflow: hidden; aspect-ratio: 4/5; }
.scene-service .scene-media img { width: 100%; height: 100%; object-fit: cover; }
.scene-service .scene-media--accent { display: none; }
.scene-symbol-stage { width: 72px; height: 72px; color: var(--color-cream); }
.scene-symbol-stage .brand-symbol { width: 100%; height: 100%; }
.scene-symbol-stage--big { width: 96px; height: 96px; }
.scene-text { max-width: 46ch; }

.scene-peeling { background: var(--color-bg); }
.scene-peeling .scene-media--ambient { position: relative; opacity: 0.65; }

.scene-mechas .scene-pin { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Calm scene: profesionales ---------- */
.scene-calm { padding: 72px var(--edge); background: var(--color-bg-panel); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 32px; }
.team-grid { display: flex; flex-direction: column; gap: 28px; }
.team-card { background: var(--color-bg); border: 1px solid rgba(243,237,226,0.1); }
.team-card picture { display: block; aspect-ratio: 1/1; overflow: hidden; }
.team-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.team-card-body { padding: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.team-symbol { width: 34px; height: 34px; color: var(--color-accent); flex-shrink: 0; }
.team-symbol .brand-symbol { width: 100%; height: 100%; }
.team-card-body h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; flex: 1 1 auto; min-width: 140px; }

/* ---------- Close scene: reputación ---------- */
.scene-close { min-height: 90svh; display: flex; align-items: center; justify-content: center; padding: 72px var(--edge); background: var(--color-bg); text-align: center; }
.scene-pin--close { display: flex; flex-direction: column; align-items: center; max-width: 34ch; }
.close-symbol { width: 110px; height: 110px; color: var(--color-cream); margin-bottom: 20px; }
.close-symbol .brand-symbol { width: 100%; height: 100%; }
.rep-figure { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.rep-number { font-family: var(--font-display); font-weight: 900; font-size: 3.2rem; color: var(--color-cream); }
.rep-sep { color: var(--color-cream-dim); }
.rep-reviews { font-family: var(--font-display); font-weight: 900; font-size: 3.2rem; color: var(--color-accent); }
.rep-label { color: var(--color-cream-dim); font-size: 0.95rem; align-self: center; }

/* ---------- Standard sections ---------- */
.section-standard { padding: 72px var(--edge); }
.section-inner { max-width: 720px; margin: 0 auto; }
.section-carta { background: var(--color-paper); color: var(--color-ink); }
.section-title-dark { color: var(--color-ink); }
.carta-table { width: 100%; margin: 0 0 20px; }
.carta-table tr { border-bottom: 1px solid rgba(23,20,15,0.14); }
.carta-table th, .carta-table td { text-align: left; padding: 12px 6px; font-size: 0.95rem; font-weight: 400; }
.carta-table th { font-weight: 600; }
.carta-table td:last-child { text-align: right; color: #6b5a3a; white-space: nowrap; }
.carta-note { font-size: 0.85rem; color: #6b6355; max-width: 60ch; margin: 0 0 26px; }
.section-carta .btn-accent { color: var(--color-accent-ink); }

.section-contacto { background: var(--color-bg); }
.section-inner--split { display: flex; flex-direction: column; gap: 32px; max-width: 960px; }
.contacto-address { font-style: normal; color: var(--color-cream-dim); margin: 0 0 10px; line-height: 1.6; }
.contacto-phone { margin: 0 0 24px; }
.contacto-phone a { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.contacto-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contacto-map { aspect-ratio: 4/3; }
.contacto-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Reveal (armed only by JS -- no-JS visitors see everything immediately) ---------- */
.reveal-armed { opacity: 0; transform: translateY(20px); transition: opacity var(--motion-slow) var(--ease-brand), transform var(--motion-slow) var(--ease-brand); }
.reveal-armed.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.site-footer { background: #000; padding: 48px var(--edge) 32px; text-align: center; }
.footer-inner { max-width: 560px; margin: 0 auto; }
.footer-logo { width: 96px; height: auto; margin: 0 auto 20px; border-radius: 2px; }
.footer-demo-note { font-size: 0.78rem; color: var(--color-cream-dim); line-height: 1.6; margin: 0 0 14px; }
.footer-legal { font-size: 0.8rem; color: var(--color-cream-dim); margin: 0; }
.footer-legal a { text-decoration: underline; }

/* =========================================================
   DESKTOP (>=1024px): grid layout for cinematic scenes,
   pin/scrub handled by JS via GSAP matchMedia
   ========================================================= */
@media (min-width: 1024px) {
  :root { --edge: 48px; }

  .header-wordmark { font-size: 1.2rem; }

  .scene-entry { padding-left: 64px; padding-right: 64px; padding-bottom: 96px; align-items: flex-start; }
  .entry-symbol-wrap { width: 110px; height: 110px; }
  .entry-title { font-size: clamp(3.2rem, 6vw, 5.2rem); }

  .scene-service { min-height: 100vh; display: flex; align-items: center; padding: 0 64px; }
  .scene-service .scene-pin {
    position: relative; width: 100%; max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 64px;
  }
  .scene-service .scene-media { grid-column: 1; grid-row: 1; position: relative; aspect-ratio: 3/4; max-height: 72vh; }
  .scene-service .scene-media--accent {
    display: block; grid-column: 1; grid-row: 1; align-self: end; justify-self: start;
    position: relative; z-index: 2; width: 46%; max-width: 220px; transform: translate(-14%, 12%);
    aspect-ratio: 4/3; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 4px solid var(--color-bg);
  }
  .scene-text { grid-column: 2; grid-row: 1; }
  .scene-symbol-stage {
    grid-column: 1; grid-row: 1; align-self: center; justify-self: center;
    position: relative; width: 220px; height: 220px; z-index: 3; pointer-events: none;
  }
  .scene-symbol-stage--big { width: 300px; height: 300px; }

  .scene-mechas .scene-pin { display: block; text-align: center; max-width: 900px; margin: 0 auto; }
  .scene-mechas .scene-symbol-stage { position: static; transform: none; margin: 0 auto 20px; }
  .scene-title--split { flex-direction: row; justify-content: center; gap: 18px; }
  .scene-mechas .scene-text { max-width: none; }
  .scene-mechas .scene-desc { margin-left: auto; margin-right: auto; }
  .scene-mechas .price-num, .scene-mechas .btn { margin-left: auto; margin-right: auto; }
  .scene-mechas .scene-price { justify-content: center; }

  .scene-calm { padding: 120px 64px; }
  .team-grid { flex-direction: row; gap: 40px; max-width: 1100px; margin: 0 auto; }
  .team-card { flex: 1; }

  .scene-close { min-height: 100vh; }
  .rep-number, .rep-reviews { font-size: 5rem; }
  .close-symbol { width: 150px; height: 150px; }

  .section-standard { padding: 120px 64px; }
  .section-inner--split { flex-direction: row; gap: 64px; align-items: stretch; }
  .contacto-info, .contacto-map { flex: 1; }
  .contacto-map { aspect-ratio: auto; }
}

/* ---------- Reduced motion: resolve everything to final, readable state ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
