/* Anémona's Bienvenida – modal 15% */
:root {
	--anm-teal: #2c6380;
	--anm-teal-dark: #214c63;
	--anm-gold: #c99a57;
	--anm-sand: #efe9df;
	--anm-sand-2: #f7f3ec;
	--anm-ink: #3e3e3e;
	--anm-muted: #7a746b;
	--anm-serif: "Safira March", "Lora", Georgia, "Times New Roman", serif;
	--anm-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.anm-modal *, .anm-modal *::before, .anm-modal *::after, .anm-teaser * { box-sizing: border-box; }
.anm-modal[hidden], .anm-teaser[hidden], .anm-step[hidden], .anm-modal [hidden] { display: none !important; }

.anm-modal {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; font-family: var(--anm-sans); color: var(--anm-ink);
}
.anm-backdrop {
	position: absolute; inset: 0; background: rgba(30, 38, 44, .55);
	opacity: 0; transition: opacity .3s ease;
}
.anm-dialog {
	position: relative; width: 100%; max-width: 820px; max-height: calc(100vh - 32px);
	display: grid; grid-template-columns: 44% 56%;
	background: var(--anm-sand-2); border-radius: 18px; overflow: hidden;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	transform: translateY(18px) scale(.98); opacity: 0;
	transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.anm-modal.is-open .anm-backdrop { opacity: 1; }
.anm-modal.is-open .anm-dialog { transform: none; opacity: 1; }

.anm-media {
	background-color: var(--anm-sand);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 80% center;
	min-height: 100%;
}

.anm-body { padding: 36px 36px 26px; overflow-y: auto; max-height: calc(100vh - 32px); }

.anm-modal .anm-close {
	position: absolute; top: 10px; right: 12px; z-index: 2;
	width: 38px; height: 38px; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.9); color: var(--anm-ink);
	font-size: 26px; line-height: 38px; text-align: center; cursor: pointer; padding: 0; min-height: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.anm-modal .anm-close:hover { background: #fff; color: var(--anm-teal); }

.anm-eyebrow {
	margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--anm-gold); font-weight: 600;
}
.anm-title { margin: 0 0 10px; font-family: var(--anm-serif); color: var(--anm-teal); font-weight: 400; line-height: 1; }
.anm-num { font-size: 72px; letter-spacing: -.02em; }
.anm-pct { font-size: 44px; margin-left: 4px; vertical-align: 18px; }
.anm-off { font-size: 40px; margin-left: 6px; }
.anm-title-sub { display: block; margin-top: 6px; font-family: var(--anm-sans); font-size: 21px; font-weight: 500; color: var(--anm-teal); }
.anm-valid {
	display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 16px; padding: 5px 12px;
	border: 1px solid #e6d7bf; border-radius: 999px; background: #fff;
	font: 600 12px/1.3 var(--anm-sans); color: var(--anm-teal);
}
.anm-sub { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--anm-muted); }

.anm-form { display: grid; gap: 12px; }
.anm-field { display: grid; gap: 5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.anm-modal .anm-label { font-family: var(--anm-sans); font-size: 12px; font-weight: 600; color: var(--anm-ink); padding: 0; margin: 0; text-transform: none; letter-spacing: 0; }
.anm-label small { font-weight: 400; color: var(--anm-muted); }
.anm-modal input[type="text"], .anm-modal input[type="email"], .anm-modal select {
	width: 100%; height: 46px; margin: 0; padding: 0 14px;
	border: 1px solid #d9d1c4; border-radius: 10px; background: #fff;
	font: 400 15px/1 var(--anm-sans); color: var(--anm-ink); box-shadow: none;
}
.anm-modal input:focus, .anm-modal select:focus { outline: 2px solid var(--anm-teal); outline-offset: 1px; border-color: var(--anm-teal); }
.anm-modal .is-invalid { border-color: #b3261e !important; }
.anm-bday-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }

.anm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.anm-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; line-height: 1.45; color: var(--anm-muted); cursor: pointer; }
.anm-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--anm-teal); }
.anm-consent a { color: var(--anm-teal); text-decoration: underline; }

