/* Verificador Infinity — estilo tipo Apple (limpio, tipografía de sistema) */

:root {
  /* Blanco estudio (mismo fondo que la foto del módulo) */
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --bg-dark: #111111;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e8ed;
  /* Rojo de marca (app) — solo acentos */
  --accent: #c62828;
  --accent-hover: #b71c1c;
  --max: 980px;
  --max-wide: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Evita pantalla blanca en Xiaomi/MIUI (modo oscuro forzado) */
  color-scheme: only light;
}

/* Transición suave entre páginas (Chrome/Edge) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.16s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

/* —— Nav (barra fina tipo Apple) —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Fondo sólido: backdrop-filter a veces deja la página en blanco en Chrome/Xiaomi */
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 48px;
  padding: 0;
  width: min(100% - 2rem, 1024px);
  margin-inline: auto;
  position: relative;
}

/* Hamburguesa: solo móvil */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  order: 2;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

html.nav-open .nav-toggle-bars {
  height: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
}

html.nav-open .nav-toggle-bars::before,
html.nav-open .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

html.nav-open .nav-toggle-bars::before {
  transform: rotate(45deg);
}

html.nav-open .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.8;
}

.brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-links a {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.88;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.nav-sep {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.nav-links .btn,
.nav-links a.btn,
.nav-links a.btn-red,
.nav-links a.btn-blue {
  font-size: 12px;
  padding: 0.4rem 0.9rem;
  opacity: 1;
  color: #ffffff !important;
  background: var(--accent);
}

.nav-links .btn:hover,
.nav-links a.btn:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
  text-decoration: none;
}

/* Auth derecha: correo | Iniciar sesión / Salir */
.nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-left: 0.15rem;
  order: 3;
}

