/* EVLO · tienda
   Para cambiar la tipografía de los títulos, edita --font-head.
   Versión Cormorant + Jost: cambia la línea de Google Fonts en index.html y usa
   --font-head: 'Cormorant Garamond', serif;  --font-body: Jost, sans-serif; */
:root {
  --font-head: Manrope, system-ui, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
  --bg: #FBFAF7;
  --surface: #EFEBE7;
  --line: #ECE7E1;
  --line-strong: #D9D2CA;
  --text: #1A1612;
  --muted: #5E554D;
  --muted-2: #6B625A;
  --olive: #6B6B2A;
  --olive-dark: #4E4E1F;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: var(--olive); }
button { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 1000px; }
main { min-height: 60vh; outline: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1; }
h1.hero-title { font-size: clamp(40px, 5.6vw, 68px); }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.lead { font-size: 18px; color: var(--muted); max-width: 26em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--text); background: var(--text); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; opacity: .92; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-light { background: #fff; color: var(--text); border-color: #fff; }
.btn-light:hover { color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--text); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 19px; }
.stepper span { min-width: 22px; text-align: center; font-weight: 500; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,250,247,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--olive); }
.logo span { font-size: 22px; font-weight: 500; letter-spacing: .22em; }
.nav-top { display: flex; gap: 6px; }
.nav-top a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: var(--muted-2); }
.nav-top a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--olive); }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--text); }
.badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--text); color: #fff; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; }

/* Secciones */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 32px 0 24px; }
.hero > * { flex: 1 1 380px; min-width: 0; }
.hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.strip { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card-link { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.card-link img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.card-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

.product { display: flex; flex-direction: column; gap: 12px; }
.product .thumb { display: block; border-radius: 22px; overflow: hidden; }
.product .thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.product .thumb:hover img { transform: scale(1.02); }
.product-info { padding: 0 4px; }
.in-cart { margin: 0 4px; font-size: 14px; color: var(--olive-dark); }

.pack { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pack img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pack-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-size: 18px; font-weight: 500; }
.strike { font-size: 14px; color: var(--muted-2); text-decoration: line-through; }
.save { font-size: 14px; color: var(--olive-dark); }

.banner { background: var(--surface); border-radius: 28px; overflow: hidden; display: flex; flex-wrap: wrap; }
.banner img { flex: 1 1 420px; min-width: 0; min-height: 300px; object-fit: cover; }
.banner-body { flex: 1 1 360px; min-width: 0; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }

/* Producto */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--muted); font-size: 15px; }
.pdp { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; margin-top: 12px; }
.pdp-media { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pdp-media > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; }
.gallery button { flex: none; width: 76px; height: 76px; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: none; }
.gallery button[aria-pressed="true"] { border-color: var(--text); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { flex: 1 1 380px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pill { font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--surface); }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.buy-row .btn { flex: 1 1 220px; }
.status { color: var(--olive-dark); font-size: 15px; margin: 0 0 10px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 500; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p, details ul { margin: 10px 0 0; color: var(--muted); }
.pairs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pair { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); }
.pair img { width: 110px; height: 110px; object-fit: cover; border-radius: 18px; flex: none; }

/* Rutina */
.center { text-align: center; }
.hair-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 28px 0 36px; }
.hair { text-align: left; min-height: 84px; padding: 16px 20px; border-radius: 20px; cursor: pointer; border: 1px solid var(--line-strong); background: #fff; }
.hair strong { display: block; font-size: 18px; font-weight: 500; }
.hair span { display: block; font-size: 15px; opacity: .8; }
.hair[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.box { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3.5vw, 36px); }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 20px 0 24px; }
.steps a { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.total-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }

/* Ayuda */
.photos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 16px; }
.photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }
.howto { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 48px; }
.howto div { background: var(--surface); border-radius: 20px; padding: 20px; }
.howto h3, .stores h3 { font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 6px; }
.howto h3 + p, .stores h3 + p { margin: 0; }
.howto b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 500; color: var(--olive); }
.stores { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stores div { border: 1px solid var(--line); border-radius: 20px; padding: 20px; }

/* Pedido */
.cart { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cart-lines { flex: 1 1 460px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.line-thumb { flex: none; width: 76px; height: 76px; border-radius: 16px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.line-thumb img { max-width: 82%; max-height: 82%; object-fit: contain; }
.line-text { flex: 1; min-width: 0; }
.line-text p { margin: 0; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.summary { flex: 1 1 340px; min-width: 0; background: var(--surface); border-radius: 24px; padding: 24px; }
.summary label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; margin-bottom: 12px; }
.summary input { min-height: 50px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; background: #fff; }
.empty { background: var(--surface); border-radius: 24px; padding: 40px 24px; text-align: center; }
.wa { background: #1A1612; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted-2); }
.footer-row a { color: var(--muted-2); }
.footer-row .social { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -12px 0; }
.footer-logo { letter-spacing: .22em; color: var(--olive); font-weight: 500; }

/* Barra flotante del pedido */
.floatbar { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 30; padding: 0 16px; }
.floatbar[hidden] { display: none; }
.floatbar-inner { max-width: 520px; margin: 0 auto; background: var(--text); color: #fff; border-radius: 999px; padding: 8px 8px 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 12px 32px rgba(26,22,18,.25); font-size: 15px; }

/* Barra de pestañas (celular) */
.tabbar { display: none; }

@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .nav-top, .cart-btn { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(251,250,247,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabbar a { position: relative; flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; text-decoration: none; color: var(--muted-2); }
  .tabbar a[aria-current="page"] { color: var(--text); font-weight: 600; }
  .tabbar .badge { top: 2px; right: auto; left: calc(50% + 6px); min-width: 20px; height: 20px; font-size: 12px; }
  body { padding-bottom: 72px; }
  .floatbar { display: none !important; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .hero { gap: 24px; padding-top: 20px; }
  .line-thumb { width: 60px; height: 60px; }
  .pdp { gap: 24px; }
}

/* Migas de pan */
.crumbs { margin: 0 0 16px; }
.crumbs a { color: var(--muted-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: 0 -6px; }
.crumbs a:hover { color: var(--olive); }

/* Aviso "Agregado a tu pedido" */
.toast { position: fixed; right: max(24px, calc((100vw - 1200px) / 2 + 24px)); top: 84px; z-index: 50; width: min(400px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 14px 40px rgba(26,22,18,.22); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s; }
.toast.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .25s ease; }
.toast img { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface); }
.toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.3; }
.toast-text strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--olive-dark); font-size: 15px; }
.toast-text span { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
.toast-link:hover { color: #fff; background: var(--olive-dark); }
.icon-btn.added, .btn.added { background: var(--olive-dark); border-color: var(--olive-dark); }
.badge.bump { animation: bump .45s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (max-width: 680px) { .toast-link { padding: 0 14px; } .toast { top: auto; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateY(12px); } .toast.show { transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.show { transition: none; } .badge.bump { animation: none; } }