.anm-modal .anm-btn, a.anm-btn-inline {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; min-height: 50px; padding: 0 22px; border: 0; border-radius: 30px;
	background: var(--anm-teal); color: #fff !important; text-decoration: none !important;
	font: 600 15px/1 var(--anm-sans); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; box-shadow: none;
	transition: background .2s ease, transform .1s ease;
}
.anm-modal .anm-btn:hover, .anm-modal .anm-btn:focus-visible, a.anm-btn-inline:hover { background: var(--anm-teal-dark); color: #fff; }
.anm-modal .anm-btn:active { transform: scale(.99); }
.anm-modal .anm-btn[disabled] { opacity: .7; cursor: wait; }
a.anm-btn-inline { width: auto; }

.anm-msg { min-height: 1em; margin: 0; font-size: 13px; color: #b3261e; }
.anm-msg.is-info { color: var(--anm-teal); }

.anm-modal .anm-nothanks {
	display: block; margin: 12px auto 0; padding: 6px; border: 0; background: none;
	color: var(--anm-muted); font: 400 13px var(--anm-sans); text-decoration: underline; text-transform: none; letter-spacing: 0; min-height: 0; cursor: pointer;
}

.anm-step-success { text-align: center; padding-top: 18px; }
.anm-success-title { margin: 0 0 10px; font-family: var(--anm-serif); font-weight: 400; font-size: 34px; color: var(--anm-teal); outline: none; }
.anm-success-msg { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--anm-muted); }
.anm-code {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin: 0 0 16px; padding: 10px 10px 10px 18px;
	border: 2px dashed var(--anm-teal); border-radius: 12px; background: #fff;
}
.anm-code-value { font: 700 20px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--anm-teal); word-break: break-all; }
.anm-modal .anm-copy {
	flex: 0 0 auto; height: 38px; padding: 0 16px; border: 0; border-radius: 20px;
	background: var(--anm-gold); color: #fff; font: 600 13px var(--anm-sans); text-transform: none; letter-spacing: 0; min-height: 0; cursor: pointer;
}
.anm-fine { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--anm-muted); }

/* Pestaña flotante para reabrir */
.anm-teaser {
	position: fixed; left: 16px; bottom: 24px; z-index: 2147482000;
	display: flex; align-items: stretch; border-radius: 30px; overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,.18); font-family: var(--anm-sans);
	animation: anm-pop .4s ease both;
}
#anm-teaser button { border: 0; margin: 0; min-height: 0; border-radius: 0; cursor: pointer; font-family: inherit; text-transform: none; box-shadow: none; }
#anm-teaser .anm-teaser-open { padding: 11px 6px 11px 18px; background: var(--anm-teal); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .03em; }
#anm-teaser .anm-teaser-open small { font-weight: 400; opacity: .85; margin-left: 4px; }
#anm-teaser .anm-teaser-x { padding: 0 14px 0 8px; background: var(--anm-teal); color: rgba(255,255,255,.8); font-size: 18px; line-height: 1; }
#anm-teaser .anm-teaser-x:hover { color: #fff; }
@keyframes anm-pop { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

html.anm-lock, html.anm-lock body { overflow: hidden !important; }

/* Móvil */
@media (max-width: 680px) {
	.anm-modal { padding: 12px; align-items: center; }
	.anm-dialog { grid-template-columns: 1fr; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 16px; }
	.anm-media { min-height: 0; height: 132px; background-size: 210% auto; background-position: 86% 44%; }
	.anm-body { padding: 18px 20px 16px; max-height: none; overflow: visible; }
	.anm-num { font-size: 56px; }
	.anm-pct { font-size: 34px; vertical-align: 14px; }
	.anm-off { font-size: 32px; }
	.anm-title-sub { font-size: 18px; }
	.anm-sub { font-size: 13px; margin-bottom: 14px; }
	.anm-form { gap: 10px; }
	.anm-code { padding-left: 12px; }
	.anm-code-value { font-size: 16px; letter-spacing: .04em; white-space: nowrap; word-break: normal; }
	.anm-modal input[type="text"], .anm-modal input[type="email"], .anm-modal select { height: 44px; font-size: 16px; } /* 16px evita zoom en iOS */
	#anm-teaser.anm-teaser { bottom: 74px; left: 12px; } /* sobre la barra inferior de WoodMart */
	#anm-teaser .anm-teaser-open { font-size: 13px; padding: 10px 4px 10px 14px; }
	#anm-teaser .anm-teaser-open small { display: none; }
}

/* ------------------------------------------------------------------
 * Tarjeta inferior (celular): no tapa la página ni bloquea el scroll.
 * ------------------------------------------------------------------ */
.anm-modal .anm-more, .anm-modal .anm-less { display: none !important; }
.anm-modal.anm-from-sheet:not(.anm-sheet) .anm-less {
	display: inline-flex !important; align-items: center; margin: 0 0 10px; padding: 4px 0; border: 0; background: none; min-height: 0;
	color: var(--anm-teal); font: 600 13px/1.3 var(--anm-sans); text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none;
}
.anm-modal.anm-sheet {
	inset: auto 0 0 0; align-items: flex-end; pointer-events: none;
	padding: 0 10px calc(70px + env(safe-area-inset-bottom, 0px)); /* encima de la barra inferior de WoodMart */
}
.anm-modal.anm-sheet .anm-backdrop { display: none; }
.anm-modal.anm-sheet .anm-dialog {
	pointer-events: auto; grid-template-columns: 1fr; max-width: 520px; margin: 0 auto;
	max-height: none; overflow: visible; border-radius: 18px; border-top: 3px solid var(--anm-gold);
	box-shadow: 0 -8px 40px rgba(20, 40, 50, .28); transform: translateY(110%); opacity: 1;
}
.anm-modal.anm-sheet.is-open .anm-dialog { transform: none; }
.anm-sheet .anm-media, .anm-sheet .anm-eyebrow,
.anm-sheet .anm-field-name, .anm-sheet .anm-bday, .anm-sheet .anm-step-form > .anm-nothanks { display: none !important; }
.anm-sheet .anm-body { padding: 14px 16px 12px; max-height: none; overflow: visible; }
.anm-sheet .anm-title { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0 40px 10px 0; }
.anm-sheet .anm-num { font-size: 40px; }
.anm-sheet .anm-pct { font-size: 24px; vertical-align: 0; margin-left: 2px; }
.anm-sheet .anm-off { font-size: 24px; margin-left: 4px; }
.anm-sheet .anm-title-sub { display: inline; margin: 0 0 0 10px; font-size: 15px; }
.anm-sheet .anm-form {
	grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
	grid-template-areas: "email btn" "consent consent" "msg msg" "more more";
}
.anm-sheet .anm-valid { margin: -4px 0 10px; padding: 3px 10px; font-size: 11.5px; }
.anm-sheet .anm-field-email { grid-area: email; }
.anm-sheet .anm-field-email .anm-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.anm-modal.anm-sheet .anm-form .anm-btn { grid-area: btn; width: auto; min-height: 44px; padding: 0 16px; font-size: 13px; letter-spacing: .02em; }
.anm-sheet .anm-consent { grid-area: consent; font-size: 11px; line-height: 1.4; }
.anm-sheet .anm-consent input { width: 16px; height: 16px; }
.anm-sheet .anm-msg { grid-area: msg; }
.anm-sheet .anm-msg:empty { display: none; }
.anm-sheet .anm-sub { margin: -2px 0 10px; font-size: 12.5px; line-height: 1.45; }
.anm-modal.anm-sheet .anm-more {
	grid-area: more; display: block !important; justify-self: start; margin: 0; padding: 2px 0; border: 0; background: none; min-height: 0;
	color: var(--anm-teal); font: 600 12px/1.3 var(--anm-sans); text-decoration: underline; text-underline-offset: 3px;
	text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none;
}
.anm-modal.anm-sheet .anm-close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 22px; line-height: 32px; box-shadow: none; background: var(--anm-sand); }
.anm-sheet .anm-step-success { padding-top: 2px; }
.anm-sheet .anm-success-title { font-size: 26px; margin: 0 36px 6px; }
.anm-sheet .anm-success-msg { margin-bottom: 12px; font-size: 13px; }
.anm-sheet .anm-code { margin-bottom: 10px; }
.anm-sheet .anm-fine { margin-top: 8px; font-size: 11px; }
.anm-sheet .anm-step-success .anm-nothanks { margin-top: 6px; }

