/* Comercial al entrar al inicio: una tarjeta al centro, se cierra con la × o sola a los 5 segundos. */
.cm { position: fixed; inset: 0; margin: auto; height: fit-content; --cm-cafe: #221a14; --cm-crema: #f7efe8; --cm-rojo: #E62026; --cm-vino: #8a1316; --cm-serif: "Cormorant Garamond", Georgia, serif; width: min(calc(100% - 32px), 420px); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 22px; background: var(--cm-crema); color: var(--cm-cafe); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.cm::backdrop { background: rgba(34, 26, 20, .55); }
.cm[open] { animation: cm-entra .35s cubic-bezier(.22, .8, .2, 1); }
@keyframes cm-entra { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.cm-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cm-visual-oscuro { padding: 14px 14px 0; background: #0b0b0b; }
.cm-visual-oscuro img { aspect-ratio: auto; border-radius: 12px 12px 0 0; }
.cm-cuerpo { padding: 16px 18px 22px; }
.cm-solo-texto { padding: 60px 22px 28px; }
.cm-sello { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 8px; background: var(--cm-cafe); color: var(--cm-crema); font-size: .75rem; font-weight: 800; }
.cm h2 { margin: 0; font-family: var(--cm-serif); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--cm-cafe); }
.cm-solo-texto h2 { font-style: italic; font-size: clamp(2.4rem, 9vw, 3rem); line-height: .95; }
.cm p { margin: 6px 0 0; color: rgba(34, 26, 20, .8); font-size: .95rem; line-height: 1.45; }
.cm .cm-precio { margin-top: 10px; font-family: var(--cm-serif); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--cm-vino); }
.cm-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; border-radius: 12px; background: var(--cm-rojo); color: #fff; font-weight: 800; text-decoration: none; }
.cm-btn:hover { background: #c81a1f; }
.cm-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(247, 239, 232, .92); color: var(--cm-cafe); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cm-btn:focus-visible, .cm-x:focus-visible { outline: 2px solid var(--cm-rojo); outline-offset: 2px; }
.cm-barra { position: sticky; bottom: 0; height: 4px; background: rgba(34, 26, 20, .1); }
.cm-barra i { display: block; height: 100%; background: var(--cm-rojo); transform-origin: left; }
.cm-barra i.cm-corre { animation: cm-baja 5s linear forwards; }
@media (hover: hover) { .cm:hover .cm-barra i { animation-play-state: paused; } }
@keyframes cm-baja { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .cm[open] { animation: none; } }
