/* ==========================================================================
   Devoluciones: /devoluciones/ y Mi cuenta → Devoluciones
   ========================================================================== */

.eg-ret__hero { padding: clamp(40px, 6vw, 76px) 0 clamp(96px, 9vw, 130px); background: radial-gradient(900px 420px at 90% 0%, var(--eg-soft) 0%, transparent 70%), var(--eg-surface); border-bottom: 1px solid var(--eg-line); text-align: center; }
.eg-ret__kick { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--eg-soft); color: var(--eg-primary); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.eg-ret__hero h1 { max-width: 900px; margin: 18px auto 14px; color: var(--eg-ink); font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.eg-ret__hero h1 em { font-style: normal; color: var(--eg-primary); }
.eg-ret__hero > .eg-wrap > p { max-width: 640px; margin: 0 auto; color: var(--eg-muted); font-size: 18px; line-height: 1.55; }
.eg-ret__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.eg-ret__facts li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--eg-line); border-radius: 16px; background: var(--eg-surface); text-align: left; }
.eg-ret__facts .eg-icon { color: var(--eg-primary); flex: none; }
.eg-ret__facts span { display: grid; color: var(--eg-muted); font-size: 13px; line-height: 1.3; }
.eg-ret__facts strong { color: var(--eg-ink); font-size: 15px; }

.eg-ret__main { position: relative; margin-top: clamp(-90px, -7vw, -64px); }
.eg-ret__card { max-width: 980px; margin: 0 auto; padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--eg-line); border-radius: 26px; background: var(--eg-surface); box-shadow: 0 30px 60px -40px rgb(3 40 18 / .35); }
.eg-ret__step { display: block; margin-bottom: 6px; color: var(--eg-primary); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eg-ret__card h2 { margin: 0 0 8px; color: var(--eg-ink); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.eg-ret__card p { color: var(--eg-muted); line-height: 1.55; }

.eg-ret .eg-field input, .eg-ret .eg-field select, .eg-ret .eg-field textarea, .eg-ret__qty select { width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--eg-line); border-radius: 12px; background: var(--eg-bg); color: var(--eg-ink); font: 500 16px/1.3 var(--eg-font); box-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s; box-sizing: border-box; }
.eg-ret .eg-field textarea { min-height: 96px; resize: vertical; }
.eg-ret .eg-field input:focus, .eg-ret .eg-field textarea:focus, .eg-ret__qty select:focus { outline: none; border-color: var(--eg-primary); background: var(--eg-surface); box-shadow: 0 0 0 4px rgb(0 128 26 / .12); }
.eg-ret .eg-field input[type=file] { padding: 12px; background: var(--eg-surface); border-style: dashed; }

.eg-ret__find { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.eg-ret__lookup .eg-b2b__grid { margin: 18px 0 20px; }
.eg-ret__lookup .eg-btn { width: 100%; justify-content: center; }
.eg-ret__how { display: grid; gap: 14px; margin: 0; padding: 22px; border-radius: 20px; background: var(--eg-bg); list-style: none; counter-reset: none; }
.eg-ret__how li { display: flex; gap: 14px; align-items: flex-start; }
.eg-ret__how b { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--eg-dark); color: var(--eg-lime); font-size: 15px; }
.eg-ret__how span { display: grid; gap: 2px; color: var(--eg-muted); font-size: 14px; line-height: 1.45; }
.eg-ret__how strong { color: var(--eg-ink); font-size: 15px; }

.eg-ret__orders { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.eg-ret__orders li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 18px; border: 1px solid var(--eg-line); border-radius: 16px; }
.eg-ret__orders li > span:first-child { display: grid; gap: 3px; }
.eg-ret__orders strong { color: var(--eg-ink); font-size: 16px; }
.eg-ret__orders small { color: var(--eg-muted); font-size: 13.5px; }
.eg-ret__until { color: var(--eg-primary) !important; font-weight: 600; }
.eg-ret__btns, .eg-ret__orderbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-ret__orderbtns { margin: 18px 0 28px; }
.eg-ret .eg-btn--ghost, .eg-ret__orderbtns .eg-btn--ghost { border: 1.5px solid var(--eg-line-2); color: var(--eg-ink); }
.eg-ret__empty { padding: 18px; border-radius: 14px; background: var(--eg-bg); }

.eg-ret__orderhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--eg-line); }
.eg-ret__orderhead p { margin: 0; }
.eg-ret__badge { padding: 7px 12px; border-radius: 999px; background: var(--eg-soft); color: var(--eg-primary); font-size: 13px; font-weight: 700; }

.eg-ret__block { margin: 0; padding: 26px 0; border: 0; border-bottom: 1px solid var(--eg-line); min-width: 0; }
.eg-ret__block legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 16px; color: var(--eg-ink); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.eg-ret__block legend + * { clear: both; }
.eg-ret__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--eg-dark); color: var(--eg-lime); font-size: 14px; }

