/* Amigas de Aromu: móvil primero. Variables --ar-* del tema con valores de respaldo. */
.ar-amg {
	--amg-prim: var(--ar-color-primario, #0f6b6e);
	--amg-prim-osc: var(--ar-color-primario-oscuro, #0b4f52);
	--amg-acento: var(--ar-color-acento, #5b4fb0);
	--amg-crema: var(--ar-crema, #fbf8f3);
	--amg-texto: var(--ar-texto, #1f2d2e);
	--amg-suave: var(--ar-texto-suave, #5e6b6b);
	--amg-borde: var(--ar-borde, #e4ddd2);
	--amg-campo: var(--ar-borde-campo, #7a8888);
	--amg-ok: var(--ar-ok, #2f7d4f);
	--amg-err: var(--ar-error, #b3392f);
	--amg-radio: var(--ar-radio, 12px);
	--amg-bruma: var(--ar-bruma, #e3f1ef);
	--amg-arena: var(--ar-arena, #f3ece2);
	--amg-aviso-fondo: var(--ar-aviso-fondo, #fff1d6);
	color: var(--amg-texto);
	font-family: var(--ar-fuente-texto, system-ui, sans-serif);
	line-height: 1.55;
	box-sizing: border-box;
}
.ar-amg *, .ar-amg *::before, .ar-amg *::after { box-sizing: inherit; }
.ar-amg-ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.ar-amg-h { font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 1.6rem; margin: 0 0 .75rem; line-height: 1.2; }
.ar-amg h3 { font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 1.2rem; margin: 0 0 .5rem; }
.ar-amg a { color: var(--amg-prim-osc); }
.ar-amg :focus-visible { outline: 3px solid var(--amg-acento); outline-offset: 2px; }

/* Botones */
.ar-amg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem;
	background: var(--amg-prim); color: #fff !important; border: 2px solid var(--amg-prim); border-radius: 999px; font: inherit; font-weight: 600;
	text-decoration: none; cursor: pointer; line-height: 1.2;
}
.ar-amg-btn:hover { background: var(--amg-prim-osc); border-color: var(--amg-prim-osc); }
.ar-amg-btn--sec { background: transparent; color: var(--amg-prim-osc) !important; border-color: var(--amg-prim); }
.ar-amg-btn--sec:hover { background: var(--amg-bruma); }
.ar-amg-btn--grande { width: 100%; min-height: 52px; font-size: 1.05rem; }

/* Formulario */
.ar-amg-alta, .ar-amg-caja { max-width: 520px; margin: 0 auto; }
.ar-amg-form { display: grid; gap: 1rem; }
.ar-amg-campo label { display: block; font-weight: 600; margin-bottom: .25rem; }
.ar-amg-input { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 2px solid var(--amg-campo); border-radius: 10px; font: inherit; background: #fff; color: var(--amg-texto); }
.ar-amg-campo--error .ar-amg-input { border-color: var(--amg-err); }
.ar-amg-ayuda, .ar-amg-nota { color: var(--amg-suave); font-size: .9rem; margin: .25rem 0 0; }
.ar-amg-error-campo { color: var(--amg-err); font-weight: 600; margin: .25rem 0 0; font-size: .92rem; }
.ar-amg-errores { border: 2px solid var(--amg-err); background: #fdf1ef; border-radius: var(--amg-radio); padding: .75rem 1rem; margin-bottom: 1rem; }
.ar-amg-errores ul { margin: .4rem 0 0 1.2rem; padding: 0; }
.ar-amg-check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.ar-amg-check input { width: 24px; height: 24px; margin-top: .1rem; flex: none; accent-color: var(--amg-prim); }
.ar-amg-trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Aviso del enlace con regalo (discreto) */
.ar-amg-aviso { background: var(--amg-aviso-fondo); border-bottom: 1px solid var(--amg-borde); position: relative; z-index: 50; }
.ar-amg-aviso[hidden] { display: none; }
.ar-amg-aviso__cuerpo { max-width: 1100px; margin: 0 auto; padding: .6rem 3rem .6rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; position: relative; }
.ar-amg-aviso__ico { color: var(--amg-prim-osc); display: inline-flex; }
.ar-amg-aviso__texto { flex: 1 1 260px; }
.ar-amg-aviso__titulo { margin: 0; font-weight: 700; }
.ar-amg-aviso__sub { margin: 0; font-size: .85rem; color: var(--amg-suave); }
.ar-amg-aviso__form { margin: 0; }
.ar-amg-aviso__cerrar { position: absolute; right: .5rem; top: .5rem; width: 44px; height: 44px; border: 0; background: transparent; color: var(--amg-texto); cursor: pointer; display: grid; place-items: center; }

/* Área */
.ar-amg-area { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.ar-amg-area > * { min-width: 0; }
.ar-amg-nav ul { display: flex; gap: .5rem; overflow-x: auto; list-style: none; padding: 0 0 .25rem; margin: 0; }
.ar-amg-nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--amg-borde); border-radius: 999px; text-decoration: none; white-space: nowrap; color: var(--amg-texto); background: #fff; }
.ar-amg-nav a.is-activa { background: var(--amg-prim); border-color: var(--amg-prim); color: #fff; }
.ar-amg-bienvenida, .ar-amg-vacio, .ar-amg-bloque, .ar-amg-codigo { background: #fff; border: 1px solid var(--amg-borde); border-radius: var(--amg-radio); padding: 1rem; }
.ar-amg-bienvenida { background: var(--amg-bruma); }
.ar-amg-vacio { background: var(--amg-arena); border-style: dashed; }
.ar-amg-codigo { background: var(--amg-crema); display: grid; gap: .75rem; }
.ar-amg-codigo__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.ar-amg-etiqueta { margin: 0; font-size: .85rem; color: var(--amg-suave); text-transform: uppercase; letter-spacing: .04em; }
.ar-amg-codigo__valor { margin: 0; font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 2rem; font-weight: 700; letter-spacing: .04em; word-break: break-all; }
.ar-amg-codigo__enlace { margin: 0; word-break: break-all; font-size: .95rem; }
.ar-amg-aviso-copia { margin: 0; color: var(--amg-ok); font-weight: 600; min-height: 1.4em; }
.ar-amg-fichas { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ar-amg-ficha { background: #fff; border: 1px solid var(--amg-borde); border-radius: var(--amg-radio); padding: .9rem; }
.ar-amg-ficha__ico { color: var(--amg-prim); }
.ar-amg-ficha__valor { font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 1.7rem; font-weight: 700; margin: .1rem 0 0; line-height: 1.15; }
.ar-amg-ficha__etq { margin: 0; font-weight: 600; }
.ar-amg-ficha__exp { margin: .2rem 0 0; font-size: .82rem; color: var(--amg-suave); }
.ar-amg-regla { display: flex; gap: .6rem; background: var(--amg-bruma); border-radius: var(--amg-radio); padding: .75rem 1rem; margin: 0; align-items: flex-start; }
.ar-amg-ok { color: var(--amg-ok); font-weight: 600; }
.ar-amg-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ar-amg-chips legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.ar-amg-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ar-amg-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--amg-campo); border-radius: 999px; cursor: pointer; background: #fff; }
.ar-amg-chip input:checked + span { background: var(--amg-prim); border-color: var(--amg-prim); color: #fff; }
.ar-amg-chip input:focus-visible + span { outline: 3px solid var(--amg-acento); outline-offset: 2px; }
.ar-amg-resultado { margin-top: 1rem; display: grid; gap: .75rem; }
.ar-amg-acciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.ar-amg-qrcaja { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.ar-amg-qrmarco { background: #fff; border: 1px solid var(--amg-borde); border-radius: 8px; padding: 4px; line-height: 0; }
.ar-amg-qr { width: 180px; height: 180px; max-width: 100%; }
.ar-amg-cita { margin: 0 0 .75rem; padding: .75rem 1rem; background: var(--amg-crema); border-left: 4px solid var(--amg-prim); border-radius: 0 8px 8px 0; }
.ar-amg-pie { font-size: .85rem; color: var(--amg-suave); }

/* Barras de progreso */
.ar-amg-barra { height: 16px; background: var(--amg-arena); border-radius: 999px; overflow: hidden; display: flex; border: 1px solid var(--amg-borde); }
.ar-amg-barra__a { background: var(--amg-prim); display: block; }
.ar-amg-barra__b { background: repeating-linear-gradient(45deg, #7fb6b8, #7fb6b8 6px, #a9cfd0 6px, #a9cfd0 12px); display: block; }
.ar-amg-barra-txt { margin: .4rem 0 0; }
.ar-amg-tiempo { display: grid; gap: .4rem; padding-left: 1.4rem; margin: 0; }

/* Tablas: tarjetas en móvil */
.ar-amg-tabla-caja { overflow-x: auto; }
.ar-amg-tabla { width: 100%; border-collapse: collapse; }
.ar-amg-tabla th, .ar-amg-tabla td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--amg-borde); vertical-align: top; }
@media (max-width: 599px) {
	.ar-amg-tabla thead { position: absolute; left: -9999px; }
	.ar-amg-tabla tr { display: block; border: 1px solid var(--amg-borde); border-radius: 10px; margin-bottom: .6rem; padding: .3rem .4rem; }
	.ar-amg-tabla th, .ar-amg-tabla td { display: block; border: 0; padding: .2rem .3rem; }
	.ar-amg-tabla td[data-etq]::before { content: attr(data-etq) ": "; font-weight: 600; color: var(--amg-suave); }
}
.ar-amg-det { border-top: 1px solid var(--amg-borde); padding: .5rem 0; }
.ar-amg-det summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Gráficos */
.ar-amg-graf { width: 100%; height: auto; display: block; }
.ar-amg-graf__eje { stroke: var(--amg-borde); stroke-width: 1; }
.ar-amg-graf__txt { fill: var(--amg-suave); font-size: 12px; font-family: inherit; }
.ar-amg-graf__val { fill: var(--amg-texto); font-size: 12px; font-weight: 700; font-family: inherit; }
.ar-amg-graf__s0 { fill: #0f6b6e; }
.ar-amg-graf__s1 { fill: #5b4fb0; }
.ar-amg-graf__s2 { fill: #c07a00; }
.ar-amg-graf__s3 { fill: #5e6b6b; }
.ar-amg-graf__s4 { fill: #8a4b00; }
.ar-amg-graf__s5 { fill: #9aa5a5; }
.ar-amg-fondo-s0 { background: #0f6b6e; } .ar-amg-fondo-s1 { background: #5b4fb0; } .ar-amg-fondo-s2 { background: #c07a00; }
.ar-amg-fondo-s3 { background: #5e6b6b; } .ar-amg-fondo-s4 { background: #8a4b00; } .ar-amg-fondo-s5 { background: #9aa5a5; }
.ar-amg-leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0; margin: .5rem 0 0; font-size: .9rem; }
.ar-amg-leyenda__color { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: .4rem; vertical-align: -2px; }

@media (min-width: 720px) {
	.ar-amg-fichas { grid-template-columns: repeat(4, 1fr); }
	.ar-amg-fichas--3 { grid-template-columns: repeat(3, 1fr); }
	.ar-amg-codigo__valor { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) { .ar-amg * { transition: none !important; animation: none !important; } }

/* Alta: desplegable "Me interesa" y acceso con Google */
.ar-amg-panel[hidden], #amg-interesa[hidden] { display: none; }
.ar-amg-panel { margin-top: 12px; animation: ar-amg-abre .25s ease; }
@keyframes ar-amg-abre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ar-amg-panel { animation: none; } }
.ar-amg-google { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 2px; transition: opacity .2s; }
.ar-amg-google[data-off="1"] { opacity: .4; pointer-events: none; }
.ar-amg-o { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #4b5a55; font-size: .92rem; }
.ar-amg-o::before, .ar-amg-o::after { content: ""; flex: 1; height: 1px; background: #d9d2c0; }

/* Enlaces: botones de compartir */
.ar-amg [hidden] { display: none !important; }
.ar-amg-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.ar-amg-acciones .ar-amg-btn { flex: 1 1 140px; min-height: 52px; justify-content: center; }

/* Tu planta (1.5.0): seis estados lineales, solo reconocimiento. Todo bajo .ar-amg para que el movimiento reducido lo apague. */
.ar-amg-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ar-amg-nav a { position: relative; }
.ar-amg-punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--amg-acento); margin-left: .1rem; }
.ar-amg-nav a.is-activa .ar-amg-punto { background: #fff; }
.ar-amg-planta { display: grid; gap: .85rem; }
.ar-amg-planta__cab { display: flex; align-items: center; gap: 1rem; }
.ar-amg-planta__cab > div { min-width: 0; }
.ar-amg-planta__cab h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.ar-amg-planta__frase { margin: .15rem 0 0; }
.ar-amg-planta__ico { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--amg-bruma); color: var(--amg-prim-osc); display: grid; place-items: center; }
.ar-amg-planta__ico .ar-amg-ico { width: 48px; height: 48px; vertical-align: 0; }
.ar-amg-planta__txt { margin: 0; font-size: .95rem; }
.ar-amg-pasos { position: relative; height: 36px; margin: .1rem 16px 0 0; }
.ar-amg-pasos::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 6px; border-radius: 999px; background: var(--amg-arena); border: 1px solid var(--amg-borde); }
.ar-amg-pasos__relleno { position: absolute; left: 0; top: 15px; height: 6px; border-radius: 999px; background: var(--amg-prim); }
.ar-amg-pasos__lista { list-style: none; margin: 0; padding: 0; }
.ar-amg-pasos__nodo { position: absolute; top: 4px; width: 28px; height: 28px; margin-left: -14px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--amg-campo); color: var(--amg-suave); }
.ar-amg-pasos__nodo .ar-amg-ico { width: 16px; height: 16px; vertical-align: 0; }
.ar-amg-pasos__nodo.is-hecho { background: var(--amg-prim); border-color: var(--amg-prim); color: #fff; }
.ar-amg-pasos__nodo.is-actual { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--amg-prim); }
.ar-amg-pasos__nodo.is-sig { border-style: dashed; border-color: var(--amg-prim); color: var(--amg-prim-osc); }
.ar-amg-pasos__nodo .ar-amg-pasos__check { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; padding: 1px; border-radius: 50%; background: #fff; color: var(--amg-prim-osc); border: 1.5px solid var(--amg-prim); }
.ar-amg-paso { background: var(--amg-crema); border: 1px solid var(--amg-borde); border-radius: 10px; padding: .75rem .9rem; }
.ar-amg-paso p { margin: 0; }
.ar-amg-paso .ar-amg-etiqueta { margin-bottom: .2rem; }
.ar-amg-paso .ar-amg-acciones { margin: .6rem 0 0; }
.ar-amg-paso .ar-amg-acciones .ar-amg-btn { flex: 0 1 auto; min-height: 44px; }
.ar-amg-paso .ar-amg-aviso-copia { min-height: 0; }
.ar-amg-planta .ar-amg-det { padding-bottom: 0; }
.ar-amg-hitos { list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; gap: .6rem; }
.ar-amg-hitos li { display: flex; gap: .7rem; align-items: flex-start; color: var(--amg-suave); }
.ar-amg-hitos li .ar-amg-ico { width: 28px; height: 28px; margin-top: .1rem; }
.ar-amg-hitos li.is-hecho { color: var(--amg-texto); }
.ar-amg-hitos li.is-hecho .ar-amg-ico { color: var(--amg-prim); }
.ar-amg-hitos em { font-style: normal; font-size: .85rem; color: var(--amg-suave); }

/* Aviso «Alguien ha usado tu regalo» y celebración del hito: una sola tarjeta a la vez */
.ar-amg-novedad, .ar-amg-hito { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; background: var(--amg-bruma); border: 1px solid var(--amg-prim); border-radius: var(--amg-radio); padding: 1rem; }
.ar-amg-novedad__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--amg-prim-osc); display: grid; place-items: center; }
.ar-amg-novedad__txt, .ar-amg-hito__txt { flex: 1 1 220px; min-width: 0; }
.ar-amg-novedad h3, .ar-amg-hito h3 { margin: 0 0 .15rem; }
.ar-amg-novedad p, .ar-amg-hito p { margin: 0; }
.ar-amg-hito__aviso { margin-top: .5rem !important; }
.ar-amg-hito__fig { flex: none; width: 72px; height: 72px; color: var(--amg-prim-osc); }
.ar-amg-hito__svg { width: 72px; height: 72px; display: block; overflow: visible; }
.ar-amg-hito__halo { stroke: var(--amg-prim); opacity: 0; }
.ar-amg-visto { margin: .6rem 0 0; }
.ar-amg-novedad .ar-amg-visto { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
	.ar-amg-hito__halo { animation: ar-amg-halo 1.2s ease-out 1 both; transform-origin: center; transform-box: fill-box; }
	.ar-amg-hito__tallo { stroke-dasharray: 24; animation: ar-amg-tallo .7s ease-out .1s 1 both; }
	.ar-amg-hito__ico { animation: ar-amg-crece .6s cubic-bezier(.3, 1.4, .5, 1) .4s 1 both; transform-origin: center; transform-box: fill-box; }
}
@keyframes ar-amg-halo { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.35); opacity: 0; } }
@keyframes ar-amg-tallo { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes ar-amg-crece { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* ==== 1.6.0: regalo escalonado, escalera del carrito, elegir recompensa y segunda compra. Todo bajo .ar-amg. ==== */

/* «Abre tu regalo»: un <details> nativo. El regalo es el <summary>. */
.ar-amg-regalo { background: var(--amg-aviso-fondo); }
.ar-amg-rg { max-width: 640px; margin: 0 auto; padding: .35rem 3.2rem .5rem 1rem; }
.ar-amg-rg__cab { list-style: none; display: flex; align-items: center; gap: .9rem; cursor: pointer; min-height: 56px; padding: .35rem 0; border-radius: 12px; }
.ar-amg-rg__cab::-webkit-details-marker { display: none; }
.ar-amg-rg__svg { flex: none; width: 64px; height: 64px; color: var(--amg-prim-osc); overflow: visible; transition: width .3s ease, height .3s ease; }
.ar-amg-rg[open] .ar-amg-rg__svg { width: 92px; height: 92px; }
.ar-amg-rg__caja { fill: var(--amg-bruma); }
.ar-amg-rg__tapa-r { fill: #fff; }
.ar-amg-rg__tapa { transform-origin: 12px 9px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.ar-amg-rg[open] .ar-amg-rg__tapa { transform: translateY(-3.2px) rotate(-14deg); }
.ar-amg-rg__halo { opacity: 0; transform-origin: center; transform-box: fill-box; }
.ar-amg-rg__txt { display: grid; gap: .1rem; min-width: 0; }
.ar-amg-rg__tit { font-family: var(--ar-fuente-titulos, Georgia, serif); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.ar-amg-rg__sub { font-size: .92rem; color: var(--amg-texto); }
.ar-amg-rg__abrir { color: var(--amg-prim-osc); font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; margin-top: .2rem; }
.ar-amg-rg[open] .ar-amg-rg__abrir { display: none; }
.ar-amg-rg__cab:focus-visible { outline: 3px solid var(--amg-acento); outline-offset: 2px; }
.ar-amg-rg__cuerpo { padding: .25rem 0 .25rem; }
.ar-amg-rg__tramos { list-style: none; margin: .25rem 0 0; padding: 0; background: #fff; border: 1px solid var(--amg-borde); border-radius: 14px; overflow: hidden; }
.ar-amg-rg__tramos li { display: flex; align-items: center; gap: .9rem; padding: .65rem .9rem; }
.ar-amg-rg__tramos li + li { border-top: 1px solid var(--amg-borde); }
.ar-amg-rg__pct { flex: 0 0 4.2rem; font-family: var(--ar-fuente-titulos, Georgia, serif); font-weight: 700; font-size: 1.5rem; color: var(--amg-prim-osc); line-height: 1; }
.ar-amg-rg__tr { display: grid; font-size: .9rem; line-height: 1.3; }
.ar-amg-rg__tr strong { font-size: 1rem; }
.ar-amg-rg__vuelve { margin: .6rem 0 0; background: var(--amg-bruma); border-radius: 12px; padding: .6rem .8rem; font-size: .92rem; }
.ar-amg-rg__peq { margin: .6rem 0 0; font-size: .85rem; color: var(--amg-suave); }
.ar-amg-rg__botones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.ar-amg-rg__botones > * { flex: 1 1 160px; margin: 0; }
.ar-amg-rg__botones .ar-amg-btn { width: 100%; min-height: 48px; }
.ar-amg-regalo .ar-amg-aviso__cerrar { right: .5rem; top: .6rem; }
@media (prefers-reduced-motion: no-preference) {
	.ar-amg-rg[open] .ar-amg-rg__halo { animation: ar-amg-rg-halo 1s ease-out 1 both; }
	.ar-amg-rg[open] .ar-amg-rg__tramos li { animation: ar-amg-rg-entra .4s ease-out both; }
	.ar-amg-rg[open] .ar-amg-rg__tramos li:nth-child(2) { animation-delay: .12s; }
	.ar-amg-rg[open] .ar-amg-rg__tramos li:nth-child(3) { animation-delay: .24s; }
}
@keyframes ar-amg-rg-halo { from { opacity: .5; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
@keyframes ar-amg-rg-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Escalera de tramos del carrito (sustituye a la barra de envío cuando hay cupón de una amiga) */
.ar-amg-esc { background: #fff; border: 1px solid var(--amg-borde); border-radius: 16px; padding: 14px 14px 10px; margin: 0 0 1rem; }
.ar-amg-esc__msg { margin: 0; font-weight: 700; }
.ar-amg-esc__riel { position: relative; height: 10px; background: var(--amg-borde); border-radius: 99px; margin: 44px 16px 46px 16px; }
.ar-amg-esc__lleno { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--amg-prim); }
.ar-amg-esc__nodo { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 2px dashed var(--amg-suave); display: grid; place-items: center; color: #fff; }
.ar-amg-esc__nodo.is-sig { border-color: var(--amg-prim); }
.ar-amg-esc__nodo.is-hecho { background: var(--amg-prim); border: 2px solid var(--amg-prim); }
.ar-amg-esc__nodo .ar-amg-ico { width: 14px; height: 14px; vertical-align: 0; stroke-width: 2.6; }
.ar-amg-esc__et { position: absolute; top: 31px; left: 50%; transform: translateX(-50%); font-size: .78rem; line-height: 1.2; text-align: center; white-space: nowrap; color: var(--amg-texto); font-weight: 700; }
.ar-amg-esc__et i { display: block; font-style: normal; font-weight: 500; color: var(--amg-suave); }
.ar-amg-esc__nodo.is-arriba .ar-amg-esc__et { top: auto; bottom: 31px; }
.ar-amg-esc__nodo.is-fin .ar-amg-esc__et { left: auto; right: -16px; transform: none; text-align: right; }
.ar-amg-esc__nodo.is-ini .ar-amg-esc__et { left: -16px; transform: none; text-align: left; }
.ar-amg-esc__envio { margin: 0 0 .5rem; font-size: .92rem; color: var(--amg-suave); }
.ar-amg-esc__fila { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--amg-borde); font-size: .95rem; }
.ar-amg-esc__nota { margin: .25rem 0 0; font-size: .8rem; color: var(--amg-suave); }

/* Elegir recompensa */
.ar-amg-cobro { display: grid; gap: .9rem; }
.ar-amg-cobro > h3, .ar-amg-cobro p { margin: 0; }
.ar-amg-cobro__msg { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--amg-borde); background: var(--amg-crema); }
.ar-amg-cobro__msg--ok { background: var(--amg-bruma); border-color: var(--amg-prim); }
.ar-amg-cobro__msg .ar-amg-ico { margin-top: .15rem; color: var(--amg-prim-osc); }
.ar-amg-cobro__msg p { margin-top: .15rem; }
.ar-amg-cobro__listo { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem; border-radius: 14px; background: var(--amg-bruma); border: 1px solid var(--amg-prim); }
.ar-amg-cobro__listo > div { min-width: 0; display: grid; gap: .4rem; }
.ar-amg-cobro__listo-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--amg-prim); color: #fff; display: grid; place-items: center; }
.ar-amg-cobro__codigo { font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 1.7rem; font-weight: 700; letter-spacing: .06em; word-break: break-all; }
.ar-amg-cobro__tramite { display: grid; gap: .4rem; padding: .9rem; border: 1px dashed var(--amg-prim); border-radius: 14px; background: var(--amg-crema); }
.ar-amg-cobro__chip { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--amg-prim); color: var(--amg-prim-osc); }
.ar-amg-elige__campos { border: 0; margin: 0; padding: 0; min-width: 0; }
.ar-amg-elige__campos legend { font-family: var(--ar-fuente-titulos, Georgia, serif); font-weight: 700; font-size: 1.15rem; padding: 0; margin-bottom: .6rem; }
.ar-amg-opciones { display: grid; gap: .75rem; }
.ar-amg-opcion { display: block; position: relative; cursor: pointer; }
.ar-amg-opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ar-amg-opcion__caja { display: grid; gap: .3rem; align-content: start; height: 100%; padding: 1rem 3.2rem 1rem 1rem; border: 2px solid var(--amg-borde); border-radius: 14px; background: #fff; position: relative; }
.ar-amg-opcion--destacada .ar-amg-opcion__caja { border-color: var(--amg-prim); }
.ar-amg-opcion input:checked + .ar-amg-opcion__caja { border-color: var(--amg-prim); background: var(--amg-bruma); box-shadow: 0 0 0 1px var(--amg-prim); }
.ar-amg-opcion input:focus-visible + .ar-amg-opcion__caja { outline: 3px solid var(--amg-acento); outline-offset: 2px; }
.ar-amg-opcion__check { position: absolute; right: .9rem; top: .9rem; width: 28px; height: 28px; padding: 4px; border-radius: 50%; border: 2px solid var(--amg-campo); background: #fff; color: transparent; stroke-width: 2.6; }
.ar-amg-opcion input:checked + .ar-amg-opcion__caja .ar-amg-opcion__check { background: var(--amg-prim); border-color: var(--amg-prim); color: #fff; }
.ar-amg-opcion__etq { justify-self: start; background: var(--amg-prim); color: #fff; font-size: .78rem; font-weight: 700; padding: .1rem .65rem; border-radius: 999px; }
.ar-amg-opcion__etq--neutra { background: var(--amg-arena); color: var(--amg-texto); border: 1px solid var(--amg-borde); }
.ar-amg-opcion__valor { font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 1.4rem; line-height: 1.2; }
.ar-amg-opcion__calc { font-size: .9rem; color: var(--amg-suave); }
.ar-amg-opcion__txt { font-size: .88rem; }
.ar-amg-confirma { display: grid; gap: .8rem; background: var(--amg-bruma); border: 1px solid var(--amg-prim); border-radius: 14px; padding: 1rem; }
.ar-amg-confirma h4 { margin: 0; font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 1.3rem; line-height: 1.25; }
.ar-amg-confirma h4:focus { outline: none; }
.ar-amg-confirma h4:focus-visible { outline: 3px solid var(--amg-acento); outline-offset: 3px; }
.ar-amg-cond { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ar-amg-cond li { display: flex; gap: .6rem; align-items: flex-start; }
.ar-amg-cond .ar-amg-ico { margin-top: .2rem; color: var(--amg-prim-osc); }
.ar-amg-alt { margin: 0; color: var(--amg-suave); }
.ar-amg-irrevocable { margin: 0; }
.ar-amg-confirma__form .ar-amg-acciones { margin: 0; }
.ar-amg-confirma__form [aria-disabled="true"] { opacity: .6; pointer-events: none; }
.ar-amg-creditos { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .6rem; }
.ar-amg-credito { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .7rem .9rem; border: 1px solid var(--amg-borde); border-radius: 12px; background: var(--amg-crema); }
.ar-amg-credito > div { flex: 1 1 200px; min-width: 0; }
.ar-amg-credito code { font-size: .95rem; background: #fff; border: 1px solid var(--amg-borde); border-radius: 6px; padding: .05rem .4rem; margin-left: .25rem; word-break: break-all; }
.ar-amg-credito small { color: var(--amg-suave); }
.ar-amg-credito__estado { font-size: .8rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--amg-prim); color: var(--amg-prim-osc); }
.ar-amg-credito--usado .ar-amg-credito__estado, .ar-amg-credito--caducado .ar-amg-credito__estado { border-color: var(--amg-campo); color: var(--amg-suave); }
.ar-amg-credito .ar-amg-btn { min-height: 44px; padding: .35rem .9rem; }

/* Tu regalo (Resumen) e interruptor «Mostrar mi nombre» */
.ar-amg-tramos-mini { list-style: none; margin: .5rem 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ar-amg-tramos-mini li { display: grid; text-align: center; padding: .45rem .9rem; border: 1px solid var(--amg-borde); border-radius: 12px; background: var(--amg-crema); }
.ar-amg-tramos-mini strong { font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 1.35rem; color: var(--amg-prim-osc); line-height: 1.1; }
.ar-amg-tramos-mini span { font-size: .82rem; color: var(--amg-suave); }
.ar-amg-nombre { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--amg-borde); }
.ar-amg-interruptor { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; position: relative; flex: 1 1 260px; }
.ar-amg-interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ar-amg-interruptor__pista { flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--amg-campo); position: relative; transition: background .2s; margin-top: .1rem; }
.ar-amg-interruptor__pista::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ar-amg-interruptor input:checked + .ar-amg-interruptor__pista { background: var(--amg-prim); }
.ar-amg-interruptor input:checked + .ar-amg-interruptor__pista::after { transform: translateX(20px); }
.ar-amg-interruptor input:focus-visible + .ar-amg-interruptor__pista { outline: 3px solid var(--amg-acento); outline-offset: 2px; }
.ar-amg-interruptor__txt { display: grid; }
.ar-amg-interruptor__txt small { color: var(--amg-suave); font-size: .85rem; }

/* Cupón de segunda compra en «pedido recibido» y «ver pedido» */
.ar-amg-vuelve { display: flex; gap: .9rem; align-items: flex-start; margin: 1.5rem 0; padding: 1rem; background: var(--amg-bruma); border-left: 4px solid var(--amg-prim); border-radius: 0 14px 14px 0; }
.ar-amg-vuelve__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--amg-prim-osc); display: grid; place-items: center; }
.ar-amg-vuelve__txt { min-width: 0; }
.ar-amg-vuelve__tit { margin: 0 0 .3rem !important; font-family: var(--ar-fuente-titulos, Georgia, serif); font-size: 1.3rem; }
.ar-amg-vuelve__txt p { margin: 0 0 .4rem; }
.ar-amg-vuelve__cod strong { font-size: 1.35rem; letter-spacing: .06em; }
.ar-amg-vuelve__nota { font-size: .85rem; color: var(--amg-suave); }

@media (min-width: 720px) {
	.ar-amg-opciones { grid-template-columns: 1fr 1fr; }
}

.ar-amg-elige { display: grid; gap: .9rem; }
.ar-amg-elige p { margin: 0; }
.ar-amg-elige .ar-amg-acciones { margin: 0; }
.ar-amg-elige .ar-amg-acciones .ar-amg-btn, .ar-amg-confirma__form .ar-amg-acciones .ar-amg-btn { flex: 1 1 230px; }
.ar-amg-cobro .ar-amg-ok { margin: 0; }
.ar-amg-rg__botones { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ar-amg-rg__botones > * { min-width: 0; }
.ar-amg-btn:disabled, .ar-amg-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
