/* ---- Hero ---- */
/* Evita scroll horizontal global causado por trucos de 100vw */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Asegura box-sizing consistente en todas las secciones full-width */
.partner-section,
.ps-hero {
  box-sizing: border-box;
  max-width: 100vw;
}
.ps-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  text-align: center;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 20%, #c5d8b3 38%, #b5e8f2 55%, #e5bdef 72%, #f4bab0 88%, #f7c99b 100%);
  background-size: 300% 300%;
  animation: psHeroBgShift 12s ease-in-out infinite;
  margin-bottom: 0;
  overflow: hidden;
  box-sizing: border-box;
}
@keyframes psHeroBgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.ps-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,0.6) 0%, transparent 70%);
  pointer-events: none;
}
.ps-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.ps-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: psParticleFloat linear infinite;
}
@keyframes psParticleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.2); }
}
.ps-hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }

.ps-hero-tag {
  display: inline-block !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(13px, 1.8vw, 16px) !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: #4daaff !important;
  padding: 6px 20px !important;
  border-radius: 100px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 4px 16px rgba(77,170,255,.35) !important;
  animation: psHeroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.ps-hero-tag:hover {
  transform: scale(1.07) !important;
  box-shadow: 0 6px 24px rgba(77,170,255,.5) !important;
}
.ps-hero h1 {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(32px, 5.5vw, 56px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #0e0e0e !important;
  margin: 0 0 20px !important;
  letter-spacing: -0.01em !important;
  animation: psHeroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.25s both;
}
.ps-hero h1 span {
  font-weight: 700 !important;
  background: linear-gradient(90deg, #4daaff, #e5bdef, #f4bab0, #4daaff) !important;
  background-size: 300% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: psShimmerText 5s linear infinite;
}
@keyframes psShimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}
.ps-hero p {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(16px, 2.5vw, 22px) !important;
  font-weight: 400 !important;
  color: #444 !important;
  line-height: 1.6 !important;
  margin: 0 0 28px !important;
  animation: psHeroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.4s both;
}
.ps-hero-divider {
  width: 80px !important;
  height: 4px !important;
  background: linear-gradient(90deg, #4daaff, #e5bdef, #f7c99b, #4daaff) !important;
  background-size: 300% 100% !important;
  border-radius: 100px !important;
  margin: 0 auto !important;
  animation: psHeroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.55s both, psDividerCycle 4s linear infinite 1s;
}
@keyframes psDividerCycle {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

@keyframes psHeroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ps-hero-tag, .ps-hero h1, .ps-hero p, .ps-hero-divider {
    animation: none !important;
  }
}

/* ---- Pause heavy hero animations on small screens (battery saver) ---- */
@media (max-width: 600px) {
  .ps-hero { animation: none !important; }
  .ps-hero-orb { animation: none !important; display: none !important; }
  .ps-particle { display: none !important; }
  .ps-hero h1 span { animation: none !important; }
}

.partner-section {
  padding: clamp(40px, 8vw, 80px) 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.partner-wrap {
  max-width: 1600px;
  margin: auto;
  padding: 0 clamp(24px, 3vw, 48px);
}

.partner-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.partner-header h2 {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(28px, 4.5vw, 44px) !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
  color: #0e0e0e !important;
  display: inline-block !important;
  position: relative !important;
}
.partner-header h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 3px;
  background: linear-gradient(90deg, #4daaff, #e5bdef);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.partner-header h2:hover::after { width: 100%; }

.partner-header .subtitle {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(18px, 2.4vw, 22px) !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

.partner-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.partner-image:hover {
  box-shadow: 0 24px 60px rgba(77,170,255,.22), 0 8px 24px rgba(0,0,0,.10);
  transform: scale(1.015);
}

.partner-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.5s ease;
}

.partner-image:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.partner-image::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.4) 50%, transparent 80%);
  pointer-events: none;
  z-index: 2;
  transition: none;
}
.partner-image:hover::after {
  animation: psShineSweep 0.75s ease forwards;
}
@keyframes psShineSweep {
  0%   { left: -100%; }
  100% { left: 120%; }
}
.partner-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.2) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 18px;
}
.partner-image:hover::before { opacity: 1; }

