/* ===== Colores de la marca (cámbialos aquí y cambia toda la página) ===== */
:root {
  --crema: #FBF6EC;      /* fondo */
  --tinta: #23233B;      /* texto y bordes */
  --menta: #2CB5A0;      /* color principal */
  --amarillo: #FFC843;   /* acento */
  --coral: #FF7B5C;      /* acento */
  --lila: #9B6BD1;       /* guiño al logo */
  --rosa: #FF7DBB;       /* el rosado del logo */
  --blanco: #FFFFFF;
  --gris: #5C5C73;
  --radio: 22px;
  --borde: 3px solid var(--tinta);
  --sombra: 6px 6px 0 var(--tinta);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--crema);
  color: var(--tinta);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .marca, .boton, .precio, .etiqueta {
  font-family: "Baloo 2", "Nunito", sans-serif;
  line-height: 1.05;
}

/* ===== Barra superior ===== */
.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(16px, 5vw, 56px);
  background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: var(--borde);
}
.marca { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; }
.marca img { border-radius: 50%; border: 2px solid var(--tinta); transition: transform .35s cubic-bezier(.3, 1.9, .5, 1); }
.marca:active img { transform: scale(1.2, .78); transition-duration: .08s; }
.barra nav { display: flex; align-items: center; gap: 18px; font-weight: 800; }

/* ===== Botones ===== */
.boton {
  display: inline-block;
  padding: 12px 26px;
  font-size: 1.1rem; font-weight: 800;
  background: var(--menta); color: var(--tinta);
  border: var(--borde); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--tinta);
  transition: transform .15s, box-shadow .15s;
}
.boton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tinta); }
.boton:active { transform: translate(3px, 3px) scale(.97, .93); box-shadow: 1px 1px 0 var(--tinta); }
.boton-claro { background: var(--blanco); }
.boton-amarillo { background: var(--amarillo); }
.boton-chico { padding: 6px 16px; font-size: 1rem; box-shadow: 3px 3px 0 var(--tinta); }

/* ===== Portada ===== */
.portada {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(168deg, #FFEAF5 0%, #FFD3E9 52%, #E6D8FF 100%);
}
/* Borde ondulado entre la portada y el catálogo */
.portada::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='26' viewBox='0 0 80 26'%3E%3Cpath d='M0 20C14 20 26 5 40 5S66 20 80 20V26H0Z' fill='%23FBF6EC'/%3E%3Cpath d='M0 20C14 20 26 5 40 5S66 20 80 20' fill='none' stroke='%2323233B' stroke-width='3'/%3E%3C/svg%3E") repeat-x left bottom / 80px 26px;
  pointer-events: none;
}
.portada-contenido {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: 32px;
  max-width: 1150px; margin: 0 auto;
  min-height: min(720px, calc(100svh - 68px));
  padding: clamp(28px, 6vw, 64px) clamp(16px, 5vw, 56px) clamp(56px, 8vw, 84px);
}

/* Fondo: puntitos, manchas suaves de color y figuritas */
.portada-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.portada-fondo::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(rgba(255, 255, 255, .8) 2.5px, transparent 3px) 0 0 / 34px 34px;
}
.nube {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 68%);
  animation: derivar 15s ease-in-out infinite alternate;
  transition: scale .7s cubic-bezier(.3, 1.6, .5, 1);
}
.nube-1 { --c: rgba(190, 150, 255, .5); width: 560px; height: 560px; top: -220px; left: -160px; }
.nube-2 { --c: rgba(255, 221, 120, .55); width: 420px; height: 420px; bottom: -170px; left: 24%; animation-duration: 19s; }
.nube-3 { --c: rgba(120, 225, 205, .45); width: 480px; height: 480px; top: -160px; right: -120px; animation-duration: 23s; }
.portada.apretando .nube { scale: 1.14; transition-duration: .25s; }
@keyframes derivar {
  from { transform: translate(-18px, -10px); }
  to { transform: translate(22px, 16px); }
}

