.holiday-greeting{box-sizing:border-box;width:min(760px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:5px;border:2px solid #fff7dc;border-radius:32px;background:#fff7e9;color:#471408;box-shadow:0 18px 80px #35130c66;overflow:auto;text-align:center;overscroll-behavior:contain}
.holiday-greeting:not([open]){display:none}.holiday-greeting::backdrop{background:#48171299;backdrop-filter:blur(2px)}
html[data-holiday-greeting-open]{overflow:hidden}
.holiday-greeting__card{position:relative;isolation:isolate;padding:28px 54px 36px;border:1px solid #c3913c;border-radius:25px;background:radial-gradient(ellipse at 15% 10%,#fffbf3,#fff5e7 75%);font-family:Georgia,'Times New Roman',serif}
.holiday-greeting__card::before,.holiday-greeting__card::after{content:'';position:absolute;z-index:-1;pointer-events:none;width:210px;height:210px;background:url('/assets/tarjeta-navidad-rama.png') left top/contain no-repeat;opacity:.95}.holiday-greeting__card::before{left:0;top:0}.holiday-greeting__card::after{right:0;bottom:0;transform:rotate(180deg)}
.holiday-greeting[data-holiday-greeting="newYear"] .holiday-greeting__card::before,.holiday-greeting[data-holiday-greeting="newYear"] .holiday-greeting__card::after{background:radial-gradient(circle at 20% 20%,#dca535 0 2px,transparent 3px),radial-gradient(circle at 45% 40%,#f2ca74 0 3px,transparent 4px),radial-gradient(circle at 20% 65%,#b98021 0 2px,transparent 3px);background-size:70px 65px;mask-image:linear-gradient(135deg,#000,transparent 65%)}
.holiday-greeting .holiday-greeting__close{position:absolute;top:8px;right:12px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;color:#790d23;background:transparent;font:38px/1 Arial,sans-serif;cursor:pointer;z-index:1}
.holiday-greeting__ornament{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 auto 12px}.holiday-greeting__ornament:before,.holiday-greeting__ornament:after{content:'';width:82px;height:1px;background:#c9943d}.holiday-greeting__ornament svg{width:52px;height:52px;filter:drop-shadow(0 2px 1px #83571933)}
.holiday-greeting .holiday-greeting__brand{margin:0 0 12px;color:#790d23;font:700 22px/1.25 Georgia,serif;letter-spacing:.08em}
.holiday-greeting h2{margin:0 0 20px;color:#790d23;font:italic 68px/1.1 Georgia,serif;letter-spacing:-.04em;text-wrap:balance}
.holiday-greeting .holiday-greeting__message,.holiday-greeting .holiday-greeting__thanks{margin:0 auto 18px;max-width:600px;color:#471408;font:24px/1.35 Georgia,serif;white-space:pre-line;text-wrap:pretty}
.holiday-greeting .holiday-greeting__signature{margin:25px 0 28px;color:#471408;font:italic 25px/1.3 Georgia,serif}.holiday-greeting__signature span{color:#940b29}
.holiday-greeting .holiday-greeting__continue{min-height:54px;max-width:100%;padding:12px 42px;border:1px solid #8e0b24;border-radius:40px;background:linear-gradient(#970c29,#78091d);color:#fff;font:700 20px/1.25 system-ui,sans-serif;cursor:pointer;box-shadow:0 4px 8px #47140822;white-space:normal;overflow-wrap:anywhere}
.holiday-greeting :is(h2,p){overflow-wrap:anywhere}.holiday-greeting button:focus-visible{outline:3px solid #c9943d;outline-offset:3px}
@media(max-width:600px){.holiday-greeting{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:24px}.holiday-greeting__card{padding:32px 20px 28px;border-radius:18px}.holiday-greeting__card::before,.holiday-greeting__card::after{width:130px;height:130px}.holiday-greeting .holiday-greeting__brand{font-size:16px}.holiday-greeting h2{font-size:clamp(35px,10vw,52px);margin-bottom:18px}.holiday-greeting .holiday-greeting__message,.holiday-greeting .holiday-greeting__thanks{font-size:18px;line-height:1.4}.holiday-greeting .holiday-greeting__signature{font-size:19px;margin:20px 0}.holiday-greeting .holiday-greeting__continue{font-size:16px;padding:12px 22px}.holiday-greeting__ornament svg{width:42px;height:42px}.holiday-greeting__ornament:before,.holiday-greeting__ornament:after{width:48px}}

/* Una imagen subida ya contiene el diseño: se presenta completa y sin adornos adicionales. */
.holiday-greeting.holiday-greeting--image{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:4px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto}
.holiday-greeting__image-card{display:flex;flex-direction:column;align-items:center;gap:12px}
.holiday-greeting__image-controls{display:flex;justify-content:flex-end;width:100%}
.holiday-greeting--image .holiday-greeting__close{position:static;flex:0 0 44px;background:#fff7e9;box-shadow:0 2px 8px #35130c33}
.holiday-greeting__full-image{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 180px);object-fit:contain;margin:0}
.holiday-greeting--image .holiday-greeting__continue{flex-shrink:0;margin:0 4px 4px}
