/* =========================================================
   Salón 360 · styles.css
   Los colores y tipografías están acá arriba, en :root.
   ========================================================= */

:root {
  --crema: #faf6f0;
  --arena: #f1e7da;
  --arena-osc: #e3d3bf;
  --rosa: #ecd3cb;
  --rosa-suave: #f6e8e3;
  --texto: #3d302b;
  --texto-suave: #7a6a62;
  --acento: #a65e52;       /* color de los botones */
  --acento-osc: #8c4b41;
  --blanco: #fffdfa;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio: 22px;
  --sombra: 0 18px 40px -22px rgba(92, 58, 45, 0.35);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
h3 { font-size: 1.55rem; }
h1 em, h2 em { font-style: italic; color: var(--acento); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acento);
  font-weight: 500;
  margin-bottom: 0.9em;
}

.small { font-size: 0.92rem; color: var(--texto-suave); }
.center { text-align: center; margin-top: 2.5rem; }
.stars { color: #c99a4b; letter-spacing: 0.12em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  background: var(--acento);
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid var(--acento);
  box-shadow: 0 10px 24px -12px rgba(166, 94, 82, 0.7);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--acento-osc); border-color: var(--acento-osc); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }
.btn-lg { font-size: 1.08rem; padding: 1.05em 1.9em; }
.btn-sm { font-size: 0.92rem; padding: 0.6em 1.2em; }
.btn-ghost {
  background: transparent;
  color: var(--acento);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--acento); color: #fff; }
.ico { width: 1.3em; height: 1.3em; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
}
/* El fondo va en ::before para que el menú del celular (position: fixed) ocupe toda la pantalla */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--arena-osc);
  opacity: 0;
  transition: opacity 0.3s;
}
.header.scrolled::before { opacity: 1; }
.nav {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}
.logo span { font-style: italic; color: var(--acento); }

.nav-toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--texto);
  transition: transform 0.3s;
}
.nav-toggle.open span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  inset: 0;
  background: var(--crema);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-menu.open { opacity: 1; visibility: visible; }
.nav-menu a:not(.btn) {
  font-family: var(--serif);
  font-size: 2rem;
  text-decoration: none;
}
.nav-menu .btn { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  background:
    radial-gradient(120% 70% at 100% 0%, var(--rosa) 0%, transparent 60%),
    radial-gradient(90% 60% at 0% 100%, var(--arena) 0%, transparent 65%),
    var(--crema);
  overflow: hidden;
  text-align: center;
}
.hero-deco {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(166, 94, 82, 0.22);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-deco::before,
.hero-deco::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  border: 1px dashed rgba(166, 94, 82, 0.16);
}
.hero-deco::after { inset: -60px; border-style: solid; border-color: rgba(166, 94, 82, 0.08); }

.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(3.6rem, 17vw, 7.5rem);
  margin-bottom: 0.25em;
  font-weight: 500;
}
.hero-lead {
  font-size: clamp(1.1rem, 4.4vw, 1.35rem);
  max-width: 30ch;
  margin: 0 auto 1.8rem;
  color: var(--texto-suave);
}
.rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5em 0.7em;
  padding: 0.6em 1.2em;
  background: rgba(255, 253, 250, 0.75);
  border: 1px solid var(--arena-osc);
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 2rem;
}
.rating .stars { font-size: 1.1rem; }
.rating strong { font-weight: 500; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.hero-cta .btn { width: 100%; max-width: 360px; }
.hero-note { font-size: 0.9rem; color: var(--texto-suave); margin: 0; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--arena); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-sub { color: var(--texto-suave); }

/* ---------- Sobre el salón ---------- */
.about { display: grid; gap: 2.8rem; align-items: center; }
.about-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radio) var(--radio);
  overflow: hidden;
  background: var(--rosa-suave);
  box-shadow: var(--sombra);
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-points {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.about-points li { padding-left: 1.8em; position: relative; }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: var(--rosa);
  box-shadow: inset 0 0 0 3px var(--crema), 0 0 0 1px var(--acento);
}

