:root {
    --navy: #000d24;
    --navy-2: #001536;
    --navy-3: #04214d;
    --navy-card: #0a2660;
    --line: rgba(255,255,255,.12);
    --orange: #fb9359;
    --orange-strong: #f3834c;
    --ink: #f4f8fd;
    --ink-dim: #b4c6e0;
    --ink-faint: #8fa6c6;
    --paper: #ffffff;
    --paper-2: #f3f6fb;
    --paper-line: rgba(0,13,36,.1);
    --ink-on-paper: #44557a;
    --accent-on-paper: #0857a0;
    --blue-ink: #0a5dc2;
    --teal-ink: #12805f;
    --orange-ink: #a8501a;
    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-io: cubic-bezier(.77,0,.18,1);
}
html { scroll-padding-top: 96px; }
body ::selection { background: #fb9359; color: #000d24; }

/* ============ Formularios HubSpot (todo el sitio) ============ */
.hbspt-form, .hbspt-form * { box-sizing: border-box; }
.hbspt-form .hs-form { font-family: 'Sarabun', system-ui, sans-serif; color: #000d24; }
.hbspt-form .hs-form fieldset { max-width: none !important; }
.hbspt-form .hs-form fieldset.form-columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hbspt-form .hs-form fieldset.form-columns-2 > .hs-form-field { width: auto !important; float: none !important; }
.hbspt-form .hs-form fieldset .input { margin-right: 0 !important; }
.hbspt-form .hs-form .hs-form-field { margin-bottom: 18px; }
.hbspt-form .hs-form label:not(.hs-form-booleancheckbox-display):not(.hs-form-radio-display) {
    display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 700; letter-spacing: .005em; color: #000d24; text-align: left;
}
.hbspt-form .hs-form .hs-form-required { color: #c4561c; margin-left: 2px; }
.hbspt-form .hs-form .hs-field-desc { font-size: 13px; color: #5b6b8c; margin: -2px 0 8px; }
.hbspt-form .hs-form .hs-input:not([type=checkbox]):not([type=radio]):not([type=file]) {
    width: 100% !important; min-height: 50px; padding: 12px 16px !important; margin: 0;
    border: 1px solid rgba(0,13,36,.16) !important; border-radius: 12px !important;
    background: #f7f9fc !important; box-shadow: inset 0 1px 0 rgba(0,13,36,.03);
    font: 500 16px/1.4 'Sarabun', system-ui, sans-serif !important; color: #000d24 !important;
    transition: border-color .2s, background-color .2s, box-shadow .25s var(--ease-out);
    -webkit-appearance: none; appearance: none;
}
.hbspt-form .hs-form textarea.hs-input { min-height: 120px !important; resize: vertical; }
.hbspt-form .hs-form .hs-input::placeholder { color: #8a97b1; }
.hbspt-form .hs-form .hs-input:not([type=checkbox]):not([type=radio]):hover { border-color: rgba(0,13,36,.3) !important; }
.hbspt-form .hs-form .hs-input:not([type=checkbox]):not([type=radio]):focus {
    outline: none; background: #ffffff !important; border-color: #fb9359 !important; box-shadow: 0 0 0 4px rgba(251,147,89,.2) !important;
}
.hbspt-form .hs-form .hs-input.invalid.error, .hbspt-form .hs-form .error .hs-input { border-color: #d0453a !important; background: #fff8f7 !important; }
.hbspt-form .hs-form select.hs-input {
    cursor: pointer; padding-right: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 5.25 7 8.75l3.5-3.5' fill='none' stroke='%23000d24' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 16px center !important;
}
.hbspt-form .hs-form select.hs-input.is-placeholder { color: #8a97b1 !important; }
@supports (appearance: base-select) {
    .hbspt-form .hs-form select.hs-input.hs-input, .hbspt-form .hs-form select.hs-input::picker(select) { -webkit-appearance: base-select !important; appearance: base-select !important; }
    .hbspt-form .hs-form select.hs-input { display: flex; align-items: center; background-image: none !important; padding-right: 16px !important; }
    .hbspt-form .hs-form select.hs-input::picker-icon {
        content: ""; width: 14px; height: 14px; margin-left: auto;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 5.25 7 8.75l3.5-3.5' fill='none' stroke='%23000d24' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
        transition: rotate .3s var(--ease-out);
    }
    .hbspt-form .hs-form select.hs-input:open::picker-icon { rotate: 180deg; }
    .hbspt-form .hs-form select.hs-input::picker(select) {
        margin-top: 6px; padding: 6px; border: 1px solid rgba(0,13,36,.12); border-radius: 14px; background: #ffffff;
        box-shadow: 0 24px 48px -16px rgba(0,21,54,.32), 0 2px 6px rgba(0,21,54,.06); max-height: 320px;
        opacity: 0; translate: 0 -6px; transition: opacity .18s, translate .25s var(--ease-out), display .25s allow-discrete, overlay .25s allow-discrete;
    }
    .hbspt-form .hs-form select.hs-input:open::picker(select) { opacity: 1; translate: 0 0; }
    @starting-style { .hbspt-form .hs-form select.hs-input:open::picker(select) { opacity: 0; translate: 0 -6px; } }
    .hbspt-form .hs-form select.hs-input option {
        display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer;
        font: 500 15px/1.3 'Sarabun', system-ui, sans-serif; color: #000d24; background: transparent;
    }
    .hbspt-form .hs-form select.hs-input option:hover, .hbspt-form .hs-form select.hs-input option:focus-visible { background: #f1f4f9; outline: none; }
    .hbspt-form .hs-form select.hs-input option:checked { background: #fff1e8; color: #7a3410; font-weight: 700; }
    .hbspt-form .hs-form select.hs-input option::checkmark { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fb9359; order: 1; margin-left: auto; }
    .hbspt-form .hs-form select.hs-input option[value=""] { display: none; }
}
.hbspt-form .hs-form ul.inputs-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.hbspt-form .hs-form ul.inputs-list li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.hbspt-form .hs-form ul.inputs-list li::marker { content: none; }
.hbspt-form .hs-form .hs-form-booleancheckbox-display, .hbspt-form .hs-form .hs-form-checkbox-display, .hbspt-form .hs-form .hs-form-radio-display {
    display: flex !important; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: #44557a; font-weight: 500; cursor: pointer;
}
.hbspt-form .hs-form input[type=checkbox], .hbspt-form .hs-form input[type=radio] {
    flex: none; width: 18px !important; height: 18px; margin: 2px 0 0 !important; accent-color: #fb9359;
}
.hbspt-form .hs-form ul.hs-error-msgs { list-style: none !important; margin: 7px 0 0 !important; padding: 0 !important; }
.hbspt-form .hs-form ul.hs-error-msgs li { list-style: none !important; }
.hbspt-form .hs-form ul.hs-error-msgs li::marker { content: none; }
.hbspt-form .hs-form .hs-error-msg, .hbspt-form .hs-form .hs-error-msgs label {
    display: flex !important; align-items: center; gap: 6px; margin: 0 !important; font-size: 13px !important; font-weight: 600 !important; color: #b42318 !important;
}
.hbspt-form .hs-form .hs-error-msg::before, .hbspt-form .hs-form .hs-error-msgs label::before {
    content: "!"; flex: none; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
    background: #b42318; color: #fff; font-size: 10px; font-weight: 800;
}
.hbspt-form .hs-form .hs_error_rollup { display: none; }
.hbspt-form .hs-form .legal-consent-container, .hbspt-form .hs-form .hs-richtext { font-size: 13px !important; line-height: 1.55; color: #5b6b8c !important; }
.hbspt-form .hs-form .legal-consent-container p, .hbspt-form .hs-form .hs-richtext p { margin: 0 0 8px !important; }
.hbspt-form .hs-form .legal-consent-container a, .hbspt-form .hs-form .hs-richtext a { color: #0857a0; text-decoration: underline; text-underline-offset: 3px; }
.hbspt-form .hs-form .hs_submit { margin-top: 8px; }
.hbspt-form .hs-form .hs_submit .actions { margin: 0 !important; padding: 0 !important; }
.hbspt-form .hs-form .hs-button, .hbspt-form .hs-form input[type=submit] {
    width: 100%; min-height: 54px; padding: 0 28px !important; margin: 0 !important; border: 0 !important; border-radius: 100px !important;
    background: #fb9359 !important; color: #1a0f04 !important; box-shadow: 0 10px 24px -12px rgba(243,131,76,.8);
    font: 800 16px/1 'Sarabun', system-ui, sans-serif !important; letter-spacing: .005em; cursor: pointer;
    transition: background-color .2s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
    -webkit-appearance: none; appearance: none;
}
.hbspt-form .hs-form .hs-button:hover { background: #ffa772 !important; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(243,131,76,.85); }
.hbspt-form .hs-form .hs-button:focus-visible { outline: 3px solid rgba(251,147,89,.45); outline-offset: 3px; }
.hbspt-form .submitted-message {
    font-family: 'Sarabun', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: #000d24; text-align: center;
    padding: 36px 12px; display: grid; justify-items: center; gap: 14px;
}
.hbspt-form .submitted-message::before {
    content: ""; width: 52px; height: 52px; border-radius: 50%;
    background: #fff1e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.3l2.6 2.6L11 4.4' fill='none' stroke='%23c4561c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
@media (max-width: 560px) {
    .hbspt-form .hs-form fieldset.form-columns-2 { grid-template-columns: 1fr; }
}

/* ============ Kit de páginas (.imr-page) ============ */
.imr-page, .imr-page * { box-sizing: border-box; }
.imr-page { font-family: 'Sarabun', system-ui, sans-serif; color: var(--navy); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; width: 100%; }
.imr-page :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; padding: 0; }
.imr-page :where(ul, ol) { list-style: none; }
.imr-page a { color: inherit; text-decoration: none; }
.imr-page img { display: block; max-width: 100%; height: auto; }
.imr-page picture { display: contents; }
.imr-page .wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.imr-page a:focus-visible, .imr-page button:focus-visible, .imr-page summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.imr-page em { font-style: normal; color: var(--orange-ink); }
.imr-page .on-dark em, .imr-page .ip-hero em, .imr-page .ip-sec.dark em { color: var(--orange); }

.imr-page .ip-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 100px;
    font-weight: 800; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer;
    transition: transform .25s var(--ease-out), background-color .2s, border-color .2s, color .2s, box-shadow .25s var(--ease-out);
}
.imr-page .ip-btn svg { flex: none; transition: transform .25s var(--ease-out); }
.imr-page .ip-btn:hover svg { transform: translateX(3px); }
.imr-page .ip-btn-primary { background: var(--orange); color: #1a0f04; box-shadow: 0 10px 24px -14px rgba(243,131,76,.9); }
.imr-page .ip-btn-primary:hover { background: #ffa772; transform: translateY(-2px); }
.imr-page .ip-btn-ghost { border: 1px solid rgba(0,13,36,.2); color: var(--navy); }
.imr-page .ip-btn-ghost:hover { border-color: var(--navy); }
.imr-page .on-dark .ip-btn-ghost, .imr-page .ip-hero .ip-btn-ghost, .imr-page .dark .ip-btn-ghost { border-color: rgba(244,248,253,.3); color: var(--ink); }
.imr-page .on-dark .ip-btn-ghost:hover, .imr-page .ip-hero .ip-btn-ghost:hover, .imr-page .dark .ip-btn-ghost:hover { border-color: var(--ink); }
.imr-page .link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--blue-ink);
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s;
}
.imr-page .link:hover { text-decoration-color: currentColor; }
.imr-page .dark .link, .imr-page .on-dark .link { color: #ffc4a1; }

/* Hero */
.imr-page .ip-hero {
    position: relative; isolation: isolate; overflow: hidden; color: var(--ink);
    background: radial-gradient(1200px 520px at 78% -10%, rgba(26,92,190,.32), transparent 60%), linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
    padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line);
}
.imr-page .ip-hero > canvas.ip-pcb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.imr-page .ip-hero::after {
    content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(0,13,36,.85));
}
.imr-page .ip-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.imr-page .ip-hero.solo .ip-hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.imr-page .ip-hero.center .ip-hero-grid { text-align: center; justify-items: center; margin: 0 auto; }
.imr-page .ip-hero.center .ip-actions { justify-content: center; }
.imr-page .ip-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 14px; color: var(--ink-faint); }
.imr-page .ip-crumb a { color: var(--ink-dim); transition: color .2s; }
.imr-page .ip-crumb a:hover { color: var(--ink); }
.imr-page .ip-crumb span[aria-hidden] { opacity: .5; }
.imr-page .ip-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 8px; border-radius: 100px;
    font-size: 13.5px; font-weight: 700; letter-spacing: .01em; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid rgba(180,198,224,.22);
}
.imr-page .ip-eyebrow::before { content: ""; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(251,147,89,.18); }
.imr-page .ip-eyebrow img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.imr-page .ip-hero h1 {
    font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -.028em; color: var(--ink);
    max-width: 17ch; text-wrap: balance;
}
.imr-page .ip-lead { margin: 24px 0 34px; max-width: 56ch; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.62; color: var(--ink-dim); text-wrap: pretty; }
.imr-page .ip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.imr-page .ip-tel {
    display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--ink-dim);
    text-decoration: underline; text-decoration-color: rgba(244,248,253,.35); text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s;
}
.imr-page .ip-tel:hover { color: var(--ink); text-decoration-color: var(--orange); }
.imr-page .ip-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); gap: 14px 40px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.imr-page .ip-facts li { display: grid; gap: 2px; }
.imr-page .ip-facts b { white-space: nowrap; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.imr-page .ip-facts span { font-size: 14px; color: var(--ink-dim); }

/* Visual del hero: ventana de producto */
.imr-page .ip-window {
    position: relative; border-radius: 18px; overflow: hidden; background: #071a3d; border: 1px solid rgba(180,198,224,.2);
    box-shadow: 0 40px 80px -36px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.imr-page .ip-window-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(180,198,224,.14); font-size: 13px; color: var(--ink-dim); }
.imr-page .ip-window-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(180,198,224,.28); }
.imr-page .ip-window-bar i:first-child { background: #fb9359; }
.imr-page .ip-window-bar b { margin-left: 6px; font-weight: 600; color: var(--ink); }
.imr-page .ip-window-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6fd3a8; }
.imr-page .ip-window-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fd3a8; animation: ip-pulse 2s infinite; }
.imr-page .ip-window-body { padding: 18px; }
.imr-page .ip-window img { width: 100%; height: auto; }
.imr-page .ip-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.imr-page .ip-kpi { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(180,198,224,.12); }
.imr-page .ip-kpi small { display: block; font-size: 12px; color: var(--ink-faint); }
.imr-page .ip-kpi b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.imr-page .ip-kpi em { font-size: 12px; font-weight: 700; color: #6fd3a8; }
.imr-page .ip-chart { margin-top: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(180,198,224,.12); }
.imr-page .ip-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.imr-page .ip-chart .ln { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: ip-draw 2.4s var(--ease-out) .5s forwards; }
.imr-page .ip-chart .ar { fill: url(#ipArea); opacity: 0; animation: ip-fade 1.2s ease 1.4s forwards; }
.imr-page .ip-chart .gr { stroke: rgba(180,198,224,.12); }
.imr-page .ip-rows { margin-top: 12px; display: grid; gap: 8px; }
.imr-page .ip-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.035); font-size: 13.5px; color: var(--ink-dim); }
.imr-page .ip-row b { font-weight: 700; color: var(--ink); }
.imr-page .ip-row .ok { font-size: 12px; font-weight: 700; color: #6fd3a8; }
.imr-page .ip-row .wip { font-size: 12px; font-weight: 700; color: var(--orange); }
.imr-page .ip-float {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
    background: rgba(7,26,61,.9); border: 1px solid rgba(180,198,224,.24); color: var(--ink); font-size: 13.5px; font-weight: 600;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    animation: ip-bob 6s ease-in-out infinite;
}
.imr-page .ip-float i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(251,147,89,.16); color: var(--orange); }
.imr-page .ip-visual { position: relative; }
.imr-page .ip-visual .ip-float.a { left: -26px; bottom: 28px; }
.imr-page .ip-visual .ip-float.b { right: -18px; top: 64px; animation-delay: -3s; }
.imr-page .ip-photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 40px 80px -36px rgba(0,0,0,.8); }
.imr-page .ip-photo img { width: 100%; height: 100%; object-fit: cover; }
.imr-page .ip-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,13,36,0) 40%, rgba(0,13,36,.55)); }

/* Secciones */
.imr-page .ip-sec { position: relative; padding: clamp(80px, 9vw, 128px) 0; }
.imr-page .ip-sec.alt { background: var(--paper-2); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.imr-page .ip-sec.dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--ink); }
.imr-page .ip-sec.tight { padding: clamp(56px, 6vw, 80px) 0; }
.imr-page .ip-sec + .ip-sec:not(.alt):not(.dark) { border-top: 1px solid var(--paper-line); }
.imr-page .ip-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.imr-page .ip-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.imr-page .ip-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.imr-page .ip-head.row > div { max-width: 680px; }
.imr-page .ip-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.imr-page .ip-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.imr-page .dark .ip-kicker { color: var(--orange); }
.imr-page .ip-head h2, .imr-page h2.ip-h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.024em; color: var(--navy); text-wrap: balance; }
.imr-page .dark .ip-head h2, .imr-page .dark h2.ip-h2 { color: var(--ink); }
.imr-page .ip-head p { margin-top: 18px; max-width: 62ch; font-size: 17.5px; line-height: 1.65; color: var(--ink-on-paper); text-wrap: pretty; }
.imr-page .ip-head.center p { margin-left: auto; margin-right: auto; }
.imr-page .dark .ip-head p { color: var(--ink-dim); }
.imr-page .ip-prose { max-width: 70ch; font-size: 17px; line-height: 1.75; color: var(--ink-on-paper); }
.imr-page .ip-prose > * + * { margin-top: 1em; }
.imr-page .ip-prose h3 { margin-top: 1.8em; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.imr-page .ip-prose ul { display: grid; gap: 8px; }
.imr-page .ip-prose ul li { position: relative; padding-left: 22px; }
.imr-page .ip-prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.imr-page .ip-prose a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Tarjetas */
.imr-page .ip-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; }
.imr-page .ip-card {
    position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 20px;
    background: var(--paper); border: 1px solid var(--paper-line); overflow: hidden;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
}
.imr-page .alt .ip-card { background: var(--paper); }
.imr-page .ip-sec:not(.alt):not(.dark) .ip-card { background: var(--paper-2); }
.imr-page .ip-card::before {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.imr-page .ip-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(0,13,36,.38); border-color: rgba(0,13,36,.16); }
.imr-page .ip-card:hover::before { transform: scaleX(1); }
.imr-page .ip-ic {
    width: 48px; height: 48px; margin-bottom: 22px; border-radius: 14px; display: grid; place-items: center; flex: none;
    background: #fff1e8; color: #c4561c; transition: transform .4s var(--ease-out), background-color .3s, color .3s;
}
.imr-page .ip-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.imr-page .ip-ic img { width: 28px; height: 28px; object-fit: contain; }
.imr-page .ip-card:hover .ip-ic { transform: rotate(-6deg) scale(1.06); background: var(--orange); color: #1a0f04; }
.imr-page .ip-ic.blue { background: #e8f1fd; color: var(--blue-ink); }
.imr-page .ip-ic.teal { background: #e4f5ee; color: var(--teal-ink); }
.imr-page .ip-card h3 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.012em; color: var(--navy); }
.imr-page .ip-card p { margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: var(--ink-on-paper); }
.imr-page .ip-card .link { margin-top: auto; padding-top: 12px; align-self: flex-start; }
.imr-page .ip-card .ip-num { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--orange-ink); margin-bottom: 14px; }
.imr-page .dark .ip-card { background: rgba(255,255,255,.04); border-color: rgba(180,198,224,.14); }
.imr-page .dark .ip-card h3 { color: var(--ink); }
.imr-page .dark .ip-card p { color: var(--ink-dim); }
.imr-page .dark .ip-ic { background: rgba(251,147,89,.14); color: var(--orange); }
.imr-page .dark .ip-card:hover { border-color: rgba(251,147,89,.45); box-shadow: 0 22px 44px -26px rgba(0,0,0,.7); }

/* Chips de módulos */
.imr-page .ip-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.imr-page .ip-chip {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 12px; border-radius: 100px;
    background: var(--paper); border: 1px solid var(--paper-line); font-size: 15px; font-weight: 700; color: var(--navy);
    transition: border-color .25s, transform .3s var(--ease-out);
}
.imr-page .ip-chip:hover { border-color: var(--orange); transform: translateY(-2px); }
.imr-page .ip-chip i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff1e8; color: #c4561c; }
.imr-page .ip-chip i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.imr-page .ip-chip img { width: 22px; height: 22px; object-fit: contain; }

/* Split texto + media */
.imr-page .ip-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.imr-page .ip-split.rev > :first-child { order: 2; }
.imr-page .ip-split .ip-head { margin-bottom: 28px; }
.imr-page .ip-media { position: relative; border-radius: 22px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--paper-line); }
.imr-page .ip-media img { width: 100%; height: 100%; object-fit: cover; }
.imr-page .ip-media.contain { padding: clamp(20px, 3vw, 40px); background: linear-gradient(160deg, #f6f8fc, #e9eef7); }
.imr-page .ip-media.contain img { object-fit: contain; }
.imr-page .ip-media.frame { padding: 0; background: #071a3d; border-color: rgba(0,13,36,.2); box-shadow: 0 34px 70px -34px rgba(0,21,54,.55); }

/* Lista con check */
.imr-page .ip-checks { display: grid; gap: 14px; }
.imr-page .ip-checks.two { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.imr-page .ip-checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-on-paper); }
.imr-page .ip-checks li b, .imr-page .ip-checks li strong { color: var(--navy); font-weight: 700; }
.imr-page .ip-checks li::before {
    content: ""; width: 26px; height: 26px; border-radius: 50%; margin-top: -1px;
    background: #fff1e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.3l2.6 2.6L11 4.4' fill='none' stroke='%23c4561c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.imr-page .dark .ip-checks li { color: var(--ink-dim); }
.imr-page .dark .ip-checks li b, .imr-page .dark .ip-checks li strong { color: var(--ink); }
.imr-page .dark .ip-checks li::before { background-color: rgba(251,147,89,.16); }

/* Pasos */
.imr-page .ip-steps { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 28px; counter-reset: ipstep; }
.imr-page .ip-steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: rgba(0,13,36,.1); }
.imr-page .ip-steps::after {
    content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--orange);
    transform-origin: left; transform: scaleX(var(--prog, 1)); transition: transform 2.6s var(--ease-io);
}
.imr-page .rv-armed.ip-steps::after { --prog: 0; }
.imr-page .rv-armed.ip-steps.is-in::after { --prog: 1; }
.imr-page .ip-step { position: relative; counter-increment: ipstep; }
.imr-page .ip-step::before {
    content: counter(ipstep, decimal-leading-zero); position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
    border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); font-size: 14px; font-weight: 800; color: var(--orange-ink);
}
.imr-page .alt .ip-step::before { background: var(--paper-2); }
.imr-page .ip-step h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.imr-page .ip-step p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--ink-on-paper); }
.imr-page .dark .ip-steps::before { background: rgba(180,198,224,.16); }
.imr-page .dark .ip-step::before { background: var(--navy); color: var(--orange); }
.imr-page .dark .ip-step h3 { color: var(--ink); }
.imr-page .dark .ip-step p { color: var(--ink-dim); }

