/* INREMA | Módulo 03 · Carrusel de videos v1.0
   Diseño encapsulado, sin alterar Header ni Hero. */
.inrema-videos, .inrema-videos * {box-sizing:border-box}
.inrema-videos {
 --iv-blue:#001763;--iv-yellow:#ffb900;--iv-white:#fff;--iv-muted:#556174;
 --iv-surface:#f7f8fb;--iv-radius:28px;--iv-gap:14px;
 color:var(--iv-blue);font-family:Inter,Arial,Helvetica,sans-serif;
 position:relative;isolation:isolate;overflow:hidden;
 background:linear-gradient(164deg,#f4f5f8 0%,#fafbfc 46%,#f6f8fc 100%);
 padding:36px 22px 72px;
}
.inrema-videos::before {content:"";position:absolute;z-index:-1;left:-8vw;top:-150px;width:38vw;height:290px;border-radius:0 0 80% 0;background:linear-gradient(130deg,#e8ecf5,#ffffff00)}
.inrema-videos::after {content:"";position:absolute;right:-155px;bottom:-165px;width:390px;height:285px;background:var(--iv-yellow);transform:rotate(-33deg);border-radius:56px;z-index:-1}
.inrema-videos__head {text-align:center;margin:0 auto 29px;max-width:1080px}
.inrema-videos__eyebrow {display:flex;justify-content:center;align-items:center;gap:22px;font-size:17px;letter-spacing:.02em;font-weight:800;color:var(--iv-blue);margin:0 0 17px}
.inrema-videos__eyebrow::before,.inrema-videos__eyebrow::after {content:"";display:block;width:58px;height:6px;border-radius:4px;background:var(--iv-yellow)}
.inrema-videos__title {font-size:clamp(29px,3.15vw,50px);line-height:1.16;font-weight:850;letter-spacing:-.035em;margin:0 0 13px;color:var(--iv-blue)}
.inrema-videos__intro {font-size:clamp(15px,1.18vw,20px);line-height:1.58;color:#4b5565;margin:0 auto;max-width:1020px;font-weight:400}
.inrema-videos__panel {position:relative;width:min(100%,1450px);margin:0 auto;padding:20px 50px 30px;background:#fff;border-radius:var(--iv-radius);box-shadow:0 20px 44px rgba(13,30,68,.095),0 2px 11px rgba(13,30,68,.025)}
.inrema-videos__panel-head {display:flex;align-items:center;justify-content:space-between;gap:26px;padding:0 0 23px}
.inrema-videos__profile {display:flex;align-items:center;gap:19px;min-width:0}
.inrema-videos__avatar {width:81px;height:81px;background:var(--iv-blue);border-radius:100%;display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden;box-shadow:0 2px 5px rgba(0,23,99,.15)}
.inrema-videos__avatar img {width:100%;height:100%;object-fit:contain;background:#fff;border:3px solid var(--iv-blue);border-radius:100%;padding:12px 5px}
.inrema-videos__profile-copy {padding-left:22px;border-left:2px solid #e1e5ec;min-width:0}
.inrema-videos__brand {font-size:27px;font-weight:820;line-height:1.12;margin:0 0 4px;color:var(--iv-blue)}
.inrema-videos__brand-sub {font-size:18px;line-height:1.3;margin:0;color:#596371}
.inrema-videos__ig {display:inline-flex;gap:12px;align-items:center;justify-content:center;white-space:nowrap;font-weight:760;font-size:17px;text-decoration:none;padding:14px 20px;border-radius:12px;color:#fff;background:linear-gradient(115deg,#e40065,#a90061);border:0;min-height:54px;box-shadow:0 4px 13px rgba(166,0,85,.09);transition:transform .15s ease,box-shadow .15s ease}
.inrema-videos__ig:is(a):hover {transform:translateY(-2px);box-shadow:0 7px 20px rgba(166,0,85,.2)}
.inrema-videos__ig.is-pending {opacity:.76;cursor:not-allowed;user-select:none}
.inrema-videos__ig svg {width:27px;height:27px;flex:none;stroke:currentColor;fill:none;stroke-width:2.2}
.inrema-videos__viewport {scrollbar-width:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-inline:contain;padding:0 0 3px}
.inrema-videos__viewport::-webkit-scrollbar {display:none}
.inrema-videos__track {display:flex;gap:var(--iv-gap);align-items:stretch}
.inrema-videos__card {min-width:0;flex:0 0 calc((100% - 3 * var(--iv-gap)) / 4);aspect-ratio:0.84;position:relative;border-radius:14px;overflow:hidden;scroll-snap-align:start;background:#d9dfe7;box-shadow:0 2px 3px rgba(0,0,0,.04)}
.inrema-videos__card > img {display:block;width:100%;height:100%;object-fit:cover}
.inrema-videos__card::after {content:"";position:absolute;inset:45% 0 0;pointer-events:none;background:linear-gradient(0deg,rgba(1,14,35,.94),rgba(1,14,35,.47) 48%,transparent)}
.inrema-videos__play {cursor:pointer;border:2px solid #fff;border-radius:100%;background:rgba(4,14,42,.34);color:#fff;width:70px;height:70px;display:grid;place-items:center;position:absolute;z-index:2;top:48%;left:50%;transform:translate(-50%,-50%);backdrop-filter:blur(4px);transition:background .2s ease,transform .2s ease}
.inrema-videos__play:hover {background:rgba(255,185,0,.93);transform:translate(-50%,-50%) scale(1.055)}
.inrema-videos__play:focus-visible,.inrema-videos__arrow:focus-visible,.inrema-videos__ig:focus-visible,.inrema-videos__close:focus-visible {outline:3px solid var(--iv-yellow);outline-offset:4px}
.inrema-videos__play svg {width:30px;height:30px;margin-left:4px;fill:currentColor}
.inrema-videos__card-copy {position:absolute;z-index:2;bottom:22px;left:20px;right:12px;color:#fff;padding-left:18px}
.inrema-videos__card-copy::before {content:"";position:absolute;top:3px;bottom:2px;left:0;width:5px;border-radius:4px;background:var(--iv-yellow)}
.inrema-videos__card-title {display:block;color:#fff;font-size:19px;line-height:1.14;letter-spacing:-.025em;font-weight:820;margin:0 0 5px}
.inrema-videos__card-desc {display:block;color:#f6f7fa;font-weight:430;font-size:13px;line-height:1.3}
.inrema-videos__arrow {position:absolute;z-index:3;top:53%;height:54px;width:54px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;background:#fff;color:var(--iv-blue);box-shadow:0 4px 14px rgba(0,23,99,.14);transform:translateY(-50%)}
.inrema-videos__arrow--prev {left:-4px}.inrema-videos__arrow--next {right:-4px}
.inrema-videos__arrow[disabled] {opacity:.58;cursor:default}
.inrema-videos__arrow svg {width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:2.5}
.inrema-videos__progress {position:relative;width:min(48%,500px);height:8px;border-radius:8px;margin:24px auto 0;background:#e4e7ef;overflow:hidden}
.inrema-videos__progress-thumb {position:absolute;top:0;left:0;bottom:0;width:28%;border-radius:8px;background:var(--iv-blue);transform:translateX(0);will-change:transform}
.inrema-videos__status {text-align:center;font-size:12px;color:#5d6b7e;margin:10px 0 0;min-height:1px}
/* One modal for all cards: player only created upon click. */
.inrema-videos__dialog {background:transparent;border:0;padding:0;max-width:calc(100vw - 26px);max-height:calc(100dvh - 26px);color:#fff}
.inrema-videos__dialog::backdrop {background:rgba(0,10,38,.87);backdrop-filter:blur(6px)}
.inrema-videos__dialog-inner {position:relative;border-radius:17px;overflow:hidden;width:min(430px,calc(100vw - 36px));background:#061335;box-shadow:0 18px 90px rgba(0,0,0,.5)}
.inrema-videos__dialog-title {font-size:16px;padding:13px 58px 12px 15px;margin:0;font-weight:760;min-height:50px}
.inrema-videos__close {position:absolute;top:9px;right:10px;z-index:6;display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff70;background:#17264a;border-radius:50%;cursor:pointer;color:#fff;font-size:25px;line-height:1}
.inrema-videos__player {width:100%;aspect-ratio:9/16;background:#050d23;display:grid;place-items:center}
.inrema-videos__player iframe,.inrema-videos__player video {display:block;width:100%;height:100%;border:0;object-fit:contain;background:black}
.inrema-videos__pending-text {padding:28px;color:#fff;text-align:center;font-size:16px;line-height:1.5}
@media (max-width:1100px){
 .inrema-videos__panel {padding:22px 30px 28px}
 .inrema-videos__card {flex-basis:calc((100% - 2 * var(--iv-gap))/3);aspect-ratio:.77}
 .inrema-videos__brand {font-size:24px}
 .inrema-videos__card-title {font-size:17px}
}
@media (max-width:800px){
 .inrema-videos {padding:32px 17px 55px}
 .inrema-videos__head {margin-bottom:24px}
 .inrema-videos__panel {padding:20px 20px 25px}
 .inrema-videos__card {flex-basis:calc((100% - var(--iv-gap))/2);aspect-ratio:.75}
 .inrema-videos__avatar {width:65px;height:65px}
 .inrema-videos__brand {font-size:21px}
 .inrema-videos__brand-sub {font-size:14px}
 .inrema-videos__ig {font-size:14px;padding:10px 12px;min-height:46px}
 .inrema-videos__ig svg {width:22px;height:22px}
 .inrema-videos__arrow {width:42px;height:42px}
 .inrema-videos__arrow--prev {left:-9px}.inrema-videos__arrow--next {right:-9px}
}
@media (max-width:575px){
 .inrema-videos {padding:40px 0 56px}
 .inrema-videos__eyebrow {font-size:11px;gap:9px;margin-bottom:12px}
 .inrema-videos__eyebrow::before,.inrema-videos__eyebrow::after {width:28px;height:4px}
 .inrema-videos__head {padding:0 20px;margin-bottom:22px}
 .inrema-videos__title {font-size:clamp(28px,8vw,36px);letter-spacing:-.04em;line-height:1.16;margin:0 0 11px}
 .inrema-videos__intro {font-size:14px;line-height:1.55}
 .inrema-videos__panel {width:calc(100% - 30px);padding:20px 0 24px;border-radius:22px}
 .inrema-videos__panel-head {padding:0 18px 17px;display:flex;align-items:center}
 .inrema-videos__avatar {width:58px;height:58px}
 .inrema-videos__avatar img {padding:10px 4px}
 .inrema-videos__profile {gap:10px}
 .inrema-videos__profile-copy {padding-left:12px}
 .inrema-videos__brand {font-size:19px}
 .inrema-videos__brand-sub {font-size:12px;line-height:1.28}
 .inrema-videos__ig {margin:18px auto 0;max-width:calc(100% - 32px);width:max-content}
 .inrema-videos__panel {display:flex;flex-direction:column}
 .inrema-videos__panel-head {order:0}
 .inrema-videos__viewport {order:1;padding:0 16px}
 .inrema-videos__progress {order:2;width:55%;margin:18px auto 0;height:6px}
 .inrema-videos__status {order:3}
 .inrema-videos__ig {order:4}
 .inrema-videos__card {flex:0 0 min(77%,272px);aspect-ratio:.67}
 .inrema-videos__card-copy {left:15px;right:8px;bottom:18px}
 .inrema-videos__card-title {font-size:16px}
 .inrema-videos__card-desc {font-size:12px}
 .inrema-videos__play {width:64px;height:64px}
 .inrema-videos__arrow {top:auto;bottom:87px;width:39px;height:39px;transform:none;box-shadow:0 3px 13px rgba(0,23,99,.16)}
 .inrema-videos__arrow--prev {left:10px}.inrema-videos__arrow--next {right:10px}
 .inrema-videos::after {width:180px;height:180px;right:-90px;bottom:-85px}
}
@media (prefers-reduced-motion:reduce){.inrema-videos__viewport {scroll-behavior:auto}.inrema-videos__ig,.inrema-videos__play{transition:none}}
/* Distinct desktop/mobile Instagram controls retain the reference layout. */
.inrema-videos__ig--mobile {display:none}
@media (min-width:576px){.inrema-videos__desktop-break {display:block}}
@media (max-width:575px){
 .inrema-videos__ig--head {display:none}
 .inrema-videos__ig--mobile {display:inline-flex}
 .inrema-videos__desktop-break {display:none}
}
