/* ==========================================================================
   BELLEZA & SPA — Elegante, cálido, sereno
   ========================================================================== */

:root {
  --bg: #fbf6f2;
  --bg2: #f4e9e2;
  --surface: rgba(87, 51, 41, .045);
  --surface2: rgba(87, 51, 41, .08);
  --surface-solid: #ffffff;
  --text: #3a2620;
  --muted: rgba(58, 38, 32, .64);
  --border: rgba(58, 38, 32, .12);

  --accent: #c17b64;
  --accent-strong: #a05f4a;
  --accent2: #7c9473;
  --ink: #2c1c16;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 22px 55px rgba(58, 38, 32, .12);
  --header-h: 78px;
  --container: min(1140px, 92%);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(900px 560px at 90% -6%, rgba(193, 123, 100, .14), transparent 60%),
    radial-gradient(760px 520px at 4% 10%, rgba(124, 148, 115, .12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: var(--container); margin-inline: auto; }

.icon { display: block; width: 1em; height: 1em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(193, 123, 100, .45);
  outline-offset: 3px;
}

.skip-link { position: absolute; left: -999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 999px; color: #fff; background: var(--accent); }
.skip-link:focus { left: 12px; }

h1, h2, h3 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 650; letter-spacing: -.01em; margin: 0; color: var(--ink); }

/* TOPBAR */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: rgba(251, 246, 242, .85); backdrop-filter: blur(14px); }
.topbar__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brandline { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-right: auto; }
.brandline__mark { width: 42px; height: 42px; border-radius: 999px; overflow: hidden; background: #fff; display: grid; place-items: center; border: 1px solid var(--border); }
.brandline__mark img { width: 100%; height: 100%; object-fit: contain; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--text);
  font-weight: 700; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); border-color: rgba(193, 123, 100, .4); }
.btn--accent { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border-color: transparent; box-shadow: 0 14px 30px rgba(193, 123, 100, .28); }
.btn--accent:hover { box-shadow: 0 18px 36px rgba(193, 123, 100, .36); }
.btn--ghost { background: transparent; }
.btn--full { width: 100%; }

/* HERO */
.hero { padding: clamp(48px, 7vw, 90px) 0 44px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--accent-strong);
  font-weight: 700; font-size: .86rem; letter-spacing: .02em;
}
h1 { margin: 18px 0 14px; font-size: clamp(2.2rem, 3.4vw, 3.3rem); line-height: 1.08; max-width: 14ch; }
.lead { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 50ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.stats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li { padding: 16px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-solid); }
.stats strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; color: var(--accent-strong); }
.stats span { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* HERO VISUAL: appointment card */
.hero__visual { position: relative; }
.appt-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-solid); box-shadow: var(--shadow); padding: 24px; }
.appt-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.appt-card__top strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; }
.appt-card__top span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.appt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.appt-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--bg);
}
.appt-list li.is-selected { border-color: rgba(193, 123, 100, .4); background: rgba(193, 123, 100, .08); }
.appt-time { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface2); font-weight: 800; font-size: .78rem; flex-shrink: 0; }
.appt-info strong { display: block; font-size: .92rem; font-weight: 700; }
.appt-info span { font-size: .78rem; color: var(--muted); }
.appt-list li .icon { margin-left: auto; width: 18px; height: 18px; color: var(--accent); }

/* SECTIONS */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: rgba(87, 51, 41, .03); border-block: 1px solid var(--border); }

/* GALLERY SLIDER */
.gallery { padding: 0; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.slider::before, .slider::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(28px, 6vw, 72px);
  z-index: 1;
  pointer-events: none;
}
.slider::before { left: 0; background: linear-gradient(90deg, rgba(44, 28, 22, .35), transparent); }
.slider::after { right: 0; background: linear-gradient(270deg, rgba(44, 28, 22, .35), transparent); }
.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: end;
  background: var(--surface-solid);
}
.slider__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slider__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(44, 28, 22, .78), rgba(44, 28, 22, .05) 55%); }
.slider__caption { position: relative; z-index: 1; padding: 26px; color: #fff; font-family: "Playfair Display", Georgia, serif; font-weight: 650; font-size: 1.18rem; }

.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(58, 38, 32, .5);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
  color: #fff; cursor: pointer; z-index: 2;
  transition: background .18s ease, transform .18s ease;
}
.slider__nav:hover { background: rgba(58, 38, 32, .72); transform: translateY(-50%) scale(1.06); }
.slider__nav .icon { width: 20px; height: 20px; }
.slider__nav--prev { left: 16px; }
.slider__nav--next { right: 16px; }

