/* ════════════════════════════════════════════════════════════════════════
   CIFRA Marketing · la escena de la cabecera y las tres paletas (19-oct-2026)
   «De una foto a Instagram, y de una reseña a su respuesta»: el bar manda una foto por
   WhatsApp, le llega la historia con su letra, dice «sí» y sale publicada; entra una
   reseña de cinco estrellas y se contesta sola con la voz de la casa. La historia, la
   reseña y la respuesta son reales de Correlimos (con su permiso); la conversación es de
   ejemplo. El color, «Mandarina», lo eligió Eduardo el 19-oct en una maqueta de tres.
   ════════════════════════════════════════════════════════════════════════ */
.t-marketing .escena-viva { --esc-papel: #FFFFFF; --esc-tinta: #1A120D; --esc-tinta-2: #6A584B; --esc-linea: #EFE3D6; }

.t-marketing .escena-viva__caja { aspect-ratio: 1 / 1.14; }
.m-whats { left: 0; top: 0; width: 54%; z-index: 2; }
.m-whats .ventana__cab { background: #075E54; color: #FFFFFF; border: 0; }
.m-whats .ventana__cab small { color: #BFE6DF; }
.m-whats .ventana__cuerpo { min-height: 21em; padding: .8em; }
.m-foto { display: block; width: 7.6em; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .55em; }
.burbuja--yo.m-con-foto { padding: .3em .3em .45em; }
.m-propuesta { display: flex; gap: .6em; align-items: center; margin-top: .45em; }
.m-propuesta img { width: 3em; aspect-ratio: 9 / 16; object-fit: cover; border-radius: .35em; }
.m-propuesta span { display: grid; gap: .3em; font-size: .86em; }
.m-propuesta em { font-style: normal; padding: .25em .55em; border-radius: 999px; background: #E7F5EE; color: #126B41; font-size: .9em; justify-self: start; }

.m-historia { right: 0; top: 2%; width: 40%; aspect-ratio: 9 / 16; z-index: 1; border-radius: 1.3em; background: #14110C; }
.m-historia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-historia__barra { position: absolute; left: .7em; right: .7em; top: .6em; display: flex; gap: .25em; }
.m-historia__barra i { flex: 1; height: .18em; border-radius: 1em; background: rgb(255 255 255 / .45); overflow: hidden; }
.m-historia__barra i:first-child::after { content: ""; display: block; height: 100%; width: 0; background: #FFFFFF; }
.m-historia.on .m-historia__barra i:first-child::after { animation: barra-historia 6s linear forwards; }
@keyframes barra-historia { to { width: 100%; } }
.m-historia__quien { position: absolute; left: .7em; top: 1.3em; display: flex; align-items: center; gap: .45em; color: #FFFFFF; font-size: .78em; font-weight: 600; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.m-historia__quien i { width: 1.9em; height: 1.9em; border-radius: 50%; background: #F6F1E6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='16' y='36' width='7' height='16' rx='2.5' fill='%2315392A'/%3E%3Crect x='28.5' y='28' width='7' height='24' rx='2.5' fill='%2315392A'/%3E%3Crect x='41' y='18' width='7' height='34' rx='2.5' fill='%2315392A'/%3E%3C/svg%3E") center / 80% no-repeat; box-shadow: 0 0 0 .14em #E1306C; }
.m-publicada { right: 3%; top: 53%; z-index: 4; }

.m-resena { right: 0; bottom: 0; width: 62%; z-index: 3; }
.m-resena .ventana__cuerpo { display: grid; gap: .55em; font-size: .9em; line-height: 1.4; }
.m-estrellas { color: #F4B400; letter-spacing: .08em; font-size: 1.05em; }
.m-resena__de { display: flex; align-items: center; gap: .5em; font-weight: 600; }
.m-resena__de i { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: #5E35B1; color: #FFF; font-style: normal; font-size: .85em; }
.m-respuesta { padding: .6em .75em; border-radius: .7em; background: #F4F1EC; border-left: .22em solid #1E9D63; }
.m-respuesta b { display: block; margin-bottom: .2em; font-size: .86em; }
.m-sale-sola { left: 1%; bottom: 5%; z-index: 5; }

@container (max-width: 440px) {
  .t-marketing .escena-viva__caja { aspect-ratio: 1 / 1.5; font-size: 3.2cqw; }
  .m-whats { width: 62%; }
  .m-historia { width: 38%; }
  .m-resena { width: 94%; }
  .m-publicada { top: 44%; }
  .m-sale-sola { bottom: 30%; left: auto; right: 2%; }
}

/* ── Webs que hemos hecho: la web entera baja dentro de su ventana ───────── */
.webs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.web { margin: 0; display: grid; gap: 16px; align-content: start; }
.web__marco { border-radius: 16px; overflow: hidden; border: 1px solid var(--linea); background: var(--papel); box-shadow: var(--sombra); transition: transform .5s var(--suave), box-shadow .5s var(--suave); }
.web:hover .web__marco { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(26 18 13 / .06), 0 36px 60px -34px rgb(26 18 13 / .45); }
.web__barra { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--linea); font: 500 11.5px/1 var(--f-dato); color: var(--tinta-3); }
.web__barra i { width: 8px; height: 8px; border-radius: 50%; background: var(--linea-2); }
.web__barra span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web__vista { aspect-ratio: 3 / 4; overflow: hidden; background: var(--fondo-2); }
.web__vista img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: object-position 1.4s var(--suave); }
.web:hover .web__vista img, .web:focus-within .web__vista img { object-position: 50% 100%; transition: object-position 9s cubic-bezier(.45, 0, .55, 1); }
.web figcaption { display: grid; gap: 6px; font-size: 15px; color: var(--tinta-2); }
.web figcaption b { font: 600 19px/1.2 var(--f-titulo); letter-spacing: -0.02em; color: var(--tinta); }
.web figcaption a { justify-self: start; margin-top: 4px; font-weight: 600; color: var(--realce); text-decoration: none; }
.web figcaption a:hover { text-decoration: underline; }
.web figcaption em { font: 500 11.5px/1.4 var(--f-dato); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); margin-top: 4px; }
/* en una pantalla táctil no hay ratón: bajan solas mientras se ven */
@media (hover: none) { .web.visto .web__vista img { animation: rodar-web 16s cubic-bezier(.45, 0, .55, 1) .8s infinite alternate; } }
@keyframes rodar-web { 0%, 8% { object-position: 50% 0%; } 92%, 100% { object-position: 50% 100%; } }
@media (max-width: 1080px) { .webs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .webs { grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .web { scroll-snap-align: start; } }
@media (prefers-reduced-motion: reduce) { .web__vista img { transition: none !important; animation: none !important; } }