/* ---------- Servicios ---------- */
.services { display: grid; gap: 1.2rem; }
.service {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 2rem 1.7rem;
  box-shadow: var(--sombra);
  transition: transform 0.3s;
}
.service:hover { transform: translateY(-4px); }
.service p { color: var(--texto-suave); margin: 0; }
.service-ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--rosa-suave);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.service-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--acento);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Reseñas ---------- */
.reviews { display: grid; gap: 1.2rem; }
.review {
  position: relative;
  margin: 0;
  background: var(--rosa-suave);
  border-radius: var(--radio);
  padding: 2rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.review blockquote {
  margin: 0.8rem 0 1.4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
  flex: 1;
}
.review figcaption { display: flex; align-items: center; gap: 0.8rem; }
.review figcaption strong { display: block; font-weight: 500; }
.review figcaption small { color: var(--texto-suave); font-size: 0.82rem; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--acento);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
}
/* Etiqueta visible si una reseña tiene ejemplo: true */
.review.is-sample { outline: 2px dashed rgba(166, 94, 82, 0.45); outline-offset: -8px; }
.review.is-sample blockquote { color: var(--texto-suave); font-style: italic; }
.sample-tag {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--acento);
  color: #fff;
  padding: 0.25em 0.7em;
  border-radius: 999px;
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--rosa-suave);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 253, 250, 0.9);
  font-size: 0.8rem;
  padding: 0.25em 0.8em;
  border-radius: 999px;
}

/* Recuadro para fotos que todavía no se cargaron */
.is-empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(166, 94, 82, 0.06) 14px 15px),
    linear-gradient(160deg, var(--rosa-suave), var(--arena));
  border: 1.5px dashed rgba(166, 94, 82, 0.45);
}
.is-empty::before {
  content: attr(data-label);
  max-width: 80%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--acento);
  line-height: 1.4;
  padding-top: 42px;
  background: no-repeat center top / 32px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a65e52' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='12' cy='12' r='3.4'/%3E%3Cpath d='M8 5l1.5-2h5L16 5'/%3E%3C/svg%3E");
}
.about-photo.is-empty::before { font-size: 0.95rem; }

/* ---------- Ubicación ---------- */
.location { display: grid; gap: 2.5rem; }
.info-block { margin-bottom: 1.8rem; }
.info-block h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.info-block p { margin-bottom: 0.3em; }
.link { color: var(--acento); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }
.hours { list-style: none; padding: 0; margin: 0; max-width: 360px; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--arena-osc);
}
.hours .closed { color: var(--texto-suave); }
.open-now {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--texto-suave);
}
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c4b3a6; }
.open-now.is-open { color: #4f7a55; }
.open-now.is-open::before { background: #5f9a66; }
.map {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  min-height: 320px;
  background: var(--arena);
}
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Contacto ---------- */
.contact {
  background:
    radial-gradient(80% 90% at 50% 0%, var(--rosa) 0%, transparent 70%),
    var(--rosa-suave);
  text-align: center;
}
.contact-inner p { color: var(--texto-suave); }
.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem 0 1.4rem;
}
.contact-buttons .btn { width: 100%; max-width: 360px; }
.contact-phone a { color: var(--texto); }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 110px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--texto-suave);
}
.logo-footer { font-size: 1.6rem; color: var(--texto); margin-bottom: 0.4em; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.2em 0.85em 1em;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s;
  animation: wa-in 0.6s 0.8s both;
}
.wa-float:hover { transform: scale(1.05); }
body.no-scroll .wa-float { opacity: 0; pointer-events: none; }
.wa-float svg { width: 26px; height: 26px; }
@keyframes wa-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* =========================================================
   Pantallas más grandes
   ========================================================= */
@media (min-width: 640px) {
  .services, .reviews { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .contact-buttons { flex-direction: row; justify-content: center; }
  .contact-buttons .btn { width: auto; }
  .hero-cta .btn { width: auto; }
}

@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .section { padding: 120px 0; }

  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    flex-direction: row;
    gap: 2rem;
    opacity: 1;
    visibility: visible;
    background: none;
  }
  .nav-menu a:not(.btn) {
    font-family: var(--sans);
    font-size: 0.95rem;
    position: relative;
  }
  .nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 1px;
    background: var(--acento);
    transition: right 0.3s;
  }
  .nav-menu a:not(.btn):hover::after { right: 0; }
  .nav-menu .btn { margin-top: 0; }

  .hero-deco { width: 720px; height: 720px; }

  .about { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .location { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: stretch; }

  /* En compu el botón flotante queda más chico, solo el ícono */
  .wa-float { padding: 0.9em; right: 24px; bottom: 24px; }
  .wa-float span { display: none; }
  .footer { padding-bottom: 48px; }
}

/* ---------- Aviso de fotos de referencia ---------- */
.gallery-note {
  display: inline-block;
  margin: 0.4rem 0 0;
  padding: 0.5em 1.1em;
  border: 1.5px dashed rgba(166, 94, 82, 0.5);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--acento);
  background: rgba(255, 253, 250, 0.6);
}
.gallery-note[hidden] { display: none; }
.ref-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(61, 48, 43, 0.72);
  color: #fff;
  padding: 0.25em 0.7em;
  border-radius: 999px;
}
