/* Centre d'Estètica i Relaxació Merche Verdú — propuesta de diseño. Mobile first. */
:root {
  --bg: #F3F7F4;
  --soft: #E6EEE9;
  --eucalyptus: #7FA392;   /* solo decorativo */
  --deep: #2E4A3F;         /* titulares y botones */
  --deep-2: #24392F;
  --sand: #D9C7A7;         /* fondos de sección */
  --text: #22332C;
  --muted: #3F5249;        /* AA sobre fondo claro y arena */
  --white: #FFFFFF;
  --line: rgba(46, 74, 63, .16);
  --serif: "Italiana", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --header-h: 64px;
}

*, *::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(--bg);
  color: var(--text);
  font: 400 1rem/1.7 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(--deep); }
a:hover { color: var(--deep-2); }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--deep); letter-spacing: .01em; }
h2 { font-size: clamp(2.1rem, 8vw, 3.2rem); }
h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: .02em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.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(--deep); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; color: var(--white); }
.ico { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); letter-spacing: .03em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s, background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--primary { background: var(--deep); color: var(--white); }
.btn--primary:hover { background: var(--deep-2); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(46,74,63,.55); }
.btn--ghost { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn--ghost:hover { background: var(--deep); color: var(--white); transform: translateY(-2px); }
.btn--lg { min-height: 54px; padding: 14px 28px; 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(243,247,244,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.header.scrolled { border-color: var(--line); background: rgba(243,247,244,.96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--deep); text-decoration: none; }
.logo:hover { color: var(--deep); }
.logo__mark { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--deep); color: var(--sand); }
.logo__text { font: 400 1.35rem/1 var(--serif); display: flex; flex-direction: column; gap: 3px; }
.logo__text small { font: 500 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.menu-btn {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0; border-radius: 50%;
}
.menu-btn span { width: 24px; height: 2px; background: var(--deep); 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(243,247,244,.99); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -20px rgba(34,51,44,.25);
  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 4px; font-size: 1.05rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a:not(.btn):hover { color: var(--deep); }
.nav .btn { margin-top: 18px; }
.no-js .menu-btn { display: none; }
.no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; flex-wrap: wrap; gap: 12px; padding: 8px 0; background: none; border: 0; box-shadow: none; }
.no-js .header { position: static; height: auto; }
.no-js .header__inner { flex-wrap: wrap; padding-block: 10px; }
.no-js .nav a:not(.btn) { border: 0; padding: 4px; }
.no-js .nav .btn { margin: 0; }

/* Portada */
.hero {
  position: relative; min-height: 640px; min-height: min(100svh, 860px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(127,163,146,.28), transparent 65%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(217,199,167,.45), transparent 65%),
    var(--bg);
}
.hero__art { position: absolute; inset: 0; pointer-events: none; color: var(--eucalyptus); }
.hero__branch { position: absolute; width: 110px; height: auto; right: -26px; top: 70px; opacity: .45; transform: rotate(12deg); }
.hero__branch--2 { width: 78px; right: auto; left: -30px; top: auto; bottom: 40px; opacity: .3; transform: rotate(-160deg); }
.hero__ripples { position: absolute; width: 140%; height: 160px; left: -20%; bottom: -36px; opacity: .55; }
.hero__content { position: relative; z-index: 1; }
.eyebrow { font: 600 .78rem/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--eucalyptus); vertical-align: middle; margin-right: 12px; }
.hero__title { font-size: clamp(3rem, 15vw, 6.2rem); line-height: 1; margin-bottom: 24px; }
.hero__pre { display: block; font: 500 clamp(.95rem, 4vw, 1.25rem)/1.35 var(--sans); letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 36ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__place { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero__place .ico { color: var(--deep); }

/* Secciones */
.section { position: relative; padding: 84px 0; }
.section--sand { background: var(--sand); padding: 112px 0; }
.section--flat { padding: 84px 0; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; margin-bottom: 44px; }
.section__head .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--eucalyptus); vertical-align: middle; margin-left: 12px; }
.section__sub { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.wave { position: absolute; left: 0; right: 0; height: 40px; line-height: 0; }
.wave svg { width: 100%; height: 100%; }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; }

/* Servicios */
.cards { display: grid; gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s, box-shadow .3s;
}
.card::after { /* hoja decorativa */
  content: ""; position: absolute; width: 90px; height: 90px; right: -28px; bottom: -28px; border-radius: 0 100% 0 100%;
  background: var(--eucalyptus); opacity: .12; transform: rotate(10deg);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(34,51,44,.4); }
.card__ico { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: var(--soft); color: var(--deep); margin-bottom: 18px; }
.card h3 { color: var(--deep); }
.card p { color: var(--muted); margin: 0; }
.note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; text-align: center; color: var(--text); margin-top: 36px; font-weight: 500; }
.note .ico { color: var(--deep); }
.note a { font-weight: 600; text-underline-offset: 3px; }

/* Nosotros */
.about { display: grid; gap: 40px; align-items: center; }
.about__art { max-width: 250px; margin: 0 auto; width: 100%; }
.about__text > p { color: var(--muted); }
.about__text h2 { color: var(--deep); }
.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: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(243,247,244,.7); color: var(--deep); }
.perks strong { display: block; color: var(--deep); }
.perks span { color: var(--muted); font-size: .95rem; }