.eg-ret__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eg-ret__methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.eg-ret__price { margin-top: 6px; color: var(--eg-ink); font-style: normal; font-size: 13.5px; font-weight: 700; }
.eg-ret__price.is-free { color: var(--eg-primary); }
.eg-ret__shoplink { color: var(--eg-primary) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.eg-ret__shoplink:hover { text-decoration: underline !important; }
.eg-ret__change { display: grid; gap: 14px; margin: 14px 0; }
.eg-ret__change[hidden], .eg-ret [hidden] { display: none !important; }
.eg-ret__note--info { margin: 0; background: var(--eg-soft); color: var(--eg-primary-2) !important; }
.eg-ret__own { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--eg-bg); max-width: none; }
.eg-ret__done .eg-btn { display: inline-flex; gap: 8px; }
.eg-ret__type { position: relative; display: flex; gap: 12px; padding: 16px; border: 1.5px solid var(--eg-line); border-radius: 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.eg-ret__type input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--eg-primary); }
.eg-ret__type span { display: grid; gap: 4px; }
.eg-ret__type strong { color: var(--eg-ink); font-size: 15.5px; }
.eg-ret__type small { color: var(--eg-muted); font-size: 13.5px; line-height: 1.45; }
.eg-ret__type:has(input:checked) { border-color: var(--eg-primary); background: var(--eg-soft); box-shadow: 0 0 0 3px rgb(0 128 26 / .1); }
.eg-ret__type.is-off { opacity: .5; cursor: not-allowed; }
.eg-ret__note { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff8e5; color: #7a4a00 !important; font-size: 14px; }

.eg-ret__items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.eg-ret__items li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--eg-line); border-radius: 16px; transition: border-color .2s, background .2s; }
.eg-ret__items li:has(input:checked) { border-color: var(--eg-primary); background: var(--eg-soft); }
.eg-ret__items li.is-off { opacity: .5; }
.eg-ret__pick { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; cursor: pointer; }
.eg-ret__pick input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--eg-primary); }
.eg-ret__thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--eg-line); overflow: hidden; }
.eg-ret__thumb img { width: 100% !important; height: 100% !important; object-fit: contain; }
.eg-ret__iname { display: grid; gap: 3px; min-width: 0; }
.eg-ret__iname strong { color: var(--eg-ink); font-size: 15px; line-height: 1.3; }
.eg-ret__iname small { color: var(--eg-muted); font-size: 13px; }
.eg-ret__qty { flex: none; width: 104px; }
.eg-ret__qty select { min-height: 44px; padding: 8px 10px; }

.eg-ret__block > .eg-field + .eg-field, .eg-ret__block > .eg-ret__change + .eg-field { margin-top: 14px; }
.eg-ret__submit { display: grid; justify-items: center; gap: 12px; padding-top: 26px; text-align: center; }
.eg-ret__submit .eg-btn { min-width: 300px; justify-content: center; }
.eg-ret__submit .is-busy { opacity: .7; pointer-events: none; }
.eg-ret__small { max-width: 640px; margin: 0; color: var(--eg-muted); font-size: 13.5px; line-height: 1.5; }
.eg-ret__small a { color: var(--eg-primary); font-weight: 600; }

.eg-ret__done { display: grid; justify-items: center; gap: 10px; padding: 20px 0; text-align: center; }
.eg-ret__done h2 { margin-top: 8px; }
.eg-ret__done p { max-width: 52ch; margin: 0; }
.eg-ret__num { color: var(--eg-ink) !important; font-weight: 700; font-size: 17px; }
.eg-ret__done .eg-btn { margin-top: 10px; }

.eg-ret__info { padding: clamp(48px, 6vw, 80px) var(--eg-gutter); }
.eg-ret__faq { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; }
.eg-ret__faq details { padding: 0 22px; border: 1px solid var(--eg-line); border-radius: 16px; background: var(--eg-surface); }
.eg-ret__faq summary { padding: 18px 0; color: var(--eg-ink); font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.eg-ret__faq summary::after { content: "+"; color: var(--eg-primary); font-size: 22px; line-height: 1; }
.eg-ret__faq details[open] summary::after { content: "−"; }
.eg-ret__faq summary::-webkit-details-marker { display: none; }
.eg-ret__faq details > p, .eg-ret__faq details > div, .eg-ret__faq details > button { margin: 0 0 16px; color: var(--eg-muted); line-height: 1.6; }
.eg-ret__model { padding: 18px 20px; border-radius: 12px; background: var(--eg-bg); }
.eg-ret__model p { margin: 0 0 10px; color: var(--eg-text); }

/* Mi cuenta */
.eg-ret--account h3 { margin: 26px 0 10px; color: var(--eg-ink); font-size: 19px; }
.eg-ret__intro { color: var(--eg-muted); }
.eg-ret__reqs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.eg-ret__reqs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; border: 1px solid var(--eg-line); border-radius: 14px; }
.eg-ret__reqs span { color: var(--eg-muted); font-size: 14px; }
.eg-ret__reqs em { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); font-style: normal; font-size: 13px; font-weight: 700; }

@media (max-width: 860px) {
	.eg-ret__find { grid-template-columns: minmax(0, 1fr); }
	.eg-ret__types, .eg-ret__methods { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.eg-ret__facts li { flex: 1 1 calc(50% - 10px); padding: 10px 12px; }
	.eg-ret__items li { flex-wrap: wrap; }
	.eg-ret__qty { width: 100%; }
	.eg-ret__submit .eg-btn { min-width: 0; width: 100%; }
	.eg-ret__orders .eg-btn { flex: 1 1 100%; justify-content: center; }
}
@media print {
	.eg-ret__hero, .eg-ret__main, .eg-topbar, .eg-gfbar, header, footer, .eg-ret__faq details:not(:last-child), .eg-ret__faq summary, .eg-ret__faq button { display: none !important; }
}
.eg-ret__special { color: var(--eg-warn); font-weight: 700; }