.team-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---- Centered last card (for odd-count grids) ---- */
.team-card--centered-solo {
  grid-column: 1 / -1;
  max-width: calc(50% - clamp(10px, 1.5vw, 16px));
  justify-self: center;
}
@media (max-width: 900px) {
  .team-card--centered-solo {
    max-width: 100%;
    grid-column: auto;
    justify-self: stretch;
  }
}

/* ---- Card ---- */
.team-card {
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  border: 3px solid rgba(0,0,0,.06);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4daaff, #b5e8f2, #e5bdef, #f4bab0);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  border-radius: 18px 18px 0 0;
  z-index: 2;
}

.team-card:hover::before {
  transform: scaleX(1);
  animation: psCardAccentShimmer 2s linear infinite;
}

@keyframes psCardAccentShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(77,170,255,.12), 0 12px 28px rgba(0,0,0,.10);
  border-color: rgba(77,170,255,.18);
}

.team-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(77,170,255,0.3), rgba(229,189,239,0.3), rgba(244,186,176,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.team-card:hover::after {
  opacity: 1;
}

.team-card h3 {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(20px, 2.8vw, 24px) !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
  color: #0e0e0e !important;
  display: inline-block !important;
  position: relative !important;
}

.team-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #4daaff, #e5bdef);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.team-card:hover h3::after {
  transform: scaleX(1);
}

.team-card .pronouns {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(13px, 1.6vw, 15px) !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin-bottom: 6px !important;
  display: inline-block !important;
  background: #f3f4f6 !important;
  padding: 2px 10px !important;
  border-radius: 100px !important;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease !important;
}

.team-card:hover .pronouns {
  background: #e8f4ff !important;
  color: #4daaff !important;
  transform: translateX(4px);
}

.team-card .role-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(13px, 1.6vw, 15px) !important;
  font-weight: 600 !important;
  color: #374151 !important;
  display: block !important;
  margin-bottom: 14px !important;
  letter-spacing: 0.02em !important;
  transition: color 0.3s ease !important;
}

.team-card:hover .role-title {
  color: #4daaff !important;
}

