:root {
      --bg: #fffdfc; --bg-alt: #f8f5f2; --text: #241f20; --text-muted: #5f5657;
      --gold: #8b2635; --gold-soft: #c48990; --gold-dim: #f3e8e8;
      --line: rgba(0,0,0,0.08); --wa: #8b2635; --nav-h: 64px;
      --liver: #8b2635; --liver-deep: #7a1f2b; --liver-wash: #f3e8e8; --paper: #ffffff;
      --font-display: "Manrope", "Noto Sans SC", sans-serif;
      --font-body: "Manrope", "Noto Sans SC", sans-serif;
    }
    * { box-sizing: border-box; }
    html { color-scheme: light; }
    body {
      margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--text);
      line-height: 1.65; -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; }
    ::selection { background: var(--liver-wash); color: var(--liver-deep); }
    .skip-link {
      position: absolute; left: 1rem; top: -5rem; z-index: 10001;
      background: var(--liver); color: #fff;
      padding: 0.75rem 1.15rem; border-radius: 980px; font-weight: 600;
    }
    .skip-link:focus { top: 0.75rem; outline: 2px solid var(--liver); outline-offset: 3px; }
    .nav {
      position: sticky; top: 0; z-index: 10; height: var(--nav-h);
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 0 1.25rem; background: rgba(255,255,255,0.72); backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 1px solid var(--line);
    }
    .nav-logo { display: flex; align-items: center; gap: 0.7rem; }
    .nav-logo img { display: block; height: 48px; width: auto; background: #fff; border-radius: 8px; }
    .nav-logo span { font-size: 0.72rem; color: var(--text-muted); max-width: 8rem; font-weight: 500; }
    @media (max-width: 420px) { .nav-logo span { display: none; } }
    .nav-tools { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
    .track-toggle, .lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 980px; overflow: hidden; background: var(--bg-alt); }
    .track-toggle a, .lang-toggle button {
      background: transparent; color: var(--text-muted); border: 0; padding: 0.32rem 0.62rem;
      font-size: 0.68rem; font-weight: 600;
    }
    .track-toggle a.is-on, .lang-toggle button.is-on { background: #fff; color: var(--liver-deep); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
    .track-toggle a, .lang-toggle button { white-space: nowrap; }
    @media (max-width: 420px) { .nav { padding: 0 0.75rem; gap: 0.5rem; } .nav-logo img { height: 38px; } }
    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 0.85rem 1.3rem; border-radius: 980px; font-size: 0.94rem; font-weight: 500;
      letter-spacing: -0.01em; border: 1px solid transparent;
    }
    .btn-gold, .btn-wa { background: var(--liver); color: #fff; }
    .btn-gold:hover, .btn-wa:hover { background: var(--liver-deep); color: #fff; }
    .hero {
      position: relative;
      min-height: 68vh; display: flex; align-items: center; justify-content: center;
      padding: 5rem 1.25rem 4rem; text-align: center;
      background:
        linear-gradient(180deg, rgba(250, 248, 246, 0.88) 0%, rgba(250, 248, 246, 0.78) 55%, rgba(250, 248, 246, 0.92) 100%),
        url("../photos/facial-treatment-02.jpg") center / cover no-repeat;
    }
    .hero-inner { max-width: 720px; margin: 0 auto; }
    .hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4.4rem); margin: 0 0 1rem; letter-spacing: -0.035em; font-weight: 600; }
    .hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 46ch; margin-left: auto; margin-right: auto; }
    .hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; justify-content: center; }
    .wrap { max-width: 720px; margin: 0 auto; padding: 4rem 1.25rem 5rem; background: var(--bg-alt); border-radius: 28px; }
    h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.03em; font-weight: 600; }
    .rule { display: none; }
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }
    .reg-form { display: grid; gap: 1rem; padding: 1.5rem; border-radius: 22px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
    .field { display: grid; gap: 0.4rem; }
    label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
    input, textarea, select {
      width: 100%; background: var(--bg-alt); border: 1px solid transparent; color: var(--text);
      padding: 0.9rem 1rem; border-radius: 14px; font: inherit;
    }
    .req { color: var(--liver); font-weight: 700; }
    .field.is-invalid input { border-color: #b42318; box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12); }
    .field-error { margin: 0; font-size: 0.82rem; color: #b42318; }
    .field-error[hidden] { display: none; }
    .form-errors {
      padding: 0.85rem 1rem; border-radius: 14px;
      background: #fdecec;
    }
    .form-errors[hidden] { display: none; }
    .form-errors p { margin: 0 0 0.4rem; font-weight: 700; color: #7a1f1a; }
    .form-errors ul { margin: 0; padding-left: 1.15rem; }
    .form-errors a { color: #7a1f1a; text-decoration: underline; }
    .footer { padding: 2rem 1.25rem 7.5rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.9rem; background: var(--bg-alt); }
    .footer-logo {
      display: block; height: 72px; width: auto;
      background: #fff; border-radius: 10px; padding: 0.28rem 0.38rem;
      margin: 0 0 0.85rem;
    }
    .btn-sm { padding: 0.55rem 0.95rem; font-size: 0.86rem; }
    .float-wa {
      position: fixed;
      right: max(0.85rem, env(safe-area-inset-right));
      bottom: max(0.85rem, env(safe-area-inset-bottom));
      z-index: 9999;
      width: 56px; height: 56px; border-radius: 50%;
      background: var(--liver); color: #fff;
      display: inline-flex; align-items: center; justify-content: center;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    }
    .float-wa:hover { background: var(--liver-deep); }
    .float-wa svg { width: 30px; height: 30px; display: block; flex-shrink: 0; }
    .chat-fab {
      position: fixed;
      right: max(0.85rem, env(safe-area-inset-right));
      left: auto;
      bottom: calc(0.85rem + 64px + env(safe-area-inset-bottom, 0px));
      z-index: 9999;
      width: 56px; height: 56px; border-radius: 50%;
      background: #fff; color: var(--liver-deep); border: 1px solid var(--line);
      display: inline-flex; align-items: center; justify-content: center;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
      font-size: 0.62rem; font-weight: 700;
    }
    .chat-panel {
      position: fixed;
      right: max(0.75rem, env(safe-area-inset-right));
      left: auto;
      bottom: calc(0.85rem + 128px + env(safe-area-inset-bottom, 0px));
      z-index: 9999;
      width: min(390px, calc(100vw - 1.5rem));
      height: min(520px, calc(100vh - 11.5rem));
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 22px;
      display: none; flex-direction: column;
      box-shadow: 0 20px 50px rgba(0,0,0,0.12);
      overflow: hidden;
    }
    .chat-panel.open { display: flex; }
    .chat-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 1.05rem; border-bottom: 1px solid var(--line);
      background: var(--bg-alt);
    }
    .chat-header h2 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
    .chat-header p { margin: 0.2rem 0 0; font-size: 0.72rem; color: var(--text-muted); }
    .chat-close {
      background: #fff; border: 1px solid var(--line); color: var(--text);
      width: 36px; height: 36px; border-radius: 980px;
    }
    .chat-messages {
      flex: 1; overflow-x: hidden; overflow-y: auto;
      padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem;
    }
    .chat-bubble {
      max-width: 100%; min-width: 0;
      padding: 0.75rem 0.9rem; font-size: 0.9rem; line-height: 1.55;
      border-radius: 16px; overflow-wrap: anywhere; word-break: break-word;
    }
    .chat-bubble a { color: var(--liver); text-decoration: underline; text-underline-offset: 2px; }
    .chat-bubble.bot { align-self: flex-start; background: var(--bg-alt); }
    .chat-bubble.user { align-self: flex-end; background: var(--liver-wash); color: var(--liver-deep); }
    .chat-bubble.err { background: #fdecec; color: #7a1f1a; }
    .chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.85rem; }
    .chat-quick button {
      background: var(--bg-alt); border: 0; color: var(--text);
      padding: 0.4rem 0.7rem; font-size: 0.72rem; border-radius: 980px; font-weight: 500;
    }
    .chat-quick button:hover { background: var(--liver-wash); color: var(--liver-deep); }
    .chat-input-row {
      display: flex; gap: 0.5rem; padding: 0.85rem; border-top: 1px solid var(--line);
      background: #fff;
    }
    .chat-input-row input {
      flex: 1; background: var(--bg-alt); border: 1px solid transparent; color: var(--text);
      padding: 0.75rem 0.85rem; border-radius: 980px;
    }
    .chat-input-row input:focus-visible {
      outline: none; border-color: var(--liver);
      box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.12);
    }
    .chat-input-row button {
      background: var(--liver); color: #fff; border: 0; padding: 0 1.05rem;
      font-weight: 600; font-size: 0.8rem; border-radius: 980px;
    }
    .chat-input-row button:disabled { opacity: 0.55; cursor: wait; }
    .chat-typing { font-size: 0.78rem; color: var(--text-muted); padding: 0 0.2rem; }
    .chat-bubble a.chat-wa-cta,
    a.chat-wa-cta {
      margin-top: 0.5rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      max-width: 100%;
      background: var(--liver);
      color: #ffffff !important;
      border: 1.5px solid var(--liver);
      border-radius: 980px;
      font-weight: 600;
      text-decoration: none !important;
      transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    .chat-bubble a.chat-wa-cta:visited,
    a.chat-wa-cta:visited {
      color: #ffffff !important;
    }
    .chat-bubble a.chat-wa-cta:hover,
    a.chat-wa-cta:hover {
      background: #ffffff !important;
      color: var(--liver) !important;
      border-color: var(--liver) !important;
      text-decoration: none !important;
    }
    .chat-bubble a.chat-wa-cta:hover:visited,
    a.chat-wa-cta:hover:visited {
      color: var(--liver) !important;
    }
    .chat-bubble a.chat-wa-cta:focus-visible,
    a.chat-wa-cta:focus-visible {
      outline: 2px solid var(--liver);
      outline-offset: 2px;
    }
    @media (max-width: 640px) {
      .float-wa, .chat-fab { width: 48px; height: 48px; }
      .float-wa svg { width: 26px; height: 26px; }
      .chat-fab { font-size: 0.52rem; bottom: calc(0.75rem + 56px + env(safe-area-inset-bottom, 0px)); }
      .chat-panel { bottom: calc(0.75rem + 112px + env(safe-area-inset-bottom, 0px)); height: min(68vh, calc(100dvh - 9.5rem)); }
    }
