#equipo .team-card { position:relative; padding:0 0 24px; overflow:hidden; border:1px solid #dce7ed; border-radius:26px; background:#fff; box-shadow:0 12px 32px rgba(25,55,66,.06); transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease; }
#equipo .team-card img { display:block; width:100%; height:300px; object-fit:cover; object-position:center top; border-radius:0; background:#fff; image-rendering:auto; }
#equipo .team-card h3 { color:var(--ink); font-size:19px; line-height:1.4; margin:17px 18px 5px; }
#equipo .team-card p { font-size:14px; line-height:1.5; margin-inline:18px; }
#equipo .team-card .team-profile-hint { margin-inline:18px; }
#equipo .team-select { cursor:pointer; padding:0; border:0; background:transparent; display:block; width:100%; text-align:inherit; color:inherit; font:inherit; }
#equipo .team-select::after { content:""; position:absolute; inset:0; border-radius:26px; }
#equipo .team-select:focus-visible { outline:none; }
#equipo .team-card:has(.team-select:focus-visible) { outline:3px solid var(--brand-wine,#980b43); outline-offset:4px; }
#equipo .team-card.is-selected { border-color:var(--brand-wine,#980b43); box-shadow:0 14px 34px rgba(152,11,67,.16); }
#equipo .team-card.is-selected h3 { color:var(--brand-wine,#980b43); }
#equipo .team-card.is-selected::before { content:"✓"; position:absolute; z-index:1; top:26px; right:26px; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--brand-wine,#980b43); color:white; pointer-events:none; }
@media(hover:hover) { #equipo .team-card:hover { border-color:var(--brand-wine,#980b43); box-shadow:0 18px 38px rgba(25,55,66,.14); } }
@media(prefers-reduced-motion:no-preference) { #equipo .team-card.is-selected { transform:translateY(-5px); } }
@media(hover:hover) and (prefers-reduced-motion:no-preference) { #equipo .team-card:hover { transform:translateY(-5px); } }
@media(prefers-reduced-motion:reduce) { #equipo .team-card { transition:none; } }
@media(max-width:600px) { #equipo .team-grid { grid-template-columns:minmax(0,1fr); gap:22px; } #equipo .team-card { max-width:400px; width:100%; justify-self:center; } #equipo .team-card img { height:280px; } }
/* Fichas de profesionales: identidad corporativa independiente de la temporada. */
.team-filter{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin:24px 0}.team-filter label{font-weight:600;color:#193742}.team-filter select{font:inherit;min-height:46px;max-width:100%;padding:10px 38px 10px 14px;border:1px solid #b8d8e3;border-radius:12px;background:#fff;color:#193742}.team-filter select:focus-visible{outline:3px solid #007c9f;outline-offset:3px}.team-filter-status{margin:0;color:#516770;font-size:14px}.team-profile-hint{display:block;margin-top:14px;font-size:14px;font-weight:600;color:#980b43}#equipo .team-card[hidden]{display:none}
body.professional-open{overflow:hidden}.professional-dialog{box-sizing:border-box;width:min(940px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:48px 32px 32px;border:1px solid #d7e9ee;border-top:5px solid #007c9f;border-radius:24px;background:#fff;color:#193742;box-shadow:0 25px 100px #10293255;overflow:auto;font-family:Exo,sans-serif}.professional-dialog::backdrop{background:#102932a8;backdrop-filter:blur(4px)}.professional-layout{display:grid;grid-template-columns:minmax(0,290px) minmax(0,1fr);gap:32px;align-items:start}.professional-photo{width:100%;max-height:420px;object-fit:contain;border-radius:18px;background:linear-gradient(160deg,#effbfe,#c3e6f0)}.professional-copy{min-width:0}.professional-copy h2{margin:0 0 10px;font-size:clamp(26px,3.4vw,40px);line-height:1.2;color:#980b43;overflow-wrap:anywhere}.professional-role{font-size:21px;font-weight:600;color:#007c9f;line-height:1.4;margin:0 0 16px}.professional-specialty{display:inline-block;padding:5px 12px;border-radius:20px;background:#eaf7fb;color:#00546c;margin:0 0 16px}.professional-copy h3{margin:24px 0 8px;font-size:18px;color:#980b43}.professional-paragraph{white-space:pre-line;overflow-wrap:anywhere;font-size:16px;line-height:1.7;margin:0 0 14px}.professional-close{position:absolute;right:12px;top:8px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#edf5f7;color:#193742;font:32px/1 sans-serif;cursor:pointer}.professional-close:hover{background:#980b43;color:#fff}.professional-close:focus-visible{outline:3px solid #007c9f;outline-offset:2px}
@media(prefers-reduced-motion:no-preference){.professional-dialog[open]{animation:professional-reveal .18s ease-out}@keyframes professional-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:640px){.professional-dialog{padding:48px 20px 24px;border-radius:18px}.professional-layout{grid-template-columns:minmax(0,1fr);gap:22px}.professional-photo{max-height:250px;width:100%}.team-filter{align-items:stretch}.team-filter label,.team-filter select,.team-filter-status{width:100%}.professional-role{font-size:18px}}

/* Stable proportions even when other dialog rules constrain the popup. */
dialog.professional-dialog{width:min(900px,calc(100vw - 32px));max-width:900px;padding:48px 28px 28px}
.professional-dialog .professional-layout{grid-template-columns:minmax(0,32%) minmax(0,1fr);gap:24px;align-items:start;text-align:left}
.professional-dialog .professional-photo{box-sizing:border-box;display:block;width:100%;min-width:0;height:260px;max-height:260px;object-fit:cover;object-position:center top}
.professional-dialog .professional-copy h2{font-size:clamp(24px,3vw,36px);word-break:normal;overflow-wrap:normal;hyphens:none}
.professional-dialog .professional-role{font-size:20px;word-break:normal;overflow-wrap:normal}
.professional-details{grid-column:1/-1;min-width:0}.professional-details h3{font-size:18px;color:#980b43;margin:18px 0 8px}
.professional-dialog .professional-details{margin-top:20px}
.professional-list{padding-left:20px;margin:0;font-size:16px;line-height:1.7;color:var(--muted,#516770)}
.professional-list li{margin-bottom:8px}
@media(min-width:641px){.professional-dialog .professional-photo{height:auto;max-height:320px;object-fit:contain}}
@media(max-width:640px){.professional-dialog .professional-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){dialog.professional-dialog{padding:48px 18px 24px}.professional-dialog .professional-layout{grid-template-columns:minmax(0,1fr);gap:18px}.professional-dialog .professional-photo{height:210px}.professional-dialog .professional-copy h2{font-size:26px}.professional-dialog .professional-role{font-size:18px}}

/* Mobile profile: show the whole photograph and keep the reading column clear. */
@media(max-width:700px){
 dialog.professional-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:60px 18px 24px;scrollbar-gutter:stable}
 .professional-dialog .professional-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .professional-dialog .professional-photo{height:240px;max-height:32dvh;object-fit:contain;object-position:center;background:#fff;border-radius:12px}
 .professional-dialog .professional-copy h2{font-size:clamp(22px,6vw,28px);line-height:1.3;overflow-wrap:break-word;margin-bottom:10px}
 .professional-dialog .professional-role{font-size:18px;line-height:1.4;margin-bottom:16px}
 .professional-dialog .professional-paragraph,.professional-dialog .professional-list{font-size:15px;line-height:1.65;text-align:left}
 .professional-dialog .professional-details{margin-top:16px}
 .professional-dialog .professional-details h3{font-size:18px;line-height:1.4;margin:20px 0 10px}
 .professional-dialog .professional-close{width:44px;height:44px;top:8px;right:10px;color:#980b43;background:#fff4f8;border:1px solid #980b43}
 .professional-dialog .professional-close:hover{color:#980b43;background:#fbe6ef}
 .professional-dialog .professional-close:focus-visible{outline:3px solid #980b43;outline-offset:2px}
}

/* Two rows, five visible columns on desktop; one column passes every 1.7 seconds. */
.team-carousel{overflow-anchor:none}
.team-carousel-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:20px}
.team-carousel-arrow,.team-carousel-pause{min-height:44px;border:1px solid #bad7df;border-radius:12px;background:#fff;color:#00546c;font:600 14px Exo,sans-serif;padding:10px 16px}
.team-carousel-arrow{width:48px;font-size:24px;line-height:1}
.team-carousel-controls button:hover:not(:disabled){background:#eaf7fb}
.team-carousel-controls button:disabled{opacity:.4}
.team-carousel-viewport{--team-visible:5;overflow:hidden;padding:8px 0 16px;outline-offset:3px}
#equipo .team-carousel-track{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;width:100%}
.team-carousel-row{overflow:hidden;min-width:0}
.team-carousel-row-track{display:flex;gap:18px;width:100%;will-change:transform}
#equipo .team-carousel-row-track>.team-card{flex:0 0 calc((100% - (var(--team-visible) - 1)*18px)/var(--team-visible))}
.team-carousel-column{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:22px;flex:0 0 calc((100% - (var(--team-visible) - 1)*18px)/var(--team-visible));min-width:0}
#equipo .team-carousel .team-card{display:flex;flex-direction:column;width:100%;max-width:none;min-width:0;padding-bottom:12px;border-radius:20px;align-self:stretch;box-shadow:none}
#equipo .team-carousel .team-card img{flex-shrink:0}
#equipo .team-carousel .team-card img{height:clamp(110px,calc((100dvh - 400px)/2),210px)}
#equipo .team-carousel .team-card h3{font-size:16px;line-height:1.35;margin:10px 12px 4px;overflow-wrap:anywhere}
#equipo .team-carousel .team-card p{margin-inline:12px;font-size:13px;line-height:1.4}
#equipo .team-carousel .team-profile-hint{align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:calc(100% - 24px);margin:auto 12px 0;padding:7px 10px;border-radius:7px;background:#980b43;color:#fff;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}
#equipo .team-carousel .team-card p{margin-bottom:12px}
#equipo .team-carousel .team-card:hover .team-profile-hint{background:#790936}
#equipo .team-carousel .team-card:hover,#equipo .team-carousel .team-card.is-selected{transform:none}
@media(max-width:700px){#equipo .team-carousel .team-card img{height:clamp(110px,calc((100dvh - 380px)/2),200px)}.team-carousel-controls{justify-content:center}}
#equipo .team-filter{align-items:center;gap:12px 16px}
#equipo .team-filter-status{margin:0;white-space:nowrap}
#equipo .team-filter .team-carousel-controls{margin:0 0 0 auto;flex-shrink:0;gap:10px}
@media(max-width:700px){#equipo .team-filter .team-carousel-controls{margin:0;width:100%;justify-content:flex-start}}
/* Mobile: three columns with the same continuous motion as desktop. */
@media(max-width:700px){
 #equipo .team-filter{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 #equipo .team-filter label,#equipo .team-filter select,#equipo .team-filter-status{width:100%;min-width:0}
 #equipo .team-filter select{font-size:16px}
 #equipo .team-filter .team-carousel-controls{display:flex;justify-content:space-between;gap:8px;min-width:0}
 #equipo .team-carousel-pause{flex:1;padding-inline:8px;font-size:13px}
 #equipo .team-carousel-viewport{overflow:hidden;touch-action:pan-y}
 #equipo .team-carousel-row{overflow:hidden}
 #equipo .team-carousel-row-track{gap:8px;align-items:stretch}
 #equipo .team-carousel-row-track>.team-card{flex:0 0 calc((100% - 16px)/3);width:auto;border-radius:12px;padding-bottom:10px}
 #equipo .team-carousel .team-card img{height:clamp(110px,29vw,170px);object-fit:contain;object-position:center;background:#fff}
 #equipo .team-carousel .team-card h3{font-size:12px;line-height:1.35;margin:8px 6px 4px;overflow-wrap:break-word}
 #equipo .team-carousel .team-card p{font-size:11px;line-height:1.4;margin-inline:6px}
 #equipo .team-carousel .team-profile-hint{font-size:10px;max-width:calc(100% - 12px);margin:auto 6px 0;padding:6px 7px;border-radius:6px}
}