.nav-links a.nav-pedidos {
  display: inline-block;
  min-width: 7.4rem;
  width: auto;
  text-align: center;
  font-weight: 600;
  color: var(--accent) !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.nav-links a.nav-pedidos.is-on,
html.nav-admin .nav-links a.nav-pedidos {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nav-links a.nav-pedidos[aria-current="page"]::after {
  background: var(--accent);
}

.nav-email {
  display: inline-block;
  min-width: 10.5rem;
  width: 10.5rem;
  max-width: 10.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  opacity: 0;
  visibility: hidden;
  flex-shrink: 0;
}

.nav-email.is-on,
html.nav-in .nav-email {
  opacity: 1;
  visibility: visible;
}

.btn-login .lbl-out {
  display: none;
}
html.nav-in .btn-login .lbl-in {
  display: none;
}
html.nav-in .btn-login .lbl-out {
  display: inline;
}

/* From Uiverse.io by ilkhoeri — Iniciar sesión / Salir */
.nav .btn-login,
.nav a.btn-login,
.nav button.btn-login {
  --h-button: 48px;
  --w-button: 102px;
  --round: 0.75rem;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s ease;
  background: radial-gradient(
      65.28% 65.28% at 50% 100%,
      rgba(239, 83, 80, 0.8) 0%,
      rgba(239, 83, 80, 0) 100%
    ),
    linear-gradient(0deg, #c62828, #c62828);
  border-radius: var(--round);
  border: none;
  outline: none;
  padding: 12px 18px;
  box-sizing: border-box;
  flex-shrink: 0;
  text-decoration: none !important;
  color: #fff;
  font-family: inherit;
  opacity: 1;
  min-width: 0;
  width: auto;
  height: auto;
  box-shadow: none;
  text-shadow: none;
}
.nav .btn-login::before,
.nav .btn-login::after {
  content: "";
  position: absolute;
  inset: var(--space);
  transition: all 0.5s ease-in-out;
  border-radius: calc(var(--round) - var(--space));
  z-index: 0;
}
.nav .btn-login::before {
  --space: 1px;
  background: linear-gradient(
    177.95deg,
    rgba(255, 255, 255, 0.19) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}
.nav .btn-login::after {
  --space: 2px;
  background: radial-gradient(
      65.28% 65.28% at 50% 100%,
      rgba(239, 83, 80, 0.8) 0%,
      rgba(239, 83, 80, 0) 100%
    ),
    linear-gradient(0deg, #c62828, #c62828);
}
.nav .btn-login:active {
  transform: scale(0.95);
}

.nav .btn-login .fold {
  z-index: 1;
  position: absolute;
  top: 0;
  right: 0;
  height: 1rem;
  width: 1rem;
  display: inline-block;
  transition: all 0.5s ease-in-out;
  background: radial-gradient(
    100% 75% at 55%,
    rgba(239, 83, 80, 0.8) 0%,
    rgba(239, 83, 80, 0) 100%
  );
  box-shadow: 0 0 3px black;
  border-bottom-left-radius: 0.5rem;
  border-top-right-radius: var(--round);
}
.nav .btn-login .fold::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150%;
  height: 150%;
  transform: rotate(45deg) translateX(0%) translateY(-18px);
  background-color: #e8e8e8;
  pointer-events: none;
}
.nav .btn-login:hover .fold {
  margin-top: -1rem;
  margin-right: -1rem;
}

.nav .btn-login .points_wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.nav .btn-login .points_wrapper .point {
  bottom: -10px;
  position: absolute;
  animation: floating-points infinite ease-in-out;
  pointer-events: none;
  width: 2px;
  height: 2px;
  background-color: #fff;
  border-radius: 9999px;
  font-style: normal;
}
@keyframes floating-points {
  0% {
    transform: translateY(0);
  }
  85% {
    opacity: 0;
  }
  100% {
    transform: translateY(-55px);
    opacity: 0;
  }
}
.nav .btn-login .points_wrapper .point:nth-child(1) {
  left: 10%;
  opacity: 1;
  animation-duration: 2.35s;
  animation-delay: 0.2s;
}
.nav .btn-login .points_wrapper .point:nth-child(2) {
  left: 30%;
  opacity: 0.7;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}
.nav .btn-login .points_wrapper .point:nth-child(3) {
  left: 25%;
  opacity: 0.8;
  animation-duration: 2.2s;
  animation-delay: 0.1s;
}
.nav .btn-login .points_wrapper .point:nth-child(4) {
  left: 44%;
  opacity: 0.6;
  animation-duration: 2.05s;
}
.nav .btn-login .points_wrapper .point:nth-child(5) {
  left: 50%;
  opacity: 1;
  animation-duration: 1.9s;
}
.nav .btn-login .points_wrapper .point:nth-child(6) {
  left: 75%;
  opacity: 0.5;
  animation-duration: 1.5s;
  animation-delay: 1.5s;
}
.nav .btn-login .points_wrapper .point:nth-child(7) {
  left: 88%;
  opacity: 0.9;
  animation-duration: 2.2s;
  animation-delay: 0.2s;
}
.nav .btn-login .points_wrapper .point:nth-child(8) {
  left: 58%;
  opacity: 0.8;
  animation-duration: 2.25s;
  animation-delay: 0.2s;
}
.nav .btn-login .points_wrapper .point:nth-child(9) {
  left: 98%;
  opacity: 0.6;
  animation-duration: 2.6s;
  animation-delay: 0.1s;
}
.nav .btn-login .points_wrapper .point:nth-child(10) {
  left: 65%;
  opacity: 1;
  animation-duration: 2.5s;
  animation-delay: 0.2s;
}

.nav .btn-login .inner {
  z-index: 2;
  gap: 6px;
  position: relative;
  width: 100%;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s ease-in-out;
  white-space: nowrap;
}

.nav .btn-login .inner svg.icon {
  width: 18px;
  height: 18px;
  transition: fill 0.1s linear;
}

.nav .btn-login:focus svg.icon {
  fill: white;
}
.nav .btn-login:hover svg.icon {
  fill: transparent;
  animation:
    dasharray 1s linear forwards,
    filled 0.1s linear forwards 0.95s;
}
@keyframes dasharray {
  from {
    stroke-dasharray: 0 0 0 0;
  }
  to {
    stroke-dasharray: 68 68 0 0;
  }
}
@keyframes filled {
  to {
    fill: white;
  }
}

/* Legacy línea-módulo: no compiten con .nav-auth */
.nav-user,
#btnRegister,
#btnLogin {
  display: none !important;
}

/* Botón Google estándar */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #3c4043;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.btn-google:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.install-grid {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin: 2rem auto 0;
  text-align: left;
}

.install-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  background: #fff;
}

.install-card h3 {
  margin: 0 0 0.35rem;
  font-size: 19px;
}

.install-card p {
  margin: 0 0 0.9rem;
  font-size: 14px;
  color: var(--muted);
}

.install-card .btn {
  font-size: 14px;
}

.install-card .soon {
  font-size: 12px;
  color: var(--muted);
}

.install-ext-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.install-ext-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.install-ext-head h3 {
  margin: 0 0 0.15rem;
}

.install-ext-tag {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--muted);
}

