/* Personalizaciones del Estudio de Marketing. Este archivo no se sobrescribe. */

/* v10: fotografía original de Francisco en Equipo, sin ampliación artificial. */
@media(min-width:851px){.team-main{grid-template-columns:280px minmax(0,1fr);align-items:start;gap:44px}.team-main>img{width:280px;height:auto;max-height:none;object-fit:contain;object-position:top;display:block}}
@media(max-width:850px){.team-main>img{width:min(100%,280px);height:auto;max-height:none;object-fit:contain;display:block;margin-inline:auto}.team-main{gap:25px}}

/* Ajuste exclusivo del retrato de Francisco en Equipo */
.team-main > img { height: 340px; object-fit: cover; object-position: center 22%; }
@media (max-width: 850px) { .team-main > img { width: 100%; max-width: 360px; height: 320px; object-position: center 20%; } }
@media (max-width: 550px) { .team-main > img { max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 18%; } }


/* V12: ficha de Francisco en Equipo. Aislado: no afecta al resto de la web. */
.team-main {
  --profile-gold: #b28a58;
  grid-template-columns: minmax(0, 370px) minmax(0, 1fr) !important;
  gap: clamp(30px, 4vw, 58px) !important;
  align-items: center !important;
  padding: clamp(26px, 4vw, 52px) !important;
  background: #f8f7f5;
  border: 1px solid #eeebe6;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(23,33,42,.035);
}
.team-main .profile-photo-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0 0 12px 12px;
  isolation: isolate;
}
.team-main .profile-photo-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 25px 25px 0 0;
  border: 2px solid var(--profile-gold);
  border-radius: 6px;
}
.team-main .profile-photo-frame > img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 684 / 714;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
  box-shadow: 0 16px 30px rgba(18,32,45,.10);
}
.team-main .profile-content { min-width: 0; }
.team-main .profile-content > .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #a47b49;
}
.team-main .profile-content > .eyebrow::after {
  content: "";
  height: 1px;
  width: 100px;
  max-width: 24%;
  background: var(--profile-gold);
}
.team-main .profile-content > h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 3.6vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 16px 0 12px;
}
.team-main .profile-content > p {
  color: #52606b;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  margin: 0 0 24px;
}
.team-main .profile-education-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  letter-spacing: 0;
  margin: 0 0 18px;
}
.team-main .profile-cap {
  color: var(--profile-gold);
  font-size: 1.5rem;
  line-height: 1;
}
.team-main ul.degrees {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.team-main ul.degrees > li {
  position: relative;
  margin: 0;
  padding: 0 0 0 32px;
  font-size: .93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.team-main ul.degrees > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--profile-gold);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.team-main ul.degrees strong { display: block; font-weight: 700; }
.team-main ul.degrees span { display: block; color: #65717b; margin-top: 2px; }
.team-main .profile-content > .btn {
  border-radius: 5px;
  padding: 14px 26px;
  transition: background .2s ease, transform .2s ease;
}
.team-main .profile-content > .btn:hover {
  background: #07364c;
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .team-main {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 25px !important;
  }
  .team-main .profile-photo-frame {
    max-width: 440px;
    margin: 0 auto;
  }
}
@media (max-width: 550px) {
  .team-main { padding: 20px !important; }
  .team-main .profile-photo-frame { max-width: 100%; padding: 0 0 9px 9px; }
  .team-main .profile-photo-frame > img {
    height: auto !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
    object-position: center 28%;
  }
  .team-main .profile-content > h2 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .team-main .profile-content > .btn { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .team-main .profile-content > .btn { transition: none; }
}
