/* Facial Secrets · Carta de tratamientos
   Brand = the session/order PDFs (apps/facial-secrets-docgen/src/pdf.ts): plum ink, rose labels,
   blush and ivory surfaces, Cormorant Garamond for the wordmark and titles, Montserrat for text
   (Cormorant's old-style numerals make prices hard to read, so prices are Montserrat). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #3b2a35;        /* ciruela */
  --rose: #c98b8b;       /* rosa: lines, dots, decorative */
  --rose-text: #9a5c60;  /* rosa oscurecido para texto pequeño legible */
  --blush: #f4e6e3;
  --ivory: #fbf8f5;
  --paper: #ffffff;
  --muted: #7a6c74;
  --line: #e8d6d3;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The page clips the decorative circles so nothing scrolls sideways on a phone */
.page { position: relative; overflow: hidden; min-height: 100vh; }

/* Two blush circles in the top-right corner, as on the PDFs */
.deco {
  position: absolute;
  top: -150px;
  right: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--blush);
  pointer-events: none;
  z-index: 0;
}
.deco::after {
  content: "";
  position: absolute;
  left: 120px;
  top: 190px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--blush);
  opacity: .7;
  mix-blend-mode: multiply;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

a { color: inherit; }

/* ---------- Brand header ---------- */
.brand { display: block; text-decoration: none; }
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.005em;
  margin: 0;
}
.brand__by {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--muted);
  margin-top: 6px;
}
.brand__tag {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose-text);
  margin-top: 8px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--rose);
  opacity: .6;
  margin: 28px 0 32px;
}

.label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose-text);
  margin: 0 0 10px;
}
.intro { color: var(--muted); margin: 0 0 28px; max-width: 34em; }

/* ---------- Index: list of treatments ---------- */
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu li { border-bottom: 1px solid var(--line); }
.menu a {
  display: grid;
  grid-template-columns: 2.4em 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 20px 8px 20px 4px;
  text-decoration: none;
  transition: background-color .2s ease, padding .2s ease;
}
.menu a:hover, .menu a:focus-visible { background: var(--paper); padding-left: 12px; outline: none; }
.menu__num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--rose-text);
  font-variant-numeric: lining-nums tabular-nums;
}
.menu__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: .05em;
}
.menu__arrow { color: var(--rose); font-size: 18px; transition: transform .2s ease; }
.menu a:hover .menu__arrow { transform: translateX(4px); }

/* ---------- Treatment page ---------- */
.back {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 28px;
}
.back:hover { color: var(--ink); }

.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: .04em;
  margin: 0 0 28px;
  text-wrap: balance;
}

/* Accordions: native <details>, no JavaScript */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 4px;
  font-weight: 500;
  font-size: 15.5px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 2px; }
.acc summary .ico {
  flex: none;
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  transition: background-color .2s ease;
}
.acc summary .ico::before, .acc summary .ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--rose-text);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.acc summary .ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] summary .ico { background: var(--blush); }
.acc details[open] summary .ico::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc__body { padding: 0 4px 24px; }
.acc__body p { margin: 0 0 12px; }
.acc__body p:last-child { margin-bottom: 0; }

.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding-left: 20px; margin: 0 0 8px; }
.dots li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

/* Price box */
.price {
  background: var(--blush);
  border-radius: 4px;
  padding: 6px 18px;
}
.price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
}
.price__row + .price__row { border-top: 1px solid rgba(201, 139, 139, .35); }
.price__name { font-weight: 500; }
.price__name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.price__amount {
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.price__cond {
  margin: 12px 2px 0 !important;
  font-size: 13px;
  color: var(--muted);
}

/* Prev / next */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  font-size: 13px;
}
.pager a { text-decoration: none; color: var(--muted); max-width: 48%; }
.pager a:hover { color: var(--ink); }
.pager span { display: block; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--rose-text); margin-bottom: 4px; }
.pager .next { text-align: right; margin-left: auto; }
.pager strong { font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: .04em; color: var(--ink); line-height: 1.25; display: block; }

/* ---------- Footer ---------- */
.foot {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.foot a { text-decoration: none; color: var(--rose-text); }
.foot a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .wrap { padding-top: 72px; }
  .brand__name { font-size: 54px; }
  .title { font-size: 42px; }
  .menu__name { font-size: 24px; }
  .deco { width: 440px; height: 440px; top: -170px; right: -130px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