.install-how-title {
  margin: 0.85rem 0 0.35rem !important;
  font-size: 13px !important;
  font-weight: 650;
  color: #1d1d1f !important;
}

.install-steps {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.install-steps li {
  margin: 0.25rem 0;
}

/* —— Botones —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  border-radius: 980px;
  padding: 0.7rem 1.25rem;
  font-size: 17px;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-blue,
.btn-red {
  background: var(--accent);
  color: #ffffff !important;
}

.btn-blue:hover,
.btn-red:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
}

.btn-light {
  background: #fff;
  color: var(--accent);
}

.btn-light:hover {
  opacity: 0.9;
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  text-decoration: underline;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.1rem;
}

.link-row a {
  font-size: 17px;
}

.link-row a::after {
  content: " ›";
}

/* —— Showcase: módulo grande al inicio —— */
.showcase {
  background: var(--bg);
  padding: 1.25rem 0 0;
}

.showcase-figure {
  /* No agrandar más que la resolución real (1024px) → evita borrosidad */
  width: min(100%, 1024px);
  margin: 0 auto;
  padding: 0 0.75rem;
}

.showcase-figure img {
  width: 100%;
  height: auto;
  margin-inline: auto;
  image-rendering: auto;
  -webkit-user-drag: none;
}

/* —— Texto debajo del producto —— */
.hero {
  text-align: center;
  padding: 4.5rem 0 0;
  background: var(--bg);
}

.hero-below {
  padding: 1.5rem 0 3rem;
}

.hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.07;
}

.hero .subhead {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 0;
}

.hero-figure {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
  background: transparent;
}

.hero-figure img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* —— Secciones —— */
.tile {
  text-align: center;
  padding: 4rem 1.25rem 3.5rem;
}

.tile-alt {
  background: var(--bg-alt);
}

.tile-dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}

.tile-dark .subhead,
.tile-dark .muted {
  color: #a1a1a6;
}

.tile-dark a {
  color: #ff8a80;
}

.tile-dark .btn-light {
  color: var(--accent);
}

.tile h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tile .subhead {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  font-size: 21px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.3;
}

.tile-media {
  width: min(100%, 800px);
  margin: 2rem auto 0;
}

.tile-media img {
  width: 100%;
  border-radius: 18px;
}

.steps {
  display: grid;
  gap: 1.25rem;
  text-align: left;
  max-width: 960px;
  margin: 2.5rem auto 0;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
  }
  .steps::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 12%;
    right: 12%;
    border-top: 1.5px dashed rgba(0, 0, 0, 0.12);
    z-index: 0;
    pointer-events: none;
  }
}

.step {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.15rem 1.1rem 1.25rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.step-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: rgba(198, 40, 40, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.step-num {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* —— Membresía / planes —— */
.plans {
  display: grid;
  gap: 1rem;
  max-width: 980px;
  margin: 2rem auto 0;
  text-align: left;
}

@media (min-width: 860px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan.is-featured {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(198, 40, 40, 0.08);
}

.plan-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.plan h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan .price {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.plan .price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  font-size: 14px;
  color: var(--muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.plan li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text);
}

.plan .btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 15px;
}

.note {
  max-width: 640px;
  margin: 1.75rem auto 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* —— Modal —— */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.modal-bg.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  margin: 0 0 0.35rem;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal .sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 14px;
}

.summary {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 15px;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}

.modal-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

/* —— Legal —— */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal-page .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 15px;
}

.legal-page ul {
  padding-left: 1.15rem;
}

/* —— Footer —— */
.foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 12px;
  color: var(--muted);
}

.foot-inner {
  width: min(100% - 2rem, 1024px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.foot a {
  color: var(--muted);
}

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

/* —— Producto / tienda (estilo ficha e‑commerce) —— */
.store-body {
  background: #f2f2f2;
}

.store-page {
  padding: 1rem 0 3.5rem;
}

.store-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1rem;
}

.store-crumb a {
  color: var(--muted);
}

.store-crumb a:hover {
  color: var(--text);
}

/* Izquierda scroll + derecha tarjeta fija */
.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1rem;
  align-items: start;
}

.store-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.store-panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.store-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.store-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.store-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
}

