/* ==========================================================================
   Cuantico — Rubros: mosaico, catálogo interactivo y páginas de rubro.
   Se usa junto con sol.css y modulos.css (barra de búsqueda, pestañas, galería).
   ========================================================================== */

/* ---------- Portada con mosaico ---------- */
.rh { position: relative; overflow: hidden; color: var(--navy); padding: calc(var(--header-h) + 52px) 0 clamp(56px, 7vw, 100px); background: linear-gradient(160deg, #ffffff 0%, #eaf4fc 55%, #dcecfb 100%); }
.rh::before { content: ""; position: absolute; left: -12%; top: -25%; width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 154, 225, .22), transparent 66%); pointer-events: none; }
.rh__grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.rh__t { margin: 18px 0 22px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; font-weight: 500; color: var(--navy); }
.rh__t b { font-weight: 600; color: var(--blue); } .rh__t .split-line { padding-bottom: .12em; margin-bottom: -.12em; } .rh__t .serif-i { font-size: 1.06em; color: var(--blue); }
.rh .lead { max-width: 50ch; color: #23364f; }
.rh__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rmos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rmos li:nth-child(4n+2) { transform: translateY(26px); } .rmos li:nth-child(4n+3) { transform: translateY(-12px); } .rmos li:nth-child(4n) { transform: translateY(18px); }
.rmos a { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 1; padding: 10px; border-radius: 22px; text-align: center; font-size: .8rem; font-weight: 550; line-height: 1.15; color: var(--navy); background: #fff; box-shadow: 0 0 0 1px rgba(27, 79, 156, .14), 0 22px 40px -26px rgba(27, 79, 156, .55); transition: transform .5s var(--ease-spring), box-shadow .4s, background .3s, color .3s; animation: rFloat 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.rmos svg { width: 26px; height: 26px; color: var(--blue); transition: color .3s; }
.rmos a:hover, .rmos a:focus-visible { transform: translateY(-8px) scale(1.05); background: var(--blue); color: #fff; box-shadow: 0 30px 50px -24px rgba(27, 79, 156, .8); } .rmos a:hover svg { color: #fff; }
@keyframes rFloat { 50% { margin-top: -8px; } }
@media (max-width: 980px) { .rh__grid { grid-template-columns: 1fr; } .rmos { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rmos li { transform: none !important; } }
@media (max-width: 560px) { .rmos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rmos li:nth-child(n+10) { display: none; } }

/* ---------- Tarjetas de rubro ---------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.rc { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 22px 66px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 31, 58, .08), 0 22px 44px -34px rgba(11, 31, 58, .4); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .4s; scroll-margin-top: calc(var(--header-h) + 90px); }
.rc.is-out { display: none; } .rc.is-in-anim { animation: mcIn .5s var(--ease-out) backwards; }
.rc::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 154, 225, .18), transparent 70%); transition: transform .6s var(--ease-out); }
.rc:hover, .rc:focus-within { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(27, 79, 156, .4), 0 36px 60px -34px rgba(27, 79, 156, .55); } .rc:hover::after { transform: scale(2); }
.rc__i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #3B9AE1, #1B4F9C); box-shadow: 0 12px 22px -12px rgba(27, 79, 156, .8); transition: transform .5s var(--ease-spring); }
.rc:hover .rc__i { transform: rotate(-8deg) scale(1.08); } .rc__i svg { width: 24px; height: 24px; }
.rc__c { position: absolute; right: 18px; top: 22px; z-index: 1; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #6a7b93; }
.rc h3 { margin-top: 10px; font-size: 1.3rem; font-weight: 550; letter-spacing: -.03em; color: var(--navy); }
.rc__d { font-size: .93rem; color: #3b4d66; line-height: 1.5; }
.rc__n { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.rc__n li { padding: 3px 10px; border-radius: 999px; font-size: .76rem; color: #23364f; background: #eef3fa; }
.rc__a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.rc__go { position: absolute; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 550; color: var(--blue); }
.rc__go svg { width: 16px; height: 16px; transition: transform .4s var(--ease-spring); } .rc:hover .rc__go svg { transform: translateX(6px); }
.rc__soon { display: inline-block; width: fit-content; margin-top: 4px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 550; color: #7a5200; background: #ffefc7; }
.rc.is-soon { background: linear-gradient(180deg, #fff, #fbf7ec); }

/* ---------- Cierre: el rubro cambia ---------- */
.rpr { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: p; }
.rpr li { padding: 20px 18px; border-radius: 18px; background: #f3f5f8; box-shadow: inset 0 0 0 1px rgba(11, 31, 58, .08); transition: transform .5s var(--ease-out), background .3s; } .rpr li:hover { transform: translateY(-5px); background: #fff; }
.rpr b { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--blue); margin-bottom: 8px; } .rpr strong { display: block; color: var(--navy); font-weight: 550; margin-bottom: 4px; } .rpr span { font-size: .9rem; color: #3b4d66; }
.rsc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rsc li { padding: 22px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #1B4F9C, #0B1F3A); } .rsc small { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #8fc9f2; margin-bottom: 8px; } .rsc strong { display: block; font-size: 1.3rem; font-weight: 500; margin-bottom: 4px; } .rsc span { color: #c9dcf4; font-size: .92rem; }
@media (max-width: 900px) { .rpr, .rsc { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .rpr, .rsc { grid-template-columns: 1fr; } }

/* ---------- Página de rubro: Distribuidoras (portada blanca con capturas) ---------- */
.rd { position: relative; overflow: hidden; color: var(--navy); padding: calc(var(--header-h) + 52px) 0 clamp(48px, 6vw, 84px); background: #fff; }
.rd::before { content: ""; position: absolute; right: -8%; top: 6%; width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 154, 225, .16), transparent 66%); pointer-events: none; }
.rd__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.rd__t { margin: 16px 0 20px; font-size: clamp(2.3rem, 4.8vw, 4.8rem); line-height: .98; letter-spacing: -.05em; font-weight: 500; color: var(--navy); max-width: 14ch; } .rd__t em { font-size: 1.06em; color: var(--blue); }
.rd .lead { max-width: 48ch; color: #23364f; }
.rd__vis { position: relative; min-height: 440px; }
.rd__vis .mon { position: absolute; box-shadow: 0 0 0 1px rgba(11, 31, 58, .14), 0 40px 80px -30px rgba(27, 79, 156, .55); }
.rd__vis .mon:nth-child(1) { left: 0; top: 0; width: 68%; } .rd__vis .mon:nth-child(2) { right: 0; bottom: 0; width: 52%; animation: solFloat 8s ease-in-out infinite; }
.rd__vis .mon img { display: block; width: 100%; height: auto; }
.rd__tag { position: absolute; z-index: 2; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 550; color: #fff; background: var(--blue); box-shadow: 0 14px 26px -12px rgba(27, 79, 156, .8); } .rd__tag--a { left: 4%; bottom: 18%; } .rd__tag--b { right: 6%; top: 8%; }
@media (max-width: 980px) { .rd__grid { grid-template-columns: 1fr; } .rd__vis { min-height: 0; } .rd__vis .mon { position: static; width: 100% !important; margin-bottom: 14px; animation: none !important; } .rd__tag { display: none; } }

/* circuito */
.rcirc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.rcirc::before { content: ""; position: absolute; left: 10%; right: 10%; top: 30px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: left; animation: rLine 1.6s var(--ease-out) both; }
@keyframes rLine { from { transform: scaleX(0); } }
.rcirc li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 0 6px; }
.rcirc b { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font-family: var(--font-mono); font-size: .8rem; color: #fff; background: linear-gradient(135deg, #3B9AE1, #1B4F9C); box-shadow: 0 0 0 6px #fff, 0 16px 28px -12px rgba(27, 79, 156, .7); transition: transform .5s var(--ease-spring); } .rcirc li:hover b { transform: scale(1.12) rotate(-6deg); }
.rcirc strong { color: var(--navy); font-weight: 550; } .rcirc small { color: #55667f; font-size: .82rem; }
@media (max-width: 760px) { .rcirc { grid-template-columns: 1fr; gap: 18px; } .rcirc::before { display: none; } .rcirc li { grid-template-columns: 60px 1fr; justify-items: start; text-align: left; } }

.rlist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; } .rlist li { padding: 6px 14px; border-radius: 999px; font-size: .86rem; color: #23364f; background: #eef3fa; box-shadow: inset 0 0 0 1px rgba(27, 79, 156, .14); }
.mp .rlist { margin: 0 0 16px; }
@media (prefers-reduced-motion: reduce) { .rmos a, .rcirc::before, .rd__vis .mon { animation: none !important; } }

/* ---------- Portadas de rubro: cuatro composiciones y seis fondos ---------- */
.rx { position: relative; overflow: hidden; color: var(--navy); padding: calc(var(--header-h) + 52px) 0 clamp(48px, 6vw, 84px); background: #fff; }
.rx--white { background: #fff; } .rx--sky { background: radial-gradient(60% 70% at 85% 20%, rgba(59, 154, 225, .26), transparent 70%), linear-gradient(180deg, #eaf4fc, #f7fafd); }
.rx--mint { background: radial-gradient(60% 70% at 85% 20%, rgba(52, 200, 150, .24), transparent 70%), linear-gradient(180deg, #e7f7f0, #f6fbf9); }
.rx--sand { background: radial-gradient(60% 70% at 85% 20%, rgba(240, 180, 90, .26), transparent 70%), linear-gradient(180deg, #fbf3e4, #fffaf1); }
.rx--lilac { background: radial-gradient(60% 70% at 85% 20%, rgba(130, 110, 230, .22), transparent 70%), linear-gradient(180deg, #efeafc, #f9f7ff); }
.rx--slate { background: radial-gradient(60% 70% at 85% 20%, rgba(27, 79, 156, .2), transparent 70%), linear-gradient(180deg, #e8edf4, #f5f7fa); }
.rx--white::before { content: ""; position: absolute; right: -8%; top: 6%; width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 154, 225, .16), transparent 66%); pointer-events: none; }
.rx__t { margin: 16px 0 20px; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: .98; letter-spacing: -.05em; font-weight: 500; color: var(--navy); max-width: 16ch; }
.rx .lead { max-width: 50ch; color: #23364f; }
.rx__grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.rx__grid--rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.rx__vis .mon { box-shadow: 0 0 0 1px rgba(11, 31, 58, .14), 0 40px 80px -30px rgba(27, 79, 156, .55); } .rx__vis .mon img { display: block; width: 100%; height: auto; }
/* A: capturas superpuestas */
.rx__vis--a { position: relative; min-height: 440px; } .rx__vis--a .mon { position: absolute; }
.rx__vis--a .mon:nth-child(1) { left: 0; top: 0; width: 68%; } .rx__vis--a .mon:nth-child(2) { right: 0; bottom: 0; width: 52%; animation: solFloat 8s ease-in-out infinite; }
.rx__vis--a.rx__vis--one { min-height: 0; } .rx__vis--a.rx__vis--one .mon { position: relative; width: 100%; transform: perspective(1600px) rotateY(-8deg) rotateX(2deg); }
/* B: captura grande a la izquierda */
.rx__vis--b .mon { transform: perspective(1600px) rotateY(9deg) rotateX(2deg); transition: transform .8s var(--ease-out); } .rx__vis--b .mon:hover { transform: none; }
/* C: captura + tarjetas de necesidades */
.rx__vis--c { position: relative; padding-bottom: 12px; } .rx__vis--c .mon { width: 78%; margin-left: auto; }
.rx__stack { list-style: none; margin: -48px 0 0; padding: 0; display: grid; gap: 10px; max-width: 78%; position: relative; z-index: 2; }
.rx__stack li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(27, 79, 156, .16), 0 24px 40px -26px rgba(27, 79, 156, .55); animation: solFloat 7s ease-in-out infinite; }
.rx__stack li:nth-child(2) { margin-left: 22px; animation-delay: -2s; } .rx__stack li:nth-child(3) { margin-left: 44px; animation-delay: -4s; }
.rx__stack svg { width: 20px; height: 20px; color: var(--ok, #1fa971); margin-top: 2px; } .rx__stack strong { display: block; color: var(--navy); font-weight: 550; } .rx__stack span { font-size: .86rem; color: #3b4d66; }
/* D: título ancho y captura panorámica */
.rx--d .rx__head { max-width: 900px; } .rx--d .rx__t { max-width: 20ch; }
.rx__vis--d { margin-top: clamp(28px, 4vw, 48px); } .rx__vis--d .mon { margin-bottom: calc(-1 * clamp(40px, 6vw, 96px)); border-radius: 18px; transform: perspective(1800px) rotateX(3deg); }
.rx__vis--d .mon img { max-height: 460px; object-fit: cover; object-position: top left; }
.rx--d { padding-bottom: 0; } .rx--d + .sec { padding-top: calc(clamp(56px, 8vw, 104px) + clamp(40px, 6vw, 96px)); }
@media (max-width: 980px) { .rx__grid, .rx__grid--rev { grid-template-columns: 1fr; } .rx__grid--rev > :first-child { order: 2; }
  .rx__vis--a { min-height: 0; } .rx__vis--a .mon { position: static !important; width: 100% !important; margin-bottom: 14px; animation: none !important; transform: none !important; }
  .rx__vis--b .mon, .rx__vis--d .mon { transform: none; } .rx__vis--c .mon, .rx__stack { width: 100%; max-width: 100%; } .rx__stack { margin-top: 12px; } .rx__stack li:nth-child(n) { margin-left: 0; } .rx__vis--d .mon { margin-bottom: 0; } .rx--d + .sec { padding-top: clamp(56px, 8vw, 104px); } }

/* ---------- Secciones de rubro ---------- */
.rneed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.rneed li { position: relative; padding: 24px 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 31, 58, .08), 0 24px 44px -34px rgba(11, 31, 58, .4); transition: transform .5s var(--ease-out), box-shadow .4s; }
.rneed li:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(27, 79, 156, .35), 0 34px 56px -34px rgba(27, 79, 156, .5); }
.rneed b { display: block; font-size: .72rem; letter-spacing: .12em; color: var(--blue); margin-bottom: 10px; } .rneed strong { display: block; font-size: 1.12rem; font-weight: 550; color: var(--navy); margin-bottom: 6px; } .rneed p { color: #3b4d66; font-size: .94rem; }
.rlist2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.rlist2 li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(11, 31, 58, .12); }
.rlist2 svg { width: 22px; height: 22px; color: var(--ok, #1fa971); } .rlist2 strong { display: block; color: var(--navy); font-weight: 550; margin-bottom: 2px; } .rlist2 span { color: #3b4d66; font-size: .94rem; }
@media (max-width: 760px) { .rlist2 { grid-template-columns: 1fr; } }
.rcirc--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rcirc--4::before { left: 12.5%; right: 12.5%; } .rcirc--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .rcirc--6::before { left: 8%; right: 8%; }
.rcirc b { font-family: var(--font-mono); }
@media (max-width: 760px) { .rcirc--4, .rcirc--6 { grid-template-columns: 1fr; } }
.rband { background: linear-gradient(135deg, #1B4F9C, #0B1F3A); } .rband .kick { color: #8fc9f2; } .rband .h2 { color: #fff; }
.mben--band li { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); } .mben--band li:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px #fff; }
.mben--band strong { color: #fff; } .mben--band p { color: #c9dcf4; }
.rsol { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: #f3f5f8; box-shadow: inset 0 0 0 1px rgba(11, 31, 58, .1); transition: transform .4s var(--ease-out), background .3s; }
.rsol span { grid-column: 1; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); } .rsol strong { grid-column: 1; color: var(--navy); font-weight: 550; } .rsol svg { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--blue); transition: transform .4s var(--ease-spring); }
.rsol:hover { transform: translateY(-3px); background: #fff; } .rsol:hover svg { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .rx__stack li, .rx__vis--a .mon { animation: none !important; } }