/* Strong Hair Professional: colores de las etiquetas 4K (champana / dorado, negro, morado del logo).
   Pensado primero para el telefono: el cliente llega escaneando el QR del producto. */
:root {
  --cream: #f8f2ea;
  --champagne: #efe1cd;
  --gold: #c8a16a;
  --gold-deep: #8a6a3c;
  --ink: #1d1816;
  --ink-soft: #4a403a;
  --purple: #4b2477;
  --line: rgba(138, 106, 60, .22);
  --card: #fffdf9;
  --accent: #9a7a45;            /* cada producto pone el suyo */
  --radius: 22px;
  --shadow: 0 18px 50px rgba(77, 52, 22, .14);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); line-height: 1.6; font-size: 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #fff8ee 0%, transparent 60%), linear-gradient(180deg, var(--cream) 0%, var(--champagne) 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- encabezado ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(248, 242, 234, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 54px; width: auto; }
@media (max-width: 420px) { .brand img { height: 46px; } .langs button { padding: 7px 8px; min-width: 34px; } }
.langs { display: flex; gap: 4px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: transparent; font: 700 12px var(--sans); letter-spacing: .06em; color: var(--ink-soft); padding: 7px 10px; border-radius: 999px; cursor: pointer; min-width: 38px; min-height: 32px; }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- idiomas: solo se ve el elegido ---------- */
[data-lang] { display: none; }
html[data-current="es"] [data-lang="es"], html[data-current="en"] [data-lang="en"],
html[data-current="pt"] [data-lang="pt"], html[data-current="fr"] [data-lang="fr"] { display: revert; }

/* ---------- pagina de producto ---------- */
.product { display: grid; gap: 28px; padding: 22px 0 10px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; padding-top: 40px; } .product-media { position: sticky; top: 90px; } }
.product-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; aspect-ratio: 1 / 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: currentColor; }
.title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 7vw, 46px); line-height: 1.08; margin: 10px 0 12px; letter-spacing: -.01em; }
.title .k { color: var(--accent); }
.lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.badge.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge svg { width: 14px; height: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: 0 6px 22px rgba(77, 52, 22, .06); margin-bottom: 16px; }
.card h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.card h2 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: 0 0 10px; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 14px 46px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px var(--sans); display: grid; place-items: center; }
.steps li::after { content: ''; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-weight: 700; }
.ingredients { font-size: 14px; color: var(--ink-soft); }
.warn { background: #fff7ec; border-color: rgba(200, 161, 106, .55); }
.warn h2 .dot { background: #c27a2c; }
.foot-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 6px 0 0; }

/* ---------- otros productos / inicio ---------- */
.section-title { font-family: var(--serif); font-size: clamp(24px, 5vw, 32px); margin: 34px 0 16px; text-align: center; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 6px 22px rgba(77, 52, 22, .07); transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
.tile-body { display: block; padding: 12px 14px 16px; }
.tile-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.25; }
.tile-more { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }

.hero { text-align: center; padding: 46px 0 8px; }
.hero .big4k { font-family: var(--serif); font-size: clamp(64px, 18vw, 130px); line-height: .9; margin: 22px 0 6px; font-weight: 700; background: linear-gradient(180deg, #1d1816, #4b2477); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 640px; margin: 10px auto 0; color: var(--ink-soft); font-size: 17px; }

.contact { display: flex; justify-content: center; margin: 30px 0 8px; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #1f7a4d; color: #fff; text-decoration: none; padding: 14px 22px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 24px rgba(31, 122, 77, .3); }
.btn-wa svg { width: 20px; height: 20px; }
.site-foot { text-align: center; padding: 26px 0 40px; font-size: 12.5px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

/* producto sin foto todavia: recuadro con la marca y el nombre (tools/build.py, media()) */
.media-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; aspect-ratio: 1 / 1; text-align: center;
  background: radial-gradient(circle at 50% 35%, #fbf3e6 0%, #ecd8bb 55%, #d9bb92 100%); color: var(--ink); padding: 8%; }
.media-ph .ph-logo { width: 46%; height: auto; aspect-ratio: auto; object-fit: contain; }
.ph-4k { font-family: var(--serif); font-weight: 700; font-size: clamp(48px, 22cqw, 150px); line-height: .9; margin: 6% 0 4%; }
.ph-name { font-family: var(--serif); font-weight: 700; font-size: clamp(12px, 4.2cqw, 30px); letter-spacing: .08em; color: var(--accent); border-top: 1px solid rgba(29,24,22,.3); padding-top: 4%; }
.product-media, .tile { container-type: inline-size; }
