/* UMANA | Equipo de profesionales, Octubre 2026
   ALCANCE: #equipo. No altera los profesionales de Biblioteca/+Bienestar.
   Carga despues de los estilos anteriores de landing.
*/
#equipo.professionals {
  --team-wave-height: clamp(96px, 8.5vw, 138px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 5.5vw, 76px) 0 calc(var(--team-wave-height) + 52px);
  background: #b5122d;
  color: #fff7ed;
}
#equipo .team-access-wave {
  position: absolute;
  z-index: 0;
  inset: auto 0 -2px;
  display: block;
  width: 100%;
  height: var(--team-wave-height);
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 -11px 16px rgba(240, 151, 141, .32)) drop-shadow(0 -2px 3px rgba(87, 14, 27, .09));
}
#equipo .team-access-wave path { fill: #fffdfb; }
/* Google reviews occupy the same boundary when they become available. */
#equipo:has(+ #reviews:not([hidden])) .team-access-wave path { fill: var(--ivory); }
#equipo.professionals::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("/img/equipo-botanica.svg") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 92px);
  mask-image: linear-gradient(180deg, transparent 0, #000 92px);
}
#equipo.professionals::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 40% 9%, rgba(224,42,67,.08), transparent 100%),
    radial-gradient(ellipse 55% 55% at 99% 81%, rgba(74,0,22,.065), transparent 100%);
}
#equipo > .wrap {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 56px));
  max-width: none;
}

/* Editorial heading: light cream over the original deep UMANA red. */
#equipo .prof-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 1130px;
  margin: 0 0 clamp(24px, 2.6vw, 32px);
}
#equipo .section-label {
  margin: 0 0 16px;
  color: #ffe7d8;
  font-size: .79rem;
  font-weight: 600;
  letter-spacing: .17em;
}
#equipo .section-label::before {
  width: 42px;
  background: #ffd4be;
}
#equipo .prof-head h2 {
  max-width: 1020px;
  margin: 0 0 14px;
  color: #fff3df;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(3.25rem, 5.05vw, 5rem);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.038em;
  text-wrap: balance;
}
#equipo .prof-head p {
  max-width: 860px;
  margin: 2px 0 0;
  color: rgba(255,242,230,.94);
  font-size: clamp(.95rem, 1.23vw, 1.09rem);
  line-height: 1.66;
}

/* All professionals stay in the page flow, with no horizontal navigation. */
#equipo .prof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0 1px 4px;
}

/* Compact cards with the entire original portrait visible. */
#equipo .prof-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,222,210,.92);
  border-radius: 20px;
  background: #fffdf9;
  color: #151512;
  box-shadow: 0 18px 36px rgba(68,7,20,.10);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
#equipo .prof-card:hover {
  transform: translateY(-3px) !important;
  border-color: #ffe3d2;
  box-shadow: 0 21px 42px rgba(74,2,19,.15);
}
#equipo .umana-prof-tilt-media {
  flex: 0 0 auto;
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 1.15 / 1;
  background: #eee8e3;
  transform: none !important;
}
#equipo .umana-prof-tilt-media::after {
  content: none;
}
#equipo .prof-card .umana-prof-tilt-media > img,
#equipo .prof-card .prof-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  border: 0;
  margin: 0;
  transform: none !important;
  filter: none;
}
/* This source has much more empty office space around the professional. */
#equipo .prof-card:nth-child(2) .prof-photo {
  object-fit: cover;
  object-position: center 68%;
}
#equipo .prof-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 16px 16px 18px;
}
#equipo .prof-card h3 {
  margin: 0 0 8px;
  color: #131412;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.45rem, 1.8vw, 1.72rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.025em;
}
#equipo .prof-specialty {
  display: block;
  margin: 0 0 9px;
  color: #c02d3b;
  background: transparent;
  font-family: var(--sans, sans-serif);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}
#equipo .prof-body > p {
  flex: 0 0 auto;
  margin: 0 0 12px;
  color: #716560;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.008em;
}

/* Modalities come from each professional's existing PHP data.
   Their existing click-to-open descriptive details are preserved. */
