@charset "UTF-8";

/* Equipo · tarjetas de perfil animadas (sección "Qué hacemos"), con la paleta y el cristal de la web */

.team {
  position: relative;
  margin-top: 56px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-head {
  text-align: center;
  margin-bottom: 44px;
}
.team-head .eyebrow { color: #a0a0a0; justify-content: center; }
.team-head h3 {
  margin-top: 12px;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -1.2px;
  color: #f5f5f5;
}

.team-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
  padding: 12px 0;
}

/* Tarjeta de cristal
   Animación al pasar el ratón: solo transform y opacity (lo que el navegador anima por GPU),
   una curva de salida suave y una pequeña cascada foto → texto → etiqueta. */
.profile-card {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .7s;
  position: relative;
  isolation: isolate;
  width: min(320px, 100%);
  padding: 24px;
  border: 1px solid #ffffff26;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff12, #ffffff04 48%, #ffffff0a);
  box-shadow: inset 0 1px 0 #ffffff29, inset 1px 0 1px #ffffff12,
    inset 0 -1px 1px #ffffff0d, 0 12px 30px #0004, 0 1px 3px #0003;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Brillo superior */
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, #ffffff17, transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
/* Sombra de elevación, ya pintada y solo se funde */
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 26px 60px #0008, 0 0 34px #ffffff0c;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

/* Indicador de estado */
.profile-status {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
}
.profile-status-dot,
.profile-status-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.profile-status-dot {
  position: relative;
  background: #f2f2f2;
  box-shadow: 0 0 12px #fff6;
  transition: transform var(--dur) var(--ease);
}
.profile-status-ping {
  position: absolute;
  inset: 0;
  background: #f2f2f2;
  opacity: .3;
  animation: team-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes team-ping {
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* Foto */
.profile-photo {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.profile-photo-inner {
  position: relative;
  transition: transform var(--dur) var(--ease);
}
.profile-avatar {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid #ffffff21;
  background: linear-gradient(140deg, #ffffff15, #ffffff04);
  box-shadow: inset 0 1px 1px #ffffff2e, inset 0 -6px 14px #0005, 0 8px 20px #0004;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}
.profile-ring {
  position: absolute;
  inset: -5px;
  border: 1.5px solid #ffffffa6;
  border-radius: 50%;
  box-shadow: 0 0 18px #ffffff21;
  opacity: 0;
  transform: scale(.94);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}

/* Nombre y cargo */
.profile-info {
  position: relative;
  z-index: 10;
  text-align: center;
  transition: transform var(--dur) var(--ease);
}
.profile-info h4 {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -.4px;
  color: #e6e6e6;
  transition: color var(--dur) var(--ease);
}
.profile-info p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #999;
  transition: color var(--dur) var(--ease);
}

/* Etiquetas */
.profile-tags {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.profile-tag {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 4px 13px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: linear-gradient(140deg, #ffffff15, #ffffff06);
  color: #eee;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 1.4px;
  box-shadow: inset 0 1px 0 #ffffff24;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
/* Relleno blanco que aparece fundido (sin saltos de degradado) */
.profile-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, #fff, #dedede 85%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.profile-tag { isolation: isolate; }

/* Borde al pasar el ratón */
.profile-border {
  position: absolute;
  inset: -1px;
  border: 1px solid #ffffff4d;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

/* Estado hover (solo en dispositivos con ratón, para que en móvil no se quede "pegado") */
@media (hover: hover) {
  .profile-card:hover {
    border-color: #ffffff40;
    transform: translate3d(0, -6px, 0) scale(1.025);
  }
  .profile-card:hover::before,
  .profile-card:hover::after,
  .profile-card:hover .profile-border { opacity: 1; }
  .profile-card:hover .profile-status-dot { transform: scale(1.2); }
  .profile-card:hover .profile-photo-inner { transform: scale(1.06); transition-delay: .03s; }
  .profile-card:hover .profile-ring { opacity: 1; transform: scale(1); transition-delay: .06s; }
  .profile-card:hover .profile-info { transform: translateY(-3px); transition-delay: .06s; }
  .profile-card:hover .profile-info h4 { color: #fff; }
  .profile-card:hover .profile-info p { color: #c2c2c2; }
  .profile-card:hover .profile-tag {
    color: #161616;
    border-color: #fff9;
    transform: translateY(-2px);
    transition-delay: .09s;
  }
  .profile-card:hover .profile-tag::before { opacity: 1; transition-delay: .09s; }
}

/* La web quita todas las transiciones cuando el sistema pide "reducir movimiento".
   Aquí se recupera solo la animación al pasar el ratón por las tarjetas del equipo
   (corta, suave y activada por el propio usuario). El punto que late sigue quieto. */
@media (prefers-reduced-motion: reduce) {
  .profile-card { transition: transform .7s cubic-bezier(.22, 1, .36, 1), border-color .7s cubic-bezier(.22, 1, .36, 1) !important; }
  .profile-card::before,
  .profile-card::after,
  .profile-border,
  .profile-tag::before { transition: opacity .7s cubic-bezier(.22, 1, .36, 1) !important; }
  .profile-status-dot,
  .profile-photo-inner,
  .profile-info { transition: transform .7s cubic-bezier(.22, 1, .36, 1) !important; }
  .profile-ring { transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1) !important; }
  .profile-info h4,
  .profile-info p { transition: color .7s cubic-bezier(.22, 1, .36, 1) !important; }
  .profile-tag { transition: color .7s cubic-bezier(.22, 1, .36, 1), border-color .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1) !important; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .profile-card:hover .profile-photo-inner { transition-delay: .03s !important; }
  .profile-card:hover .profile-ring,
  .profile-card:hover .profile-info { transition-delay: .06s !important; }
  .profile-card:hover .profile-tag,
  .profile-card:hover .profile-tag::before { transition-delay: .09s !important; }
}

/* Encaje en la vista "Qué hacemos": la sección pasa a tener scroll propio */
body[data-view] .about { overflow-y: auto; scrollbar-width: none; }
body[data-view] .about::-webkit-scrollbar { display: none; }
body[data-view] .about:focus { outline: none; }
@media (max-height: 680px) and (min-width: 801px) {
  body[data-view] .about { overflow-y: auto; }
  body[data-view] .about > * { flex-shrink: 0; }
  .about-bottom { margin-top: 30px; }
}
@media (max-width: 800px) {
  .team { margin-top: 44px; padding-top: 40px; }
  .team-cards { gap: 28px; }
}