.flotante {
  position: absolute; width: var(--t, 40px); height: var(--t, 40px);
  overflow: visible;
  stroke: var(--tinta); stroke-width: 2.4; stroke-linejoin: round;
  animation: flotar var(--d, 5s) ease-in-out infinite alternate;
  transition: translate .5s cubic-bezier(.3, 1.9, .5, 1), scale .5s cubic-bezier(.3, 1.9, .5, 1);
}
.corazon { fill: var(--rosa); }
.destello { fill: var(--amarillo); }
/* Al apretar el logo, las figuritas salen empujadas */
.portada.apretando .flotante { translate: var(--ex, 0) var(--ey, 0); scale: 1.25; transition-duration: .16s; }
@keyframes flotar {
  from { transform: translateY(-7px) rotate(var(--g, -9deg)); }
  to { transform: translateY(7px) rotate(calc(var(--g, -9deg) * -1)); }
}
.suelto-1 { --t: 34px; --d: 6s; --ex: -14px; --ey: 10px; left: 4%; bottom: 16%; }
.suelto-2 { --t: 30px; --d: 4.4s; --g: 12deg; --ex: -8px; --ey: -14px; left: 43%; top: 9%; }
.suelto-3 { --t: 24px; --d: 5.2s; --ex: 6px; --ey: 14px; left: 36%; bottom: 13%; }
.suelto-4 { --t: 26px; --d: 5.6s; --g: 14deg; --ex: 12px; --ey: -10px; right: 3%; top: 12%; }
.cerca-1 { --t: 54px; --d: 4.6s; --g: -14deg; --ex: -26px; --ey: -22px; top: 2%; left: -3%; }
.cerca-2 { --t: 44px; --d: 5.4s; --ex: -30px; --ey: 18px; bottom: 20%; left: -7%; }
.cerca-3 { --t: 40px; --d: 5s; --g: 12deg; --ex: 28px; --ey: 20px; bottom: 15%; right: -4%; }
.cerca-4 { --t: 30px; --d: 4.2s; --g: 16deg; --ex: 22px; --ey: -8px; top: 36%; right: -8%; }

/* Texto de la portada */
.portada-texto > * { animation: aparecer .6s cubic-bezier(.2, .8, .3, 1) both; }
.portada-texto > :nth-child(2) { animation-delay: .08s; }
.portada-texto > :nth-child(3) { animation-delay: .16s; }
.portada-texto > :nth-child(4) { animation-delay: .24s; }
@keyframes aparecer { from { opacity: 0; translate: 0 18px; } }

