/* Team + founder profile pages.
   Shared by /team/, /team/yeray-selva-vallejo/ and /team/roberto-porfidia-coll/
   so the three pages cannot drift apart. Colours follow the site: #0a0a0a
   ground, #00c3ff accent, Rajdhani for headings. */

body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
}

a { color: #00c3ff; }

.team-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.breadcrumb {
  padding: 20px 0;
  color: #666;
  background: #0a0a0a;
}
.breadcrumb a { color: #00c3ff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- hub */

.team-hero {
  padding: 140px 0 70px;
  background: linear-gradient(180deg, #0d0d0d 0%, #151515 100%);
  text-align: center;
  border-bottom: 1px solid #222;
}
.team-hero h1 {
  font-size: 3.2rem;
  margin: 0 0 1rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}
.team-hero p {
  color: #999;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin: 50px 0 0;
}

.founder-card {
  background: linear-gradient(145deg, #151515 0%, #1a1a1a 100%);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: transform .3s, border-color .3s;
}
.founder-card:hover { transform: translateY(-4px); border-color: #00c3ff33; }
.founder-card img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00c3ff44;
  background: #16181c;
}
.founder-card h2 {
  font-size: 1.5rem;
  margin: 20px 0 6px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}
.founder-card h2 a { text-decoration: none; color: #fff; }
.founder-card h2 a:hover { color: #00c3ff; }
.founder-card .role {
  color: #00c3ff;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 4px;
}
.founder-card .where { color: #666; font-size: .85rem; margin-bottom: 16px; }
.founder-card p { color: #999; font-size: .95rem; line-height: 1.7; }

/* ------------------------------------------------------------ profile */

.profile-hero {
  padding: 130px 0 60px;
  background: linear-gradient(180deg, #0d0d0d 0%, #151515 100%);
  border-bottom: 1px solid #222;
}
.profile-hero .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.profile-hero img.portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00c3ff44;
  background: #16181c;
  flex-shrink: 0;
}
.profile-hero h1 {
  font-size: 2.8rem;
  margin: 0 0 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}
.profile-hero .role {
  color: #00c3ff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.profile-hero .where { color: #777; font-size: .95rem; margin-bottom: 20px; }
.profile-hero .headline {
  color: #bbb;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 22px;
}

.profile-links { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-links a {
  display: inline-block;
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 9px 16px;
  color: #ccc;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .25s, color .25s;
}
.profile-links a:hover { border-color: #00c3ff66; color: #fff; }

.profile-section { margin-top: 60px; }
.profile-section h2 {
  font-size: 1.9rem;
  color: #00c3ff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  margin: 0 0 20px;
}
.profile-section h3 {
  font-size: 1.15rem;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  margin: 30px 0 8px;
}
.profile-section p {
  color: #bbb;
  line-height: 1.9;
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.profile-section ul { color: #bbb; line-height: 1.9; margin-left: 20px; }
.profile-section li { margin-bottom: 10px; }

/* A dated list. Answer engines lift these far more reliably than prose,
   because each row carries its own date, place and verb. */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  border-left: 2px solid #232323;
  padding: 0 0 26px 24px;
  position: relative;
  margin: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00c3ff;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .when {
  display: block;
  color: #00c3ff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline .what { color: #fff; font-weight: 600; display: block; margin-bottom: 6px; }
.timeline p { color: #999; font-size: .97rem; line-height: 1.75; margin: 0; }

.facts {
  background: linear-gradient(145deg, #131313 0%, #181818 100%);
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 28px 30px;
  margin-top: 24px;
}
.facts dl { margin: 0; display: grid; grid-template-columns: 190px 1fr; gap: 14px 20px; }
.facts dt { color: #777; font-size: .9rem; }
.facts dd { margin: 0; color: #ddd; font-size: .95rem; line-height: 1.6; }

@media (max-width: 640px) {
  .profile-hero { padding-top: 110px; text-align: center; }
  .profile-hero .inner { justify-content: center; }
  .profile-hero h1 { font-size: 2.1rem; }
  .profile-hero .headline { text-align: left; }
  .profile-links { justify-content: center; }
  .team-hero h1 { font-size: 2.3rem; }
  .facts dl { grid-template-columns: 1fr; gap: 4px 0; }
  .facts dt { margin-top: 12px; }
}