.slider__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slider__dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .22s ease, background .22s ease; }
.slider__dot.is-active { width: 24px; background: var(--accent); }
.section__head { max-width: 620px; margin: 0 0 34px; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 10px; }
.section__head p { margin: 0; color: var(--muted); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-solid); box-shadow: 0 10px 26px rgba(58, 38, 32, .05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(193, 123, 100, .32); box-shadow: 0 18px 36px rgba(58, 38, 32, .1); }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; padding: 0; line-height: 0;
  border-radius: 999px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff;
}
.card-icon svg { display: block; width: 21px; height: 21px; margin: 0 auto; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* PROCESS */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process li { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-solid); text-align: center; }
.process__num {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 999px; background: var(--surface2); color: var(--accent-strong);
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 16px;
}
.process h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process p { margin: 0; color: var(--muted); font-size: .9rem; }

/* PRICING */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-solid); display: flex; flex-direction: column; }
.price--featured { border-color: rgba(193, 123, 100, .38); background: linear-gradient(180deg, rgba(193, 123, 100, .06), var(--surface-solid)); position: relative; }
.price--featured::before {
  content: "Más elegido"; position: absolute; top: -13px; left: 26px;
  padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 800;
}
.price__name { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.2rem; }
.price__value { font-size: 2rem; font-weight: 800; margin: 10px 0 2px; color: var(--accent-strong); }
.price__value span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.price__note { color: var(--muted); font-size: .84rem; margin-bottom: 18px; }
.price ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price ul li { display: flex; align-items: center; gap: 9px; font-size: .92rem; }
.price ul li .icon { width: 16px; height: 16px; color: var(--accent2); flex-shrink: 0; }

/* CTA FINAL */
.cta { padding: clamp(50px, 7vw, 80px) 0; }
.cta__box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(30px, 4vw, 50px); border-radius: 26px;
  border: 1px solid rgba(193, 123, 100, .3);
  background: linear-gradient(135deg, rgba(193, 123, 100, .12), rgba(124, 148, 115, .10));
}
.cta__box h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.cta__box p { margin: 0; color: var(--muted); max-width: 46ch; }

/* FOOTER */
.footer { padding: 26px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { font-weight: 700; color: var(--text); }
.footer a:hover { color: var(--accent-strong); }

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 56px; padding: 8px 20px 8px 8px; border-radius: 999px;
  color: #fff; background: #1fb855; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 16px 34px rgba(58, 38, 32, .22), 0 0 0 6px rgba(37, 211, 102, .14);
  font-weight: 900; transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: #fff; overflow: hidden; flex-shrink: 0; }
.whatsapp-float__mark img { width: 32px; height: 32px; }
.whatsapp-float__label { white-space: nowrap; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

/* RESPONSIVE */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .slider__slide { min-height: 300px; }
  .slider__nav { width: 40px; height: 40px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1140px); }
  .topbar__actions .btn span:not(.icon) { display: none; }
  .topbar__actions .btn { padding: 12px; width: 46px; }
  .topbar__actions .btn--accent { width: auto; padding: 12px 16px; }
  .topbar__actions .btn--accent span { display: inline; }
  .stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta__box { flex-direction: column; align-items: flex-start; }
  .cta__box .btn { width: 100%; }
  .whatsapp-float { right: 12px; bottom: 12px; min-height: 52px; padding: 6px 16px 6px 6px; gap: 7px; font-size: .92rem; }
  .whatsapp-float__mark { width: 34px; height: 34px; }
  .whatsapp-float__mark img { width: 28px; height: 28px; }
}

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