/* EQUIPO (lógica en js/equipo.js, datos en js/datos/equipo.js) */
.equipo { background: var(--surface); }
.equipo .wrap { padding-block: 110px 100px; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--ink); min-width: 0; transition: border-color .5s, transform .5s, box-shadow .5s; }
.pro:hover { border-color: rgba(46,123,255,.6); transform: translateY(-4px); box-shadow: 0 30px 70px -36px var(--accent); }
.foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1A2442, #0C1120 70%); max-width: 100%; }
.foto picture { display: contents; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(.45) brightness(.82) contrast(1.05); transform: scale(1.04); transition: filter .9s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pro.in .foto img { animation: focusIn 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes focusIn { from { filter: blur(12px) grayscale(1) brightness(.5); transform: scale(1.1); } to { filter: grayscale(.45) brightness(.82) contrast(1.05); transform: scale(1.04); } }
.pro:hover .foto img { filter: none; transform: scale(1); animation: none; }
.foto::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10,14,26,.85) 0%, transparent 38%), linear-gradient(90deg, transparent 70%, rgba(10,14,26,.6) 100%), linear-gradient(135deg, rgba(46,123,255,.22), transparent 45%); mix-blend-mode: normal; }
.foto svg.sil { position: absolute; left: 50%; bottom: 0; width: 72%; transform: translateX(-50%); display: none; }
.foto.noimg svg.sil { display: block; }
.foto.noimg img { display: none; }
.foto .scan { position: absolute; left: -10%; right: -10%; height: 2px; top: -4%; z-index: 2; background: linear-gradient(90deg, transparent, var(--glow), transparent); box-shadow: 0 0 18px 4px var(--accent); opacity: 0; }
.pro.in .foto .scan { animation: scanDown 1.6s cubic-bezier(.6,0,.3,1) .2s both; }
.pro:hover .foto .scan { animation: scanDown 1.4s cubic-bezier(.6,0,.3,1) both; }
@keyframes scanDown { 0% { top: -4%; opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { top: 104%; opacity: 0; } }
.foto .area { position: absolute; left: 16px; bottom: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(10,14,26,.7); backdrop-filter: blur(8px); border: 1px solid rgba(46,123,255,.6); color: var(--glow); font-size: 1.7rem; box-shadow: 0 0 24px -6px var(--accent); }
.pro .info { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pro .info .tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cool); }
.pro .info h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
.pro .info .rol { font-weight: 600; color: var(--text); font-size: .98rem; margin: 0; }
.pro .info .rol::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 14px; background: linear-gradient(90deg, var(--accent), var(--glow)); box-shadow: 0 0 10px var(--accent); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.pro:hover .info .rol::after { width: 100%; }
.pro .info p.bio { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.socials { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 1.1rem; text-decoration: none; transition: all .25s; }
.socials a:hover { color: var(--glow); border-color: var(--accent); box-shadow: 0 0 18px -6px var(--accent); }
/* Escritorio: 3 columnas. Tablet: 2. Celular: 1. La foto va arriba, en 4:5 y recortada desde arriba. */
@media (max-width: 1040px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* En 2 columnas, si la cantidad es impar, la última tarjeta queda centrada. */
@media (min-width: 641px) and (max-width: 1040px) { .team > .pro:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); } }
@media (max-width: 640px) { .team { grid-template-columns: minmax(0, 1fr); max-width: 480px; } .pro .info { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .foto img { filter: grayscale(.3) brightness(.9); } }
