/* ===== TOKENS ===== */
:root {
  --graphite: #21242A;
  --graphite-soft: #2C3038;
  --bone: #F6F4EF;
  --stone: #E4DFD4;
  --amber: #E0952B;
  --amber-dark: #C67D1B;
  --ink: #1B1B1B;
  --ink-soft: #55584f;
  --white: #FFFFFF;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--amber-dark);
  margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--amber); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

.section-title-light { color: var(--bone); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  border-radius: 3px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-size: 0.95rem;
}
.btn-primary { background: var(--amber); color: var(--graphite); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(246,244,239,0.5); color: var(--bone); }
.btn-ghost:hover { background: rgba(246,244,239,0.1); }
.btn-header {
  background: var(--amber);
  color: var(--graphite);
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
}
.btn-header:hover { background: var(--amber-dark); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(33,36,42,0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo imagen en el header */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo {
  height: 52px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Logo texto (footer) */
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--bone);
  white-space: nowrap;
}
.logo span { color: var(--amber); }

.main-nav { display: flex; gap: 2rem; margin-left: auto; }
.nav-link {
  color: var(--bone);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  opacity: 1;
  color: var(--amber);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bone);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.2s ease,
              width 0.3s ease;
  transform-origin: center;
}

/* Animación: barras → X cuando el menú está abierto */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO con imagen de fondo ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--header-h) 1.5rem 4rem;
  background:
    linear-gradient(135deg, rgba(33,36,42,0.88), rgba(33,36,42,0.72)),
    url('../assets/img/salon.jpg') center center / cover no-repeat;
}
.hero-content { max-width: 640px; margin: 0 auto; text-align: left; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  color: var(--bone);
  margin-bottom: 1.4rem;
}
.hero-tagline {
  color: rgba(246,244,239,0.85);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SECTION LAYOUT ===== */
.section { padding: 6rem 1.5rem; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-light { background: var(--bone); }
.section-dark { background: var(--graphite); }
.section-dark h2, .section-dark p { color: var(--bone); }
.section h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.section-intro { color: var(--ink-soft); max-width: 520px; margin-bottom: 3rem; }

/* ===== SOBRE NOSOTROS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p { color: var(--ink-soft); margin-top: 1.2rem; max-width: 520px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 6px;
  padding: 1.4rem 1rem;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber-dark);
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  flex: 0 1 calc(33.333% - 1rem); /* mismo ancho que las 3 columnas del grid */
  min-width: 260px;
  background: var(--graphite-soft);
  border: 1px solid rgba(246,244,239,0.08);
  border-radius: 6px;
  padding: 1.8rem;
  border-top: 3px solid var(--amber);
}
.service-card h3 {
  color: var(--bone);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: rgba(246,244,239,0.68);
  font-size: 0.92rem;
}

/* ===== GALERÍA ANTES/DESPUÉS ===== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  /* reset figure margin */
  margin: 0;
}
.ba-before, .ba-after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--stone);
}
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-tag {
  position: absolute;
  top: 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(27,27,27,0.7);
  color: var(--bone);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}
.ba-before .ba-tag { left: 0.7rem; }
.ba-after .ba-tag { right: 0.7rem; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--amber);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::after {
  content: "↔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  background: var(--amber);
  color: var(--graphite);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.ba-caption {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  color: var(--bone);
  font-size: 0.82rem;
  background: rgba(27,27,27,0.55);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* ===== CONTACTO ===== */
.section-contact { background: var(--graphite); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}
.contact-list { margin: 2rem 0; list-style: none; }
.contact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(246,244,239,0.1);
  font-size: 1.05rem;
}
.contact-list a { color: var(--bone); }
.contact-list a:hover { color: var(--amber); }
.contact-label {
  min-width: 90px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}
/* Texto zona en blanco */
.zona-text { color: var(--bone); }

.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(246,244,239,0.25);
  border-radius: 50%;
  color: var(--bone);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.social-links a:hover { background: var(--amber); border-color: var(--amber); color: var(--graphite); }

/* Imagen de contacto (reemplaza al mapa) */
.contact-image {
  height: 460px;
  border-radius: 6px;
  overflow: hidden;
}
.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* address reset */
address { font-style: normal; }

/* ===== FOOTER ===== */
.site-footer {
  background: #17191D;
  padding: 2.5rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(246,244,239,0.08);
}
.footer-logo { font-size: 1.1rem; }
.footer-contact {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(246,244,239,0.75);
}
.footer-contact a { color: rgba(246,244,239,0.75); }
.footer-contact a:hover { color: var(--amber); }
.footer-social a {
  width: 34px; height: 34px;
}
.footer-copy {
  max-width: 1180px;
  margin: 1.2rem auto 0;
  font-size: 0.78rem;
  color: rgba(246,244,239,0.4);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .contact-image { min-height: 260px; }
  .service-card { flex: 0 1 calc(50% - 0.75rem); }
}

@media (max-width: 640px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--graphite);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    gap: 0;
    /* oculto arriba + invisible */
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.22s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(246,244,239,0.07);
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }
  .main-nav .nav-link:hover,
  .main-nav .nav-link:active {
    background: rgba(224,149,43,0.1);
    color: var(--amber);
  }
  /* pequeño acento ámbar a la izquierda al hover */
  .main-nav .nav-link::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--amber);
    border-radius: 2px;
    opacity: 0;
    transform: scaleY(0.4);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .main-nav .nav-link:hover::before,
  .main-nav .nav-link:active::before {
    opacity: 1;
    transform: scaleY(1);
  }

  .menu-toggle { display: flex; }
  .btn-header { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { flex: 1 1 100%; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-logo { height: 44px; }
}

/* Respeta preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Foco visible por accesibilidad */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}