/* Miniaturas de las plantillas (escena con tarjeta y sobre). Las usan la galería y las páginas por tipo de evento. */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.grid form { margin: 0; }
a.tpl { text-decoration: none; }
.tpl { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; gap: 4px; }
.scene { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.4; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea); }
.tpl:hover .scene { box-shadow: 0 0 0 1px var(--tinta-suave); }
.mini-card { position: absolute; left: 22%; top: 6%; width: 56%; aspect-ratio: 5 / 7; background: #FFFEFB; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 18px -8px rgba(0,0,0,.45);
  display: flex; flex-direction: column; align-items: center; padding: 9% 8% 0; text-align: center; transform: rotate(-2deg); gap: 3px; }
.mini-card small { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: #6B5E64; font-weight: 600; }
.mini-card b { font-family: var(--fdn, var(--fd)); font-weight: var(--fdw, 400); letter-spacing: var(--fdt, normal); text-transform: var(--fdu, none); font-size: calc(21px * var(--fds, 1)); line-height: 1.05; color: #2A2226; }
.mini-card i { font-style: normal; font-size: 9px; color: var(--ac); }
.mini-env { position: absolute; left: 12%; right: 12%; bottom: -13%; transform: rotate(2deg); }
.mini-env .envelope { cursor: inherit; }
.tpl-name { font-family: "Newsreader", Georgia, serif; font-size: 19px; margin-top: 8px; }
.tpl-cta { font-size: 13px; color: var(--vino); font-weight: 600; }
/* "Usa tu propio diseño": una tarjeta en blanco con línea punteada, como un espacio para la suya. */
.own-scene { display: grid; place-items: center; background: #EFE9E1; }
.own-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 46%; aspect-ratio: 5 / 7; background: #FFFDF8;
  outline: 1.5px dashed #B9AAA0; outline-offset: -10px; box-shadow: 0 8px 18px -8px rgba(40, 30, 25, .35); }
.own-card span { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 20px; color: var(--tinta, #2A2226); }
.own-card small { font-size: 12px; color: var(--tinta-suave, #6B5E64); }
/* Miniatura con papel real, lámina de olivo y orilla rasgada (mismas imágenes que la invitación). */
.mini-card { background: #FFFDF8 url("/img/papel-liso.webp") 0 0 / 160px; background-blend-mode: multiply; overflow: hidden; }
.mini-card > * { position: relative; z-index: 1; }
.mini-card.orn-olivo::before { content: ""; position: absolute; z-index: 0; width: 70%; aspect-ratio: 900 / 1018; top: -16%; left: -26%; transform: rotate(-28deg);
  background: url("/img/lamina-olivo.webp") center / contain no-repeat; mix-blend-mode: multiply; pointer-events: none; }
.mini-card.edge-rasgado { clip-path: polygon(0 1%, 8% 0, 17% 1.2%, 29% .2%, 41% 1%, 55% 0, 68% .9%, 80% .1%, 92% 1%, 100% .3%, 99.2% 12%, 100% 26%, 99.3% 41%, 100% 57%, 99.1% 72%, 100% 88%, 99.4% 100%, 85% 99.2%, 70% 100%, 56% 99.1%, 40% 100%, 26% 99.3%, 12% 100%, 0 99.2%, .8% 85%, 0 70%, .9% 54%, 0 38%, .7% 22%, 0 9%); }
.mini-card.orn-rosas::before, .mini-card.orn-lavanda::before { content: ""; position: absolute; z-index: 0; pointer-events: none; mix-blend-mode: multiply; background: center / contain no-repeat; }
.mini-card.orn-rosas::before { width: 50%; aspect-ratio: 900 / 1131; top: -32%; left: -18%; transform: rotate(138deg); background-image: url("/img/lamina-rosa.webp"); }
.mini-card.orn-lavanda::before { width: 26%; aspect-ratio: 700 / 1682; top: -30%; left: 4%; transform: rotate(150deg); background-image: url("/img/lamina-lavanda.webp"); }
.mini-card.orn-azahar::before { content: ""; position: absolute; z-index: 0; pointer-events: none; mix-blend-mode: multiply; width: 66%; aspect-ratio: 900 / 842; top: -14%; left: -24%; transform: rotate(-18deg); background: url("/img/lamina-azahar.webp") center / contain no-repeat; }
.mini-card.orn-deco::before { content: ""; position: absolute; inset: 5px; z-index: 0; pointer-events: none; border: 1px solid #A9823F; outline: .6px solid #A9823F; outline-offset: -4px; }
.mini-card.orn-picado { padding-top: 24%; }
.mini-card.orn-picado::before { content: ""; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 22px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='206' height='64' viewBox='0 0 206 64'%3E%3Cpath d='M0 8 Q51 12 103 8 T206 8' fill='none' stroke='%236B5E54' stroke-width='1'/%3E%3Cpath fill='%23B8664A' fill-rule='evenodd' d='M6 9H46V54l-5 6l-5 -6l-5 6l-5 -6l-5 6l-5 -6l-5 6l-5 -6ZM23.4 31.0a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0M31.1 31.0a2.3 2.3 0 1 0 4.6 0a2.3 2.3 0 1 0 -4.6 0M27.4 37.4a2.3 2.3 0 1 0 4.6 0a2.3 2.3 0 1 0 -4.6 0M20.0 37.4a2.3 2.3 0 1 0 4.6 0a2.3 2.3 0 1 0 -4.6 0M16.3 31.0a2.3 2.3 0 1 0 4.6 0a2.3 2.3 0 1 0 -4.6 0M20.0 24.6a2.3 2.3 0 1 0 4.6 0a2.3 2.3 0 1 0 -4.6 0M27.4 24.6a2.3 2.3 0 1 0 4.6 0a2.3 2.3 0 1 0 -4.6 0M13 14.4l2.6 2.6l-2.6 2.6l-2.6 -2.6zM39 14.4l2.6 2.6l-2.6 2.6l-2.6 -2.6zM13 42.4l2.6 2.6l-2.6 2.6l-2.6 -2.6zM39 42.4l2.6 2.6l-2.6 2.6l-2.6 -2.6zM13.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.8 0M19.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.8 0M25.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.8 0M31.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.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0 1 0 -4.6 0M177.4 24.6a2.3 2.3 0 1 0 4.6 0a2.3 2.3 0 1 0 -4.6 0M163 14.4l2.6 2.6l-2.6 2.6l-2.6 -2.6zM189 14.4l2.6 2.6l-2.6 2.6l-2.6 -2.6zM163 42.4l2.6 2.6l-2.6 2.6l-2.6 -2.6zM189 42.4l2.6 2.6l-2.6 2.6l-2.6 -2.6zM163.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.8 0M169.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.8 0M175.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.8 0M181.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.8 0M187.1 12.5a0.9 0.9 0 1 0 1.8 0a0.9 0.9 0 1 0 -1.8 0'/%3E%3C/svg%3E") center top / 70px 22px repeat-x; }
.mini-card.orn-luna { padding-top: 30%; }
.mini-card.orn-luna::before { content: ""; position: absolute; z-index: 0; top: 5%; left: 15%; width: 70%; height: 22%; pointer-events: none; background: #8E96A3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='312' height='124' viewBox='0 0 312 124'%3E%3Cg fill='%23000'%3E%3Cmask id='m'%3E%3Crect width='312' height='124' fill='%23fff'/%3E%3Ccircle cx='174' cy='52' r='30' fill='%23000'/%3E%3C/mask%3E%3Ccircle cx='160' cy='62' r='32' mask='url(%23m)'/%3E%3Cpath d='M70 33C71.26 38.74 71.26 38.74 77 40C71.26 41.26 71.26 41.26 70 47C68.74 41.26 68.74 41.26 63 40C68.74 38.74 68.74 38.74 70 33Z'/%3E%3Cpath d='M118 66C118.72 69.28 118.72 69.28 122 70C118.72 70.72 118.72 70.72 118 74C117.28 70.72 117.28 70.72 114 70C117.28 69.28 117.28 69.28 118 66Z'/%3E%3Cpath d='M44 88.8C44.576 91.424 44.576 91.424 47.2 92C44.576 92.576 44.576 92.576 44 95.2C43.424 92.576 43.424 92.576 40.8 92C43.424 91.424 43.424 91.424 44 88.8Z'/%3E%3Cpath d='M232 22C233.44 28.56 233.44 28.56 240 30C233.44 31.44 233.44 31.44 232 38C230.56 31.44 230.56 31.44 224 30C230.56 28.56 230.56 28.56 232 22Z'/%3E%3Cpath d='M262 69.6C262.792 73.208 262.792 73.208 266.4 74C262.792 74.792 262.792 74.792 262 78.4C261.208 74.792 261.208 74.792 257.6 74C261.208 73.208 261.208 73.208 262 69.6Z'/%3E%3Cpath d='M196 93C196.54 95.46 196.54 95.46 199 96C196.54 96.54 196.54 96.54 196 99C195.46 96.54 195.46 96.54 193 96C195.46 95.46 195.46 95.46 196 93Z'/%3E%3Cpath d='M150 18.6C150.612 21.388 150.612 21.388 153.4 22C150.612 22.612 150.612 22.612 150 25.4C149.388 22.612 149.388 22.612 146.6 22C149.388 21.388 149.388 21.388 150 18.6Z'/%3E%3Cpath d='M292 37.4C292.468 39.532 292.468 39.532 294.6 40C292.468 40.468 292.468 40.468 292 42.6C291.532 40.468 291.532 40.468 289.4 40C291.532 39.532 291.532 39.532 292 37.4Z'/%3E%3Cpath d='M20 55.4C20.468 57.532 20.468 57.532 22.6 58C20.468 58.468 20.468 58.468 20 60.6C19.532 58.468 19.532 58.468 17.4 58C19.532 57.532 19.532 57.532 20 55.4Z'/%3E%3Ccircle cx='96' cy='30' r='1.2'/%3E%3Ccircle cx='140' cy='92' r='1'/%3E%3Ccircle cx='212' cy='62' r='1.3'/%3E%3Ccircle cx='250' cy='108' r='1'/%3E%3Ccircle cx='30' cy='26' r='1'/%3E%3Ccircle cx='282' cy='96' r='1.1'/%3E%3Ccircle cx='80' cy='110' r='0.9'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='312' height='124' viewBox='0 0 312 124'%3E%3Cg fill='%23000'%3E%3Cmask id='m'%3E%3Crect width='312' height='124' fill='%23fff'/%3E%3Ccircle cx='174' cy='52' r='30' fill='%23000'/%3E%3C/mask%3E%3Ccircle cx='160' cy='62' r='32' mask='url(%23m)'/%3E%3Cpath d='M70 33C71.26 38.74 71.26 38.74 77 40C71.26 41.26 71.26 41.26 70 47C68.74 41.26 68.74 41.26 63 40C68.74 38.74 68.74 38.74 70 33Z'/%3E%3Cpath d='M118 66C118.72 69.28 118.72 69.28 122 70C118.72 70.72 118.72 70.72 118 74C117.28 70.72 117.28 70.72 114 70C117.28 69.28 117.28 69.28 118 66Z'/%3E%3Cpath d='M44 88.8C44.576 91.424 44.576 91.424 47.2 92C44.576 92.576 44.576 92.576 44 95.2C43.424 92.576 43.424 92.576 40.8 92C43.424 91.424 43.424 91.424 44 88.8Z'/%3E%3Cpath d='M232 22C233.44 28.56 233.44 28.56 240 30C233.44 31.44 233.44 31.44 232 38C230.56 31.44 230.56 31.44 224 30C230.56 28.56 230.56 28.56 232 22Z'/%3E%3Cpath d='M262 69.6C262.792 73.208 262.792 73.208 266.4 74C262.792 74.792 262.792 74.792 262 78.4C261.208 74.792 261.208 74.792 257.6 74C261.208 73.208 261.208 73.208 262 69.6Z'/%3E%3Cpath d='M196 93C196.54 95.46 196.54 95.46 199 96C196.54 96.54 196.54 96.54 196 99C195.46 96.54 195.46 96.54 193 96C195.46 95.46 195.46 95.46 196 93Z'/%3E%3Cpath d='M150 18.6C150.612 21.388 150.612 21.388 153.4 22C150.612 22.612 150.612 22.612 150 25.4C149.388 22.612 149.388 22.612 146.6 22C149.388 21.388 149.388 21.388 150 18.6Z'/%3E%3Cpath d='M292 37.4C292.468 39.532 292.468 39.532 294.6 40C292.468 40.468 292.468 40.468 292 42.6C291.532 40.468 291.532 40.468 289.4 40C291.532 39.532 291.532 39.532 292 37.4Z'/%3E%3Cpath d='M20 55.4C20.468 57.532 20.468 57.532 22.6 58C20.468 58.468 20.468 58.468 20 60.6C19.532 58.468 19.532 58.468 17.4 58C19.532 57.532 19.532 57.532 20 55.4Z'/%3E%3Ccircle cx='96' cy='30' r='1.2'/%3E%3Ccircle cx='140' cy='92' r='1'/%3E%3Ccircle cx='212' cy='62' r='1.3'/%3E%3Ccircle cx='250' cy='108' r='1'/%3E%3Ccircle cx='30' cy='26' r='1'/%3E%3Ccircle cx='282' cy='96' r='1.1'/%3E%3Ccircle cx='80' cy='110' r='0.9'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.mini-card.orn-esquinas::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cdefs%3E%3Cpattern id='g' width='23' height='23' patternUnits='userSpaceOnUse'%3E%3Crect width='23' height='23' fill='%23B8944F'/%3E%3Ccircle cx='0.0' cy='21.2' r='0.8' fill='%23E2C77F'/%3E%3Ccircle cx='16.8' cy='12.3' r='0.9' fill='%23A9823F'/%3E%3Ccircle cx='17.4' cy='12.5' r='1.3' fill='%23A9823F'/%3E%3Ccircle cx='18.8' cy='5.6' r='0.9' fill='%23A9823F'/%3E%3Ccircle cx='16.1' cy='1.2' r='1.3' fill='%23C9A45A'/%3E%3Ccircle cx='21.2' cy='18.6' r='0.6' fill='%23C9A45A'/%3E%3Ccircle cx='21.2' cy='15.8' r='1.3' fill='%23C9A45A'/%3E%3Ccircle cx='21.0' cy='20.9' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='19.3' cy='7.6' r='0.7' fill='%23E2C77F'/%3E%3Ccircle cx='9.9' cy='6.8' r='1.6' fill='%23C9A45A'/%3E%3Ccircle cx='16.8' cy='20.2' r='0.6' fill='%23E2C77F'/%3E%3Ccircle cx='12.9' cy='11.7' r='1.0' fill='%23F4E6BE'/%3E%3Ccircle cx='20.9' cy='1.3' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='15.3' cy='21.3' r='1.1' fill='%23F4E6BE'/%3E%3Ccircle cx='9.3' cy='6.5' r='0.9' fill='%23C9A45A'/%3E%3Ccircle cx='7.6' cy='12.2' r='1.2' fill='%23E2C77F'/%3E%3Ccircle cx='20.8' cy='10.5' r='1.5' fill='%23A9823F'/%3E%3Ccircle cx='14.6' cy='11.9' r='1.1' fill='%23A9823F'/%3E%3Ccircle cx='21.6' cy='9.1' r='1.3' fill='%23E2C77F'/%3E%3Ccircle cx='13.5' cy='8.1' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='18.3' cy='20.2' r='0.6' fill='%238C6A2E'/%3E%3Ccircle cx='1.8' cy='9.4' r='0.7' fill='%23F4E6BE'/%3E%3Ccircle cx='22.9' cy='5.1' r='1.3' fill='%23F4E6BE'/%3E%3Ccircle cx='10.5' cy='13.6' r='0.7' fill='%238C6A2E'/%3E%3Ccircle cx='20.3' cy='20.5' r='1.6' fill='%238C6A2E'/%3E%3Ccircle cx='17.5' cy='6.3' r='0.5' fill='%23E2C77F'/%3E%3C/pattern%3E%3C/defs%3E%3Cg transform=''%3E%3Cpath d='M0 0H127L0 127Z' fill='url(%23g)'/%3E%3Cpath d='M0 0H110L0 110Z' fill='%231E1B1C'/%3E%3C/g%3E%3C/svg%3E") top left / 44px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cdefs%3E%3Cpattern id='g' width='23' height='23' patternUnits='userSpaceOnUse'%3E%3Crect width='23' height='23' fill='%23B8944F'/%3E%3Ccircle cx='0.0' cy='21.2' r='0.8' fill='%23E2C77F'/%3E%3Ccircle cx='16.8' cy='12.3' r='0.9' fill='%23A9823F'/%3E%3Ccircle cx='17.4' cy='12.5' r='1.3' fill='%23A9823F'/%3E%3Ccircle cx='18.8' cy='5.6' r='0.9' fill='%23A9823F'/%3E%3Ccircle cx='16.1' cy='1.2' r='1.3' fill='%23C9A45A'/%3E%3Ccircle cx='21.2' cy='18.6' r='0.6' fill='%23C9A45A'/%3E%3Ccircle cx='21.2' cy='15.8' r='1.3' fill='%23C9A45A'/%3E%3Ccircle cx='21.0' cy='20.9' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='19.3' cy='7.6' r='0.7' fill='%23E2C77F'/%3E%3Ccircle cx='9.9' cy='6.8' r='1.6' fill='%23C9A45A'/%3E%3Ccircle cx='16.8' cy='20.2' r='0.6' fill='%23E2C77F'/%3E%3Ccircle cx='12.9' cy='11.7' r='1.0' fill='%23F4E6BE'/%3E%3Ccircle cx='20.9' cy='1.3' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='15.3' cy='21.3' r='1.1' fill='%23F4E6BE'/%3E%3Ccircle cx='9.3' cy='6.5' r='0.9' fill='%23C9A45A'/%3E%3Ccircle cx='7.6' cy='12.2' r='1.2' fill='%23E2C77F'/%3E%3Ccircle cx='20.8' cy='10.5' r='1.5' fill='%23A9823F'/%3E%3Ccircle cx='14.6' cy='11.9' r='1.1' fill='%23A9823F'/%3E%3Ccircle cx='21.6' cy='9.1' r='1.3' fill='%23E2C77F'/%3E%3Ccircle cx='13.5' cy='8.1' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='18.3' cy='20.2' r='0.6' fill='%238C6A2E'/%3E%3Ccircle cx='1.8' cy='9.4' r='0.7' fill='%23F4E6BE'/%3E%3Ccircle cx='22.9' cy='5.1' r='1.3' fill='%23F4E6BE'/%3E%3Ccircle cx='10.5' cy='13.6' r='0.7' fill='%238C6A2E'/%3E%3Ccircle cx='20.3' cy='20.5' r='1.6' fill='%238C6A2E'/%3E%3Ccircle cx='17.5' cy='6.3' r='0.5' fill='%23E2C77F'/%3E%3C/pattern%3E%3C/defs%3E%3Cg transform='translate(150 0) scale(-1 1)'%3E%3Cpath d='M0 0H127L0 127Z' fill='url(%23g)'/%3E%3Cpath d='M0 0H110L0 110Z' fill='%231E1B1C'/%3E%3C/g%3E%3C/svg%3E") top right / 44px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cdefs%3E%3Cpattern id='g' width='23' height='23' patternUnits='userSpaceOnUse'%3E%3Crect width='23' height='23' fill='%23B8944F'/%3E%3Ccircle cx='0.0' cy='21.2' r='0.8' fill='%23E2C77F'/%3E%3Ccircle cx='16.8' cy='12.3' r='0.9' fill='%23A9823F'/%3E%3Ccircle cx='17.4' cy='12.5' r='1.3' fill='%23A9823F'/%3E%3Ccircle cx='18.8' cy='5.6' r='0.9' fill='%23A9823F'/%3E%3Ccircle cx='16.1' cy='1.2' r='1.3' fill='%23C9A45A'/%3E%3Ccircle cx='21.2' cy='18.6' r='0.6' fill='%23C9A45A'/%3E%3Ccircle cx='21.2' cy='15.8' r='1.3' fill='%23C9A45A'/%3E%3Ccircle cx='21.0' cy='20.9' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='19.3' cy='7.6' r='0.7' fill='%23E2C77F'/%3E%3Ccircle cx='9.9' cy='6.8' r='1.6' fill='%23C9A45A'/%3E%3Ccircle cx='16.8' cy='20.2' r='0.6' fill='%23E2C77F'/%3E%3Ccircle cx='12.9' cy='11.7' r='1.0' fill='%23F4E6BE'/%3E%3Ccircle cx='20.9' cy='1.3' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='15.3' cy='21.3' r='1.1' fill='%23F4E6BE'/%3E%3Ccircle cx='9.3' cy='6.5' r='0.9' fill='%23C9A45A'/%3E%3Ccircle cx='7.6' cy='12.2' r='1.2' fill='%23E2C77F'/%3E%3Ccircle cx='20.8' cy='10.5' r='1.5' fill='%23A9823F'/%3E%3Ccircle cx='14.6' cy='11.9' r='1.1' fill='%23A9823F'/%3E%3Ccircle cx='21.6' cy='9.1' r='1.3' fill='%23E2C77F'/%3E%3Ccircle cx='13.5' cy='8.1' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='18.3' cy='20.2' r='0.6' fill='%238C6A2E'/%3E%3Ccircle cx='1.8' cy='9.4' r='0.7' fill='%23F4E6BE'/%3E%3Ccircle cx='22.9' cy='5.1' r='1.3' fill='%23F4E6BE'/%3E%3Ccircle cx='10.5' cy='13.6' r='0.7' fill='%238C6A2E'/%3E%3Ccircle cx='20.3' cy='20.5' r='1.6' fill='%238C6A2E'/%3E%3Ccircle cx='17.5' cy='6.3' r='0.5' fill='%23E2C77F'/%3E%3C/pattern%3E%3C/defs%3E%3Cg transform='translate(0 150) scale(1 -1)'%3E%3Cpath d='M0 0H127L0 127Z' fill='url(%23g)'/%3E%3Cpath d='M0 0H110L0 110Z' fill='%231E1B1C'/%3E%3C/g%3E%3C/svg%3E") bottom left / 44px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cdefs%3E%3Cpattern id='g' width='23' height='23' patternUnits='userSpaceOnUse'%3E%3Crect width='23' height='23' fill='%23B8944F'/%3E%3Ccircle cx='0.0' cy='21.2' r='0.8' fill='%23E2C77F'/%3E%3Ccircle cx='16.8' cy='12.3' r='0.9' fill='%23A9823F'/%3E%3Ccircle cx='17.4' cy='12.5' r='1.3' fill='%23A9823F'/%3E%3Ccircle cx='18.8' cy='5.6' r='0.9' fill='%23A9823F'/%3E%3Ccircle cx='16.1' cy='1.2' r='1.3' fill='%23C9A45A'/%3E%3Ccircle cx='21.2' cy='18.6' r='0.6' fill='%23C9A45A'/%3E%3Ccircle cx='21.2' cy='15.8' r='1.3' fill='%23C9A45A'/%3E%3Ccircle cx='21.0' cy='20.9' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='19.3' cy='7.6' r='0.7' fill='%23E2C77F'/%3E%3Ccircle cx='9.9' cy='6.8' r='1.6' fill='%23C9A45A'/%3E%3Ccircle cx='16.8' cy='20.2' r='0.6' fill='%23E2C77F'/%3E%3Ccircle cx='12.9' cy='11.7' r='1.0' fill='%23F4E6BE'/%3E%3Ccircle cx='20.9' cy='1.3' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='15.3' cy='21.3' r='1.1' fill='%23F4E6BE'/%3E%3Ccircle cx='9.3' cy='6.5' r='0.9' fill='%23C9A45A'/%3E%3Ccircle cx='7.6' cy='12.2' r='1.2' fill='%23E2C77F'/%3E%3Ccircle cx='20.8' cy='10.5' r='1.5' fill='%23A9823F'/%3E%3Ccircle cx='14.6' cy='11.9' r='1.1' fill='%23A9823F'/%3E%3Ccircle cx='21.6' cy='9.1' r='1.3' fill='%23E2C77F'/%3E%3Ccircle cx='13.5' cy='8.1' r='0.9' fill='%23E2C77F'/%3E%3Ccircle cx='18.3' cy='20.2' r='0.6' fill='%238C6A2E'/%3E%3Ccircle cx='1.8' cy='9.4' r='0.7' fill='%23F4E6BE'/%3E%3Ccircle cx='22.9' cy='5.1' r='1.3' fill='%23F4E6BE'/%3E%3Ccircle cx='10.5' cy='13.6' r='0.7' fill='%238C6A2E'/%3E%3Ccircle cx='20.3' cy='20.5' r='1.6' fill='%238C6A2E'/%3E%3Ccircle cx='17.5' cy='6.3' r='0.5' fill='%23E2C77F'/%3E%3C/pattern%3E%3C/defs%3E%3Cg transform='translate(150 150) scale(-1 -1)'%3E%3Cpath d='M0 0H127L0 127Z' fill='url(%23g)'/%3E%3Cpath d='M0 0H110L0 110Z' fill='%231E1B1C'/%3E%3C/g%3E%3C/svg%3E") bottom right / 44px no-repeat; }
.mini-card.orn-eucalipto::before { content: ""; position: absolute; z-index: 0; pointer-events: none; mix-blend-mode: multiply; width: 44%; aspect-ratio: 900 / 1451; top: -28%; left: -4%; transform: rotate(150deg); background: url("/img/lamina-eucalipto.webp") center / contain no-repeat; }
/* Las láminas quedan en la esquina de arriba, chicas, y el texto baja para que no se encimen. */
.mini-card.orn-olivo, .mini-card.orn-rosas, .mini-card.orn-lavanda, .mini-card.orn-eucalipto, .mini-card.orn-azahar { padding-top: 20%; }
.mini-card.orn-olivo::before { width: 38%; top: -10%; left: -13%; }
.mini-card.orn-rosas::before { width: 30%; top: -14%; left: -9%; }
.mini-card.orn-lavanda::before { width: 15%; top: -15%; left: 4%; }
.mini-card.orn-eucalipto::before { width: 25%; top: -16%; left: -3%; }
.mini-card.orn-azahar::before { width: 38%; top: -9%; left: -13%; }
.mini-card.orn-esquinas { padding-top: 12%; }

/* ---------- Adornos con molde común (src/shared/art.ts), en miniatura ---------- */
.mini-card { container-type: inline-size; }
.mini-card .art-top { position: relative; display: block; flex: none; margin: -2% 0 4%; }
.mini-card .art-top > i { position: absolute; inset: 0; }
.mini-card .art-num { position: absolute; left: 0; right: 0; transform: translateY(-50%); text-align: center; font-family: var(--fd); line-height: 1; color: var(--orn); font-style: normal; }
.mini-card .art-c { position: absolute; z-index: 0; top: 0; left: 0; pointer-events: none; background: center / contain no-repeat; mix-blend-mode: multiply; }
.mini-card.art-corners-on { padding-top: 20%; }
.mini-card .art-frame { position: absolute; z-index: 0; pointer-events: none; }
.mini-card .art-frame > i { position: absolute; background: var(--orn); }
.mini-card .art-sc { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; }
.mini-card .art-sc.t { top: 0; }
.mini-card .art-sc.b { bottom: 0; transform: scaleY(-1); }
.mini-card.dark { background-blend-mode: multiply; }
.mini-card.dark small, .mini-card.dark b { color: var(--tinta); }
.mini-card.dark i { color: var(--ac); }
.mini-card.dark .art-c, .mini-card.dark .art-t { mix-blend-mode: normal; }
.mini-card.art-filete::after { content: ""; position: absolute; inset: 5px; z-index: 0; pointer-events: none; border: .8px solid var(--orn); outline: .5px solid var(--orn); outline-offset: -3px; }
.mini-card .art-stripes { position: absolute; top: 0; bottom: 0; width: 12px; z-index: 0; background: linear-gradient(90deg, var(--ac) 0 5px, transparent 5px 7px, var(--orn) 7px 9px, transparent 9px); }
.mini-card .art-stripes.l { left: 0; } .mini-card .art-stripes.r { right: 0; transform: scaleX(-1); }
.mini-card .art-cover { position: absolute; left: 0; right: 0; top: 0; height: 62%; z-index: 0; background-size: cover; background-repeat: no-repeat; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.mini-card.art-cover-on { padding-top: 14%; }
.mini-card.art-cover-on > small, .mini-card.art-cover-on > b, .mini-card.art-cover-on > i:last-child { position: relative; z-index: 1; background: rgba(255,253,248,.9); padding: 0 6px; }
.mini-card.cover-arco > small { border-radius: 99px 99px 0 0; padding-top: 6px; }
.mini-card .art-marco-bg { position: absolute; inset: 0; z-index: 0; background-position: center top; background-size: 100% auto; background-repeat: repeat-y; }
.mini-card .art-marco-panel { position: absolute; left: 8%; right: 8%; top: 22%; bottom: 0; z-index: 0; background: #FFFDF8 url("/img/papel-liso.webp") 0 0 / 160px; background-blend-mode: multiply; box-shadow: 0 0 6px 4px rgba(255,253,248,.8); }
.mini-card.marco-arco .art-marco-panel { border-radius: 99px 99px 2px 2px; }
.mini-card.art-marco-on { padding-top: 34%; }
.mini-card .art-pattern, .mini-card .art-tex { position: absolute; inset: 0; z-index: 0; }
.mini-card .art-panel { position: absolute; inset: 9% 9%; z-index: 0; background: #FFFDF8 url("/img/papel-liso.webp") 0 0 / 160px; background-blend-mode: multiply; box-shadow: 0 0 0 .6px rgba(60,45,35,.1); }
.mini-card.art-pattern-on { padding: 18% 14% 0; }
.mini-card .art-franja { position: absolute; top: 0; bottom: 0; width: 19%; z-index: 0; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.mini-card .art-franja.l { left: 0; } .mini-card .art-franja.r { right: 0; transform: scaleX(-1); }
.mini-card.art-franja-on { padding-left: 24%; }
.mini-card.art-franja-on.franja-ambos { padding-right: 24%; }
.mini-card .art-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: multiply; background-size: 160px 160px, auto !important; }
.mini-card b.frase { font-size: 18px; line-height: 1.05; }
.mini-card b.duo .duo-a { color: var(--duo-a); } .mini-card b.duo .duo-b { color: var(--duo-b); }
.mini-card b .duo-o { font-family: "Pinyon Script", cursive; font-size: .62em; text-transform: none; letter-spacing: 0; color: #6B5E64; }
.mini-card b.gold, .mini-card b.gold span { background: linear-gradient(135deg, color-mix(in srgb, var(--orn) 55%, #fff), var(--orn) 45%, color-mix(in srgb, var(--orn) 70%, #000)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-card small.names-sub { margin-top: 3px; }
.mini-card .art-t { position: absolute; z-index: 0; pointer-events: none; background: center / contain no-repeat; mix-blend-mode: multiply; transform-origin: center; }
.mini-card.art-trail-on { padding-top: 20%; }
.mini-photo { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; flex: none; width: 34%; aspect-ratio: 4 / 5; margin: -2% 0 4%;
  border-radius: 999px 999px 2px 2px; overflow: hidden; color: var(--ac); background: linear-gradient(165deg, color-mix(in srgb, var(--ac) 18%, #fff), #fff);
  outline: .6px solid var(--orn); outline-offset: 2px; }
.mini-photo.circulo { width: 32%; aspect-ratio: 1; border-radius: 50%; }
.mini-photo svg { width: 62%; opacity: .3; }
.mini-card.dark .mini-photo { background: rgba(255,255,255,.1); }
.mini-card .art-band { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; }
.mini-card .art-band.t { top: 0; } .mini-card .art-band.b { bottom: 0; transform: scaleY(-1); }
.mini-card.art-band-on { padding-top: 16%; }
.mini-card .art-wash { position: absolute; z-index: 0; pointer-events: none; width: 140%; left: -20%; mix-blend-mode: multiply; }
.mini-card .art-wash.t { top: -4%; } .mini-card .art-wash.b { bottom: -4%; transform: rotate(180deg); }
.mini-card.dark .art-wash { mix-blend-mode: normal; opacity: .8; }
.mini-card.art-wash-on { padding-top: 16%; }
.mini-card.art-press-on::after { content: ""; position: absolute; inset: 7px; z-index: 0; box-shadow: inset 1px 1px 0 rgba(0,0,0,.14), 1px 1px 0 rgba(255,255,255,.9); }
.mini-card.art-press-on b { text-shadow: 0 1px 0 rgba(255,255,255,.95), 0 -1px 0 rgba(0,0,0,.2); }

/* Calado en la miniatura (mide siempre 5:7, alto = 1.4 anchos): la misma máscara que la tarjeta, en porcentajes del ancho (x)
   y del alto (y). La posición en % de una capa de tamaño w es (inicio / (1 - w)). */
.mini-card.art-calado-on { box-shadow: none; --g: linear-gradient(#000 0 0); --cy: calc(var(--cut) / 1.4);
  padding: 0;
  mask: var(--lace) center top / 66.7% auto repeat,
    var(--g) center calc(100% * var(--pt) / (var(--pt) + var(--pb))) / calc(100% * (1 - 2 * var(--ci) - 2 * var(--cut)) + 1px) calc(100% * (1.4 - var(--pt) - var(--pb)) / 1.4) no-repeat,
    var(--g) center calc(100% * (var(--pt) + var(--cut)) / (var(--pt) + var(--pb) + 2 * var(--cut))) / calc(100% * (1 - 2 * var(--ci))) calc(100% * (1.4 - var(--pt) - var(--pb) - 2 * var(--cut)) / 1.4 + 1px) no-repeat,
    linear-gradient(to bottom right, transparent calc(50% - .5px), #000 50%) calc(100% * var(--ci) / (1 - var(--cut))) calc(100% * var(--pt) / (1.4 - var(--cut))) / calc(100% * var(--cut)) calc(100% * var(--cy)) no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - .5px), #000 50%) calc(100% * (1 - var(--ci) - var(--cut)) / (1 - var(--cut))) calc(100% * var(--pt) / (1.4 - var(--cut))) / calc(100% * var(--cut)) calc(100% * var(--cy)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .5px), #000 50%) calc(100% * var(--ci) / (1 - var(--cut))) calc(100% * (1.4 - var(--pb) - var(--cut)) / (1.4 - var(--cut))) / calc(100% * var(--cut)) calc(100% * var(--cy)) no-repeat,
    linear-gradient(to top left, transparent calc(50% - .5px), #000 50%) calc(100% * (1 - var(--ci) - var(--cut)) / (1 - var(--cut))) calc(100% * (1.4 - var(--pb) - var(--cut)) / (1.4 - var(--cut))) / calc(100% * var(--cut)) calc(100% * var(--cy)) no-repeat; }
.scene:has(.art-calado-on) .mini-card { filter: drop-shadow(0 .5px .5px rgba(0,0,0,.16)); }
.mini-card > .enc-sombra, .mini-card > .enc-panel { position: absolute; z-index: 0; --k: calc(100cqw * var(--cut));
  left: calc(100cqw * var(--ci)); right: calc(100cqw * var(--ci)); top: calc(100cqw * var(--pt)); bottom: calc(100cqw * var(--pb));
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.mini-card > .enc-panel { background: inherit; }
/* Sin relleno en la tarjetita (con relleno el ancho interior se encoge y cqw deja de medir la tarjeta): el texto baja con margen y se
   angosta con max-width, medidos en anchos de tarjeta. */
.mini-card.art-calado-on > .enc-panel + * { margin-top: calc(100cqw * (var(--pt) + var(--cut) * .45)); }
.mini-card.art-calado-on > :not(.enc-sombra):not(.enc-panel) { max-width: calc(100cqw * (1 - 2 * var(--ci) - .1)); }
.mini-card > .enc-sombra { margin: -1px -1px -2px; background: rgba(50,38,30,.2); }
/* Portada "ambos": la frase en caligrafía y los nombres debajo. */
.mini-card small.frase-script { font-family: "Pinyon Script", cursive; font-size: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.1; margin-bottom: 2px; }
/* Esquinas recortadas (Ciruela). */
.mini-card.art-muesca-on { --mr: 14px; border-radius: 0;
  -webkit-mask: radial-gradient(circle at 0 0, transparent var(--mr), #000 calc(var(--mr) + .5px)) left top / 51% 51% no-repeat, radial-gradient(circle at 100% 0, transparent var(--mr), #000 calc(var(--mr) + .5px)) right top / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--mr), #000 calc(var(--mr) + .5px)) left bottom / 51% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--mr), #000 calc(var(--mr) + .5px)) right bottom / 51% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent var(--mr), #000 calc(var(--mr) + .5px)) left top / 51% 51% no-repeat, radial-gradient(circle at 100% 0, transparent var(--mr), #000 calc(var(--mr) + .5px)) right top / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--mr), #000 calc(var(--mr) + .5px)) left bottom / 51% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--mr), #000 calc(var(--mr) + .5px)) right bottom / 51% 51% no-repeat; }
.mini-card .art-muesca { position: absolute; z-index: 0; pointer-events: none; background: var(--ac, #C9A55A); }
.mini-card.dark.art-muesca-on small, .mini-card.dark.art-muesca-on b, .mini-card.dark.art-muesca-on i { color: #E6CC92; }
/* Texto del color de la tinta y frase dorada (Ramillete). */
.mini-card.texto-tinta:not(.dark) small, .mini-card.texto-tinta:not(.dark) b, .mini-card.texto-tinta:not(.dark) i { color: var(--ac); }
.mini-card small.frase-script.gold { background: linear-gradient(135deg, #E9CF86 0%, #C49A45 45%, #A57E33 65%, #DDBF73 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