/* Cifras */
.imr-page .ip-stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--paper-line); }
.imr-page .ip-stat { padding: 28px 24px 4px 0; }
.imr-page .ip-stat + .ip-stat { padding-left: 24px; border-left: 1px solid var(--paper-line); }
.imr-page .ip-stat b { display: block; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.imr-page .ip-stat b small { font-size: .5em; letter-spacing: 0; color: var(--orange-ink); margin-left: 2px; }
.imr-page .ip-stat span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-on-paper); }
.imr-page .dark .ip-stats, .imr-page .dark .ip-stat + .ip-stat { border-color: rgba(180,198,224,.16); }
.imr-page .dark .ip-stat b { color: var(--ink); }
.imr-page .dark .ip-stat b small { color: var(--orange); }
.imr-page .dark .ip-stat span { color: var(--ink-dim); }

/* Mosaico con foto (industrias, productos) */
.imr-page .ip-tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
.imr-page .ip-tile {
    position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1; padding: 24px;
    border-radius: 20px; overflow: hidden; color: var(--ink); background: var(--navy-card);
}
.imr-page .ip-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.imr-page .ip-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,13,36,.05) 20%, rgba(0,13,36,.92) 92%); transition: background-color .4s; }
.imr-page .ip-tile:hover img { transform: scale(1.07); }
.imr-page .ip-tile small { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.imr-page .ip-tile h3 { margin-top: 6px; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.imr-page .ip-tile p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-dim); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .4s; }
.imr-page .ip-tile:is(:hover, :focus-visible) p { max-height: 120px; opacity: 1; }
.imr-page .ip-tile .go { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); transition: background-color .3s, transform .4s var(--ease-out); }
.imr-page .ip-tile:hover .go { background: var(--orange); color: #1a0f04; transform: rotate(-45deg); }
@media (hover: none) { .imr-page .ip-tile p { max-height: none; opacity: 1; } }

/* Pestañas */
.imr-page .ip-tabs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.imr-page .ip-tablist { display: grid; gap: 6px; }
.imr-page .ip-tab {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; width: 100%; padding: 18px 20px; border-radius: 16px; text-align: left;
    background: transparent; border: 1px solid transparent; font: inherit; color: var(--navy); cursor: pointer; transition: background-color .25s, border-color .25s;
}
.imr-page .ip-tab:hover { background: rgba(0,13,36,.03); }
.imr-page .ip-tab[aria-selected="true"] { background: var(--paper); border-color: var(--paper-line); box-shadow: 0 14px 30px -24px rgba(0,13,36,.4); }
.imr-page .ip-tab .ip-ic { margin: 0; width: 40px; height: 40px; border-radius: 12px; grid-row: span 2; }
.imr-page .ip-tab .ip-ic svg { width: 20px; height: 20px; }
.imr-page .ip-tab b { font-size: 17px; font-weight: 800; }
.imr-page .ip-tab span { font-size: 14px; color: var(--ink-on-paper); }
.imr-page .ip-panel { border-radius: 22px; background: var(--paper); border: 1px solid var(--paper-line); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 60px -40px rgba(0,13,36,.4); }
.imr-page .ip-panel[hidden] { display: none; }
.imr-page .ip-panel.is-swap { animation: ip-swap .55s var(--ease-out); }
.imr-page .ip-panel h3 { font-size: 24px; font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
.imr-page .ip-panel > p { margin: 12px 0 22px; font-size: 16.5px; line-height: 1.65; color: var(--ink-on-paper); }
.imr-page .ip-panel .ip-media { margin-top: 24px; }

/* FAQ */
.imr-page .ip-faq { display: grid; gap: 12px; max-width: 880px; }
.imr-page .ip-faq.center { margin: 0 auto; }
.imr-page .ip-faq details { border-radius: 16px; background: var(--paper); border: 1px solid var(--paper-line); transition: border-color .25s, box-shadow .3s; }
.imr-page .ip-sec:not(.alt) .ip-faq details { background: var(--paper-2); }
.imr-page .ip-faq details[open] { border-color: rgba(251,147,89,.6); box-shadow: 0 18px 36px -28px rgba(0,13,36,.4); }
.imr-page .ip-faq summary {
    list-style: none; display: grid; grid-template-columns: 1fr 32px; gap: 16px; align-items: center; padding: 20px 22px; cursor: pointer;
    font-size: 17.5px; font-weight: 700; line-height: 1.4; color: var(--navy);
}
.imr-page .ip-faq summary::-webkit-details-marker { display: none; }
.imr-page .ip-faq summary::after {
    content: ""; width: 32px; height: 32px; border-radius: 50%; background: #fff1e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v9M1.5 6h9' stroke='%23c4561c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
    transition: transform .4s var(--ease-out), background-color .3s;
}
.imr-page .ip-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--orange); }
.imr-page .ip-faq .ans { padding: 0 22px 22px; font-size: 16px; line-height: 1.7; color: var(--ink-on-paper); }
.imr-page .ip-faq .ans > * + * { margin-top: .8em; }
.imr-page .ip-faq .ans ul { display: grid; gap: 6px; }
.imr-page .ip-faq .ans ul li { position: relative; padding-left: 18px; }
.imr-page .ip-faq .ans ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.imr-page .ip-faq .ans a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Cita / testimonio */
.imr-page .ip-quote { position: relative; max-width: 900px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--paper-2); border: 1px solid var(--paper-line); }
.imr-page .ip-quote blockquote { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; font-weight: 600; color: var(--navy); letter-spacing: -.01em; text-wrap: pretty; }
.imr-page .ip-quote blockquote::before { content: "“"; display: block; height: .55em; font-size: 3em; line-height: 1; color: var(--orange); }
.imr-page .ip-quote figcaption { margin-top: 22px; font-size: 15px; color: var(--ink-on-paper); }
.imr-page .ip-quote figcaption b { display: block; color: var(--navy); }

