/* MASSI — tema de Webs sobre el sistema de marca MASSI (massi-brand-system).
   Colores, fuentes y radios salen de Webs › Diseño (--w-*); los tokens --ms-* fijan lo que es de la marca. */
:root {
  --ms-pine: #2f4f4f; --ms-pine-deep: #173b3f; --ms-eucalyptus: #508072;
  --ms-gold: #d4af37; --ms-gold-deep: #b88a1b; --ms-gold-light: #e8d79b;
  --ms-ivory: #f5f3ee; --ms-warm: #fbfaf7; --ms-ink: #223434; --ms-muted: #607174; --ms-line: #d9e3df;
  --ms-ochre-soft: #fff8e8; --ms-ochre-line: #e5d5a4; --ms-critical: #b42318;
  --ms-gradient-pine: linear-gradient(135deg, #173b3f 0%, #2f4f4f 56%, #508072 100%);
  --ms-gradient-gold: linear-gradient(135deg, #b88a1b 0%, #d4af37 52%, #e8d79b 100%);
  --ms-radius-sm: 10px; --ms-radius-md: 16px; --ms-radius-lg: 28px;
  --ms-shadow-soft: 0 18px 50px rgba(28, 61, 61, .10); --ms-shadow-card: 0 10px 28px rgba(28, 61, 61, .08);
  --ms-display: var(--w-font-heading, "Libre Baskerville", Georgia, serif);
}
body.theme-massi { color: var(--w-text); }
.theme-massi h1, .theme-massi h2, .theme-massi h3 { color: var(--w-primary); font-weight: 400; letter-spacing: -.01em; }
.theme-massi a { color: var(--w-primary); }
.theme-massi :focus-visible { outline: 2px solid var(--ms-gold); outline-offset: 2px; }
.theme-massi .w-main { padding: 0 0 64px; }
.theme-massi .w-main > .w-container:first-child { padding-top: 28px; }

/* ── Botones de marca ── */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; font-family: var(--w-font-body); font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter .15s, background .15s, color .15s; }
.ms-btn-gold { background: var(--ms-gradient-gold); color: var(--ms-pine-deep) !important; border-color: var(--ms-gold-deep); }
.ms-btn-gold:hover { filter: brightness(1.05); }
.ms-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.ms-btn-ghost:hover { background: #fff; color: var(--ms-pine) !important; }
.theme-massi .w-btn { border-radius: 12px; min-height: 44px; font-weight: 700; border-color: var(--w-primary); color: var(--w-primary); background: #fff; }
.theme-massi .w-btn:hover { background: var(--ms-ivory); border-color: var(--w-primary); }
.theme-massi .w-btn-primary { background: var(--w-primary); color: var(--ms-ivory); }
.theme-massi .w-btn-primary:hover { background: var(--ms-eucalyptus); border-color: var(--ms-eucalyptus); filter: none; }
.theme-massi .w-btn-sm { min-height: 36px; }

/* ── Cabecera ── */
.ms-header { background: var(--w-header-bg); border-bottom: 1px solid var(--ms-line); box-shadow: 0 1px 0 rgba(212, 175, 55, .25); z-index: 30; }
.ms-header.is-sticky { position: sticky; top: 0; }
.ms-header-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.ms-brand { display: inline-flex; align-items: center; }
.ms-brand .w-logo { height: var(--w-logo-height, 52px); width: auto; }
.ms-nav { margin-left: auto; gap: 6px; }
.ms-nav a { color: var(--w-header-text); font-weight: 700; font-size: .95em; letter-spacing: .02em; }
.ms-nav a.is-active, .ms-nav a:hover { background: var(--ms-ivory); color: var(--w-primary); }
.ms-nav .ms-nav-cta { margin-left: 8px; min-height: 40px; padding: 0 16px; }
.ms-nav .ms-nav-cta:hover { background: var(--ms-gradient-gold); }
.theme-massi .w-cart-count { background: var(--ms-gold); color: var(--ms-pine-deep); }

/* ── Avisos ── */
.ms-flash { padding-top: 16px; }
.ms-catalog-bar { background: var(--ms-ochre-soft); border-bottom: 1px solid var(--ms-ochre-line); color: var(--ms-pine); font-size: .95em; }
.ms-catalog-bar .w-container { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.ms-catalog-bar i { color: var(--ms-gold-deep); flex: none; }
.ms-catalog-bar span { flex: 1 1 320px; min-width: 0; }
.ms-catalog-bar a { margin-left: auto; font-weight: 700; text-decoration: none; }
.theme-massi .w-catalog-notice { background: var(--ms-ochre-soft); color: var(--ms-pine); border: 1px solid var(--ms-ochre-line); }

/* ── Tipografía de apoyo ── */
.ms-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--ms-gold-deep); }
.ms-eyebrow-light { color: var(--ms-gold-light); }
.ms-h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; margin-bottom: 24px; }
.ms-lead { font-size: 18px; line-height: 1.6; }
.ms-muted { color: var(--ms-muted); }
.ms-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ms-section { padding: 72px 0; }

/* ── Hero editorial ── */
.ms-hero { position: relative; overflow: hidden; background: var(--ms-gradient-pine); color: var(--ms-ivory); }
.ms-hero-geo { position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(212, 175, 55, .28), transparent 42%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 28px); pointer-events: none; }
.ms-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.ms-hero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.06; margin: 0 0 20px; }
.ms-hero .ms-lead { color: rgba(245, 243, 238, .88); max-width: 34em; }
.ms-hero-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ms-hero-photo { margin: 0; border-radius: var(--ms-radius-md); overflow: hidden; aspect-ratio: 1; box-shadow: var(--ms-shadow-soft); background: var(--ms-pine-deep); }
.ms-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-hero-photo-2, .ms-hero-photo-4 { transform: translateY(26px); }

