/* SnackFit · página en construcción */
:root {
  --crema: #F7F5EE;
  --blanco: #FFFFFF;
  --verde: #1F7A4D;
  --verde-claro: #2E9E64;
  --menta: #CDEBD9;
  --naranja: #F28C38;
  --naranja-suave: #FDE6D2;
  --texto: #1E2A23;
  --texto-suave: #55635A;
  --borde: rgba(30, 42, 35, .10);
  --sombra: 0 18px 40px -18px rgba(31, 122, 77, .35);
  --radio: 22px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--crema);
  color: var(--texto);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

.contenedor {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fondo con manchas suaves */
.fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mancha { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.mancha--verde { width: 420px; height: 420px; background: var(--menta); top: -120px; right: -80px; }
.mancha--naranja { width: 340px; height: 340px; background: var(--naranja-suave); bottom: -100px; left: -100px; }
.mancha--menta { width: 220px; height: 220px; background: #E6F4EC; top: 45%; left: 40%; }

/* Cabecera */
.cabecera { padding: 22px 0 6px; }
.logo { display: inline-block; }
.logo img { width: 190px; height: auto; }

/* Portada */
.portada {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding-top: 28px;
  padding-bottom: 48px;
}

.aviso {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  color: var(--verde);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
}
.aviso__punto {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--naranja);
  box-shadow: 0 0 0 0 rgba(242, 140, 56, .6);
  animation: latido 1.8s ease-out infinite;
}
@keyframes latido {
  0% { box-shadow: 0 0 0 0 rgba(242, 140, 56, .55); }
  100% { box-shadow: 0 0 0 10px rgba(242, 140, 56, 0); }
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.02em;
}
.resalta {
  color: var(--verde);
  background: linear-gradient(transparent 62%, var(--naranja-suave) 62%);
  padding: 0 .08em;
}

.bajada {
  margin: 0 0 22px;
  max-width: 34em;
  color: var(--texto-suave);
  font-size: clamp(17px, 1.6vw, 19px);
}

.etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.etiquetas li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  font-weight: 700;
  font-size: 15px;
}
.etiquetas li:nth-child(odd) { background: var(--menta); border-color: transparent; color: #145236; }
.etiquetas li:nth-child(even) { background: var(--naranja-suave); border-color: transparent; color: #8A4510; }

/* Barra de avance */
.avance { max-width: 380px; margin: 0 0 28px; }
.avance__texto {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--texto-suave);
}
.avance__texto b { color: var(--verde); }
.avance__barra {
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 122, 77, .12);
  overflow: hidden;
}
.avance__relleno {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--verde-claro), var(--naranja));
  transition: width 1.4s cubic-bezier(.22, 1, .36, 1);
}

/* Botón */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--verde);
  color: var(--blanco);
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 17px);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sombra);
  transition: transform .2s ease, background .2s ease;
}
.boton svg { width: 22px; height: 22px; flex: none; }
.boton:hover { background: #18633E; transform: translateY(-2px); }
.boton:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }

/* Foto de la primera compra */
.portada__foto { margin: 0; }
.foto {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--blanco);
  box-shadow: 0 30px 60px -28px rgba(30, 42, 35, .45);
  transform: rotate(1.5deg);
  aspect-ratio: 1 / 1;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto__sello {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  background: var(--blanco);
  color: var(--texto);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35);
}
.foto__sello svg {
  width: 24px; height: 24px; padding: 4px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
}
.portada__foto figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--texto-suave);
}

/* Pie */
.pie {
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--borde);
  font-size: 13.5px;
  color: var(--texto-suave);
}
.pie__fila {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px 24px;
}
.pie address { font-style: normal; }
.pie b { color: var(--texto); }

/* Móvil */
@media (max-width: 860px) {
  .portada {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 14px;
    padding-bottom: 36px;
    text-align: center;
  }
  .bajada { margin-left: auto; margin-right: auto; }
  .etiquetas { justify-content: center; }
  .avance { margin-left: auto; margin-right: auto; }
  .cabecera .contenedor { text-align: center; }
  .logo img { width: 160px; margin: 0 auto; }
  .portada__foto { max-width: 440px; margin: 0 auto; width: 100%; }
  .foto { transform: none; }
  .pie__fila { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 400px) {
  .contenedor { padding: 0 16px; }
  .boton { width: 100%; padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .aviso__punto { animation: none; }
  .avance__relleno, .boton { transition: none; }
}
