/* Ajustes adaptables de CENTRA. La vista de escritorio conserva su composición. */
.team-office picture{display:block}
.team-portrait.team-diana img{padding:12px 12px 0;-webkit-mask-image:none;mask-image:none;transform:translateY(4%)}
@media(max-width:850px){
  html{scroll-padding-top:94px}
  .container{width:calc(100% - 32px)}
  header nav{padding:12px 0;min-height:76px;gap:12px}
  header .brand{min-width:0;gap:9px;flex:1}
  header .brand>div{min-width:0}
  header .brand img{width:40px;height:40px;flex:none}
  header .brand strong{font-size:26px;line-height:1.05}
  header .brand span{font-size:10px;line-height:1.35;max-width:210px;white-space:normal;margin-top:4px}
  header .menu-toggle{flex:none;min-height:44px;padding:9px 12px;font-size:13px}
  header .menu{max-height:calc(100dvh - 108px);overflow-y:auto;overscroll-behavior:contain;padding:14px 16px}
  header .menu.open{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  header .menu>a{min-width:0;min-height:44px;display:flex;align-items:center;font-size:14px;padding:10px;line-height:1.4}
  header .menu .boton-whatsapp{grid-column:1/-1;min-height:48px}
  .topbar .container{min-height:32px;padding:6px 0;font-size:11px}
  .topbar .container>div{font-size:11px}
  section{padding:40px 0}
  .section-head{margin-bottom:22px}
  .section-head h2,.about-grid>.card .section-head h2,.director-card .section-head h2{font-size:clamp(27px,7.4vw,34px);line-height:1.16}
  .section-head p{font-size:15px;line-height:1.7}
  .card,.contact-card,.director-card,.testimonial,.benefit{padding:22px;border-radius:22px}
  .hero{padding:26px 0 40px}
  .hero-wrap{display:flex;flex-direction:column;gap:18px}
  .hero-copy{display:contents}
  .hero-copy>.eyebrow{align-self:flex-start;margin:0;font-size:11px}
  .hero-copy>h1{font-size:clamp(33px,9.2vw,42px);line-height:1.09;margin:0}
  .hero-copy>p{font-size:16px;line-height:1.65;margin:0}
  .hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0}
  .hero-actions .btn{min-width:0;min-height:48px;padding:11px 12px;font-size:13px;line-height:1.4;text-align:center}
  .hero-visual{order:1;min-height:0;display:flex;flex-direction:column;border-radius:23px;background:#fff}
  .hero-visual>img{position:static;width:100%;height:auto;object-fit:contain;object-position:center}
  .hero-overlay{display:none}
  .hero-card{position:static;margin:0;border-radius:0;background:#fff;padding:20px;backdrop-filter:none}
  .hero-card h2{font-size:23px;line-height:1.2;margin-bottom:10px}
  .hero-card p{font-size:14px;line-height:1.65}
  .hero-copy>.stats{order:2;grid-template-columns:1fr;gap:9px}
  .stat{display:grid;grid-template-columns:115px minmax(0,1fr);align-items:start;gap:12px;padding:14px 16px;border-radius:16px}
  .stat strong{font-size:13px;line-height:1.5;margin:0}
  .stat span{font-size:13px;line-height:1.55}
  .about-grid,.director-grid,.testimonial-grid{gap:18px}
  .about-grid .image-card,.director-grid>.image-card,.mini-gallery>.image-card,.mini-gallery .stack .image-card,.testimonial .image-card{height:auto;min-height:0;max-height:none}
  .about-grid .image-card img,.director-grid>.image-card img,.mini-gallery .image-card img,.testimonial .image-card img{display:block;width:100%;height:auto;object-fit:contain;object-position:center}
  .mini-gallery,.mini-gallery .stack{grid-template-columns:1fr;gap:14px}
  .mini-gallery .image-card:first-child{min-height:0}
  .image-card{border-radius:22px}
  .slide{grid-template-columns:1fr;align-content:start}
  .slide .slide-copy{min-height:0;padding:22px}
  .slide .slide-copy h3{font-size:24px;line-height:1.25}
  .slide .slide-copy p{font-size:15px;line-height:1.65}
  .slide .slide-image img{width:100%;height:auto;min-height:0;max-height:none;object-fit:contain}
  .carousel-controls{position:static;justify-content:flex-end;gap:9px;padding:12px;background:#f3f7fd}
  .carousel-controls button{width:44px;height:44px;flex:none}
  .thumb-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
  .thumb-row img{height:62px}
  .thumb-row button{border-width:2px;border-radius:12px;overflow:hidden}
  .director-card h3,.testimonial h3{font-size:21px;line-height:1.4}
  .director-card p,.quote{font-size:15px;line-height:1.7}
  .news-card{padding:15px;border-radius:22px}
  .news-heading{min-height:0;gap:10px}
  .news-description{min-height:0;margin:12px 0 16px}
  .news-embed{max-width:100%}
  .facebook-frame,.instagram-frame{width:100%;max-width:100%}
  .news-original{min-height:44px}
  .service-intro h1{font-size:clamp(29px,8vw,36px);line-height:1.13}
  .service-intro p{font-size:16px;line-height:1.7}
  .service-breadcrumb{font-size:13px;margin-bottom:20px}
  .service-intro .hero-actions{margin:22px 0 0}
  .service-body h2{font-size:28px;line-height:1.2}
  .modalities-grid{gap:16px;margin:22px 0}
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .team-card,.team-card.team-lead{grid-column:span 1;border-radius:20px}
  .team-card.team-lead:first-child{grid-column:1/-1}
  .team-portrait,.team-lead .team-portrait{height:clamp(170px,46vw,225px)}
  .team-lead .team-office{height:auto}
  .team-office img{height:auto;width:100%}
  .team-cutout img{padding:12px 8px 0}
  .team-portrait.team-diana img{padding:12px 8px 0}
  .team-copy{padding:16px 14px 18px}
  .team-copy h3{font-size:18px;line-height:1.25;overflow-wrap:break-word}
  .team-copy p{font-size:14px;line-height:1.4}
  .team-area{font-size:9px;letter-spacing:.06em;margin-bottom:7px}
  .team-card.team-lead:first-child .team-copy h3{font-size:22px}
  .team-community{padding:20px;gap:13px}
  .team-community h3{font-size:20px}
  .team-community p{font-size:14px}
  .family-visits{gap:14px;padding:22px}
  .family-visits h3{font-size:20px}
  .wsp{width:48px;height:48px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));box-shadow:0 5px 18px #19b85a25}
}
@media(max-width:360px){
  .container{width:calc(100% - 28px)}
  header .brand img{width:35px;height:35px}
  header .brand strong{font-size:24px}
  header .brand span{font-size:9px;max-width:166px}
  header .menu-toggle{font-size:12px;padding:9px}
  .hero-actions{gap:8px}
  .hero-actions .btn{font-size:12px;padding:10px 8px}
  .team-copy{padding:14px 11px 16px}
  .team-copy h3{font-size:17px}
  .team-copy p{font-size:13px}
}
@media(hover:none){.image-card:hover img,.hero-visual:hover>img{transform:none}}
