/* Un recorrido editorial completo, accesible sin JavaScript. */
body.imd-history-page { --history-bg:#fffafa; --history-ink:#22252a; --history-muted:#63606a; --history-red:#df001b; --history-line:#ead9dc; --history-soft:#ffedf0; background:var(--history-bg); }
html[data-theme="dark"] body.imd-history-page,
html[data-imd-color-scheme="dark"] body.imd-history-page,
html.inmudescuentos-site-dark body.imd-history-page,
html.imh-site-dark body.imd-history-page,
body.imd-history-page.imd-dark-mode { --history-bg:#17191d; --history-ink:#fff4f5; --history-muted:#c5bec7; --history-red:#ff7589; --history-line:#4d343b; --history-soft:#302027; }
body.imd-history-page .hero-section,
body.imd-history-page .entry-header > .entry-title { display:none; }
body.imd-history-page .site-main > .ct-container,
body.imd-history-page .site-main > .ct-container-full { max-width:none; width:100%; padding-top:0; padding-bottom:0; }
body.imd-history-page .entry-content > .imd-history { max-width:1200px!important; width:100%; margin-inline:auto!important; }
.imd-history { box-sizing:border-box; color:var(--history-ink); font:400 18px/1.75 "Aileron",sans-serif; padding:24px clamp(22px,4vw,64px) 0; background:var(--history-bg); }
.imd-history *, .imd-history *::before, .imd-history *::after { box-sizing:border-box; }
.imd-history :where(h1,h2,h3,p,figure,blockquote) { margin:0; }
.imd-history :where(h1,h2) { color:var(--history-ink); font-family:"ODUDA",sans-serif; font-weight:600; letter-spacing:-.025em; text-wrap:balance; word-break:normal; overflow-wrap:normal; hyphens:none; }
.imd-history h1 { font-size:clamp(38px,4.5vw,62px); line-height:1.07; }
.imd-history h1 em { color:var(--history-red); font-style:normal; }
.imd-history h2 { font-size:clamp(30px,3.1vw,43px); line-height:1.16; }
.imd-history a { text-decoration:none; }
.imd-history a:focus-visible { outline:3px solid var(--history-red); outline-offset:6px; border-radius:3px; }
.imd-history__hero { display:grid; grid-template-columns:1.13fr 1fr; gap:30px; align-items:center; min-height:650px; padding-bottom:40px; }
.imd-history__hero-copy { padding-block:34px; }
.imd-history .imd-history__eyebrow { color:var(--history-red); font-size:12px; letter-spacing:.15em; font-weight:700; text-transform:uppercase; margin-bottom:24px; line-height:1.5; }
.imd-history__intro { color:var(--history-muted); max-width:39ch; margin-top:24px!important; font-size:20px; line-height:1.55; text-wrap:pretty; }
.imd-history__signature { margin-top:32px!important; font-weight:700; font-size:17px; }
.imd-history__signature span { display:block; color:var(--history-muted); font-size:14px; font-weight:400; }
.imd-history__read { display:inline-flex; gap:24px; align-items:center; margin-top:30px; color:var(--history-red); font-size:15px; font-weight:700; border-bottom:1px solid var(--history-red); padding-block:8px; }
.imd-history__art { min-width:0; width:100%; margin:0; align-self:center; }
.imd-history__art img { display:block; width:100%; max-width:470px; height:auto!important; max-height:none; object-fit:contain; margin:auto; }
.imd-history__art figcaption { color:var(--history-muted); font-size:13px; text-align:center; margin-top:14px; text-wrap:balance; }
.imd-history__chapters { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-block:1px solid var(--history-line); padding-block:23px; gap:16px; }
.imd-history__chapters a { font-size:13px; color:var(--history-muted); line-height:1.5; padding:5px; }
.imd-history__chapters a:hover { color:var(--history-red); }
.imd-history__chapters span { display:block; color:var(--history-ink); font-weight:700; font-size:18px; }
.imd-history section[id] { scroll-margin-top:130px; }
.imd-history__opening { display:grid; grid-template-columns:.82fr 1.2fr; gap:64px; padding-block:92px; border-bottom:1px solid var(--history-line); }
.imd-history__chapter-label > span { display:block; color:var(--history-red); font-size:12px; letter-spacing:.1em; font-weight:700; text-transform:uppercase; margin-bottom:22px; }
.imd-history__prose { max-width:66ch; }
.imd-history__prose p { color:var(--history-muted); font-size:18px; line-height:1.8; text-wrap:pretty; }
.imd-history__prose p + p { margin-top:22px; }
.imd-history__chapter { display:grid; grid-template-columns:1.16fr 1fr; align-items:center; gap:64px; padding-block:88px; border-bottom:1px solid var(--history-line); }
.imd-history__copy h2 { margin-bottom:28px; }
.imd-history__chapter--love { grid-template-columns:1fr 1.16fr; }
.imd-history__chapter--love .imd-history__copy { grid-column:2; grid-row:1; }
.imd-history__chapter--love .imd-history__art { grid-column:1; grid-row:1; }
.imd-history__community { padding-block:90px 60px; border-bottom:1px solid var(--history-line); }
.imd-history__community h2 { margin-bottom:32px; }
.imd-history__community-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(32px,5vw,64px); align-items:start; }
.imd-history__community-columns > .imd-history__prose { min-width:0; max-width:none; }
.imd-history__community blockquote { font:400 clamp(25px,3vw,35px)/1.3 "ODUDA",sans-serif; color:var(--history-red); border:none; border-left:3px solid var(--history-red); padding:8px 0 8px 28px; margin:42px 0 0; max-width:39ch; text-wrap:balance; background:none; box-shadow:none; }
.imd-history__thanks { padding-block:80px 72px; }
.imd-history__thanks-heading { max-width:760px; margin-bottom:40px; }
.imd-history__thanks-intro { color:var(--history-muted); margin-top:24px!important; max-width:61ch; text-wrap:pretty; }
.imd-history__thanks-lead { color:var(--history-ink); font-weight:700; margin-top:18px!important; text-wrap:pretty; }
.imd-history__thanks-layout { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr); gap:clamp(32px,5vw,64px); align-items:center; }
.imd-history__art--thanks img { max-width:420px; }
.imd-history__dedications { min-width:0; }
.imd-history__dedication { position:relative; padding:24px 0 26px 40px; border-bottom:1px solid var(--history-line); }
.imd-history__dedication:first-child { padding-top:0; }
.imd-history__dedication:last-child { border-bottom:0; padding-bottom:0; }
.imd-history__dedication-mark { position:absolute; left:0; top:26px; color:var(--history-red); font-size:12px; line-height:1.5; font-weight:700; }
.imd-history__dedication:first-child .imd-history__dedication-mark { top:3px; }
.imd-history__dedication h3 { color:var(--history-ink); font:700 clamp(19px,1.9vw,23px)/1.38 "Aileron",sans-serif; letter-spacing:-.015em; text-wrap:pretty; }
.imd-history__dedication p { margin-top:12px; color:var(--history-muted); font-size:17px; line-height:1.75; text-wrap:pretty; }
.imd-history__thanks-final { max-width:47ch; margin:44px auto 0!important; font-size:clamp(21px,2.3vw,28px); line-height:1.45; text-align:center; text-wrap:balance; color:var(--history-muted); }
.imd-history__thanks-final strong { color:var(--history-red); }
.imd-history__closing { padding:50px 24px 58px; text-align:center; background:var(--history-soft); border-radius:80px 80px 0 0; color:var(--history-muted); }
.imd-history__heart { font-size:45px; line-height:1; color:var(--history-red); }
.imd-history__closing > p:not(.imd-history__motto) { margin:20px auto; font-size:15px; }
.imd-history .imd-history__motto { color:var(--history-red); font:600 clamp(32px,4.6vw,57px)/1.12 "ODUDA",sans-serif; text-wrap:balance; }
.imd-history__brand { display:block; font-weight:700; font-size:15px; margin-top:25px; color:var(--history-ink); }
@media(max-width:900px) {
 .imd-history { padding-inline:28px; }
 .imd-history__hero { gap:20px; min-height:auto; }
 .imd-history__opening,.imd-history__chapter { gap:32px; padding-block:64px; }
 .imd-history__prose p { font-size:17px; }
 .imd-history__community-columns { gap:32px; }
 .imd-history__thanks-layout { gap:28px; }
 .imd-history__dedication { padding-left:30px; }
}
@media(max-width:700px) {
 .imd-history { padding:20px 22px 0; }
 .imd-history__hero { grid-template-columns:1fr; gap:12px; padding-bottom:32px; }
 .imd-history__hero-copy { padding:16px 0 0; }
 .imd-history h1 { font-size:clamp(36px,8.9vw,52px); }
 .imd-history h1 br { display:none; }
 .imd-history__intro { font-size:18px; margin-top:20px!important; }
 .imd-history__signature { margin-top:23px!important; }
 .imd-history__art img { max-width:360px; }
 .imd-history__art--hero img { max-width:310px; }
 .imd-history__chapters { grid-template-columns:repeat(2,1fr); gap:18px; }
 .imd-history__chapters a:last-child { grid-column:1/-1; }
 .imd-history__opening,.imd-history__chapter { grid-template-columns:1fr; gap:30px; padding-block:48px; }
 .imd-history__chapter--love .imd-history__copy,.imd-history__chapter--love .imd-history__art { grid-column:auto; grid-row:auto; }
 .imd-history__community { padding-block:48px; }
 .imd-history__community-columns { grid-template-columns:1fr; gap:22px; }
 .imd-history__community blockquote { margin-block:32px; padding-left:20px; }
 .imd-history__thanks { padding-block:48px; }
 .imd-history__thanks-heading { margin-bottom:24px; }
 .imd-history__thanks-layout { grid-template-columns:1fr; gap:30px; }
 .imd-history__art--thanks img { max-width:290px; }
 .imd-history__dedication { padding-left:28px; }
 .imd-history__thanks-final { margin-top:32px!important; }
 .imd-history__closing { border-radius:42px 42px 0 0; padding-inline:16px; }
 .imd-history__closing .imd-history__motto { font-size:clamp(30px,8vw,43px); }
}
@media(prefers-reduced-motion:no-preference) { .imd-history__read span { transition:transform .2s; } .imd-history__read:hover span { transform:translateY(4px); } }
@media print { .imd-history { color:#222; background:white; } .imd-history__chapters,.imd-history__read { display:none; } .imd-history__art { break-inside:avoid; } .imd-history h2 { break-after:avoid; } }
