/* Peluquería Nimbus by Saray Bellot — propuesta de diseño. Mobile first. */
:root {
  --sky: #EEF3FB;
  --sky-2: #DDE7F8;
  --lav: #8E7CC3;        /* decorativo */
  --lav-soft: #E6DFF6;
  --indigo: #3B2F7A;     /* titulares y botones */
  --indigo-2: #2C2360;
  --accent-text: #5B4BA6; /* lavanda oscurecida para texto (AA) */
  --white: #FFFFFF;
  --text: #23204A;
  --muted: #4E4A72;
  --line: #D9DFF0;
  --round: "Quicksand", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 24px;
  --header-h: 64px;
  --shadow: 0 18px 40px -22px rgba(59,47,122,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* espacio para la barra móvil */
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-2); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); color: var(--indigo); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 7vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.ico { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s, background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 12px 28px -14px rgba(59,47,122,.7); }
.btn--primary:hover { background: var(--indigo-2); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(59,47,122,.8); }
.btn--ghost { background: rgba(255,255,255,.75); border-color: var(--indigo); color: var(--indigo); }
.btn--ghost:hover { background: #fff; color: var(--indigo-2); transform: translateY(-2px); }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: .95rem; }

/* Cabecera */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(238,243,251,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); background: rgba(255,255,255,.9); box-shadow: 0 8px 24px -20px rgba(59,47,122,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--indigo); text-decoration: none; }
.logo:hover { color: var(--indigo); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { font: 700 1.3rem/1 var(--round); margin: 0; color: var(--indigo); }
.logo__text small { display: block; font: 500 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-top: 3px; }

.menu-btn {
  width: 46px; height: 46px; display: grid; place-content: center; gap: 6px;
  background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; padding: 0;
}
.menu-btn span { width: 22px; height: 2px; background: var(--indigo); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 20px 28px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
  border-radius: 0 0 28px 28px; box-shadow: var(--shadow);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a:not(.btn) { color: var(--text); padding: 14px 6px; font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a:not(.btn):hover { color: var(--indigo); }
.nav .btn { margin-top: 18px; }

/* Portada */
.hero {
  position: relative; min-height: min(100svh, 860px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 120px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(142,124,195,.28), transparent 65%),
    radial-gradient(ellipse 60% 50% at 0% 85%, rgba(181,205,245,.7), transparent 65%),
    linear-gradient(180deg, #E4ECFA 0%, var(--sky) 55%, #F3EEFB 100%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; height: auto; filter: drop-shadow(0 14px 22px rgba(59,47,122,.10)); animation: drift 16s ease-in-out infinite alternate; }
.cloud--1 { width: 180px; top: 12%; right: -40px; opacity: .95; }
.cloud--2 { width: 120px; top: 34%; left: -30px; opacity: .75; animation-duration: 20s; }
.cloud--3 { width: 90px; bottom: 22%; right: 18%; opacity: .7; animation-duration: 13s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(22px); } }
.hero__waves { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 200px; opacity: .8; }
.hero__bottom { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }
.hero__content { position: relative; z-index: 1; }
.eyebrow { font: 600 .82rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.hero__title { font-size: clamp(2.7rem, 12.5vw, 5.4rem); margin-bottom: 22px; letter-spacing: -.01em; }
.accent {
  background: linear-gradient(90deg, var(--indigo) 0%, #5B4BA6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 36ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }

/* Secciones */
.section { position: relative; padding: 80px 0; }
.section--white { background: var(--white); }
.section__head { text-align: center; margin-bottom: 40px; }
.section__sub { color: var(--muted); max-width: 52ch; margin: 0 auto; }

/* Servicios */
.cards { display: grid; gap: 18px; }
.card {
  background: linear-gradient(160deg, #fff 0%, #F4F1FC 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--lav); }
.card__ico {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px;
  border-radius: 50% 50% 46% 54% / 55% 48% 52% 45%;
  background: linear-gradient(135deg, var(--sky-2), var(--lav-soft)); color: var(--indigo);
}
.card__ico svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; }
.note { text-align: center; color: var(--text); font-weight: 500; margin-top: 36px; }
.note a { text-underline-offset: 3px; font-weight: 600; }

/* Nosotros */
.about { display: grid; gap: 40px; align-items: center; }
.about__art { max-width: 260px; margin: 0 auto; width: 100%; animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.about__text > p { color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks .ico { width: 26px; height: 26px; color: var(--indigo); margin-top: 2px; }
.perks strong { display: block; color: var(--text); }
.perks span { color: var(--muted); font-size: .97rem; }

/* Horario */
.hours {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 36px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sky) 0%, #F3EEFB 100%); border: 1px solid var(--line);
}
.hours__ico { width: 44px; height: 44px; color: var(--indigo); }
.hours__text { font: 700 1.3rem/1.3 var(--round); color: var(--indigo); margin: 0; }

/* Reservas */
.booking {
  text-align: center; padding: 40px 24px; border-radius: var(--radius);
  border: 2px dashed rgba(142,124,195,.7); background: rgba(255,255,255,.8); box-shadow: var(--shadow);
}
.booking__ico {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-2), var(--lav-soft)); color: var(--indigo);
}
.booking__ico svg { width: 30px; height: 30px; }
.booking__title { font: 700 1.35rem var(--round); color: var(--indigo); margin-bottom: 8px; }
.booking__text { color: var(--muted); max-width: 44ch; margin: 0 auto 24px; }
.booking__actions { display: flex; flex-direction: column; gap: 12px; }

/* Mapa */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--sky); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contacto */
.contact { display: grid; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 20px; color: var(--text); text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .3s, transform .3s;
}
.contact__item:hover { color: var(--text); border-color: var(--lav); transform: translateY(-3px); }
.contact__ico {
  display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-2), var(--lav-soft)); color: var(--indigo);
}
.contact__ico svg { width: 24px; height: 24px; }
.contact__item strong { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

/* Pie */
.footer { position: relative; background: #fff; padding: 90px 0 40px; text-align: center; color: var(--muted); font-size: .92rem; }
.footer__clouds { position: absolute; top: -1px; left: 0; width: 100%; height: 50px; }
.footer__inner p { margin: 0 0 8px; }
.footer .logo__text { font-size: 1.5rem; margin-bottom: 14px; }
.footer__demo {
  display: inline-block; margin-top: 12px !important; padding: 6px 14px; border-radius: 999px;
  background: var(--lav-soft); color: var(--indigo); font-size: .8rem; font-weight: 600; letter-spacing: .08em;
}

/* Barra fija móvil */
.mobile-cta {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(59,47,122,.5);
}
.mobile-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; text-decoration: none;
  border-radius: 999px; font-weight: 600; color: var(--indigo); border: 2px solid var(--indigo); background: #fff;
}
.mobile-cta__btn--primary { background: var(--indigo); color: #fff; }
.mobile-cta__btn--primary:hover { color: #fff; background: var(--indigo-2); }

/* Animaciones al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet */
@media (min-width: 600px) {
  .hero__actions, .booking__actions { flex-direction: row; justify-content: center; }
  .hero__actions { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: repeat(3, 1fr); }
  .contact__item { flex-direction: column; text-align: center; }
  .map { aspect-ratio: 16 / 9; }
  .cloud--1 { width: 260px; right: 4%; }
  .cloud--2 { width: 170px; left: 3%; top: auto; bottom: 30%; }
}

/* Escritorio */
@media (min-width: 900px) {
  :root { --header-h: 78px; }
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .menu-btn { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible;
  }
  .nav a:not(.btn) { border: 0; padding: 4px 0; font-size: .98rem; }
  .nav .btn { margin: 0; }
  .hero__content { max-width: 1120px; }
  .hero__title, .hero__lead { max-width: 640px; }
  .cloud--1 { width: 380px; top: 18%; right: 6%; }
  .cloud--2 { width: 220px; bottom: 28%; left: auto; right: 34%; }
  .cloud--3 { width: 150px; bottom: 44%; right: 2%; }
  .section { padding: 112px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr 1.3fr; gap: 72px; }
  .about__art { max-width: 360px; }
  .footer__clouds { height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