.sobretitulo {
  display: inline-block;
  padding: 4px 14px; margin-bottom: 18px;
  font-weight: 800; font-size: .9rem; letter-spacing: .04em;
  background: var(--amarillo); border: 2px solid var(--tinta); border-radius: 999px;
  rotate: -2deg;
}
h1 { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 800; }
/* Cada palabra del lema se enciende según lo que le hagan al logo */
.lema .palabra {
  display: block; width: fit-content;
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.3, 1.9, .5, 1), color .12s;
}
.resaltado, .lema .palabra.activa {
  -webkit-text-stroke: 4px var(--tinta); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--tinta);
}
.resaltado { color: var(--menta); }
.lema [data-paso="apachurra"].activa { color: var(--rosa); transform: scale(1.12, .7); transition-duration: .12s; }
.lema [data-paso="suelta"].activa { color: var(--amarillo); transform: scale(.93, 1.18); }
.lema [data-paso="repite"].activa { animation: menear .55s ease-in-out; }
@keyframes menear {
  25% { transform: rotate(-4deg) scale(1.08); }
  55% { transform: rotate(3deg) scale(1.04); }
  80% { transform: rotate(-1.5deg); }
}
.bajada { max-width: 34ch; margin: 20px 0 28px; font-size: 1.2rem; color: #4D4963; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== El logo apachurrable =====
   El dibujo lo hace logo-squishy.js sobre el <canvas>. El <button> redondo
   es la zona que se toca; la <img> queda de respaldo si algo falla. */
.portada-logo { position: relative; display: grid; justify-items: center; }
.squishy-marco { position: relative; z-index: 1; width: min(460px, 100%); aspect-ratio: 1; }
.squishy-marco::before {            /* resplandor detrás del logo */
  content: ""; position: absolute; inset: -22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .9) 30%, transparent 68%);
  pointer-events: none;
}
#lienzo-squishy {
  position: absolute; inset: -40%; width: 180%; height: 180%;
  pointer-events: none; opacity: 0;
}
.squishy-marco.listo #lienzo-squishy { opacity: 1; }
.squishy {
  position: absolute; inset: 0; padding: 0;
  background: none; border: 0; border-radius: 50%;
  cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.squishy:active { cursor: grabbing; }
.squishy:focus-visible { outline: 3px dashed var(--tinta); outline-offset: 8px; }
.squishy img {
  width: 100%; height: 100%; border-radius: 50%;
  border: var(--borde); box-shadow: var(--sombra);
  pointer-events: none;
  animation: squish 4s ease-in-out infinite;
}
.con-js .squishy img { opacity: 0; animation: none; }
/* Respaldo si el navegador no puede dibujar el logo deformable */
.squishy-marco.sin-webgl .squishy img { opacity: 1; transition: transform .5s cubic-bezier(.3, 2.2, .5, 1); }
.squishy-marco.sin-webgl.aplastado .squishy img { transform: scale(1.12, .8); transition-duration: .1s; }
@keyframes squish {
  0%, 100% { transform: scale(1, 1); }
  45% { transform: scale(1.04, .95); }
  60% { transform: scale(.97, 1.04); }
  75% { transform: scale(1.01, .99); }
}

/* Cartelito que invita a tocar */
.pista {
  display: none;
  position: absolute; z-index: 3; top: -2%; right: -9%;
  padding: 5px 16px 4px;
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: 1.3rem; line-height: 1.2;
  white-space: nowrap;
  background: var(--amarillo); border: var(--borde); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--tinta);
  pointer-events: none;
  animation: llamar 1s ease-in-out infinite;
  transition: scale .3s cubic-bezier(.6, -0.5, .7, 1), opacity .25s .05s;
}
.con-js .pista { display: block; }
.pista svg {
  position: absolute; top: 78%; left: 2%; width: 50px; height: 46px;
  stroke: var(--tinta); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
}
.pista.fuera { scale: 0; opacity: 0; }
@keyframes llamar {
  0%, 100% { transform: rotate(7deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.1); }
}

/* Contador y botón de sonido */
.tablero {
  display: none; position: relative; z-index: 3;
  align-items: center; justify-content: center; gap: 10px;
  margin-top: 26px;
}
.con-js .tablero { display: flex; }
.contador, .boton-sonido {
  background: var(--blanco); border: 2px solid var(--tinta);
  box-shadow: 3px 3px 0 var(--tinta);
}
.contador { padding: 6px 16px; font-weight: 800; font-size: .95rem; border-radius: 999px; }
.contador strong { font-family: "Baloo 2", "Nunito", sans-serif; font-size: 1.25em; line-height: 1; color: #E2468F; }
.contador .animo { color: var(--gris); }
.contador.salto { animation: salto .32s cubic-bezier(.3, 1.9, .5, 1); }
@keyframes salto { 30% { transform: scale(1.12, .86); } 60% { transform: scale(.96, 1.08); } }
.boton-sonido {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--tinta); border-radius: 50%; cursor: pointer;
  transition: transform .15s;
}
.boton-sonido:active { transform: translate(2px, 2px) scale(.94); }
.boton-sonido svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.boton-sonido .parlante { fill: currentColor; }
.boton-sonido .equis { display: none; }
.boton-sonido.apagado { background: #E9E4F0; }
.boton-sonido.apagado .ondas { display: none; }
.boton-sonido.apagado .equis { display: inline; }
/* Sonido prendido pero mudo (pasa en iPhone si solo se ha apretado el logo): el parlante salta y pide un toque */
.boton-sonido { position: relative; }
.boton-sonido.despertar { background: var(--amarillo); animation: despertar 1.4s ease-in-out infinite; }
.boton-sonido.despertar::after {
  content: "¡Tócame para oír!";
  position: absolute; bottom: calc(100% + 10px); left: -8px;
  white-space: nowrap; padding: 4px 12px;
  font: 800 .82rem "Nunito", sans-serif; color: var(--tinta);
  background: var(--blanco); border: 2px solid var(--tinta); border-radius: 999px;
  box-shadow: 2px 2px 0 var(--tinta); pointer-events: none;
}
@keyframes despertar {
  0%, 50%, 100% { transform: scale(1) rotate(0deg); }
  12% { transform: scale(1.16) rotate(-10deg); }
  24% { transform: scale(1.1) rotate(9deg); }
  36% { transform: scale(1.04) rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) { .boton-sonido.despertar { animation: none; } }

/* Cosas que aparecen al apretar: chispas, palabras y la onda */
.chispa, .grito, .onda, .toque { position: absolute; pointer-events: none; }
.chispa { z-index: 4; overflow: visible; stroke: var(--tinta); stroke-width: 2.6; stroke-linejoin: round; }
.grito {
  z-index: 5; white-space: nowrap;
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1;
  color: var(--color, var(--amarillo));
  -webkit-text-stroke: 5px var(--tinta); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--tinta);
}
.onda { inset: 0; z-index: -1; border-radius: 50%; border: var(--borde); }
.toque {
  z-index: 3; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); border: var(--borde);
}