.store-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.store-thumb.is-active {
  border-color: #111;
  border-width: 2px;
}

.store-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-main-img {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  z-index: 2;
}

.store-nav-prev {
  left: 10px;
}

.store-nav-next {
  right: 10px;
}

.store-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.store-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}

.store-dots span.is-active {
  background: var(--accent);
}

.store-info h1 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: left;
  color: #1a1a1a;
}

.store-sku {
  margin: 0;
  font-size: 12px;
  color: #8a8a8a;
}

.store-brand {
  margin: 0.35rem 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #6e6e73;
}

.store-sold {
  margin: 0 0 1.1rem;
  font-size: 13px;
  color: var(--muted);
}

.store-views {
  margin: -0.55rem 0 1.1rem;
  font-size: 13px;
  color: var(--muted);
}

.store-views strong {
  color: #1d1d1f;
  font-weight: 650;
}

.store-about h2 {
  margin: 0 0 0.55rem;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.store-about ul {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
}

.store-about li {
  margin-bottom: 0.4rem;
}

.store-more {
  font-size: 14px;
  font-weight: 500;
}

.buy-box {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.buy-box-sticky {
  position: sticky;
  top: 64px;
  z-index: 20;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.buy-tag {
  margin: 0 0 0.35rem;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
}

.buy-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.buy-price {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.1;
}

.buy-discount {
  font-size: 14px;
  font-weight: 700;
  color: #1b8f3a;
}

.buy-was {
  margin: 0.15rem 0 0.55rem;
  font-size: 14px;
  color: #8a8a8a;
}

.buy-was s {
  text-decoration: line-through;
}

.buy-include {
  margin: 0 0 0.85rem;
  font-size: 13px;
  color: var(--muted);
}

.buy-mp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #e8c4c4;
  border-radius: 8px;
  background: #fff5f5;
  margin-bottom: 0.35rem;
}

.buy-mp-text {
  font-size: 12px;
  color: #333;
  line-height: 1.35;
}

.buy-mp-logo {
  width: 108px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}

.btn-dark {
  background: #1d1d1f;
  color: #fff !important;
}

.btn-dark:hover {
  background: #000;
  color: #fff !important;
}

.buy-cta {
  width: 100%;
  margin-top: 0.55rem;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  min-height: 44px;
}

.buy-ship-block {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.buy-ship {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #eee;
}

.buy-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.buy-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.buy-hint {
  font-size: 11px;
  color: var(--muted);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.stepper-btn:hover {
  background: #f5f5f5;
}

.stepper-value {
  width: 42px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  -moz-appearance: textfield;
}

.stepper-value::-webkit-outer-spin-button,
.stepper-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buy-totals {
  border-top: 1px solid #eee;
  padding-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.buy-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 13px;
  color: var(--muted);
}

.buy-line.buy-total {
  margin-top: 0.2rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.store-ship {
  margin: 0;
  max-width: none;
}

.buy-card {
  border: 0;
  border-radius: 12px;
  padding: 1.35rem 1.25rem 1.45rem;
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.buy-card h2 {
  margin: 0 0 0.35rem;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}

.buy-lead {
  margin: 0 0 1.15rem;
  font-size: 14px;
  color: var(--muted);
}

.ship-form .field {
  margin-bottom: 0.85rem;
}

.ship-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.ship-form input,
.ship-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

.ship-form input:focus,
.ship-form select:focus {
  outline: 2px solid rgba(198, 40, 40, 0.25);
  border-color: var(--accent);
}

.payer-note {
  margin: -0.15rem 0 0.85rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.buy-form-hint {
  margin: 0.5rem 0 0.9rem;
  font-size: 13px;
  color: var(--muted);
}

.buy-alt {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.store-tabs {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.store-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.store-tab {
  border: 0;
  background: none;
  padding: 0.65rem 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.store-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.store-tab-panel {
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

.store-tab-panel p {
  margin: 0 0 0.75rem;
}

.store-tab-panel ul {
  margin: 0;
  padding-left: 1.15rem;
}

.store-tab-panel li {
  margin-bottom: 0.4rem;
}

.store-body .foot {
  background: #fff;
}

@media (max-width: 1100px) {
  .store-product-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .buy-box-sticky {
    position: static;
    max-height: none;
    order: -1;
  }

  .store-gallery {
    grid-template-columns: 1fr;
  }

  .store-thumbs {
    flex-direction: row;
    order: 2;
    max-height: none;
    overflow-x: auto;
  }

  .store-main-img {
    order: 1;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-inner {
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    min-height: 52px;
    padding: 0.35rem 0;
  }

  .nav .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Barra: logo | menú | Salir — sin amontonar enlaces */
  .nav-inner:has(.nav-toggle) .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0.15rem;
  }

  html.nav-open .nav-inner:has(.nav-toggle) .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 15px;
    font-weight: 500;
    opacity: 1;
    padding: 0.75rem 0.35rem;
    border-radius: 10px;
    color: var(--text);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
  }

  .nav-links a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .nav-links a.nav-pedidos {
    display: none;
    width: auto;
    min-width: 0;
    text-align: left;
    padding: 0.75rem 0.35rem;
  }

  .nav-links a.nav-pedidos.is-on,
  html.nav-admin .nav-links a.nav-pedidos {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-auth {
    order: 3;
    gap: 0.4rem;
    margin-left: 0;
  }

  .nav-auth .nav-sep {
    display: none;
  }

  .nav-email {
    display: none;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .buy-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .nav .brand {
    font-size: 12px;
    gap: 0.35rem;
  }
}

.yape-pay { margin-top: 0.5rem; text-align: center; }
.yape-pay-kicker { margin: 0 0 0.35rem; font-size: 13px; color: var(--muted); }
.yape-pay-amount { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.yape-pay-code { margin: 0.4rem 0 0.85rem; font-size: 15px; }
.yape-pay-qr-wrap { display: flex; justify-content: center; margin: 0 0 0.6rem; }
.yape-pay-qr {
  width: 220px; height: 220px; object-fit: contain;
  background: #fff; border-radius: 12px; border: 1px solid #eee;
}
.yape-pay-name { margin: 0; font-weight: 600; }
.yape-pay-phone { margin: 0.15rem 0 0.75rem; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; }
.yape-pay-hint, .yape-pay-legal { text-align: left; font-size: 12px; color: var(--muted); line-height: 1.45; }
.yape-pay-legal { margin: 0.65rem 0 0.85rem; }
.yape-done { text-align: center; padding: 0.5rem 0; }
.yape-done h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }

.yape-op-group.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 0.4rem;
}

.yape-op-group .input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  max-width: none;
  padding: 0 1rem;
  color: inherit;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #c62828;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background-color: transparent;
}

.yape-op-group .button--submit {
  position: relative;
  flex: 0 1 auto;
  min-height: 50px;
  padding: 0.5em 1em;
  border: none;
  border-radius: 0 6px 6px 0;
  background-color: #c62828;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  white-space: nowrap;
}

.yape-op-group .button--submit:hover:not(:disabled) {
  background-color: #b71c1c;
}

.yape-op-group .input:focus,
.yape-op-group .input:focus-visible {
  border-color: #ef9a9a;
  outline: none;
}

.yape-op-group .button--submit:disabled {
  cursor: wait;
  opacity: 0.92;
}

.yape-op-group .button--submit.is-loading .yape-btn-lbl {
  visibility: hidden;
}

.yape-btn-spin {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: yapeSpin 0.7s linear infinite;
}

.yape-op-group .button--submit.is-loading .yape-btn-spin {
  display: block;
}

@keyframes yapeSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .yape-op-group.input-group {
    flex-direction: column;
  }
  .yape-op-group .input,
  .yape-op-group .button--submit {
    width: 100%;
    border-radius: 6px;
    border-right: 1px solid #c62828;
  }
  .yape-op-group .button--submit {
    margin-top: 0.45rem;
  }
}
