
/* Paleta de colores */
:root {
  --color-primary:    #1e1e1e; /* negro del logo */
  --color-secondary:  #d7c1ad; /* beige calido */
  --color-accent:     #c7ab92; /* arena */
  --color-light:      #f8f6f3; /* blanco roto */
  --color-background: #faf8f5; /* fondo general */

  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --header-height: 4rem;
  --container-max: 72rem;
  --radius: 0.5rem;
  --shadow: 0 2px 12px rgba(30, 30, 30, 0.08);
}

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

html {
  scroll-behavior: smooth;
  /* Al navegar por anclas, deja hueco para la cabecera fija */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-primary);
  background-color: var(--color-background);
  line-height: 1.65;
}

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

a { color: var(--color-primary); }
a:hover { color: var(--color-accent); }

/* ------------------------------------------------------------
   Foco para navegacion por teclado
   ------------------------------------------------------------ */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75em;
}

/* ------------------------------------------------------------
   Contenedor central comun a todas las secciones
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}
.btn--primary:hover { background-color: #3a3a3a; color: var(--color-light); }

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}
.btn--secondary:hover { background-color: var(--color-accent); color: var(--color-primary); }

.btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover { background-color: var(--color-primary); color: var(--color-light); }

.btn--light {
  background-color: var(--color-light);
  color: var(--color-primary);
}
.btn--light:hover { background-color: var(--color-secondary); color: var(--color-primary); }

.btn--outline-light {
  border: 2px solid var(--color-light);
  color: var(--color-light);
}
.btn--outline-light:hover { background-color: var(--color-light); color: var(--color-primary); }

.btn--small { padding: 0.45rem 1rem; font-size: 0.9rem; }

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.95); /* --color-background con transparencia */
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.header__logo img { width: 40px; height: 40px; }

/* ------------------------------------------------------------
   BOTON HAMBURGUESA (PANTALLAS MOVILES)
   ------------------------------------------------------------ */
.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
}
.header__toggle-bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* ------------------------------------------------------------
   ANIMACIONES PARA BOTON MENU EN PANTALLAS PEQUEÑAS
   ------------------------------------------------------------ */
.header--open .header__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header--open .header__toggle-bar:nth-child(2) { opacity: 0; }
.header--open .header__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   MENU MOVIL
   ------------------------------------------------------------ */
.header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-background);
  box-shadow: var(--shadow);
  display: none;
}
.header--open .header__nav { display: block; }

.header__menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.header__menu a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.25rem 0;
}

/* ------------------------------------------------------------
   HEADER HORIZONTAL
   ------------------------------------------------------------ */
@media (min-width: 56rem) {
  .header__toggle { display: none; }
  .header__nav {
    position: static;
    display: block;
    background: none;
    box-shadow: none;
  }
  .header__menu {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  padding: calc(var(--header-height) + 4rem) 0 4.5rem;
  background:
    linear-gradient(160deg, rgba(248, 246, 243, 0.88) 0%, rgba(215, 193, 173, 0.82) 100%),
    url("../assets/img/web/hero-salon.jpg") center / cover no-repeat;
  text-align: center;
}

.hero__title { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: 0.35em; }

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin: 0 auto 1rem;
  max-width: 40ch;
}