/* ===== Catálogo ===== */
.catalogo {
  max-width: 1150px; margin: 0 auto;
  padding: 52px clamp(16px, 5vw, 56px) 72px;
}
.titulo-seccion { margin-bottom: 32px; }
.titulo-seccion h2, .cierre h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.titulo-seccion p { color: var(--gris); font-size: 1.1rem; margin-top: 6px; }

.grilla {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tarjeta {
  display: flex; flex-direction: column;
  background: var(--blanco);
  border: var(--borde); border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.tarjeta:hover { transform: scale(1.03, .98) rotate(-1deg); }
.tarjeta:nth-child(even):hover { transform: scale(1.03, .98) rotate(1deg); }
.tarjeta:active, .tarjeta:nth-child(even):active { transform: scale(1.04, .94); transition-duration: .08s; }

.foto { position: relative; aspect-ratio: 1; border-bottom: var(--borde); background: var(--crema); }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.etiqueta {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; font-weight: 800; font-size: .9rem;
  background: var(--amarillo);
  border: 2px solid var(--tinta); border-radius: 999px;
  transform: rotate(-4deg);
}
.tarjeta:nth-child(3n+2) .etiqueta { background: var(--coral); }
.tarjeta:nth-child(3n) .etiqueta { background: var(--lila); color: var(--blanco); }
.etiqueta.etiqueta-agotado { background: var(--tinta); color: var(--blanco); }
.tarjeta .etiqueta.etiqueta-ultimas { background: var(--rosa); color: var(--tinta); animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .tarjeta .etiqueta.etiqueta-ultimas { animation: none; } }
.precio .unidad { font-size: .95rem; font-weight: 600; color: var(--gris); }
.sin-productos { grid-column: 1 / -1; text-align: center; color: var(--gris); font-size: 1.1rem; }
.agotado .foto img { filter: grayscale(1); opacity: .6; }

.info { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 18px 18px; }
.info h3 { font-size: 1.4rem; font-weight: 800; }
.info p { color: var(--gris); }
.pie { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.precio { font-size: 1.6rem; font-weight: 800; }
.agotado .precio { color: var(--gris); text-decoration: line-through; }
.pedir {
  padding: 6px 14px; font-weight: 800;
  background: var(--menta);
  border: 2px solid var(--tinta); border-radius: 999px;
}
.pedir:hover { background: var(--amarillo); }

.pedir { display: inline-flex; align-items: center; gap: 6px; }
.pedir .icono { width: 1.15em; height: 1.15em; }

/* Íconos dentro de botones y enlaces */
.icono { width: 1.25em; height: 1.25em; flex: none; }
.boton .icono { vertical-align: -.22em; margin-right: 8px; }
.boton-grande { padding: 15px 30px; font-size: 1.25rem; }

/* ===== Videos de Instagram (reels) =====
   Antes de que cargue Instagram se ve la portada del video con un botón de play. */
.reel { position: relative; width: 100%; }
.reel .instagram-media { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; min-width: 0 !important; width: 100% !important; box-shadow: none !important; }
.reel iframe.instagram-media { background: var(--blanco) !important; border-radius: 16px !important; min-width: 300px !important; }
.reel-respaldo { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--tinta); }
.reel-respaldo img { width: 100%; height: 100%; object-fit: cover; }
.reel-play {
  position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; translate: -50% -50%;
  border-radius: 50%; background: rgba(255, 255, 255, .92); border: var(--borde);
  box-shadow: 4px 4px 0 var(--tinta); transition: scale .2s cubic-bezier(.3, 1.9, .5, 1);
}
.reel-play::after {
  content: ""; position: absolute; top: 50%; left: 54%; translate: -50% -50%;
  border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent var(--tinta);
}
.reel-respaldo:hover .reel-play { scale: 1.1; }
.reel-ver {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; white-space: nowrap;
  padding: 6px 16px; border-radius: 999px; border: 2px solid var(--tinta);
  background: var(--amarillo); font-weight: 800;
}

/* Sello que gira junto al video */
.sello {
  position: absolute; z-index: 2; top: -18px; right: -14px;
  padding: 6px 18px 4px; white-space: nowrap;
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.2;
  background: var(--amarillo); border: var(--borde); border-radius: 999px; box-shadow: 4px 4px 0 var(--tinta);
  rotate: 8deg; animation: llamar 1.4s ease-in-out infinite;
  pointer-events: none;
}
.sello-rosa { background: var(--rosa); }

/* ===== El favorito de la casa ===== */
.estrella { max-width: 1150px; margin: 0 auto; padding: 44px clamp(16px, 5vw, 56px) 8px; }
.estrella-tarjeta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr minmax(0, 380px); align-items: center; gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--blanco); border: var(--borde); border-radius: 32px; box-shadow: 8px 8px 0 var(--tinta);
}
.estrella-tarjeta::before {           /* manchita amarilla con puntitos detrás del video */
  content: ""; position: absolute; z-index: 0; right: -60px; top: -60px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(rgba(255, 255, 255, .7) 2.5px, transparent 3px) 0 0 / 26px 26px, var(--amarillo);
  opacity: .55; pointer-events: none;
}
.estrella-texto, .estrella-reel { position: relative; z-index: 1; }
.estrella-texto h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
.estrella-bajada { margin: 14px 0 18px; font-size: 1.2rem; color: #4D4963; max-width: 40ch; }
.estrella-puntos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.estrella-puntos li {
  padding: 5px 14px 5px 32px; position: relative;
  font-weight: 800; background: var(--crema); border: 2px solid var(--tinta); border-radius: 999px;
}
.estrella-puntos li::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; translate: 0 -50%;
  background: var(--rosa); border: 2px solid var(--tinta); border-radius: 50%;
}
.estrella-compra { display: grid; justify-items: start; gap: 4px; }
.estrella-nombre { font-weight: 800; color: var(--gris); }
.estrella-precio {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1;
}
.etiqueta-inline {
  padding: 4px 12px; font-size: .95rem; background: var(--rosa);
  border: 2px solid var(--tinta); border-radius: 999px; rotate: -3deg;
}
.estrella-reel .reel { border: var(--borde); border-radius: 20px; box-shadow: 6px 6px 0 var(--tinta); overflow: hidden; background: var(--blanco); }