#equipo .prof-modality-block {
  z-index: 30;
  min-height: 65px;
  margin: auto 0 12px;
}
#equipo .prof-modality-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px;
}
#equipo .prof-modality-pill,
#equipo .prof-modality-pill--virtual,
#equipo .prof-modality-pill--express,
#equipo .prof-modality-pill--presencial {
  min-height: 30px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid #f4ddd8;
  border-radius: 999px;
  background: #fdf0ed;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #342c29;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
}
#equipo .prof-modality-pill .prof-modality-icon {
  flex: 0 0 auto;
  color: #c52238;
  font-size: .91rem;
}
#equipo .prof-modality-pill .prof-modality-chevron {
  color: #a37872;
  font-size: .54rem;
  opacity: .67;
}
#equipo .prof-modality-pill:hover {
  transform: none;
  background: #fce5df;
  border-color: #e7c8c0;
  box-shadow: none;
}
#equipo .prof-modality-pill.is-open,
#equipo .prof-modality-pill--express.is-open,
#equipo .prof-modality-pill--presencial.is-open {
  color: #342c29;
  background: #ffe1d9;
  border-color: #c88e89;
  box-shadow: inset 0 0 0 1px rgba(192,45,59,.12);
}
#equipo .prof-modality-pill:focus-visible {
  outline: 2px solid #a31a32;
  outline-offset: 3px;
}
/* The popover is moved to <body> by the existing app. Keep its styles global. */

/* Compact profile and booking actions. */
#equipo .prof-actions {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 7px;
  width: 100%;
  margin-top: 0;
}
#equipo .prof-link,
#equipo .prof-cta {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}
#equipo .prof-link {
  color: #233d33;
  background: #fffdfa;
  border: 1px solid #315344;
  box-shadow: none;
}
#equipo .prof-link:hover { background: #f0f5ef; }
#equipo .prof-cta {
  color: #fff;
  background: #267D55;
  border: 1px solid #267D55;
  box-shadow: none;
}
#equipo .prof-cta:hover {
  color: #fff;
  background: #206A48;
  border-color: #206A48;
  box-shadow: 0 6px 14px rgba(38,125,85,.22);
}
#equipo .prof-link:focus-visible,
#equipo .prof-cta:focus-visible {
  outline: 3px solid #f8d6ad;
  outline-offset: 3px;
}
#equipo .prof-cta .fa-arrow-right { font-size: .77rem; }

/* Smaller columns at tablet widths; every card remains in the grid. */
@media (max-width: 1100px) {
  #equipo > .wrap { width: min(960px, calc(100% - 48px)); }
  #equipo .prof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  #equipo .prof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #equipo.professionals {
    --team-wave-height: clamp(54px, 15vw, 76px);
    padding: 58px 0 calc(var(--team-wave-height) + 30px);
  }
  #equipo > .wrap { width: calc(100% - 32px); }
  #equipo.professionals::before { background-image: url("/img/equipo-botanica-mobile.svg"); background-position: center top; background-size: 100% auto; }
  #equipo .prof-head { margin-bottom: 22px; }
  #equipo .prof-head h2 { font-size: clamp(2.7rem, 9vw, 3.8rem); line-height: .94; }
  #equipo .prof-head p { font-size: .96rem; }
  #equipo .prof-grid { grid-template-columns: minmax(0,1fr); gap: 14px; max-width: 400px; margin-inline: auto; }
  #equipo .prof-card { width: 100% !important; max-width: none !important; }
  #equipo .prof-card h3 { font-size: clamp(1.55rem, 6vw, 1.8rem); }
  #equipo .prof-body > p { min-height: auto; }
  #equipo .prof-modality-block { min-height: 0; margin: 0 0 12px; }
  #equipo .prof-actions { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
}
@media (max-width: 380px) {
  #equipo .prof-actions { grid-template-columns: 1fr; }
  #equipo .prof-cta, #equipo .prof-link { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  #equipo .prof-card,
  #equipo .prof-card:hover,
  #equipo .prof-cta,
  #equipo .prof-link { transition: none; transform: none !important; }
}
