/* Sección de proyectos: carrusel 3D (boceto B elegido) */

.proy-etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.proy-etiqueta { font-size: .76rem; padding: .35em .8em; border-radius: 999px; background: rgba(34,211,238,.1); color: #a5f3fc; border: 1px solid rgba(34,211,238,.3); }
.proy-tipo { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; }
.proy-tipo-propio { background: rgba(139,92,246,.2); color: #ddd6fe; border: 1px solid rgba(139,92,246,.45); }
.proy-tipo-equipo { background: rgba(236,72,153,.16); color: #fbcfe8; border: 1px solid rgba(236,72,153,.45); }
.proy-cat { display: inline-block; font-size: .78rem; color: var(--muted); margin-left: 6px; letter-spacing: .04em; }

/* filtros con pastilla que se desliza */
.proy-filtros { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 20px; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.proy-filtros button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: color .3s; }
.proy-filtros button.activo { color: #fff; }
.proy-filtros em { font-style: normal; font-size: .72rem; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.1); }
.proy-filtros-pastilla {
    position: absolute; top: 0; left: 0; border-radius: 999px; z-index: 0; pointer-events: none;
    background: linear-gradient(120deg, #7c3aed, #4f46e5); box-shadow: 0 8px 24px -6px rgba(124,58,237,.8);
    transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease);
}
@media (max-width: 480px) { .proy-filtros button { padding: 8px 11px; font-size: .82rem; } .proy-filtros button i { display: none; } }

/* escena 3D */
.carrusel-escena { position: relative; height: clamp(380px, 52vw, 500px); margin: 10px 0 6px; overflow: hidden; }
.carrusel-brillo { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); height: 520px; transform: translate(-50%, -50%); opacity: .45; filter: blur(40px); transition: background .8s; pointer-events: none; }
.carrusel { position: absolute; inset: 0; perspective: 1400px; transform-style: preserve-3d; outline: none; touch-action: pan-y; cursor: grab; }
.carrusel.arrastrando { cursor: grabbing; }
.car-item {
    --acento: #7c3aed; position: absolute; left: 50%; top: 50%; width: clamp(220px, 30vw, 330px); aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden;
    background: #0c0a1c; border: 1px solid var(--border-strong); user-select: none;
    transition: transform .8s var(--ease), opacity .6s, filter .6s, box-shadow .6s, border-color .6s; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
    -webkit-box-reflect: below 14px linear-gradient(transparent 70%, rgba(255,255,255,.18));
}
.carrusel.arrastrando .car-item { transition: none; }
.car-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.car-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,6,15,.92)); }
.car-item.centro { border-color: color-mix(in srgb, var(--acento) 80%, white); box-shadow: 0 40px 90px -30px var(--acento), 0 0 0 1px color-mix(in srgb, var(--acento) 60%, transparent); }
.car-pie { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 1; }
.car-pie h3 { font-size: 1.25rem; margin: 10px 0 0; }
.carrusel-flecha {
    position: absolute; top: 50%; z-index: 200; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; color: #fff; font-size: 1.3rem;
    background: rgba(15,12,32,.7); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); transition: background .3s, transform .3s var(--ease);
}
.carrusel-flecha:hover { background: rgba(139,92,246,.45); transform: scale(1.08); }
.carrusel-flecha.izq { left: max(16px, calc(50% - 560px)); } .carrusel-flecha.der { right: max(16px, calc(50% - 560px)); }
@media (max-width: 575px) { .carrusel-flecha { width: 42px; height: 42px; margin-top: -21px; font-size: 1.05rem; } }

/* ficha del proyecto del centro */
.carrusel-info { max-width: 720px; margin: 0 auto; text-align: center; min-height: 230px; }
.car-info-in { animation: entra-tarjeta .6s var(--ease); }
.car-info-in h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 12px 0 8px; }
.car-info-in p { color: var(--muted); }
.car-info-in .proy-etiquetas { justify-content: center; }
.carrusel-puntos { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carrusel-puntos button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.2); transition: width .5s var(--ease), background .4s; padding: 0; }
.carrusel-puntos button.activo { width: 34px; background: linear-gradient(90deg, #a78bfa, #22d3ee); }
@media (prefers-reduced-motion: reduce) { .car-item, .car-info-in { transition: none; animation: none; } }