/* ===== Instagram (cierre de la página) ===== */
.insta {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 40px;
  background: linear-gradient(150deg, #CDB0F7 0%, #FF9ACB 50%, #FFD36B 100%);
  border-top: var(--borde); border-bottom: var(--borde);
}
.insta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, .55) 2.5px, transparent 3px) 0 0 / 30px 30px;
}
/* Cinta que corre con textos */
.cinta { overflow: hidden; background: var(--tinta); color: var(--blanco); border-bottom: var(--borde); padding: 10px 0; }
.cinta-texto { display: flex; width: max-content; animation: correr 26s linear infinite; }
.cinta-texto span {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: 1.2rem; white-space: nowrap;
}
.cinta-texto span::after { content: "✦"; color: var(--amarillo); }
@keyframes correr { to { transform: translateX(-50%); } }

.insta-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.insta-f1 { --t: 60px; --d: 5s; left: 3%; top: 18%; }
.insta-f2 { --t: 44px; --d: 4.2s; --g: 14deg; left: 46%; top: 14%; }
.insta-f3 { --t: 38px; --d: 5.6s; --g: 10deg; left: 40%; bottom: 8%; }
.insta-f4 { --t: 54px; --d: 6s; right: 4%; bottom: 12%; }

.insta-contenido {
  display: grid; grid-template-columns: 1.15fr minmax(0, 360px); align-items: center; gap: clamp(32px, 6vw, 80px);
  max-width: 1150px; margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 56px);
}
.insta-perfil {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; margin-bottom: 22px;
  background: var(--blanco); border: var(--borde); border-radius: 999px; box-shadow: 4px 4px 0 var(--tinta);
  rotate: -2deg; transition: rotate .3s cubic-bezier(.3, 1.9, .5, 1);
}
.insta-perfil:hover { rotate: 1deg; }
.insta-perfil img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--tinta); }
.insta-perfil span { display: grid; line-height: 1.2; }
.insta-perfil b { font-size: 1.15rem; }
.insta-perfil small { color: var(--gris); font-weight: 700; }
.insta-texto h2 {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem); font-weight: 800; color: var(--blanco);
  -webkit-text-stroke: 5px var(--tinta); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--tinta);
}
.resaltado-insta { color: var(--amarillo); }
.insta-bajada { margin: 20px 0 28px; max-width: 38ch; font-size: 1.25rem; font-weight: 700; }