/* Celular: el formulario completo (nombre y cumpleaños) sube desde abajo como continuación de la tarjeta. */
@media (max-width: 680px) {
	.anm-modal.anm-from-sheet { align-items: flex-end; padding: 0; }
	.anm-modal.anm-from-sheet .anm-dialog { max-width: none; border-radius: 20px 20px 0 0; border-top: 3px solid var(--anm-gold); max-height: 94vh; max-height: 94dvh; }
	.anm-modal.anm-from-sheet .anm-media, .anm-modal.anm-from-sheet .anm-step-form > .anm-nothanks { display: none !important; }
	.anm-modal.anm-from-sheet .anm-body { padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
	.anm-modal.anm-from-sheet .anm-eyebrow { display: none; }
	.anm-modal.anm-from-sheet .anm-title { display: flex; flex-wrap: wrap; align-items: baseline; margin-right: 40px; }
	.anm-modal.anm-from-sheet .anm-num { font-size: 44px; }
	.anm-modal.anm-from-sheet .anm-pct, .anm-modal.anm-from-sheet .anm-off { font-size: 26px; vertical-align: 0; }
	.anm-modal.anm-from-sheet .anm-title-sub { display: inline; margin: 0 0 0 10px; font-size: 16px; }
	.anm-modal.anm-from-sheet .anm-sub { font-size: 13px; margin-bottom: 10px; }
	.anm-modal.anm-from-sheet .anm-close { top: 10px; right: 10px; width: 34px; height: 34px; line-height: 34px; font-size: 22px; background: var(--anm-sand); }
}

@media (max-width: 1024px) and (min-width: 681px) {
	#anm-teaser.anm-teaser { bottom: 74px; }
}

@media (prefers-reduced-motion: reduce) {
	.anm-dialog, .anm-backdrop, .anm-teaser { transition: none; animation: none; }
	.anm-modal.anm-sheet .anm-dialog { transform: none; }
}
