
/* J2BL Enterprise v0.13 · Carrusel central de proyectos.
   Sin cambios sobre el fondo cósmico o el logo oficial. */
.project-heading {align-items:start;gap:clamp(1.5rem,5vw,5rem);margin-bottom:2.6rem}
.project-heading > div {flex:1 1 560px}
.project-heading .section-title{max-width:730px}
.project-heading .micro-note{flex:0 1 350px;padding-top:2rem;font-size:1rem;color:#c8d5ef}
.project-carousel{position:relative;width:min(100%,1040px);margin:0 auto;text-align:center}
.project-carousel-stage{min-height:400px;display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;isolation:isolate}
.project-carousel-slide{
  grid-area:1/1;width:100%;min-width:0;min-height:400px;
  opacity:0;visibility:hidden;pointer-events:none;z-index:1;
  transition:opacity .85s ease-in-out,visibility 0s linear .85s;
}
.project-carousel-slide.is-active{
  opacity:1;visibility:visible;pointer-events:auto;z-index:2;
  transition:opacity .85s ease-in-out,visibility 0s linear 0s;
}
.project-carousel-slide[hidden]{display:none!important}
.project-carousel-card.project-card{
  width:100%;min-height:400px;padding:clamp(1.5rem,3.4vw,3rem);
  display:grid;grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr);align-items:center;gap:clamp(1rem,4vw,3rem);
  text-align:left;overflow:hidden;
  background:linear-gradient(125deg,rgba(14,30,65,.84),rgba(8,13,30,.82) 52%,rgba(29,17,47,.78));
  border:1px solid rgba(154,184,245,.23);
  border-radius:30px;
  box-shadow:0 32px 95px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.07);
  transition:border-color .4s ease,box-shadow .4s ease,transform .4s ease;
}
.project-carousel-card.project-card:hover,.project-carousel-card.project-card:focus-visible{
  border-color:rgba(246,204,107,.46);box-shadow:0 36px 95px rgba(0,0,0,.42),0 0 70px rgba(39,97,196,.12);
  transform:translateY(-2px);
}
.project-carousel-card::after{
  content:"";position:absolute;width:360px;height:360px;right:-190px;top:-180px;pointer-events:none;
  background:radial-gradient(circle,rgba(84,121,255,.16),transparent 70%);filter:blur(12px);
}
.project-carousel-logo{min-width:0;min-height:200px;display:grid;place-items:center;position:relative}
.project-carousel-logo::before{
  content:"";position:absolute;inset:14% 8%;border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(107,145,247,.17),transparent 68%);pointer-events:none;
}
.project-carousel-card.project-card .project-carousel-logo img{
  position:relative;z-index:1;display:block;
  width:min(100%,425px);max-width:100%;height:auto;max-height:260px;
  object-fit:contain;object-position:center;margin:0 auto;
  filter:none;opacity:1;transform:scale(1);
  transform-origin:center;
  transition:transform .38s cubic-bezier(.22,1,.36,1),filter .38s ease;
}
.project-carousel-copy{display:flex;align-items:flex-start;flex-direction:column;gap:1rem;min-width:0}
.project-carousel-copy .badge{display:inline-flex;align-self:flex-start}
.project-carousel-copy h3{font-size:clamp(1.75rem,3vw,2.7rem);line-height:1.12;letter-spacing:-.035em;margin:.1rem 0 0;color:#fff}
.project-carousel-copy p{font-size:clamp(.97rem,1.45vw,1.1rem);line-height:1.7;color:#cbd8ef;margin:0}
.project-carousel-copy .card-more{padding-top:.55rem;color:#f6d993;font-weight:750}
.project-carousel-controls{display:flex;align-items:center;justify-content:center;gap:1.25rem;margin-top:1.65rem}
.project-carousel-arrow,.project-carousel-play{
  color:#f0f4ff;cursor:pointer;
  border:1px solid rgba(172,195,248,.26);
  background:rgba(7,16,35,.72);backdrop-filter:blur(12px);
  transition:border-color .25s,background .25s,transform .25s;
}
.project-carousel-arrow{width:52px;height:52px;border-radius:50%;font-size:1.55rem;line-height:1}
.project-carousel-arrow:hover,.project-carousel-play:hover{border-color:rgba(246,204,107,.5);background:rgba(21,38,74,.85);transform:translateY(-2px)}
.project-carousel-count{min-width:92px;font-weight:750;font-size:1.17rem;letter-spacing:.08em;font-variant-numeric:tabular-nums;color:#dce9ff}
.project-carousel-count-separator{color:#768cbd;margin:0 .32rem;font-weight:400}
.project-carousel-play{display:inline-flex;gap:.55rem;align-items:center;justify-content:center;min-height:42px;padding:0 .95rem;border-radius:999px;font:inherit;font-size:.83rem;color:#c6d6f1}
.project-carousel-play span:first-child{font-size:.92rem;color:#f6d993}
.project-carousel-dots{display:flex;gap:.52rem;justify-content:center;flex-wrap:wrap;margin-top:1.15rem}
.project-carousel-dot{width:8px;height:8px;min-width:8px;border-radius:50%;border:1px solid rgba(204,221,255,.46);background:rgba(192,209,255,.22);cursor:pointer;padding:0;transition:width .25s ease,background .25s ease,border-color .25s ease}
.project-carousel-dot.is-active{width:30px;border-radius:99px;background:linear-gradient(90deg,#f6cc6b,#82b4ff);border-color:rgba(255,255,255,.48)}
.project-carousel-dot:focus-visible,.project-carousel-arrow:focus-visible,.project-carousel-play:focus-visible{outline:2px solid #f6d68d;outline-offset:4px}
.project-carousel-footnote{font-size:.84rem;color:#a7b8d9;margin:1rem auto 0}
/* Efecto Aladín: color original siempre; leve aumento solo al posar el cursor en el logotipo. */
@media (hover:hover) and (pointer:fine){
 .project-carousel-slide.is-active .project-carousel-logo:hover img{
   transform:translateY(-2px) scale(1.075);
   filter:drop-shadow(0 0 14px rgba(74,143,255,.33)) drop-shadow(0 0 12px rgba(246,204,107,.20));
 }
}
@media (max-width:780px){
 .project-heading .micro-note{padding-top:0;flex-basis:100%}
 .project-carousel-stage,.project-carousel-slide{min-height:0}
 .project-carousel-card.project-card{grid-template-columns:1fr;min-height:0;gap:1.15rem;padding:1.4rem;text-align:center}
 .project-carousel-logo{min-height:0;height:158px}
 .project-carousel-card.project-card .project-carousel-logo img{height:148px;max-height:148px;width:min(100%,360px)}
 .project-carousel-copy{align-items:center;gap:.8rem}
 .project-carousel-copy .badge{align-self:center}
 .project-carousel-copy h3{font-size:1.65rem}
 .project-carousel-copy p{font-size:.96rem}
 .project-carousel-controls{gap:.8rem;flex-wrap:wrap}
 .project-carousel-play{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
 .project-carousel-slide{transition:none!important}
 .project-carousel-card.project-card .project-carousel-logo img{transition:none!important}
 .project-carousel-play{display:none}
 .project-carousel-card.project-card,.project-carousel-arrow,.project-carousel-play,.project-carousel-dot{transition:none}
}

/* v0.12: el carrusel contiene información, no fichas enlazadas. */
.project-carousel-card:not(a){cursor:default}
.project-carousel-card:not(a):hover{transform:none}
.project-carousel-card:not(a):focus-visible{outline:none}
.project-carousel-card a{color:inherit}
.project-carousel-card[href]{cursor:pointer}

/* v0.13: fundido cruzado simultáneo, sin desplazamiento lateral; color permanente en logotipos. */