.hero__highlight {
  max-width: 55ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ------------------------------------------------------------
   SECCIONES GENERICAS
   ------------------------------------------------------------ */
.section { padding: 4rem 0; }

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section--narrow {
  max-width: 46rem;
  text-align: center;
}

.section__intro {
  text-align: center;
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.section__more { text-align: center; margin-top: 2rem; }

/* ------------------------------------------------------------
   BLOQUES DE TEXTO LARGO
   ------------------------------------------------------------ */
.prose {
  max-width: 62ch;
  margin: 0 auto 1.5rem;
}
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   TRATAMIENTOS DESTACADOS
   ------------------------------------------------------------ */
.services__highlight {
  max-width: 60ch;
  margin: 2.5rem auto 0;
  background-color: var(--color-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.services__highlight h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.services__highlight p { margin: 0; }

/* ------------------------------------------------------------
   SECCION DE CIERRE
   ------------------------------------------------------------ */
.section--closing {
  background:
    linear-gradient(160deg, rgba(248, 246, 243, 0.90) 0%, rgba(215, 193, 173, 0.86) 100%),
    url("../assets/img/web/closing-salon.jpg") center / cover no-repeat;
}
.closing { text-align: center; }
.closing__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-primary);
  max-width: 52ch;
  margin: 1.5rem auto 0;
}

/* ------------------------------------------------------------
   SECCION BARROS Y HENNAS
   ------------------------------------------------------------ */

.section--featured {
  background:
    linear-gradient(160deg, rgba(215, 193, 173, 0.90) 0%, rgba(199, 171, 146, 0.88) 100%),
    url("../assets/img/web/color-natural-bg.jpg") center / cover no-repeat;
}

.featured__photo {
  margin: 0 auto 2rem;
  max-width: 44rem;
}
.featured__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.featured__photo figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
}

/* ------------------------------------------------------------
   CARDS PARA SECCION HENNAS
   ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 44rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background-color: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
}
.card__icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; }

/* ------------------------------------------------------------
   SERVICIOS
   ------------------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 36rem) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .services { grid-template-columns: repeat(5, 1fr); } }

.services__group {
  background-color: var(--color-light);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
}
.services__group h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.services__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.services__group li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(199, 171, 146, 0.3); /* --color-accent suave */
}
.services__group li:last-child { border-bottom: none; }

/* ------------------------------------------------------------
   SECCION SIN CITA PREVIA
   ------------------------------------------------------------ */
.section--cta {
  background-color: var(--color-primary);
  color: var(--color-light);
  text-align: center;
}
.section--cta .section__title { color: var(--color-light); }
.section--cta a:not(.btn) { color: var(--color-secondary); }

.section--cta__badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------
   GALERIA
   ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 44rem) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--color-secondary);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------
   CONTACTO
   ------------------------------------------------------------ */
.section--contact { background-color: var(--color-light); }

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 52rem) {
  .contact { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.contact__info h3 { font-size: 1.35rem; }
.contact__info h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--color-accent);
}
.contact__info address { font-style: normal; }
.contact__info address p { margin: 0.3rem 0; }

.contact__hours {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 22rem;
}
.contact__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(30, 30, 30, 0.15);
}
.contact__hours li:last-child { border-bottom: none; }

/* ------------------------------------------------------------
   MAPA (Leaflet + OpenStreetMap)
   ------------------------------------------------------------ */
.contact__map-osm {
  width: 100%;
  height: 22rem;
  position: relative;
  z-index: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--color-secondary);
}
.contact__map-more {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}
/* Pin del mapa */
.map-pin { background: none; border: none; }
.map-pin svg { filter: drop-shadow(0 2px 2px rgba(30, 30, 30, 0.35)); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 2.5rem 0;
  text-align: center;
}
.footer a { color: var(--color-secondary); }
.footer p { margin: 0.3rem 0; }
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}
.footer__copy { margin-top: 1rem; font-size: 0.85rem; opacity: 0.7; }
.footer__legal {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}
.footer__legal a { white-space: nowrap; }

/* ------------------------------------------------------------
   PAGINAS LEGALES (aviso legal, privacidad, cookies)
   ------------------------------------------------------------ */
.legal {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  max-width: 48rem;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.3rem;
}
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.3rem 0; }
.legal address {
  font-style: normal;
  background-color: var(--color-light);
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}
.legal__updated { font-size: 0.9rem; opacity: 0.7; }
.legal__back { display: inline-block; margin-top: 2.5rem; }

/* Tabla de cookies */
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.legal th, .legal td {
  border: 1px solid rgba(30, 30, 30, 0.15);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.legal th { background-color: var(--color-secondary); }
.legal__table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery__item img,
  .btn { transition: none; }
}
