/* ==========================================================
   Nua Salón — Demo OrbexStudio
   ========================================================== */

:root {
  --bg:        #0C0C0C;
  --bg-alt:    #141414;
  --bg-card:   #1C1C1C;
  --bg-light:  #F6F1E8;
  --accent:    #D4BC96;
  --accent-l:  #E2D0B0;
  --text:      #F0ECE6;
  --text-dim:  #808078;
  --text-dark: #1A1710;
  --border:    rgba(212, 188, 150, 0.12);

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans:  'DM Sans', sans-serif;

  /* Tratamiento de color unificado para fotografía:
     duotono B&N cálido para "ambiente/antes", color graduado en dorado
     solo para el resultado final ("después"). Ajustar aquí, no en cada foto. */
  --img-mono:   grayscale(1) sepia(.12) contrast(1.08) brightness(.97);
  --img-accent: saturate(.8) sepia(.18) hue-rotate(-8deg) contrast(1.05) brightness(1.02);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: .6;
  margin: 20px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 0 24px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 36px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #0C0C0C;
  border: 0.5px solid var(--accent);
}
.btn--primary:hover { background: var(--accent-l); border-color: var(--accent-l); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 0.5px solid var(--accent);
}
.btn--outline:hover { background: rgba(212,188,150,0.08); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 9px 18px;
  font-size: 11px;
}
.btn--ghost:hover { background: rgba(212,188,150,0.08); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
  border-bottom: 0.5px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled {
  background: #0C0C0C;
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--text);
}
.nav__word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
}
.nav__sub {
  font-family: var(--font-sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-dim);
  margin-top: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.btn) {
  font-size: 12px;
  color: var(--text-dim);
  transition: color .2s ease;
}
.nav__links a:not(.btn):hover { color: var(--text); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero__content {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 64px 64px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
}
.hero__desc {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 380px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__photo {
  background:
    url('https://images.unsplash.com/photo-1560066984-138dadb4c035?w=1200&q=80')
    center/cover no-repeat;
  min-height: 320px;
  filter: var(--img-mono);
}

/* ==========================================================
   STATS
   ========================================================== */
.stats {
  background: var(--bg-alt);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  padding: 40px 24px;
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stats__num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent);
}
.stats__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-top: 4px;
}
a.stats__item { transition: opacity .2s ease; }
a.stats__item:hover { opacity: .8; }

/* ==========================================================
   SERVICIOS
   ========================================================== */
.services {
  background: var(--bg);
  padding: 100px 24px;
}
.service-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
}
.service-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 0.5px dashed rgba(212,188,150,0.2);
}
.service-row__name {
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}
.service-row__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(212,188,150,0.25);
  transform: translateY(-4px);
}
.service-row__price {
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
}
.service-row__cta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 6px 12px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.service-row__cta:hover { background: var(--accent); color: #0C0C0C; }

/* ==========================================================
   GALERÍA
   ========================================================== */
.gallery {
  background: var(--bg-alt);
  padding: 100px 24px;
}
.gallery__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.gallery__col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.gallery__item {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.gallery__item--tall { aspect-ratio: 2 / 3; }
.gallery__item--square { aspect-ratio: 1 / 1; }
.gallery__item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: var(--img-mono);
  transition: transform .5s ease;
}
.gallery__item:hover > img { transform: scale(1.04); }
.gallery__follow {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-dim);
}
.gallery__follow a,
.gallery__ig-pending { color: var(--accent); }

/* ---------- Comparador antes/después (slider) ---------- */
.compare {
  position: relative;
  width: 100%;
  height: 100%;
  --pos: 50%;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compare__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  filter: var(--img-mono);
}
.compare__after {
  filter: var(--img-accent);
}
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 2;
}
.compare__handle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  opacity: 0;
  z-index: 5;
}
.compare__tag {
  position: absolute;
  bottom: 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  z-index: 3;
  pointer-events: none;
}
.compare__tag--before { left: 10px; }
.compare__tag--after { right: 10px; }

/* ---------- Comparador antes/después (lado a lado) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 1px;
  background: var(--border);
}
.split__half {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}
.split__half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split__half:first-child img { filter: var(--img-mono); }
.split__half:last-child img { filter: var(--img-accent); }
.split__half figcaption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
}

/* ==========================================================
   POR QUÉ ELEGIRNOS (fondo claro)
   ========================================================== */
.why {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 100px 24px;
}
.why .section-head h2 { color: var(--text-dark); max-width: 560px; margin: 0 auto; }
.why__grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.why__icon {
  width: 36px; height: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}
.why__item h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.why__item p {
  font-size: 13px;
  color: rgba(26,23,16,0.65);
}

/* ==========================================================
   TESTIMONIOS
   ========================================================== */
.testimonials {
  background: var(--bg);
  padding: 100px 24px;
}
.testimonials__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  padding: 32px 24px;
  position: relative;
}
.testimonial__mark {
  position: absolute;
  top: 8px; left: 16px;
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--accent);
  opacity: .2;
  line-height: 1;
}
.testimonial p {
  position: relative;
  font-size: 14px;
  margin-bottom: 16px;
}
.testimonial cite {
  position: relative;
  font-style: normal;
  font-size: 12px;
  color: var(--accent);
}

/* ==========================================================
   CÓMO AGENDAR (fondo claro)
   ========================================================== */
.steps {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 100px 24px;
}
.steps .section-head h2 { color: var(--text-dark); }
.steps__grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.steps__num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.steps__item p {
  font-size: 14px;
  color: rgba(26,23,16,0.75);
}

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact {
  background: var(--bg-alt);
  padding: 100px 24px;
}
.contact__grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  align-items: start;
}
.contact__label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact__item p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}
.contact__directions {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 8px 16px;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.contact__directions:hover { background: var(--accent); color: #0C0C0C; }
.contact__map {
  max-width: 900px;
  margin: 56px auto 0;
  border: 0.5px solid var(--border);
  overflow: hidden;
  line-height: 0;
}
.contact__map iframe { width: 100%; display: block; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: #080808;
  padding: 40px 24px;
  text-align: center;
}
.footer__brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--text-dim);
}
.footer__contact {
  margin-top: 14px;
  font-size: 12px;
}
.footer__contact a { color: var(--accent); }
.footer__by {
  font-size: 10px;
  color: var(--text-dim);
  opacity: .7;
  margin-top: 8px;
}

/* ==========================================================
   WHATSAPP FLOTANTE
   ========================================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 200;
  animation: wa-pulse 2.4s infinite;
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
}
.wa-float:hover { background: var(--accent-l); }
.wa-float--hidden {
  opacity: 0;
  transform: scale(.8);
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,188,150,0.55), 0 4px 16px rgba(0,0,0,0.35); }
  70%  { box-shadow: 0 0 0 14px rgba(212,188,150,0), 0 4px 16px rgba(0,0,0,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(212,188,150,0), 0 4px 16px rgba(0,0,0,0.35); }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { min-height: 320px; order: -1; }
  .hero__content { padding: 100px 32px 56px; }
  .hero__title { font-size: 40px; }

  .why__grid,
  .steps__grid,
  .contact__grid,
  .testimonials__grid { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--tall:last-child { grid-column: span 2; }

  .nav__links a:not(.btn) { display: none; }
}

@media (max-width: 600px) {
  .service-row__name { font-size: 14px; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 40px; }

  .service-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .service-row__name { flex: 1 1 100%; }
  .service-row__dots { display: none; }
  .service-row__price { margin-right: auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
