/* Retratos y currículo: misma tipografía y paleta de la web corporativa. */
.team-page .main-nav [aria-current=page]{color:var(--mint);text-decoration:underline;text-underline-offset:7px}
.team-intro{padding:46px 0 48px;background:radial-gradient(ellipse at 85% 10%,#c7efe3 0,transparent 55%),#edf7f4;border-bottom:1px solid var(--line)}
.team-intro h1{font-size:clamp(2.9rem,5vw,4.5rem);line-height:1.04;margin:0 0 28px;letter-spacing:-.045em}.team-intro h1 em{font-style:normal;color:var(--unit)}
.team-page .eyebrow{font-size:.875rem;letter-spacing:.12em}.team-intro-bottom{display:flex;align-items:end;justify-content:space-between;gap:48px}.team-intro-bottom>p{font-size:1.125rem;max-width:560px;margin:0;color:#45606b;line-height:1.7}
.team-sections{display:flex;gap:12px;flex-shrink:0}.team-sections a{border:1px solid #94bfb2;border-radius:40px;padding:11px 20px;font-size:.9375rem;font-weight:700;color:var(--unit)}.team-sections a:hover{background:#d3ece3}
.team-section{padding-top:62px;padding-bottom:72px}.team-section-heading{display:flex;gap:70px;align-items:end;justify-content:space-between;margin-bottom:34px}.team-section-heading h2{font-size:clamp(2rem,3.2vw,2.7rem);margin-bottom:0}.team-section-heading>p{max-width:380px;margin:0 0 4px;color:var(--muted);font-size:1rem}.team-section-heading .eyebrow{margin-bottom:12px}
.doctors-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.doctors-grid--directors{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:34px;gap:28px}
.doctor-card{min-width:0;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.doctor-photo{height:330px;position:relative;background:#eef1ed;overflow:hidden}.doctor-photo picture{display:block;width:100%;height:100%}.doctor-photo img{width:100%;height:100%;object-fit:cover;object-position:center 22%}.director-label{position:absolute;bottom:18px;left:20px;font-size:.875rem;font-weight:900;background:#fffef7f2;color:var(--unit);padding:6px 13px;border-radius:30px}
.doctor-info{padding:25px 24px 27px}.doctor-specialty{font-size:.875rem;color:var(--unit);font-weight:700;line-height:1.4;margin-bottom:10px}.doctor-info h3{font-size:1.6rem;line-height:1.16;margin-bottom:16px;letter-spacing:-.035em}.doctor-summary{font-size:1rem;line-height:1.7;color:#536975;margin-bottom:19px}.doctor-focus{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}.doctor-focus li{border-radius:5px;background:#edf5f2;color:#345d57;font-size:.875rem;line-height:1.4;padding:6px 9px}.profile-link{display:inline-block;font-size:.9375rem;font-weight:900;color:var(--unit);margin-top:23px;padding-bottom:4px;border-bottom:1px solid #80b7a9}.profile-link:hover{color:#075249;border-color:currentColor}
.doctor-card--director{display:grid;grid-template-columns:43% 57%;background:#f7faf8}.doctor-card--director .doctor-photo{height:auto;min-height:375px}.doctor-card--director .doctor-photo img{object-position:50% 15%}.doctor-card--director .doctor-info{padding:27px 24px}.doctor-card--director h3{font-size:1.8rem}.doctor-card--director .doctor-focus{gap:6px}.doctor-card--director .doctor-summary{font-size:1rem;line-height:1.65}.doctor-card--cv .doctor-photo{background:linear-gradient(145deg,#e9f3ef,#d9e8e4)}.doctor-card--cv .doctor-photo img{object-fit:contain;padding:22px;object-position:center}
.digestive-section{background:#edf6f2;border-top:1px solid #e0ede7}.digestive-section .doctor-card{border-color:#d4e5dc}.digestive-section .doctor-photo{height:345px}
.doctor-hero{overflow:hidden;background:radial-gradient(ellipse at 5% 80%,#d9eee7,transparent 70%),#edf3ee}.doctor-hero-inner{display:grid;grid-template-columns:1.1fr .9fr;align-items:stretch;gap:60px}.doctor-hero-copy{padding:48px 0 40px;max-width:600px;position:relative;z-index:1}.doctor-hero h1{font-size:clamp(3.2rem,5vw,4.7rem);line-height:1.02;margin:22px 0}.doctor-hero h1>span{font-size:inherit;display:inline;letter-spacing:inherit;color:inherit;font-weight:inherit}.doctor-hero-specialty{font-weight:700;color:var(--unit);font-size:1.35rem;line-height:1.4;margin:0 0 20px}.doctor-hero-copy>p:not(.eyebrow):not(.doctor-hero-specialty):not(.doctor-languages){max-width:490px;font-size:1.125rem;color:#526671}.doctor-languages{font-size:.875rem;margin:20px 0 0;color:#536975}.doctor-hero-photo{position:relative;max-width:475px;align-self:stretch}.doctor-hero-photo picture{display:block;height:100%}.doctor-hero-photo img{height:100%;width:100%;object-fit:cover;object-position:50% 15%}.doctor-hero-photo:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#edf3ee 0,transparent 18%,transparent 88%,#edf3ee),linear-gradient(0deg,#edf3ee 0,transparent 13%)}
.profile-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:80px;padding-top:58px;padding-bottom:70px}.profile-index{position:sticky;top:125px;align-self:start;border-top:3px solid var(--unit);padding-top:24px}.profile-index nav{display:grid;gap:3px}.profile-index nav a{padding:9px 0;font-size:.9375rem;color:#4d6571}.profile-index nav a:hover{color:var(--unit)}.back-team{display:block;margin-top:25px;padding-top:20px;border-top:1px solid var(--line);font-weight:900;color:var(--unit);font-size:.9375rem}.profile-content{max-width:840px}.profile-content section{padding:42px 0;border-bottom:1px solid var(--line);scroll-margin-top:115px}.profile-content section:first-child{padding-top:0}.profile-content section:last-child{border-bottom:0;padding-bottom:0}.profile-content p{font-size:1.0625rem;line-height:1.8;color:#526975}.profile-content .eyebrow{color:var(--unit);font-size:.875rem;margin-bottom:13px}.profile-content h2{font-size:clamp(1.8rem,3vw,2.5rem)}.profile-areas{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-areas article{padding:23px 22px;background:#edf6f2;border-radius:10px;border-top:2px solid #9dc9b8}.profile-areas h3{font-size:1.25rem;margin:0 0 12px;line-height:1.25}.profile-areas p{font-size:1rem;line-height:1.7;margin:0}.profile-content .second-opinion{font-size:1rem;margin:21px 0 0}.career-list article{border-left:2px solid #c4dfd4;padding:5px 0 25px 24px;margin-top:5px}.career-list article:last-child{padding-bottom:5px}.career-list article>span{font-size:.875rem;color:var(--unit);font-weight:700}.career-list h3{font-size:1.25rem;line-height:1.3;margin:10px 0}.career-list p{margin:0;font-size:1rem}.cv-list{margin:0;padding-left:23px}.cv-list li{padding:9px 0;font-size:1rem;line-height:1.75;color:#526975}.cv-list li::marker{color:var(--unit)}.cv-list strong{color:var(--ink)}.research-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;border-block:1px solid var(--line);padding:25px 0;margin:26px 0}.research-facts strong{font-size:2.8rem;display:block;color:var(--unit);line-height:1.3;font-weight:900}.research-facts span{display:block;font-size:.9375rem;line-height:1.6;color:#526975}
@media(max-width:1100px){.team-intro-bottom{align-items:start;flex-direction:column;gap:22px}.team-section-heading{gap:30px}.doctor-card--director{display:block}.doctor-card--director .doctor-photo{height:330px;min-height:0}.doctor-card--director .doctor-photo img{object-position:center 25%}.profile-layout{gap:40px;grid-template-columns:210px minmax(0,1fr)}.doctor-hero-inner{gap:20px}}
@media(max-width:800px){.team-page .breadcrumb{font-size:.875rem;flex-wrap:wrap;line-height:1.4;padding-block:13px}.team-page .breadcrumb>span:last-child{display:inline}.team-intro{padding:34px 0}.team-intro h1{font-size:3.1rem}.team-section{padding-block:42px}.team-section-heading{display:block;margin-bottom:25px}.team-section-heading>p{margin-top:18px;max-width:100%}.doctors-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.doctor-photo,.digestive-section .doctor-photo{height:310px}.doctor-card--director .doctor-info{padding:23px 20px}.doctor-info{padding:23px 20px}.doctor-info h3,.doctor-card--director h3{font-size:1.5rem}.director-label{left:15px;bottom:15px}.doctor-hero-inner{grid-template-columns:1fr 1fr;gap:0;position:relative}.doctor-hero-copy{grid-column:1/-1;padding:36px 0;max-width:70%}.doctor-hero h1{font-size:3.5rem}.doctor-hero-photo{position:absolute;right:-20px;top:0;bottom:0;width:64%;opacity:.32}.doctor-hero-photo:after{background:linear-gradient(90deg,#edf3ee 0,transparent 70%),linear-gradient(0deg,#edf3ee,transparent 35%)}.doctor-hero-copy>p:not(.eyebrow):not(.doctor-hero-specialty):not(.doctor-languages){color:#344e59}.profile-layout{grid-template-columns:1fr;gap:35px;padding-top:32px}.profile-index{position:static;padding-top:20px}.profile-index nav{grid-template-columns:1fr 1fr;gap:0 20px}.profile-index .back-team{margin-top:16px;padding-top:15px}.profile-content section{padding-block:32px}.team-page .contact h2{font-size:2rem}}
@media(max-width:560px){.team-intro h1{font-size:2.8rem}.team-sections{gap:9px;flex-wrap:wrap}.team-sections a{font-size:.875rem;padding:10px 14px}.doctors-grid,.doctors-grid--directors{grid-template-columns:1fr}.doctor-card--director .doctor-photo,.doctor-photo,.digestive-section .doctor-photo{height:380px}.doctor-card--director .doctor-photo img{object-position:50% 24%}.doctor-photo img{object-position:50% 20%}.doctor-card--cv .doctor-photo img{padding:35px}.doctor-info h3,.doctor-card--director h3{font-size:1.7rem}.doctor-hero-copy{max-width:100%}.doctor-hero h1{font-size:3.5rem}.doctor-hero-photo{width:88%;opacity:.22}.doctor-hero-specialty{font-size:1.15rem}.profile-areas{grid-template-columns:1fr}.research-facts{gap:15px}.research-facts strong{font-size:2.3rem}.research-facts span{font-size:.875rem}.profile-index nav{grid-template-columns:1fr}.team-page .header-cta{font-size:.875rem}.team-page .container{width:calc(100% - 40px)}}
@media(max-width:800px){.profile-index{order:0}.profile-content{order:1}}

/* Equipo general compacto: nombre, cargo y retrato circular. */
.team-portraits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px;max-width:1000px;margin:0 auto}
.team-portraits--directors{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.team-portraits--directors{margin-bottom:42px}
.team-person{text-align:center;min-width:0;padding:0 8px}
.team-person-link{display:block;border-radius:18px}
.team-avatar{width:190px;height:190px;border-radius:50%;overflow:hidden;margin:0 auto 18px;background:#dedede;border:5px solid white;box-shadow:0 0 0 1px #dbe5e1}
.team-avatar picture,.team-avatar img{display:block;width:100%;height:100%}.team-avatar img{object-fit:cover;object-position:center}
.team-person h3{font-size:1.3rem;letter-spacing:-.025em;line-height:1.25;margin:0 0 7px}
.team-role{font-size:.9375rem;line-height:1.5;color:#526975;margin:0}
.team-person-link h3{color:var(--unit)}.team-person-link:hover h3{text-decoration:underline;text-underline-offset:4px}
.team-text-members{margin:36px auto 0;padding-top:26px;border-top:1px solid var(--line);max-width:720px}
.team-person--text h3{font-size:1.15rem}.team-person--text .team-role{font-size:.875rem}
@media(max-width:800px){.team-avatar{width:168px;height:168px}.team-portraits{gap:30px 18px}.team-person h3{font-size:1.15rem}.team-role{font-size:.875rem}}
@media(max-width:560px){.team-portraits{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 12px}.team-avatar{width:132px;height:132px;border-width:4px;margin-bottom:14px}.team-person{padding:0}.team-person h3{font-size:1.0625rem;line-height:1.3}.team-portraits:not(.team-portraits--directors):not(.team-portraits--surgeons):not(.team-portraits--obesity) .team-person:last-child{grid-column:1/-1;width:calc(50% - 6px);justify-self:center}.team-portraits--directors{margin-bottom:32px}}

/* Dirección en primera fila, seguida del resto de cirujanos. */
.team-portraits--directors .team-avatar{width:230px;height:230px}
@media(max-width:800px){.team-portraits--directors .team-avatar{width:190px;height:190px}}
@media(max-width:560px){.team-portraits--directors .team-avatar{width:min(150px,100%);height:auto;aspect-ratio:1}.team-portraits--surgeons:not(:has(> :nth-child(4))) .team-person:last-child{grid-column:1/-1;width:calc(50% - 6px);justify-self:center}}

/* Ficha: retrato independiente, sin veladuras, y recorte más compacto. */
.doctor-hero-inner{grid-template-columns:minmax(0,1fr) minmax(280px,400px);grid-template-rows:auto auto;gap:0 64px;padding-block:40px;align-items:center}
.doctor-hero-heading{grid-column:1;grid-row:1;align-self:end}
.doctor-hero-heading h1{margin:18px 0 22px}
.doctor-hero-copy{grid-column:1;grid-row:2;padding:0;max-width:600px;align-self:start}
.doctor-hero-photo{grid-column:2;grid-row:1/3;position:relative;inset:auto;width:100%;height:450px;max-width:400px;align-self:center;border-radius:16px;overflow:hidden;opacity:1}
.doctor-hero-photo img{object-position:center top}
.doctor-hero-photo:after{display:none}
@media(max-width:1100px){.doctor-hero-inner{gap:0 36px}.doctor-hero-photo{height:420px}}
@media(max-width:800px){.doctor-hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-block:30px}.doctor-hero-heading{align-self:auto}.doctor-hero-heading h1{margin:16px 0 24px}.doctor-hero-photo{position:relative;inset:auto;align-self:flex-start;width:100%;max-width:360px;height:auto;aspect-ratio:1;opacity:1;margin:0 0 26px}.doctor-hero-photo picture{height:100%;position:absolute;inset:0}.doctor-hero-photo img{object-position:center top}.doctor-hero-copy{max-width:100%;padding:0;align-self:auto}}

/* Fichas del equipo: retratos normalizados con el encuadre completo. */
.doctor-hero--profile .doctor-hero-photo{height:auto;aspect-ratio:1}
.doctor-hero--profile .doctor-hero-photo picture{position:absolute;inset:0}
.doctor-hero--profile .doctor-hero-photo img{object-fit:contain;object-position:center}
.doctor-hero--profile h1{font-size:clamp(3rem,4.5vw,4.2rem)}
@media(max-width:560px){.doctor-hero--profile h1{font-size:clamp(2.7rem,11vw,3.5rem)}}
.profile-content,.profile-index{min-width:0}
.research-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.research-facts span{overflow-wrap:anywhere}

/* Retratos integrados en el fondo, solo en escritorio. */
@media(min-width:801px){
 :is(.doctor-hero--alfredo,.doctor-hero--profile) .doctor-hero-inner{position:relative;isolation:isolate}
 :is(.doctor-hero--alfredo,.doctor-hero--profile) .doctor-hero-heading,:is(.doctor-hero--alfredo,.doctor-hero--profile) .doctor-hero-copy{position:relative;z-index:1}
 :is(.doctor-hero--alfredo,.doctor-hero--profile) .doctor-hero-photo{grid-area:auto;position:absolute;right:-40px;top:0;bottom:0;width:51%;height:100%;aspect-ratio:auto;max-width:600px;border-radius:0;overflow:visible;z-index:0;mask-image:linear-gradient(to right,transparent,black 25%,black 75%,transparent),linear-gradient(to bottom,transparent,black 3%,black 65%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,black 25%,black 75%,transparent),linear-gradient(to bottom,transparent,black 3%,black 65%,transparent);-webkit-mask-composite:source-in}
 :is(.doctor-hero--alfredo,.doctor-hero--profile) .doctor-hero-photo picture{display:block;height:100%}
 :is(.doctor-hero--alfredo,.doctor-hero--profile) .doctor-hero-photo img{object-fit:cover;object-position:center top}
}

/* Cabecera del equipo con fotografía aportada por el usuario. */
.team-intro--photo{position:relative;isolation:isolate;overflow:hidden;min-height:450px;padding-block:52px;background:#edf7f4}
.team-intro-photo{position:absolute;inset:0;z-index:-2;display:block}
.team-intro-photo img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.team-intro--photo:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#edf7f4 0%,#edf7f4ed 26%,#edf7f4a6 43%,transparent 68%)}
.team-intro--photo h1{max-width:660px}
.team-intro--photo .team-intro-bottom{flex-direction:column;align-items:flex-start;gap:24px;max-width:540px}
.team-intro--photo .team-sections a{background:#edf7f4e8}
@media(max-width:800px){.team-intro--photo{display:flex;flex-direction:column;padding:34px 0 0;min-height:0}.team-intro--photo>.container{order:0}.team-intro-photo{position:relative;inset:auto;z-index:0;order:1;height:240px;margin-top:20px;mask-image:linear-gradient(transparent,black 24%)}.team-intro-photo img{object-position:right center}.team-intro--photo:after{display:none}.team-intro--photo .team-intro-bottom{max-width:560px}}
@media(max-width:560px){.team-intro-photo{height:220px}.team-intro-photo img{object-position:82% center;width:130%;max-width:none;margin-left:-30%}}

.profile-video{aspect-ratio:16/9;width:100%;margin-top:28px;border-radius:12px;overflow:hidden;background:#203746}
.profile-video iframe{display:block;width:100%;height:100%;border:0}

/* Encuadres individuales de escritorio: móvil conserva sus imágenes y estilos. */
@media(min-width:801px){
 :is(.doctor-hero--rafael-restrepo,.doctor-hero--sofia-lorenzo,.doctor-hero--cristian-sierra,.doctor-hero--alexis-idrovo) .doctor-hero-photo{mask-image:none;-webkit-mask-image:none}
 :is(.doctor-hero--rafael-restrepo,.doctor-hero--sofia-lorenzo,.doctor-hero--cristian-sierra,.doctor-hero--alexis-idrovo) .doctor-hero-photo img{position:absolute;left:50%;transform:translateX(-50%);width:auto;max-width:none;height:100%;object-fit:contain;object-position:center top;mask-image:linear-gradient(to right,transparent,black 22%,black 78%,transparent),linear-gradient(to bottom,transparent,black 3%,black 80%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,black 22%,black 78%,transparent),linear-gradient(to bottom,transparent,black 3%,black 80%,transparent);-webkit-mask-composite:source-in}
 .doctor-hero--alfredo .doctor-hero-photo{width:46%;max-width:540px;right:-10px}
 .doctor-hero--nicolas-prado-troya .doctor-hero-photo{width:49%;max-width:576px;right:-28px}
}

/* Norma común para fichas actuales y futuras: fondo gris en el área del retrato. */
@media(min-width:801px){
 .doctor-hero{background:linear-gradient(90deg,#e4f2ed 0%,#edf3ee 39%,#e1e5e2 56%,#dedede 68%,#dedede 100%)}
}

/* Equipo de la Unidad de Obesidad: dos especialidades complementarias. */
.team-sections{flex-wrap:wrap}
.team-portraits--obesity{grid-template-columns:repeat(2,minmax(0,1fr));max-width:700px}
@media(max-width:560px){.team-portraits.team-portraits--obesity .team-person:last-child{width:100%;grid-column:auto}}

/* Encuadres solicitados: Andrea en Equipo y Carola en su ficha. */
.team-person-link[href="/equipo-medico/andrea-castellanos/"] .team-avatar img{transform:scale(1.5);transform-origin:50% 10%}
.doctor-hero--carola-gonzalez-rodriguez .doctor-hero-photo img{transform:translateY(-3%) scale(1.18);transform-origin:50% 0}

/* Carola: conservar visible la zona bajo el cuello antes de difuminar. */
@media(min-width:801px){.doctor-hero--carola-gonzalez-rodriguez .doctor-hero-photo{mask-image:linear-gradient(to right,transparent,black 25%,black 75%,transparent),linear-gradient(to bottom,transparent,black 3%,black 85%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,black 25%,black 75%,transparent),linear-gradient(to bottom,transparent,black 3%,black 85%,transparent)}}

/* Shared local thumbnail and green play button, in landscape format. */
.profile-video .video-preview{aspect-ratio:16/9}

/* Mantener cabeza y pecho completos en el retrato de Alejandro. */
@media(min-width:801px){.doctor-hero--alejandro-lopez .doctor-hero-photo img{object-fit:contain;object-position:center top}}
@media(min-width:801px){.doctor-hero--alejandro-lopez .doctor-hero-photo picture{width:auto;max-width:100%;aspect-ratio:1;margin-inline:auto;mask-image:linear-gradient(to right,transparent,black 12%,black 88%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,black 12%,black 88%,transparent)}}