/* El celular con el video */
.insta-telefono { position: relative; justify-self: center; width: 100%; max-width: 360px; rotate: 2.5deg; }
.telefono {
  padding: 12px; background: var(--tinta);
  border: var(--borde); border-radius: 42px; box-shadow: 10px 10px 0 rgba(35, 35, 59, .35);
}
.telefono .reel { border-radius: 30px; overflow: hidden; background: var(--blanco); }
.telefono .reel-respaldo, .telefono iframe.instagram-media { border-radius: 30px !important; }

footer { text-align: center; padding: 26px 20px; font-weight: 600; }
.pie-enlaces { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 8px; font-weight: 800; }
.pie-enlaces a { display: inline-flex; align-items: center; gap: 6px; }
.pie-enlaces a:hover { color: #E2468F; }
footer .nota { font-size: .8rem; font-weight: 400; color: var(--gris); margin-top: 4px; }

/* ===== Botón flotante de WhatsApp ===== */
.whatsapp-flotante {
  position: fixed; z-index: 30;
  right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; min-width: 60px; padding: 0 22px 0 18px;
  background: #25D366; color: var(--tinta);
  border: var(--borde); border-radius: 999px; box-shadow: 4px 4px 0 var(--tinta);
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: 1.1rem;
  animation: entrar-flotante .5s 1s cubic-bezier(.3, 1.7, .5, 1) both;
  transition: transform .15s, box-shadow .15s;
}
.whatsapp-flotante:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tinta); }
.whatsapp-flotante:active { transform: translate(3px, 3px) scale(.95); box-shadow: 1px 1px 0 var(--tinta); }
.whatsapp-flotante .icono { width: 30px; height: 30px; animation: timbre 5s 3s ease-in-out infinite; }
/* Anillo que late alrededor para llamar la atención */
.whatsapp-flotante::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit;
  border: 3px solid #25D366; animation: anillo 2.4s 2s ease-out infinite; pointer-events: none;
}
/* Globito que aparece una sola vez y se va */
.whatsapp-globo {
  position: absolute; right: 0; bottom: calc(100% + 12px); white-space: nowrap;
  padding: 5px 14px 4px; font-size: 1rem;
  background: var(--amarillo); border: var(--borde); border-radius: 14px; box-shadow: 3px 3px 0 var(--tinta);
  opacity: 0; scale: 0; transform-origin: bottom right; pointer-events: none;
  animation: globo 6s 3.5s both;
}
.whatsapp-globo::after {
  content: ""; position: absolute; right: 20px; top: 100%; width: 12px; height: 12px; margin-top: -6px;
  background: var(--amarillo); border-right: var(--borde); border-bottom: var(--borde); rotate: 45deg;
}
@keyframes entrar-flotante { from { opacity: 0; scale: 0; rotate: -20deg; } }
@keyframes anillo { 0% { scale: 1; opacity: .8; } 70%, 100% { scale: 1.35; opacity: 0; } }
@keyframes timbre { 0%, 84%, 100% { rotate: 0deg; } 87% { rotate: -14deg; } 90% { rotate: 12deg; } 93% { rotate: -8deg; } 96% { rotate: 5deg; } }
@keyframes globo {
  0% { opacity: 0; scale: 0; }
  6%, 90% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: .6; }
}