/* Horario */
.hours {
  position: relative; text-align: center; padding: 48px 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
}
.hours::before { /* ondas */
  content: ""; position: absolute; inset: auto -20% -60px; height: 140px; border-radius: 50%;
  border: 1px solid var(--eucalyptus); opacity: .35; box-shadow: 0 0 0 22px rgba(127,163,146,.08);
}
.hours > * { position: relative; }
.hours__ico { width: 52px; height: 52px; color: var(--deep); margin: 0 auto 18px; }
.hours__text { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }

/* Reservas */
.booking {
  text-align: center; padding: 44px 24px; border-radius: var(--radius);
  border: 1.5px dashed var(--eucalyptus); background: var(--bg);
}
.booking__ico { width: 50px; height: 50px; color: var(--deep); margin: 0 auto 16px; }
.booking__title { font: 400 1.7rem/1.2 var(--serif); color: var(--deep); 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(--soft); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.75); }

/* Contacto */
.contact { display: grid; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 22px; color: var(--text); text-decoration: none;
  background: var(--bg); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
}
a.contact__item:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(34,51,44,.45); }
.contact__item .ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--deep); color: var(--white); }
.contact__item strong { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--deep); }

/* Pie */
.footer { padding: 48px 0; background: var(--deep); color: #DCE7E1; text-align: center; font-size: .9rem; }
.footer__inner p { margin: 0 0 6px; }
.footer__leaf { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--sand); }
.footer__name { font: 400 1.35rem/1.3 var(--serif); color: var(--white); }
.footer__demo {
  display: inline-block; margin-top: 12px !important; padding: 4px 14px; border-radius: 999px;
  border: 1px solid rgba(217,199,167,.6); color: var(--sand); font-size: .8rem; letter-spacing: .1em;
}

/* Barra fija móvil */
.mobile-cta {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(243,247,244,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--deep); border: 1.5px solid var(--deep);
}
.mobile-cta__btn--primary { background: var(--deep); color: var(--white); }
.mobile-cta__btn--primary:hover { color: var(--white); }

/* 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; }
  .hero__branch { width: 150px; right: 2%; }
  .wave { height: 60px; }
}

/* 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; box-shadow: none; transform: none; opacity: 1; visibility: visible;
  }
  .nav a:not(.btn) { border: 0; padding: 0; font-size: .95rem; }
  .nav .btn { margin: 0; }
  .hero__branch { width: 230px; right: 8%; top: 110px; opacity: .55; }
  .hero__branch--2 { width: 120px; left: -40px; bottom: 60px; opacity: .25; }
  .section { padding: 112px 0; }
  .section--sand { padding: 140px 0; }
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(4) { grid-column: 2 / span 2; }
  .about { grid-template-columns: 1fr 1.3fr; gap: 80px; }
  .about__art { max-width: 380px; }
  .hours { padding: 64px 48px; }
}

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