/* ── Categorías ── */
.ms-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.ms-cat { display: flex; justify-content: space-between; align-items: center; padding: 26px 24px; border-radius: var(--ms-radius-md); background: #fff; border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow-card); text-decoration: none; font-family: var(--ms-display); font-size: 1.35em; color: var(--w-primary); transition: transform .15s, border-color .15s; }
.ms-cat:hover { transform: translateY(-2px); border-color: var(--ms-gold); }
.ms-cat i { color: var(--ms-gold-deep); font-size: .8em; }
.ms-cat-all { background: var(--ms-ivory); font-family: var(--w-font-body); font-size: 1em; font-weight: 700; }

/* ── Taller ── */
.ms-maker { background: var(--ms-ivory); border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); }
.ms-maker-inner { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 40px; align-items: center; }
.ms-maker-mark img { width: 120px; height: 120px; }
.ms-quote { font-family: var(--ms-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; color: var(--w-primary); margin: 0 0 24px; }
.ms-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ms-trust li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: #fff; border-radius: var(--ms-radius-sm); border: 1px solid var(--ms-line); }
.ms-trust i { color: var(--ms-gold-deep); font-size: 1.4em; }

/* ── Preguntas frecuentes ── */
.ms-faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.ms-faq-list { display: grid; gap: 10px; }
.ms-faq-list details { background: #fff; border: 1px solid var(--ms-line); border-radius: 14px; padding: 4px 18px; }
.ms-faq-list details[open] { border-color: var(--ms-gold-light); box-shadow: var(--ms-shadow-card); }
.ms-faq-list summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--w-primary); display: flex; justify-content: space-between; gap: 12px; }
.ms-faq-list summary::-webkit-details-marker { display: none; }
.ms-faq-list summary::after { content: "+"; color: var(--ms-gold-deep); font-size: 1.3em; line-height: 1; }
.ms-faq-list details[open] summary::after { content: "–"; }
.ms-faq-list p { margin: 0 0 16px; color: var(--ms-muted); }

/* ── Cierre ── */
.ms-cta { background: var(--ms-gradient-pine); color: var(--ms-ivory); }
.ms-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.ms-cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(26px, 3vw, 38px); }
.ms-cta p { margin: 0; color: rgba(245, 243, 238, .85); }
.ms-cta .ms-actions { margin-top: 0; }

