/* Comunicación y Colaboración — Retos (docs/render-colaboracion-retos.cjs). Two editorial columns: the existing header
   with a photo of videoconference equipment right under it (left), and the six challenges (right), separated by space
   only. The section header keeps its styles from colaboracion-page.css; the old full-width background photo is
   switched off here. Fuchsia #CD0298 for the numbers and line icons. The challenges stay descriptive (no links); on
   devices with a precise pointer a soft fuchsia glow and a very slight scale acknowledge the hover. */
.collab-retos{margin-top:0;overflow-x:clip;overflow-y:visible;background:transparent}
.collab-retos::before{content:none}

.cc-retos-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(48px,6vw,96px);align-items:start}

/* ---- Left: header + photo (same left edge as the text; one composition) ---- */
.cc-retos-intro{display:flex;flex-direction:column}
.cc-retos-photo{position:relative;margin:clamp(24px,2.4vw,32px) 0 0;aspect-ratio:16/10;overflow:hidden;border-radius:14px;background:#050816;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.cc-retos-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:52% 62%;filter:brightness(.94)}

/* ---- Right: six challenges, horizontal dividers only ---- */
.cc-retos-list{display:flex;flex-direction:column;align-self:center;margin:0;padding:0;list-style:none}
.cc-reto{position:relative;isolation:isolate;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:start;column-gap:clamp(14px,1.6vw,22px);padding:clamp(13px,1.3vw,17px) 0;border-bottom:1px solid rgba(255,255,255,.07)}
.cc-reto:last-child{border-bottom:0}
/* Hover glow layer (a little wider than the row, so the text keeps its alignment); invisible by default. */
.cc-reto::before{content:'';position:absolute;inset:2px -16px;z-index:-1;border-radius:12px;background:radial-gradient(ellipse 80% 120% at 12% 50%,rgba(205,2,152,.13),rgba(205,2,152,.04) 60%,transparent 100%);opacity:0;pointer-events:none}
.cc-reto-icon{display:grid;place-items:center;width:26px;height:26px;margin-top:1px;color:#d43aa9}
.cc-reto-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.cc-reto-number{min-width:1.6em;padding-top:2px;color:#d43aa9;font-size:.9rem;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.5}
.cc-reto-copy h3{margin:0;font-size:clamp(1rem,1.2vw,1.1rem);font-weight:500;line-height:1.4;letter-spacing:-.01em;color:#fff}
.cc-reto-copy p{margin:4px 0 0;color:#a9b4c7;font-size:.88rem;line-height:1.6}

/* Hover — only where a precise pointer exists (touch devices keep the static list). Transform only: the neighbours never
   move and the 2% growth stays inside the section (overflow-x: clip). */
@media (hover:hover) and (pointer:fine){
  .cc-reto{transition:transform .3s cubic-bezier(.22,.61,.36,1)}
  .cc-reto::before{transition:opacity .3s ease}
  .cc-reto-icon,.cc-reto-number{transition:color .3s ease,filter .3s ease}
  .cc-reto:hover{transform:scale(1.02)}
  .cc-reto:hover::before{opacity:1}
  .cc-reto:hover .cc-reto-icon,.cc-reto:hover .cc-reto-number{color:#ff4fcf;filter:drop-shadow(0 0 6px rgba(205,2,152,.45))}
}
@media (prefers-reduced-motion:reduce){
  .cc-reto,.cc-reto::before,.cc-reto-icon,.cc-reto-number{transition:none}
  .cc-reto:hover{transform:none}
}

/* ---- Tablet: still two columns, tighter ---- */
@media (max-width:1024px){
  .cc-retos-grid{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);column-gap:40px}
}
/* ---- Mobile / narrow tablet: header → photo → list ---- */
@media (max-width:800px){
  .cc-retos-grid{grid-template-columns:minmax(0,1fr)}
  .cc-retos-photo{margin-top:24px}
  .cc-retos-list{margin-top:24px}
}
@media (max-width:700px){
  .cc-retos-photo{border-radius:12px}
  .cc-reto{column-gap:12px}
  .cc-reto-icon{width:24px;height:24px}
  .cc-reto-number{font-size:.85rem}
}