/* ===== Celular ===== */
@media (max-width: 760px) {
  .portada-contenido { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding-top: 22px; text-align: center; }
  .portada-logo { order: -1; }
  .sobretitulo { margin-bottom: 12px; }
  .bajada { margin: 14px 0 22px; font-size: 1.1rem; }
  .squishy-marco { width: min(76vw, 330px); }
  .lema .palabra { margin-inline: auto; transform-origin: center; }
  .bajada { margin-inline: auto; }
  .acciones { justify-content: center; }
  .barra nav a:not(.boton) { display: none; }
  .pista { font-size: 1.1rem; right: -11%; }
  .tablero { margin-top: 20px; }
  .contador { font-size: .88rem; padding-inline: 13px; }
  .cerca-1 { --t: 40px; left: -9%; }
  .cerca-2 { --t: 32px; left: -12%; }
  .cerca-3 { --t: 30px; right: -10%; }
  .cerca-4 { --t: 24px; right: -13%; }
  .suelto-2, .suelto-3 { display: none; }
  .nube-1 { width: 380px; height: 380px; }
  .nube-3 { width: 320px; height: 320px; }

  .estrella { padding-top: 32px; }
  .estrella-tarjeta { grid-template-columns: 1fr; text-align: center; border-radius: 26px; box-shadow: 6px 6px 0 var(--tinta); }
  .estrella-tarjeta::before { right: -180px; top: auto; bottom: -120px; }
  .estrella-bajada { margin-inline: auto; font-size: 1.1rem; }
  .estrella-puntos { justify-content: center; }
  .estrella-compra { justify-items: center; }
  .estrella-precio { justify-content: center; }
  .estrella-reel { width: 100%; max-width: 360px; justify-self: center; }
  .sello { font-size: 1.15rem; right: -6px; }

  .insta-contenido { grid-template-columns: 1fr; text-align: center; }
  .insta-bajada { margin-inline: auto; font-size: 1.12rem; }
  .insta .acciones { justify-content: center; }
  .insta-telefono { rotate: 0deg; max-width: 340px; }
  .insta-f2, .insta-f3 { display: none; }

  /* En el celular el botón flotante es solo el círculo con el ícono */
  .whatsapp-flotante { width: 62px; height: 62px; padding: 0; }
  .whatsapp-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .insta-f1 { --t: 40px; top: 56%; left: -14px; }
  .insta-f4 { --t: 40px; bottom: 4%; right: -10px; }
}
@media (max-width: 420px) {
  .estrella-tarjeta { padding: 22px 14px; }
  .telefono { padding: 8px; border-radius: 34px; }
  .telefono .reel, .telefono .reel-respaldo, .telefono iframe.instagram-media { border-radius: 26px !important; }
  .boton-grande { padding: 13px 24px; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