/* ---- Bio expandible ---- */
.bio-preview,
.bio-full {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(17px, 2.3vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: #374151 !important;
}

.bio-preview p,
.bio-full p {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(17px, 2.3vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: #374151 !important;
  margin: 0 0 12px !important;
}

.bio-preview p:last-child,
.bio-full p:last-child { margin-bottom: 0 !important; }

.bio-preview strong, .bio-full strong { font-weight: 700 !important; color: #0e0e0e !important; }
.bio-preview em, .bio-full em { font-style: italic !important; }

.bio-full {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0 !important;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease, margin-top 0.4s ease !important;
}

.bio-full.open {
  max-height: 1000px;
  opacity: 1;
  margin-top: 12px !important;
}

.read-more-btn {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(14px, 1.7vw, 16px) !important;
  font-weight: 600 !important;
  color: #4daaff !important;
  background: none !important;
  border: none !important;
  padding: 10px 0 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: color 0.2s ease !important;
  margin-top: auto !important;
}

.read-more-btn:hover {
  color: #e5bdef !important;
  gap: 10px !important;
}

.read-more-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.read-more-btn:hover .btn-arrow {
  animation: psBtnBounce 0.6s ease infinite;
}

@keyframes psBtnBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

.read-more-btn.open .btn-arrow {
  transform: rotate(180deg);
  animation: none;
}

.read-more-btn.open:hover .btn-arrow {
  animation: psBtnBounceUp 0.6s ease infinite;
}

@keyframes psBtnBounceUp {
  0%, 100% { transform: rotate(180deg) translateY(0); }
  50%      { transform: rotate(180deg) translateY(4px); }
}

/* Projects list */
.team-card .projects-list { margin: 12px 0 !important; padding-left: 1.2rem !important; }
.team-card .projects-list li {
  font-family: 'Outfit', sans-serif !important;
  margin: 6px 0 !important;
  line-height: 1.7 !important;
  font-size: clamp(15px, 1.9vw, 17px) !important;
  font-weight: 400 !important;
  color: #374151 !important;
  transition: color 0.25s ease, transform 0.25s ease, padding-left 0.25s ease !important;
  cursor: default;
}
.team-card .projects-list li:hover {
  color: #4daaff !important;
  transform: translateX(5px);
  padding-left: 4px !important;
}

/* Motto */
.team-card .motto {
  background: linear-gradient(135deg, #fafcff 0%, #f8f0ff 100%) !important;
  border-left: 4px solid #4daaff !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.06) !important;
  font-family: 'Outfit', sans-serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  margin-top: 16px !important;
  font-size: clamp(16px, 2vw, 18px) !important;
  color: #374151 !important;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.team-card .motto::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 60px;
  font-family: 'Outfit', sans-serif;
  color: rgba(77,170,255,0.1);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
}

.team-card:hover .motto {
  border-color: #e5bdef !important;
  box-shadow: 0 8px 24px rgba(229,189,239,.15) !important;
  transform: translateX(4px);
}

.team-card:hover .motto::before {
  color: rgba(229,189,239,0.2);
}

/* ---- Floating hero orbs ---- */
.ps-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.ps-hero-orb--1 {
  width: 240px; height: 240px;
  background: #b5e8f2;
  top: -50px; left: 8%;
  animation: psOrbFloat1 10s ease-in-out infinite alternate;
}
.ps-hero-orb--2 {
  width: 180px; height: 180px;
  background: #e5bdef;
  bottom: -30px; right: 10%;
  animation: psOrbFloat2 8s ease-in-out infinite alternate;
}
.ps-hero-orb--3 {
  width: 140px; height: 140px;
  background: #f7c99b;
  top: 35%; left: 55%;
  animation: psOrbFloat3 9s ease-in-out infinite alternate;
}
@keyframes psOrbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}
@keyframes psOrbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.1); }
}
@keyframes psOrbFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, -35px) scale(1.12); }
}

/* ---- Profile image (single-member cards) ---- */
.ps-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100px; height: 100px;
}
.ps-avatar-wrap img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f3f4f6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease, border-color 0.4s ease;
}
.team-card:hover .ps-avatar-wrap img {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 8px 24px rgba(77,170,255,.25);
  border-color: #4daaff;
}
.ps-avatar-wrap::after {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: conic-gradient(from 0deg, #4daaff, #e5bdef, #f7c99b, #4daaff) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: psRingSpin 3s linear infinite paused;
}
.team-card:hover .ps-avatar-wrap::after {
  opacity: 1;
  animation-play-state: running;
}
@keyframes psRingSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ps-profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f3f4f6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease, border-color 0.4s ease;
  position: relative;
}

.team-card:hover .ps-profile-img {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 8px 24px rgba(77,170,255,.25);
  border-color: #4daaff;
}

/* ---- Section header hover ---- */
.partner-header h2 {
  transition: letter-spacing 0.4s ease !important;
}
.partner-header:hover h2 {
  letter-spacing: 0.02em !important;
}

/* ---- Scroll reveal ---- */
.ps-sr {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.ps-sr.ps-visible { opacity: 1 !important; transform: translateY(0) !important; }

.ps-sr-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.ps-sr-left.ps-visible { opacity: 1 !important; transform: translateX(0) !important; }

.ps-sr-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.ps-sr-right.ps-visible { opacity: 1 !important; transform: translateX(0) !important; }

.ps-sr-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.ps-sr-scale.ps-visible { opacity: 1 !important; transform: scale(1) !important; }

@media (prefers-reduced-motion: reduce) {
  .ps-sr, .ps-sr-left, .ps-sr-right, .ps-sr-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ps-hero { animation: none !important; }
  .ps-hero-orb { animation: none !important; display: none; }
  .ps-particle { animation: none !important; display: none; }
  .ps-hero h1 span { animation: none !important; }
  .ps-hero-divider { animation: psHeroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.55s both !important; }
  .team-card::before { transition: none !important; }
  .partner-image::after { display: none; }
}