/* Logos */
.imr-page .ip-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; }
.imr-page .ip-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.imr-page .ip-logos img:hover { filter: none; opacity: 1; }

/* Video */
.imr-page .ip-video { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 34px 70px -34px rgba(0,21,54,.6); }
.imr-page .ip-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA con formulario */
.imr-page .ip-cta { position: relative; isolation: isolate; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%); padding: clamp(80px, 9vw, 128px) 0; }
.imr-page .ip-cta > canvas.ip-pcb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.imr-page .ip-cta-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.imr-page .ip-cta h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.024em; color: var(--ink); text-wrap: balance; }
.imr-page .ip-cta-copy > p { margin-top: 18px; font-size: 17.5px; line-height: 1.65; color: var(--ink-dim); max-width: 46ch; }
.imr-page .ip-cta .ip-checks { margin-top: 30px; }
.imr-page .ip-cta .ip-checks li { color: var(--ink-dim); }
.imr-page .ip-cta .ip-checks li::before { background-color: rgba(251,147,89,.16); }
.imr-page .ip-cta-alt { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-dim); }
.imr-page .ip-cta-alt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.imr-page .ip-form { position: relative; background: var(--paper); color: var(--navy); border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.75); }
.imr-page .ip-form-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--paper-line); }
.imr-page .ip-form-head b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.imr-page .ip-form-head span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-on-paper); }
.imr-page .ip-cta.solo .ip-cta-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.imr-page .ip-cta.solo .ip-actions { justify-content: center; margin-top: 32px; }
.imr-page .ip-cta.solo .ip-cta-copy > p { margin-left: auto; margin-right: auto; }