/* ── Pie ── */
.ms-footer { background: var(--w-footer-bg); color: var(--w-footer-text); padding: 0 0 26px; }
.ms-footer-rule { height: 4px; background: var(--ms-gradient-gold); }
.ms-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-top: 48px; padding-bottom: 32px; }
.ms-footer-logo { width: 200px; height: auto; margin-bottom: 14px; }
.ms-footer-title { font-weight: 900; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: var(--ms-gold-light); margin: 0 0 12px; }
.ms-footer-text { margin: 0 0 8px; color: rgba(245, 243, 238, .82); }
.ms-footer a { color: var(--w-footer-text); }
.ms-footer-links { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.ms-social a { color: var(--ms-gold-light) !important; }
.ms-copy { border-top: 1px solid rgba(245, 243, 238, .15); padding-top: 18px; font-size: 13px; color: rgba(245, 243, 238, .65); }

/* ── WhatsApp flotante ── */
.ms-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ms-pine); color: #fff !important; font-size: 28px; box-shadow: var(--ms-shadow-soft); border: 2px solid var(--ms-gold); text-decoration: none; }
.ms-wa-float:hover { background: var(--ms-eucalyptus); }

/* ── Páginas y documentos ── */
.ms-page { padding-top: 40px; }
.ms-doc-head { background: var(--ms-gradient-pine); padding: 56px 0 44px; margin-bottom: 36px; }
.ms-doc-head h1 { color: #fff; margin: 0; font-size: clamp(28px, 4vw, 46px); }
.ms-doc { max-width: 860px; }

/* ── Tienda ── */
.theme-massi .w-card { border-radius: var(--ms-radius-md); border-color: var(--ms-line); box-shadow: var(--ms-shadow-card); }
.theme-massi .w-card:hover { box-shadow: var(--ms-shadow-soft); }
.theme-massi .w-card-title { font-family: var(--ms-display); font-weight: 400; color: var(--w-primary); }
.theme-massi .w-price, .theme-massi .w-price-now { color: var(--ms-eucalyptus); font-weight: 700; }
.theme-massi .w-product-info h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
.theme-massi .w-price-lg .w-price-now { font-size: 1.5em; }
.theme-massi .w-product-media, .theme-massi .w-product-thumb { border-radius: var(--ms-radius-md); background: #fff; border: 1px solid var(--ms-line); }
.theme-massi .w-option { border-radius: 999px; padding: 10px 18px; }
.theme-massi .w-option:has(input:checked) { border-color: var(--ms-gold); background: var(--ms-ochre-soft); }
.theme-massi .w-chip.is-active, .theme-massi .w-side-list a.is-current { background: var(--w-primary); color: var(--ms-ivory); }
.theme-massi .w-field input, .theme-massi .w-field textarea, .theme-massi .w-field select, .theme-massi .w-search { border-radius: 14px; }
.theme-massi .w-field input:focus, .theme-massi .w-field textarea:focus, .theme-massi .w-field select:focus, .theme-massi .w-search:focus-within { border-color: var(--ms-eucalyptus); box-shadow: 0 0 0 3px rgba(212, 175, 55, .3); }
.theme-massi .w-pagehead h1 { font-size: clamp(30px, 4vw, 48px); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .ms-hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .ms-faq-inner { grid-template-columns: 1fr; gap: 20px; }
  .ms-footer-grid { grid-template-columns: 1fr 1fr; }
  .ms-nav .ms-nav-cta { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .ms-section { padding: 52px 0; }
  .ms-header-row { min-height: 64px; }
  .ms-brand .w-logo { height: 40px; }
  .ms-hero-photo-2, .ms-hero-photo-4 { transform: none; }
  .ms-maker-inner { grid-template-columns: 1fr; gap: 16px; }
  .ms-maker-mark img { width: 72px; height: 72px; }
  .ms-footer-grid { grid-template-columns: 1fr; }
  .ms-catalog-bar a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ms-cat, .ms-btn { transition: none; } }
.ms-header.is-scrolled { box-shadow: 0 8px 24px rgba(28, 61, 61, .08); }

/* ── Portal del cliente (/cliente) y lista de joyas ── */
.ms-nav .ms-nav-access { display: inline-flex; align-items: center; gap: 6px; }
.ms-portal { max-width: 920px; padding-top: 28px; padding-bottom: 48px; }
.ms-portal-head { margin-bottom: 18px; }
.ms-portal-head h1 { font-family: var(--ms-display); color: var(--ms-pine-deep); margin: 4px 0 14px; }
.ms-portal-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--ms-line); padding-bottom: 2px; scrollbar-width: none; }
.ms-portal-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px 999px 0 0; color: var(--ms-muted); text-decoration: none; white-space: nowrap; font-weight: 700; }
.ms-portal-tabs a.is-active { color: var(--ms-pine-deep); box-shadow: inset 0 -3px 0 var(--ms-gold); }
.ms-portal-notice { border-left: 4px solid var(--ms-gold); margin-bottom: 14px; padding: 12px 16px; }
.ms-portal-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ms-portal-card { background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius-md); padding: 14px 16px; text-decoration: none; color: var(--ms-ink); box-shadow: var(--ms-shadow-card); display: flex; flex-direction: column; gap: 2px; }
.ms-portal-card span { color: var(--ms-muted); font-size: .88em; }
.ms-portal-card b { font-size: 1.7em; font-family: var(--ms-display); color: var(--ms-pine-deep); }
.ms-portal-card small { color: var(--ms-eucalyptus); }
.ms-portal-section { margin-bottom: 16px; }
.ms-portal-section h2 { font-family: var(--ms-display); color: var(--ms-pine-deep); font-size: 1.25em; margin: 0 0 10px; }
.ms-portal-order { border-top: 1px solid var(--ms-line); padding: 14px 0; }
.ms-portal-order:first-of-type { border-top: 0; padding-top: 4px; }
.ms-portal-order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.ms-portal-order-total { font-size: 1.15em; font-weight: 700; color: var(--ms-pine); margin: 6px 0 10px; }
.ms-portal-payments { margin: 0 0 10px; padding-left: 18px; color: var(--ms-muted); }
.ms-portal-wish { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; border-top: 1px solid var(--ms-line); padding: 12px 0; }
.ms-portal-wish-img img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--ms-radius-sm); background: var(--ms-ivory); display: block; }
.ms-portal-wish-main p { margin: 4px 0 0; }
.ms-portal-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.ms-wish-action { margin: 12px 0; }
.ms-wish-btn i { color: var(--ms-gold-deep); }
.ms-wish-btn.is-saved { border-color: var(--ms-gold); background: var(--ms-ochre-soft); }
.ms-wish-select { max-width: 240px; }
@media (max-width: 720px) {
  .ms-portal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-portal-wish { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .ms-portal-wish-img img { width: 72px; height: 72px; }
}

/* ══════════════════════════════════════════════════════════════════
   App en el celular (≤ 720 px): cabecera compacta, barra de pestañas,
   tienda en dos columnas, ficha con acción fija. En escritorio no cambia nada.
   ══════════════════════════════════════════════════════════════════ */
:root { --ms-tabbar-h: 66px; --ms-safe-b: env(safe-area-inset-bottom, 0px); }
.theme-massi { -webkit-tap-highlight-color: transparent; }
.theme-massi img { -webkit-user-drag: none; }
.ms-tabbar { display: none; }

@media (max-width: 720px) {
  body.theme-massi { padding-bottom: calc(var(--ms-tabbar-h) + var(--ms-safe-b)); background: var(--ms-warm); overscroll-behavior-y: none; }
  .theme-massi .w-container { padding-left: 16px; padding-right: 16px; }
  .theme-massi .w-main { padding-bottom: 28px; }
  .theme-massi .w-main > .w-container:first-child { padding-top: 16px; }

  /* Pulsación de app */
  .theme-massi a, .theme-massi button { touch-action: manipulation; }
  .ms-btn:active, .theme-massi .w-btn:active, .ms-cat:active, .theme-massi .w-card:active { transform: scale(.98); }
  .theme-massi input, .theme-massi select, .theme-massi textarea { font-size: 16px; } /* iOS no hace zoom */

  /* ── Cabecera ── */
  .ms-header { padding-top: env(safe-area-inset-top, 0px); background: rgba(251, 250, 247, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(212, 175, 55, .35); border-bottom: 0; }
  .ms-header-row { min-height: 56px; gap: 10px; }
  .ms-brand .w-logo { height: 34px; }
  .ms-burger { width: 40px; height: 40px; border-radius: 12px; border-color: var(--ms-line); background: #fff; color: var(--ms-pine); }
  .ms-header.nav-open .ms-burger { background: var(--ms-pine); color: var(--ms-ivory); border-color: var(--ms-pine); }
  .ms-nav { left: 12px !important; right: 12px !important; top: calc(100% + 6px) !important; padding: 8px !important; border: 1px solid var(--ms-line) !important; border-radius: 18px; background: #fff !important; box-shadow: 0 24px 60px rgba(23, 59, 63, .22); gap: 2px; animation: ms-sheet .18s ease-out; }
  .ms-nav a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 1rem; }
  .ms-nav a.is-active { background: var(--ms-ivory); box-shadow: inset 3px 0 0 var(--ms-gold); }
  .ms-nav .ms-nav-cta { display: none; }
  .ms-nav .w-cart-link { order: -1; }
  @keyframes ms-sheet { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* ── Barra de pestañas ── */
  .ms-wa-float { display: none; }
  .ms-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--ms-tabbar-h) + var(--ms-safe-b)); padding: 0 6px var(--ms-safe-b); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid rgba(217, 227, 223, .9); box-shadow: 0 -10px 30px rgba(23, 59, 63, .07); }
  .ms-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--ms-tabbar-h); color: var(--ms-muted); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .01em; position: relative; }
  .ms-tabbar a i { font-size: 24px; line-height: 1; transition: transform .15s; }
  .ms-tabbar a:active i { transform: scale(.88); }
  .ms-tabbar a.is-active { color: var(--ms-pine-deep); }
  .ms-tabbar a.is-active::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 3px 3px; background: var(--ms-gradient-gold); }
  .ms-tabbar a.is-active i { color: var(--ms-pine); }
  .ms-tab-wa { color: var(--ms-pine-deep) !important; }
  .ms-tab-wa-btn { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -22px; border-radius: 18px; background: var(--ms-gradient-pine); color: var(--ms-gold-light); border: 2px solid #fff; box-shadow: 0 10px 22px rgba(23, 59, 63, .32), 0 0 0 1px rgba(212, 175, 55, .55); transform: rotate(45deg); }
  .ms-tab-wa-btn i { font-size: 25px !important; transform: rotate(-45deg); }
  .ms-tab-wa:active .ms-tab-wa-btn { transform: rotate(45deg) scale(.94); }

  /* ── Avisos ── */
  .ms-catalog-bar { font-size: 13px; line-height: 1.4; }
  .ms-catalog-bar .w-container { flex-wrap: nowrap; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .ms-catalog-bar span { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ms-catalog-bar a { margin-left: 0; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ms-ochre-line); font-size: 12px; white-space: nowrap; }
  .ms-route-product .ms-catalog-bar { display: none; }

  /* ── Tipografía ── */
  .ms-section { padding: 40px 0; }
  .ms-h2 { font-size: 28px; margin-bottom: 18px; }
  .ms-eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 8px; }
  .ms-lead { font-size: 16px; }
  .theme-massi .w-pagehead { padding: 6px 0 12px; }
  .webs-shop .w-main > .ms-catalog-bar + .w-container { padding-top: 18px; }
  .theme-massi .w-pagehead h1 { font-size: 28px; margin: 0; }

  /* ── Portada ── */
  .ms-hero-inner { gap: 26px; padding-top: 30px; padding-bottom: 34px; }
  .ms-hero h1 { font-size: 33px; line-height: 1.12; margin-bottom: 14px; }
  .ms-hero .ms-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ms-hero .ms-btn { padding: 0 12px; min-height: 48px; }
  .ms-hero-gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .ms-hero-gallery::-webkit-scrollbar { display: none; }
  .ms-hero-photo { flex: 0 0 72%; scroll-snap-align: center; transform: none !important; border-radius: 20px; }
  .ms-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ms-cat { flex-direction: column; align-items: flex-start; gap: 18px; padding: 18px 16px; font-size: 1.2em; border-radius: 18px; }
  .ms-cat i { align-self: flex-end; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ms-ochre-soft); font-size: .7em; }
  .ms-cat.ms-cat-all { background: var(--ms-gradient-pine); color: var(--ms-ivory); border-color: transparent; font-family: var(--ms-display); font-weight: 400; font-size: 1.2em; }
  .ms-cat-all i { background: rgba(255, 255, 255, .14); color: var(--ms-gold-light); }
  .ms-maker-inner { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
  .ms-maker-mark img { width: 56px; height: 56px; }
  .ms-quote { font-size: 19px; margin-bottom: 18px; }
  .ms-trust { grid-column: 1 / -1; margin-left: -70px; gap: 8px; }
  .ms-trust li { padding: 12px 14px; border-radius: 14px; }
  .ms-faq-list summary { padding: 14px 0; }
  .ms-cta-inner { padding-top: 34px; padding-bottom: 34px; }
  .ms-cta .ms-actions { width: 100%; }
  .ms-cta .ms-btn { flex: 1; }

  /* ── Pie compacto ── */
  .ms-footer-grid { gap: 22px; padding-top: 30px; padding-bottom: 18px; }
  .ms-footer-logo { width: 140px; margin-bottom: 8px; }
  .ms-footer-links { grid-template-columns: 1fr; gap: 0; }
  .ms-footer-links a { display: block; padding: 7px 0; border-bottom: 1px solid rgba(245, 243, 238, .08); text-decoration: none; font-size: 14px; }
  .ms-copy { font-size: 12px; padding-top: 14px; }

  /* ── Tienda ── */
  .theme-massi .w-shop-layout { display: block; }
  .theme-massi .w-sidebar { display: block; position: static; margin: 0 -16px 4px; padding: 0; border: 0; background: none; }
  .theme-massi .w-side-title { display: none; }
  .theme-massi .w-side-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .theme-massi .w-side-list::-webkit-scrollbar { display: none; }
  .theme-massi .w-side-list li { flex: none; scroll-snap-align: start; }
  .theme-massi .w-side-list a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ms-line); font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--ms-pine); }
  .theme-massi .w-side-list a.is-current { background: var(--ms-pine); border-color: var(--ms-pine); color: var(--ms-ivory); }
  .theme-massi .w-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 2px 0 10px; }
  .theme-massi .w-search { border-radius: 14px; background: #fff; min-height: 46px; }
  .theme-massi .w-search input { padding: 10px 14px; }
  .theme-massi .w-search button { background: none; color: var(--ms-pine); padding: 0 14px; }
  .theme-massi .w-sort span { display: none; }
  .theme-massi .w-sort select { height: 46px; max-width: 132px; border-radius: 14px; background: #fff; font-size: 14px; padding: 0 8px; }
  .webs-shop .w-meta { font-size: 13px; }
  .theme-massi .w-grid-3, .theme-massi .w-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .theme-massi .w-product-card { border-radius: 18px; overflow: hidden; }
  .theme-massi .w-product-card .w-card-media { aspect-ratio: 1; }
  .theme-massi .w-product-card .w-card-body { padding: 10px 12px 12px; gap: 2px; }
  .theme-massi .w-product-card .w-meta { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ms-gold-deep); font-weight: 900; margin: 0; }
  .theme-massi .w-product-card .w-card-title { font-size: 14px; line-height: 1.3; margin: 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .theme-massi .w-product-card .w-card-title a { color: inherit; text-decoration: none; }
  .theme-massi .w-product-card .w-card-title a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta abre la joya */
  .theme-massi .w-product-card { position: relative; }
  .theme-massi .w-product-card .w-price { font-size: 14px; margin: auto 0 0; }
  .theme-massi .w-product-card .w-btn, .theme-massi .w-product-card .w-add { display: none; }
  .theme-massi .w-card-media .w-badge { top: 8px; left: 8px; font-size: 11px; }
  .theme-massi .w-pager { margin-top: 20px; }
  .theme-massi .w-pager-link { min-width: 42px; height: 42px; border-radius: 12px; background: #fff; }

  /* ── Ficha de la joya ── */
  .ms-route-product .w-crumbs { font-size: 13px; margin: 0 0 10px; }
  .ms-route-product .w-crumbs > span { display: none; }
  .ms-route-product .w-crumbs > i:last-of-type { display: none; }
  .theme-massi .w-product { gap: 16px; }
  .theme-massi .w-product-gallery { margin: 0 -16px; }
  .theme-massi .w-product-media { border-radius: 0; border: 0; border-bottom: 1px solid var(--ms-line); }
  .theme-massi .w-product-thumbs { flex-wrap: nowrap; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
  .theme-massi .w-product-thumbs::-webkit-scrollbar { display: none; }
  .theme-massi .w-product-thumb { flex: none; width: 60px; height: 60px; border-radius: 12px; }
  .theme-massi .w-product-thumb.is-active { border-color: var(--ms-gold); box-shadow: 0 0 0 2px var(--ms-gold-light); }
  .theme-massi .w-product-info h1 { font-size: 25px; line-height: 1.2; margin: 0 0 8px; }
  .theme-massi .w-price-lg { margin: 0 0 10px; }
  .theme-massi .w-price-lg .w-price-now { font-size: 24px; color: var(--ms-pine); }
  .theme-massi .w-product-info .w-lead { font-size: 15px; color: var(--ms-muted); }
  .theme-massi .w-options { display: flex; flex-wrap: wrap; gap: 8px; }
  .theme-massi .w-catalog-notice { font-size: 13px; padding: 10px 12px; border-radius: 14px; }
  .ms-route-product .w-product-info .w-catalog-cta { position: fixed; z-index: 44; left: 12px; right: 12px; bottom: calc(var(--ms-tabbar-h) + var(--ms-safe-b) + 10px); min-height: 52px; width: auto; border-radius: 16px; font-size: 16px; background: var(--ms-gradient-pine) !important; border: 1px solid var(--ms-pine-deep); color: var(--ms-ivory) !important; box-shadow: 0 14px 34px rgba(23, 59, 63, .35); }
  .ms-route-product .w-catalog-cta i { color: var(--ms-gold-light); }
  .ms-route-product .w-main { padding-bottom: 90px; }
  .ms-route-product .ms-tab-wa-btn { width: 34px; height: 34px; margin-top: 0; border-radius: 11px; border: 0; box-shadow: none; }
  .ms-route-product .ms-tab-wa-btn i { font-size: 19px !important; }
  .ms-wish-btn { width: 100%; justify-content: center; }
  .theme-massi .w-facts { font-size: 14px; }
  .theme-massi .w-product-desc h2, .theme-massi .w-related h2 { font-size: 22px; }
  .theme-massi .w-product-desc .w-prose { font-size: 15px; line-height: 1.65; }

  /* ── Carrito, pago, cuenta y formularios ── */
  .theme-massi .w-box, .theme-massi .w-form-card { border-radius: 18px; }
  .theme-massi .w-field input, .theme-massi .w-field select, .theme-massi .w-field textarea { min-height: 48px; }
  .theme-massi .w-btn { min-height: 48px; }
  .theme-massi .w-btn-primary { width: 100%; justify-content: center; }
  .ms-route-account .w-main > .w-container, .ms-route-warranty .w-main > .w-container { padding-top: 22px; }

  /* ── Portal del cliente ── */
  .ms-portal { padding-top: 16px; }
  .ms-portal-head h1 { font-size: 26px; margin: 2px 0 12px; }
  .ms-portal-tabs { margin: 0 -16px; padding: 0 16px 2px; gap: 4px; }
  .ms-portal-tabs a { padding: 9px 12px; font-size: 14px; }
  .ms-portal-cards { gap: 10px; }
  .ms-portal-card { border-radius: 18px; }
  .ms-portal-wish { grid-template-columns: 64px minmax(0, 1fr); }
  .ms-portal-wish > :last-child { grid-column: 1 / -1; }
  .ms-portal-wish-img img { width: 64px; height: 64px; border-radius: 12px; }

  /* ── Documentos ── */
  .ms-doc-head { padding: 30px 0 24px; margin-bottom: 20px; }
  .ms-doc-head h1 { font-size: 26px; }
}

/* App instalada (pantalla completa): sin enlaces que saquen de la app sin querer */
@media (display-mode: standalone) and (max-width: 720px) {
  .ms-header { padding-top: max(env(safe-area-inset-top, 0px), 4px); }
  .ms-footer-grid > div:first-child .ms-footer-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ms-nav { animation: none; } .ms-tabbar a i { transition: none; } }

/* ── Bienvenida sobre el acceso con celular ── */
.ms-welcome { position: relative; overflow: hidden; background: var(--ms-gradient-pine); color: var(--ms-ivory); margin-bottom: 26px; }
.ms-welcome-geo { position: absolute; inset: 0; background: radial-gradient(circle at 88% 0%, rgba(212, 175, 55, .3), transparent 45%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 26px); pointer-events: none; }
.ms-welcome-inner { position: relative; max-width: 440px; padding-top: 34px; padding-bottom: 30px; }
.ms-welcome-mark img { display: block; width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 12px 28px rgba(0, 0, 0, .25), 0 0 0 1px rgba(212, 175, 55, .6); margin-bottom: 18px; }
.ms-welcome h2 { color: #fff; font-size: 26px; line-height: 1.2; margin: 0 0 16px; }
.ms-welcome ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: rgba(245, 243, 238, .9); font-size: 15px; }
.ms-welcome li { display: flex; align-items: center; gap: 10px; }
.ms-welcome li i { color: var(--ms-gold-light); font-size: 20px; }
.ms-route-login .w-pagehead h1 { font-size: 24px; }
.ms-route-login .w-box { border-radius: 20px; box-shadow: var(--ms-shadow-card); background: #fff; }

@media (max-width: 720px) {
  .ms-welcome { margin: 0 0 -26px; padding-bottom: 26px; border-radius: 0 0 28px 28px; }
  .ms-route-login .w-main > .w-container { position: relative; z-index: 1; }
  .ms-route-login .w-pagehead { display: none; }
  .ms-route-login .w-box { padding: 22px 18px; box-shadow: 0 18px 44px rgba(23, 59, 63, .16); }
  /* Seguimiento del turno: sin doble margen */
  .ms-route-turn .ms-page { padding-top: 0; padding-left: 0; padding-right: 0; }
  .ms-route-turn .mt { padding-top: 18px; gap: 16px; }
  .ms-route-turn .mt-card { border-radius: 20px; }
  .ms-route-turn .mt-form { grid-template-columns: 1fr 1fr; }
  .ms-route-turn .mt-form label:last-of-type { grid-column: 1 / -1; }
  .ms-route-warranty .ms-catalog-bar { display: none; }
  /* En las pantallas de la app (cuenta, turno, garantía) el pie se reduce a lo esencial */
  .ms-route-login .ms-footer-grid, .ms-route-account .ms-footer-grid, .ms-route-turn .ms-footer-grid, .ms-route-warranty .ms-footer-grid { display: none; }
  .ms-route-login .ms-copy, .ms-route-account .ms-copy, .ms-route-turn .ms-copy, .ms-route-warranty .ms-copy { border-top: 0; text-align: center; }
  .ms-route-login .ms-footer, .ms-route-account .ms-footer, .ms-route-turn .ms-footer, .ms-route-warranty .ms-footer { background: transparent; color: var(--ms-muted); padding-top: 8px; }
  .ms-route-login .ms-footer-rule, .ms-route-account .ms-footer-rule, .ms-route-turn .ms-footer-rule, .ms-route-warranty .ms-footer-rule { display: none; }
  .ms-route-login .ms-copy, .ms-route-account .ms-copy, .ms-route-turn .ms-copy, .ms-route-warranty .ms-copy { color: var(--ms-muted); }
}
