/* Norplat Mini — link-in-bio mobile-first. Paleta de marca Norplat (crimson #C8102E). */
:root {
  color-scheme: light;
  --crimson: #c8102e;
  --crimson-dark: #a20d25;
  --crimson-tint: #fdecef;
  --bg: #f6f7f4;
  --card: #ffffff;
  --text: #171a1c;
  --muted: #68746d;
  --line: #e4e7e2;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 26, 28, 0.04), 0 8px 24px rgba(23, 26, 28, 0.06);
  --shadow-cta: 0 8px 20px rgba(200, 16, 46, 0.28);
  --maxw: 480px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden; /* los strips scrollean internamente; la página nunca desborda a lo ancho */
  background:
    radial-gradient(120% 60% at 50% -10%, var(--crimson-tint) 0%, rgba(253, 236, 239, 0) 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- Layout ---- */
.mini {
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 0 18px calc(40px + env(safe-area-inset-bottom));
}

.mini-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 14px 0 12px;
  background: rgba(246, 247, 244, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  margin: 0 -18px 0;
}

.mini-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--crimson);
}

.mini-header img {
  height: 26px;
  width: auto;
}

/* ---- Hero / perfil ---- */
.hero {
  text-align: center;
  padding: 26px 0 6px;
}

.hero__avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__avatar img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.hero__name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.hero__tagline {
  color: var(--muted);
  font-size: 15px;
  margin: 0 auto;
  max-width: 320px;
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--crimson-tint);
  color: var(--crimson-dark);
  border: 1px solid #f3c6cd;
  font-size: 13.5px;
  font-weight: 700;
}

/* ---- CTA primario ---- */
.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  margin: 22px 0 6px;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow-cta);
  transition: transform 0.06s ease, background 0.15s ease;
}

.cta-primary:active {
  transform: translateY(1px);
  background: var(--crimson-dark);
}

/* ---- Redes ---- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 4px;
}

.social-chip {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: transform 0.06s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-chip svg {
  width: 22px;
  height: 22px;
}

.social-chip:active {
  transform: translateY(1px);
}

.social-chip:hover {
  color: var(--crimson);
  border-color: #f3c6cd;
}

/* ---- Secciones ---- */
.section {
  margin-top: 30px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.section__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--crimson);
}

.section__more {
  font-size: 13px;
  font-weight: 700;
  color: var(--crimson);
  white-space: nowrap;
}

/* ---- Guías (lista vertical) ---- */
.guide-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  transition: transform 0.06s ease;
}

.guide-card:active {
  transform: scale(0.99);
}

.guide-card__thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
}

.guide-card__thumb--ph {
  background: var(--crimson-tint);
}

.guide-card__body {
  min-width: 0;
  flex: 1;
}

.guide-card__title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card__date {
  color: var(--muted);
  font-size: 12.5px;
  text-transform: capitalize;
}

.guide-card__chev {
  flex: 0 0 auto;
  color: var(--crimson);
  opacity: 0.85;
}

/* ---- Strips horizontales (reels + productos) ---- */
.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px;
  margin: 0 -2px;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.reel {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 128px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
}

.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.reel__play span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reel__play svg {
  width: 20px;
  height: 20px;
  color: var(--crimson);
  margin-left: 2px;
}

.reel__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 9px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Productos más vendidos ---- */
.product {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 148px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg);
}

.product__body {
  padding: 10px 12px 13px;
}

.product__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--crimson);
}

/* ---- Colecciones (grid 2 col) ---- */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.collection {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.collection img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--crimson-tint);
}

.collection__body {
  padding: 11px 13px 14px;
}

.collection__title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 3px;
}

.collection__meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Newsletter ---- */
.newsletter {
  margin-top: 30px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.newsletter__title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 4px;
}

.newsletter__sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 14px;
}

.newsletter__form {
  display: flex;
  gap: 8px;
}

.newsletter__form input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font: inherit;
  font-size: 16px;
}

.newsletter__form input:focus {
  outline: 2px solid var(--crimson);
  outline-offset: 1px;
  border-color: transparent;
}

.newsletter__form button {
  flex: 0 0 auto;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.newsletter__form button:active {
  background: var(--crimson-dark);
}

.newsletter__note {
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 700;
}

.newsletter__note--ok {
  color: #15803d;
}

.newsletter__note--err {
  color: var(--crimson-dark);
}

/* ---- Footer ---- */
.mini-footer {
  margin-top: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.mini-footer a {
  color: var(--muted);
  font-weight: 600;
}

.mini-footer a:hover {
  color: var(--text);
}

.mini-footer__legal {
  margin-top: 8px;
  opacity: 0.85;
}

/* ---- A11y / motion ---- */
:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

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