/* Animaciones base */
@keyframes ip-pulse { 0% { box-shadow: 0 0 0 0 rgba(111,211,168,.6); } 70% { box-shadow: 0 0 0 7px rgba(111,211,168,0); } 100% { box-shadow: 0 0 0 0 rgba(111,211,168,0); } }
@keyframes ip-draw { to { stroke-dashoffset: 0; } }
@keyframes ip-fade { to { opacity: 1; } }
@keyframes ip-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ip-swap { from { opacity: 0; transform: translateY(10px); } }

/* Responsive */
@media (max-width: 1024px) {
    .imr-page .ip-cards, .imr-page .ip-tiles { --cols: 2 !important; }
    .imr-page .ip-steps { --cols: 2 !important; row-gap: 40px; }
    .imr-page .ip-steps::before, .imr-page .ip-steps::after { display: none; }
    .imr-page .ip-stats { --cols: 2 !important; }
    .imr-page .ip-stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .imr-page .ip-visual .ip-float.a { left: 12px; }
    .imr-page .ip-visual .ip-float.b { right: 12px; }
}
@media (max-width: 900px) {
    .imr-page .ip-hero-grid, .imr-page .ip-split, .imr-page .ip-cta-grid, .imr-page .ip-tabs { grid-template-columns: minmax(0, 1fr); }
    .imr-page .ip-split.rev > :first-child { order: 0; }
    .imr-page .ip-checks.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .imr-page .wrap { padding: 0 20px; }
    .imr-page .ip-cards, .imr-page .ip-steps { --cols: 1 !important; }
    .imr-page .ip-tiles { --cols: 2 !important; gap: 10px; }
    .imr-page .ip-tile { padding: 14px; border-radius: 16px; }
    .imr-page .ip-tile h3 { font-size: 16px; }
    .imr-page .ip-tile small { font-size: 10.5px; }
    .imr-page .ip-tile p { display: none; }
    .imr-page .ip-tile .go { top: 10px; right: 10px; width: 32px; height: 32px; }
    .imr-page .ip-stats { --cols: 1 !important; }
    .imr-page .ip-stat, .imr-page .ip-stat + .ip-stat { padding: 22px 0 0; border-left: 0; }
    .imr-page .ip-kpis { grid-template-columns: 1fr 1fr; }
    .imr-page .ip-kpi:nth-child(3) { display: none; }
    .imr-page .ip-actions .ip-btn { flex: 1 1 100%; }
    .imr-page .ip-btn { white-space: normal; text-align: center; line-height: 1.25; padding: 14px 22px; max-width: 100%; }
    .imr-page .ip-float { display: none; }
    .imr-page .ip-card { padding: 26px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .imr-page *, .imr-page *::before, .imr-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .imr-page .ip-chart .ln { stroke-dashoffset: 0; }
    .imr-page .ip-chart .ar { opacity: 1; }
}

/* ============ Kit de revelado (todo el sitio) ============ */
.rv-on .rv-h .rv-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.rv-on .rv-h .rv-i { display: inline-block; transform: translate3d(0, 112%, 0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.rv-on .rv-h.is-in .rv-i { transform: none; }
.rv-on .rv-wipe { position: relative; }
.rv-on .rv-wipe::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.rv-on .rv-wipe .rv-t { opacity: 0; }
.rv-on .rv-wipe.is-in::after { animation: rv-bar 1.1s var(--ease-io) .35s both; }
.rv-on .rv-wipe.is-in .rv-t { animation: rv-txt 1.1s linear .35s both; }
.rv-on .rv-up { opacity: 0; transform: translate3d(0, 56px, 0); transition: opacity .9s ease, transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.rv-on .rv-up.is-in { opacity: 1; transform: none; }
.rv-on .rv-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io) .1s; }
.rv-on .rv-clip img { transform: scale(1.25); transition: transform 1.8s var(--ease-out) .1s; }
.rv-on .rv-clip.is-in { clip-path: inset(0 0 0 0 round 20px); }
.rv-on .rv-clip.is-in img { transform: none; }
.rv-on .pilar.rv-up .pilar-photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-io) calc(var(--i, 0) * 110ms + .15s); }
.rv-on .pilar.rv-up .pilar-photo img { transform: scale(1.3); transition: transform 1.6s var(--ease-out) calc(var(--i, 0) * 110ms + .15s); }
.rv-on .pilar.rv-up.is-in .pilar-photo { clip-path: inset(0); }
.rv-on .pilar.rv-up.is-in .pilar-photo img { transform: none; }
.rv-on .ip-hero .ip-crumb, .rv-on .ip-hero .ip-eyebrow { animation: rv-rise .9s var(--ease-out) .05s both; }
.rv-on .ip-hero .ip-lead { animation: rv-rise 1s var(--ease-out) .55s both; }
.rv-on .ip-hero .ip-actions { animation: rv-rise 1s var(--ease-out) .7s both; }
.rv-on .ip-hero .ip-facts li { animation: rv-rise .9s var(--ease-out) both; animation-delay: calc(.85s + var(--i, 0) * 90ms); }
.rv-on .ip-hero .ip-visual { animation: rv-vis 1.4s var(--ease-out) .35s both; }
@keyframes rv-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes rv-vis { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.97); } }
@keyframes rv-bar { 0% { transform: scaleX(0); transform-origin: left; } 48% { transform: scaleX(1); transform-origin: left; } 52% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes rv-txt { 0%, 50% { opacity: 0; } 51%, 100% { opacity: 1; } }

.imr-cur {
    position: fixed; left: 0; top: 0; z-index: 99999; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: #fb9359; border: 1.5px solid transparent; pointer-events: none; opacity: 0;
    transition: opacity .3s, width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .3s, border-color .3s;
}
.imr-cur.is-on { opacity: 1; }
.imr-cur.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; border-color: #fb9359; }

/* ============ Blog y entradas ============ */
body.single-post, body.blog, body.archive, body.search { font-family: 'Sarabun', system-ui, sans-serif; }
body.single-post :is(h1, h2, h3, h4, .elementor-heading-title), body.blog :is(h1, h2, h3, .elementor-heading-title), body.archive :is(h1, h2, h3, .elementor-heading-title) {
    font-family: 'Sarabun', system-ui, sans-serif !important; letter-spacing: -.015em; color: #000d24;
}
body.single-post .elementor-widget-theme-post-content, body.single-post .entry-content { font-size: 18px; line-height: 1.78; color: #2c3b5c; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) :is(h2) { margin: 1.8em 0 .6em; font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) :is(h3) { margin: 1.6em 0 .5em; font-size: 22px; font-weight: 800; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) a { color: #0857a0; text-decoration: underline; text-decoration-color: rgba(8,87,160,.35); text-underline-offset: 3px; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) a:hover { text-decoration-color: #fb9359; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) img { border-radius: 16px; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid #fb9359; font-size: 20px; font-weight: 600; color: #000d24; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) :is(ul, ol) li::marker { color: #fb9359; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) :is(th, td) { padding: 12px 14px; border-bottom: 1px solid rgba(0,13,36,.1); text-align: left; }
body.single-post :is(.elementor-widget-theme-post-content, .entry-content) th { background: #f3f6fb; font-weight: 700; color: #000d24; }
body :is(.single-post, .blog, .archive) .elementor-button, body.single-post .elementor-button, body.blog .elementor-button, body.archive .elementor-button {
    border-radius: 100px !important; font-family: 'Sarabun', system-ui, sans-serif !important; font-weight: 800 !important;
}
body.blog .elementor-post, body.archive .elementor-post, body.single-post .elementor-post {
    border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid rgba(0,13,36,.1);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
body.blog .elementor-post:hover, body.archive .elementor-post:hover, body.single-post .elementor-post:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(0,13,36,.38); }
body.blog .elementor-post__thumbnail img, body.archive .elementor-post__thumbnail img { transition: transform .9s var(--ease-out); }
body.blog .elementor-post:hover .elementor-post__thumbnail img, body.archive .elementor-post:hover .elementor-post__thumbnail img { transform: scale(1.05); }
body.blog .elementor-post__title, body.archive .elementor-post__title, body.single-post .elementor-post__title { font-family: 'Sarabun', system-ui, sans-serif !important; font-weight: 800 !important; letter-spacing: -.012em; }
body.blog .elementor-post__read-more, body.archive .elementor-post__read-more { font-weight: 700 !important; color: #0a5dc2 !important; }
.imr-page .ip-panels { min-width: 0; }

/* Contact Form 7 dentro del kit */
.imr-page .wpcf7 { font-family: 'Sarabun', system-ui, sans-serif !important; color: #000d24 !important; }
.imr-page .wpcf7 p { margin: 0 0 16px !important; font-size: 14.5px !important; font-weight: 700 !important; }
.imr-page .wpcf7 br { display: none !important; }
.imr-page .wpcf7 form :is(input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea) { display: block !important; width: 100% !important; min-height: 50px !important; margin-top: 7px !important; padding: 12px 16px !important; border: 1px solid rgba(0,13,36,.16) !important; border-radius: 12px !important; background: #f7f9fc !important; font: 500 16px/1.4 'Sarabun', system-ui, sans-serif !important; color: #000d24 !important; transition: border-color .2s, box-shadow .25s !important; }
.imr-page .wpcf7 textarea { min-height: 120px !important; resize: vertical !important; }
.imr-page .wpcf7 form :is(input, select, textarea):focus { outline: none !important; background: #fff !important; border-color: #fb9359 !important; box-shadow: 0 0 0 4px rgba(251,147,89,.2) !important; }
.imr-page .wpcf7 input[type=file] { margin-top: 7px !important; font-size: 14px !important; font-weight: 500 !important; }
.imr-page .wpcf7 form input[type=submit] { width: 100% !important; min-height: 54px !important; border: 0 !important; border-radius: 100px !important; background: #fb9359 !important; color: #1a0f04 !important; cursor: pointer !important; font: 800 16px/1 'Sarabun', system-ui, sans-serif !important; box-shadow: 0 10px 24px -12px rgba(243,131,76,.8) !important; transition: background-color .2s, transform .25s var(--ease-out) !important; }
.imr-page .wpcf7 form input[type=submit]:hover { background: #ffa772 !important; transform: translateY(-2px) !important; }
.imr-page .wpcf7 .wpcf7-not-valid-tip { margin-top: 6px !important; font-size: 13px !important; font-weight: 600 !important; color: #b42318 !important; }
.imr-page .wpcf7 .wpcf7-response-output { margin: 12px 0 0 !important; padding: 12px 14px !important; border-radius: 12px !important; font-size: 14px !important; font-weight: 500 !important; }
.imr-page .wpcf7 .wpcf7-spinner { display: none !important; }

/* Entrada de blog */
body.single-post .site-main { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.single-post .page-content { max-width: none; }
.imr-page.ip-post-top { background: var(--paper); }
.imr-page .ip-post-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(150px, 16vw, 230px); }
.imr-page .ip-post-hero .wrap { max-width: 900px; }
.imr-page .ip-post-hero h1 { max-width: 24ch; font-size: clamp(34px, 4.6vw, 56px); }
.imr-page .ip-post-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--ink-dim); }
.imr-page .ip-post-cover { max-width: 1040px; margin-top: calc(-1 * clamp(120px, 13vw, 190px)); position: relative; z-index: 2; }
.imr-page .ip-post-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(0,13,36,.6); }
.rv-on .ip-post-cover { animation: rv-vis 1.3s var(--ease-out) .3s both; }
body.single-post .ip-post-body { max-width: 760px; margin: clamp(48px, 6vw, 72px) auto clamp(64px, 8vw, 104px); padding: 0 24px; }
body.single-post .ip-post-body > p:first-child:has(> style) { display: none; }
body.single-post .ip-post-body .blog-post { max-width: none !important; padding: 0 !important; font-family: 'Sarabun', system-ui, sans-serif !important; font-size: 18.5px !important; line-height: 1.78 !important; color: #2c3b5c !important; }
body.single-post .ip-post-body .blog-category { display: none !important; }
body.single-post .ip-post-body :is(.blog-lead) { font-size: 21px !important; line-height: 1.6 !important; color: #000d24 !important; font-weight: 500 !important; border-left: 3px solid #fb9359 !important; padding-left: 22px !important; margin: 0 0 36px !important; }
body.single-post .ip-post-body h2 { font-family: 'Sarabun', system-ui, sans-serif !important; font-size: clamp(26px, 2.6vw, 32px) !important; font-weight: 800 !important; letter-spacing: -.018em !important; line-height: 1.2 !important; color: #000d24 !important; border: 0 !important; padding: 0 !important; margin: 2em 0 .6em !important; }
body.single-post .ip-post-body h3 { font-family: 'Sarabun', system-ui, sans-serif !important; font-size: 21px !important; font-weight: 800 !important; color: #000d24 !important; margin: 1.6em 0 .5em !important; }
body.single-post .ip-post-body a { color: #0857a0 !important; text-decoration: underline; text-decoration-color: rgba(8,87,160,.35); text-underline-offset: 3px; }
body.single-post .ip-post-body :is(.feature-item, .concept-box) { background: #f3f6fb !important; border: 1px solid rgba(0,13,36,.08) !important; border-left: 3px solid #fb9359 !important; border-radius: 14px !important; padding: 18px 22px !important; }
body.single-post .ip-post-body .concept-box { padding: 26px 28px !important; }
body.single-post .ip-post-body .cta-box { display: none !important; }
body.single-post .ip-post-body img { border-radius: 16px; height: auto; }
body.single-post .imr-page.ip-post-end .ip-cta { padding: clamp(72px, 8vw, 112px) 0; }
body.single-post .imr-page .ip-hero h1, body.single-post .imr-page .ip-cta h2 { color: var(--ink) !important; }

/* Antes / después: sistemas sueltos vs. NetSuite */
.imr-page .ip-consol { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); align-items: stretch; gap: 0; margin-bottom: clamp(48px, 6vw, 72px); }
.imr-page .ip-consol-col { position: relative; border-radius: 22px; padding: clamp(22px, 3vw, 34px); }
.imr-page .ip-consol-col .lab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.imr-page .ip-consol-col .lab span { font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.imr-page .ip-consol .before { background: var(--paper-2); border: 1px dashed rgba(0,13,36,.2); color: #5b6b8c; }
.imr-page .ip-consol .before .lab span { color: #b42318; }
.imr-page .ip-consol .before ul { display: flex; flex-wrap: wrap; gap: 12px 10px; justify-content: center; padding: 6px 0; }
.imr-page .ip-consol .before li {
    position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(0,13,36,.12);
    font-size: 14.5px; font-weight: 600; color: #44557a; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); box-shadow: 0 8px 18px -14px rgba(0,13,36,.4);
    transition: transform .9s var(--ease-out), opacity .6s;
}
.imr-page .ip-consol .before li::after { content: ""; position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 1.5l5 5M6.5 1.5l-5 5' stroke='%23b42318' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; border: 1px solid rgba(180,35,24,.35); }
.imr-page .ip-consol .before p.pain { margin-top: 18px; font-size: 14.5px; line-height: 1.55; text-align: center; }
.imr-page .ip-consol-arrow { display: grid; place-items: center; }
.imr-page .ip-consol-arrow i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #1a0f04; box-shadow: 0 12px 26px -12px rgba(243,131,76,.9); }
.imr-page .ip-consol .after { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: var(--ink); box-shadow: 0 34px 70px -36px rgba(0,21,54,.7); }
.imr-page .ip-consol .after .lab { color: var(--orange); }
.imr-page .ip-consol .after .lab span { color: #6fd3a8; }
.imr-page .ip-consol .after .core { display: grid; place-items: center; gap: 6px; margin: 0 auto 18px; width: 150px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(251,147,89,.45); box-shadow: 0 0 0 6px rgba(251,147,89,.08); }
.imr-page .ip-consol .after .core img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.imr-page .ip-consol .after .core small { font-size: 12px; color: var(--ink-dim); }
.imr-page .ip-consol .after ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.imr-page .ip-consol .after li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(180,198,224,.14); font-size: 14px; font-weight: 600; transition: opacity .5s, transform .6s var(--ease-out); }
.imr-page .ip-consol .after li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: rgba(111,211,168,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.3l2.6 2.6L11 4.4' fill='none' stroke='%236fd3a8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.imr-page .ip-consol .after p.gain { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-dim); text-align: center; }
.rv-on .imr-page .ip-consol:not(.is-in) .after li { opacity: 0; transform: translateY(10px); }
.rv-on .imr-page .ip-consol.is-in .after li { transition-delay: calc(.5s + var(--i, 0) * 90ms); }
.rv-on .imr-page .ip-consol:not(.is-in) .before li { --y: 14px; opacity: 0; }
.rv-on .imr-page .ip-consol.is-in .before li { transition-delay: calc(var(--i, 0) * 60ms); }
.rv-on .imr-page .ip-consol .ip-consol-arrow i { transition: transform .8s var(--ease-out) .35s, opacity .5s .35s; }
.rv-on .imr-page .ip-consol:not(.is-in) .ip-consol-arrow i { opacity: 0; transform: translateX(-16px) scale(.8); }

/* Áreas interactivas */
.imr-page .ip-tabs.ip-areas { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.imr-page .ip-areas .ip-tablist { display: flex; flex-wrap: wrap; gap: 10px; }
.imr-page .ip-areas .ip-tab {
    display: inline-flex; align-items: center; gap: 10px; width: auto; min-height: 50px; padding: 0 18px 0 12px; border-radius: 100px;
    background: var(--paper); border: 1px solid var(--paper-line); font-size: 15px; font-weight: 700; box-shadow: none;
    transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--ease-out);
}
.imr-page .ip-areas .ip-tab:hover { border-color: var(--orange); transform: translateY(-2px); background: var(--paper); }
.imr-page .ip-areas .ip-tab img { width: 24px; height: 24px; object-fit: contain; }
.imr-page .ip-areas .ip-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--ink); box-shadow: 0 14px 28px -18px rgba(0,13,36,.7); }
.imr-page .ip-areas .ip-tab[aria-selected="true"] img { filter: brightness(0) invert(1); }
.imr-page .ip-areas .ip-tab[aria-selected="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-left: 2px; }
.imr-page .ip-areas .ip-panel { padding: 0; overflow: hidden; }
.imr-page .ip-area { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.imr-page .ip-area-copy { padding: clamp(26px, 3.6vw, 44px); }
.imr-page .ip-area-copy .ip-kicker { margin-bottom: 12px; }
.imr-page .ip-area-copy h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.018em; color: var(--navy); }
.imr-page .ip-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.imr-page .ip-ba > div { padding: 16px 18px; border-radius: 14px; font-size: 15px; line-height: 1.55; }
.imr-page .ip-ba small { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.imr-page .ip-ba .b { background: #fbf3f2; color: #5b4a4a; border: 1px solid rgba(180,35,24,.14); }
.imr-page .ip-ba .b small { color: #b42318; }
.imr-page .ip-ba .a { background: #eef8f3; color: #2f4a3f; border: 1px solid rgba(18,128,95,.18); }
.imr-page .ip-ba .a small { color: var(--teal-ink); }
.imr-page .ip-area .ip-checks li { font-size: 15px; }
.imr-page .ip-area .ip-checks { gap: 10px; }
.imr-page .ip-area-vis { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(22px, 3vw, 36px); background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: var(--ink); }
.imr-page .ip-area-vis .cap { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.imr-page .ip-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; }
.imr-page .ip-flow li { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.04); border: 1px solid rgba(180,198,224,.14); font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.imr-page .ip-flow li i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(251,147,89,.14); color: var(--orange); font-style: normal; font-size: 13px; font-weight: 800; }
.imr-page .ip-flow li + li::before { content: ""; position: absolute; left: -9px; top: 31px; width: 10px; height: 2px; background: rgba(251,147,89,.6); }
.imr-page .ip-panel.is-swap .ip-flow li { animation: ip-flowin .7s var(--ease-out) both; animation-delay: calc(.15s + var(--i, 0) * .18s); }
.imr-page .ip-panel.is-swap .ip-flow li i { animation: ip-flowon .5s ease both; animation-delay: calc(.35s + var(--i, 0) * .18s); }
.imr-page .ip-area-vis .ip-rows { margin-top: 0; }
.imr-page .ip-panel.is-swap .ip-area-vis .ip-row { animation: ip-flowin .6s var(--ease-out) both; animation-delay: calc(.9s + var(--i, 0) * .12s); }
@keyframes ip-flowin { from { opacity: 0; transform: translateY(10px); } }
@keyframes ip-flowon { from { background: rgba(255,255,255,.06); color: var(--ink-faint); } 60% { background: var(--orange); color: #1a0f04; } }
@media (max-width: 900px) {
    .imr-page .ip-consol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .imr-page .ip-consol-arrow i { transform: rotate(90deg); }
    .rv-on .imr-page .ip-consol:not(.is-in) .ip-consol-arrow i { transform: rotate(90deg) translateX(-16px) scale(.8); }
    .imr-page .ip-area { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .imr-page .ip-areas .ip-tablist { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
    .imr-page .ip-areas .ip-tab { flex: none; }
    .imr-page .ip-ba { grid-template-columns: 1fr; }
    .imr-page .ip-flow { grid-template-columns: 1fr 1fr; }
    .imr-page .ip-flow li:nth-child(3)::before { display: none; }
    .imr-page .ip-consol .after ul { grid-template-columns: 1fr; }
}
.imr-page .ip-consol .before { display: flex; flex-direction: column; }
.imr-page .ip-consol .before ul { flex: 1; align-content: center; }
.imr-page .ip-consol .after .core { width: auto; max-width: 240px; padding: 14px 26px; text-align: center; }
.imr-page .ip-consol .after .core small { white-space: nowrap; }
.imr-page .ip-areas .ip-tab svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.imr-page .ip-areas .ip-tab[aria-selected="true"] svg { stroke: var(--ink); }

/* Video en modo cine */
.imr-cine-poster {
    position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 !important; margin: 0; border: 0 !important; border-radius: 0 !important;
    background: #000d24 !important; cursor: pointer; overflow: hidden; display: block; color: #fff !important;
}
.imr-cine-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out, cubic-bezier(.16,1,.3,1)), filter .6s; filter: saturate(.92) brightness(.82); }
.imr-cine-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,13,36,0) 45%, rgba(0,13,36,.7)); pointer-events: none; }
.imr-cine-poster .play {
    position: absolute; left: 50%; top: 50%; z-index: 1; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center;
    background: #fb9359; color: #1a0f04; box-shadow: 0 18px 40px -12px rgba(243,131,76,.85); transition: transform .5s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.imr-cine-poster .play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(251,147,89,.55); animation: imr-cine-ring 2.4s ease-out infinite; }
.imr-cine-poster .play svg { margin-left: 4px; }
.imr-cine-poster .hint {
    position: absolute; left: 18px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 100px;
    background: rgba(0,13,36,.55); backdrop-filter: blur(6px); font: 700 13px/1 Sarabun, system-ui, sans-serif; letter-spacing: .02em;
}
.imr-cine-poster:hover img, .imr-cine-poster:focus-visible img { transform: scale(1.045); filter: saturate(1) brightness(.9); }
.imr-cine-poster:hover .play, .imr-cine-poster:focus-visible .play { transform: scale(1.1); }
.imr-cine-poster:focus-visible { outline: 3px solid #fb9359 !important; outline-offset: -3px; }
@keyframes imr-cine-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

html.imr-cine-open { overflow: hidden; }
dialog.imr-cine {
    position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; outline: 0;
    background: rgba(0,6,18,0); color: #f4f8fd; overflow: hidden; transition: background-color .5s ease, backdrop-filter .5s ease;
}
dialog.imr-cine[open] { display: grid; place-items: center; }
dialog.imr-cine::backdrop { background: transparent; }
dialog.imr-cine.is-on { background: rgba(0,6,18,.94); backdrop-filter: blur(10px); }
.imr-cine-stage { display: grid; justify-items: center; gap: 18px; }
.imr-cine-frame {
    width: min(92vw, calc((100dvh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; transform-origin: 0 0;
    background: #000 center / cover no-repeat; box-shadow: 0 50px 140px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
}
.imr-cine-frame iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s ease .1s; }
dialog.imr-cine.is-on .imr-cine-frame.is-ready iframe { opacity: 1; }
.imr-cine-cap { margin: 0; font: 600 15px/1.4 Sarabun, system-ui, sans-serif; color: #b4c6e0; opacity: 0; transform: translateY(8px); transition: opacity .4s ease .35s, transform .5s ease .35s; }
dialog.imr-cine.is-on .imr-cine-cap { opacity: 1; transform: none; }
dialog.imr-cine .imr-cine-x {
    position: fixed; top: 22px; right: 22px; width: 48px; height: 48px; padding: 0; margin: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.18) !important; color: #f4f8fd !important;
    opacity: 0; transition: opacity .3s ease .3s, background-color .2s;
}
dialog.imr-cine.is-on .imr-cine-x { opacity: 1; }
dialog.imr-cine .imr-cine-x:hover { background: rgba(255,255,255,.18) !important; }
dialog.imr-cine .imr-cine-x:focus-visible { outline: 2px solid #fb9359; outline-offset: 3px; }
@media (max-width: 640px) {
    .imr-cine-poster .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
    .imr-cine-frame { width: 100vw; border-radius: 0; }
    dialog.imr-cine .imr-cine-x { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .imr-cine-poster .play::before { animation: none; }
    dialog.imr-cine, .imr-cine-frame iframe, .imr-cine-cap { transition: none; }
}
.imr-cine-box { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: inherit; background: #000d24; }
.ip-video > .imr-cine-box, .video-container > .imr-cine-box, [class*="pb-[56.25%]"] > .imr-cine-box { position: absolute; inset: 0; aspect-ratio: auto; }
.elementor-widget-video .imr-cine-box { border-radius: 16px; }
.video-card .imr-cine-box { border-radius: inherit; }

/* ============ Blog: listado y archivos ============ */
.imr-page .ip-blog-hero { padding-bottom: clamp(44px, 5vw, 72px); }
.imr-page .ip-blog-hero .ip-lead { margin-bottom: 0; }
.imr-page .ip-blog-list { padding-top: clamp(32px, 4vw, 52px); }
.imr-page .ip-blog-cats { display: flex; gap: 8px; margin-bottom: clamp(32px, 4vw, 52px); padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.imr-page .ip-blog-cats::-webkit-scrollbar { display: none; }
.imr-page .ip-blog-cats a {
    flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 100px;
    background: var(--paper); border: 1px solid var(--paper-line); font-size: 15px; font-weight: 700; color: var(--navy);
    transition: border-color .2s, background-color .2s, color .2s;
}
.imr-page .ip-blog-cats a:hover { border-color: var(--navy); }
.imr-page .ip-blog-cats a small { font-size: 13px; font-weight: 600; color: var(--ink-on-paper); }
.imr-page .ip-blog-cats a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--ink); }
.imr-page .ip-blog-cats a[aria-current] small { color: var(--ink-dim); }

.imr-page .ip-post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.imr-page .ip-blog-feature.is-text { grid-template-columns: minmax(0, 1fr); }
.imr-page .ip-blog-feature.is-text h2 { max-width: 24ch; }
.imr-page .ip-post-card.is-text .ip-post-card-body { padding-top: 26px; }
.imr-page .ip-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.imr-page .ip-post-when { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-on-paper); }
.imr-page :is(.ip-post-card, .ip-blog-feature) :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.imr-page :is(.ip-post-card, .ip-blog-feature) :is(h2, h3) a:focus-visible { outline: 0; }
.imr-page :is(.ip-post-card, .ip-blog-feature):focus-within { outline: 2px solid var(--orange); outline-offset: 4px; }

.imr-page .ip-blog-feature {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: center;
    margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--paper-line); border-radius: 22px 22px 0 0;
}
.imr-page .ip-blog-feature .ip-post-thumb { aspect-ratio: 16 / 10; border-radius: 22px; }
.imr-page .ip-blog-feature h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.022em; color: var(--navy); text-wrap: balance; }
.imr-page .ip-blog-feature .ex { margin-top: 16px; max-width: 52ch; font-size: 17.5px; line-height: 1.65; color: var(--ink-on-paper); }
.imr-page .ip-blog-feature .ip-post-when { margin-top: 22px; }
.imr-page .ip-blog-feature:hover .ip-post-thumb img { transform: scale(1.03); }
.imr-page .ip-blog-feature:hover h2 a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }

.imr-page .ip-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.imr-page .ip-post-card {
    position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--paper-line);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
}
.imr-page .ip-post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(0,13,36,.38); border-color: rgba(0,13,36,.16); }
.imr-page .ip-post-card:hover .ip-post-thumb img { transform: scale(1.04); }
.imr-page .ip-post-card .ip-post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.imr-page .ip-post-cat { margin-bottom: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-ink); }
.imr-page .ip-post-card h3 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.012em; color: var(--navy); text-wrap: balance; }
.imr-page .ip-post-card .ex { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-on-paper); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.imr-page .ip-post-card .ip-post-when { margin-top: auto; padding-top: 18px; }
.imr-page .ip-blog-empty { font-size: 17.5px; color: var(--ink-on-paper); }

.imr-page .ip-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(48px, 6vw, 72px); }
.imr-page .ip-pager :is(a, span) {
    display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 16px; border-radius: 100px;
    border: 1px solid var(--paper-line); font-size: 15px; font-weight: 700; color: var(--navy); transition: border-color .2s;
}
.imr-page .ip-pager a:hover { border-color: var(--navy); }
.imr-page .ip-pager .current { background: var(--navy); border-color: var(--navy); color: var(--ink); }
.imr-page .ip-pager .dots { min-width: 24px; padding: 0; border: 0; color: var(--ink-on-paper); }
.imr-page.ip-blog .ip-cta { padding: clamp(72px, 8vw, 112px) 0; }
body .imr-page.ip-blog .ip-hero h1, body .imr-page.ip-blog .ip-cta h2 { color: var(--ink) !important; }
@media (max-width: 1024px) {
    .imr-page .ip-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .imr-page .ip-blog-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
    .imr-page .ip-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .imr-page .ip-blog-cats { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
    .imr-page .ip-post-card .ip-post-card-body { padding: 20px 20px 22px; }
}

/* ============ Blog: pie del artículo ============ */
body.single-post main > .ip-post-body { margin-bottom: clamp(40px, 5vw, 56px); }
.imr-page .ip-post-extra { max-width: 760px; margin: 0 auto clamp(56px, 7vw, 88px); padding: 0 24px; }
.imr-page .ip-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 28px; border-top: 1px solid var(--paper-line); }
.imr-page .ip-post-tags b { margin-right: 6px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-on-paper); }
.imr-page .ip-post-tags a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 100px; border: 1px solid var(--paper-line);
    font-size: 14.5px; font-weight: 700; color: var(--navy); transition: border-color .2s;
}
.imr-page .ip-post-tags a:hover { border-color: var(--navy); }
.imr-page .ip-post-comments { margin-top: 44px; }
.imr-page .ip-post-comments h2 { margin-bottom: 14px; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.012em; color: var(--navy); }
.imr-page .ip-post-comments li { padding: 18px 0; border-top: 1px solid var(--paper-line); }
.imr-page .ip-post-comments li b { font-size: 16px; font-weight: 800; color: var(--navy); }
.imr-page .ip-post-comments li time { margin-left: 10px; font-size: 14px; color: var(--ink-on-paper); }
.imr-page .ip-post-comments li p { margin-top: 8px; font-size: 16.5px; line-height: 1.65; color: #2c3b5c; overflow-wrap: anywhere; }
.imr-page .ip-post-more .ip-head { margin-bottom: clamp(28px, 3vw, 40px); }
