*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;color:#27384a}.wrap{width:min(1180px,calc(100% - 56px));margin:auto}header{height:72px;background:#fff}.nav{height:100%;display:flex;align-items:center;gap:30px}.nav img{width:205px;height:55px;object-fit:contain}.nav nav{margin-left:auto;display:flex;gap:27px;font-size:12px}.nav button,button{background:#e51b18;color:#fff;border:0;border-radius:5px;padding:13px 20px;font-weight:700}.hero{background:#f7f8fa}.hero-img{width:min(1440px,100%);height:auto;aspect-ratio:1983/793;margin:auto;background:url("assets/hero-aprobado.png") center/contain no-repeat}.section{padding:48px 0}.title{text-align:center;margin-bottom:28px}.title h2,.copy h2,.prevent h2{font-size:32px;margin:0 0 8px}.title span,.copy span,.prevent span{color:#e51b18}.title p,.copy p,.prevent p{color:#66717d;font-size:13px;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.cards article,.servicegrid article{border:1px solid #e5e8eb;border-radius:7px;overflow:hidden;background:#fff;box-shadow:0 5px 15px #24384a0b}.cards img{display:block;width:100%;height:132px;object-fit:cover;object-position:center}.cards article>div{height:62px;padding:11px;display:flex;justify-content:space-between;align-items:center}.cards b{font-size:12px}.cards i{font-style:normal;color:#e51b18;font-size:22px}.history,.testimonial{background:#f7f8fa}.split{display:grid;grid-template-columns:1fr 1fr;min-height:350px}.pic{background-size:cover;background-position:center;background-repeat:no-repeat}.historia{background-image:url("assets/historia.jpg")}.copy{padding:50px 55px}.copy p{margin:14px 0 20px}.studiesSplit{grid-template-columns:58% 42%}.studycopy{padding-left:0}.estudio{background-image:url("assets/estudios.jpg");background-position:center}.studyicons{display:grid;grid-template-columns:repeat(5,1fr);margin:24px 0;text-align:center;color:#e51b18;font-size:28px}.studyicons small{display:block;color:#27384a;font-size:9px;font-weight:700;margin-top:7px}.check{display:grid;grid-template-columns:55px 1fr 20px;align-items:center;background:#fff6f6;border:1px solid #f3d0d0;border-radius:6px;padding:12px 15px;margin-bottom:15px}.check b{font-size:34px;color:#e51b18}.check p{margin:0;font-size:11px}.check strong{color:#e51b18}.check i{color:#e51b18;font-style:normal;font-size:25px}.services{background:#fafbfc}.servicegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.svc{height:170px;background-size:cover;background-position:center}.varices{background-image:url("assets/varices.jpg")}.dolor{background-image:url("assets/dolor.jpg")}.movil{background-image:url("assets/movil.jpg")}.servicegrid h3,.servicegrid p,.servicegrid a{margin-left:16px;margin-right:16px}.servicegrid h3{font-size:14px;margin-bottom:5px}.servicegrid p{font-size:11px;color:#66717d}.servicegrid a{display:block;color:#e51b18;font-size:11px;font-weight:700;margin-bottom:16px}.whygrid{display:grid;grid-template-columns:repeat(4,1fr);text-align:center}.whygrid>div{font-size:31px;color:#e51b18;padding:0 28px;border-right:1px solid #e5e8eb}.whygrid>div:last-child{border:0}.whygrid b{display:block;color:#27384a;font-size:13px;margin:10px 0}.whygrid p{font-size:11px;color:#66717d;line-height:1.5}.test{min-height:215px}.testpic{background-image:url("assets/testimonio.jpg")}.quote{padding:38px 55px}.quote>b{font-size:45px;color:#e51b18}.quote p{font-size:13px;line-height:1.6}.quote strong,.quote small{display:block;font-size:10px}.quote small{color:#66717d}.prevent{display:grid;grid-template-columns:38% 34% 28%;align-items:center;min-height:240px}.prevent>div:first-child{padding-right:35px}.preventicons{display:grid;grid-template-columns:repeat(3,1fr);gap:22px 10px;text-align:center;color:#e51b18;font-size:26px}.preventicons small{display:block;color:#27384a;font-size:9px;font-weight:700;margin-top:5px}.preventpic{height:240px;background-image:url("assets/prevencion.jpg")}.cta{padding:48px 0;color:white;background:linear-gradient(90deg,#26394bee,#26394bba 48%,#26394b22),url("assets/corazon.jpg") center/cover no-repeat}.cta h2{font-size:30px;margin:0 0 8px}.cta p{font-size:12px;max-width:460px}footer{padding:25px 0;border-top:1px solid #e5e8eb}footer .wrap{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#66717d}footer img{width:185px}
@media(max-width:850px){.nav nav{display:none}.cards{grid-template-columns:repeat(2,1fr)}.split,.studiesSplit,.prevent{grid-template-columns:1fr}.pic{min-height:300px}.servicegrid{grid-template-columns:1fr}.whygrid{grid-template-columns:1fr 1fr}.hero-img{background-size:cover;min-height:310px}.copy{padding:35px 0}.preventpic{margin-top:25px}}
/* Navegación de Cardiología */
a{color:inherit;text-decoration:none}.card-link{display:block}.cards .card-link>div{height:62px;padding:11px;display:flex;justify-content:space-between;align-items:center}.specialty-menu{position:relative}.specialty-menu summary{cursor:pointer;list-style:none}.specialty-menu summary::-webkit-details-marker{display:none}.specialty-submenu{position:absolute;top:25px;left:0;min-width:180px;padding:8px;background:white;border:1px solid #e5e8eb;border-radius:7px;box-shadow:0 5px 20px #24384a20;z-index:10}.specialty-submenu a{display:block;padding:10px}.specialty-submenu a:hover{background:#fff6f6;color:#e51b18}.study-link{display:inline-block;background:#e51b18;color:white;border-radius:5px;padding:13px 20px;font-size:13px;font-weight:700}a:focus-visible,summary:focus-visible{outline:2px solid #e51b18;outline-offset:4px}.card-link:hover b{color:#e51b18}

header .specialty-menu{position:relative}header .specialty-menu summary{cursor:pointer;list-style:none}header .specialty-menu summary::-webkit-details-marker{display:none}header .specialty-menu summary::after{content:" ▾";font-size:10px}header .specialty-submenu{position:absolute;top:calc(100% + 10px);left:0;min-width:205px;padding:8px;background:#fff;border:1px solid #e5e8eb;border-radius:7px;box-shadow:0 5px 20px #24384a20;z-index:30}header .specialty-submenu a{display:block;padding:12px;color:#27384a}header .specialty-submenu a:hover,header .specialty-submenu a:focus-visible{background:#fff6f6;color:#e51b18}@media(max-width:850px){header .nav nav{display:flex;flex-wrap:wrap;gap:14px;margin:0;width:100%;padding:12px 0}header{height:auto}header .nav{flex-wrap:wrap;padding:10px 0}header .nav nav.show{display:flex}header .specialty-submenu{position:static;margin-top:10px}header .nav nav{position:static}header .hamb{display:none}}


/* ===== RESPONSIVE GLOBAL CARDIOCENTRO ===== */
html,body{max-width:100%;overflow-x:hidden}
img{max-width:100%;height:auto}
@media (max-width:1100px){
  .shell,.wrap,.container{width:92%!important;max-width:92%!important}
  header nav,.nav nav{gap:14px!important}
}
@media (max-width:900px){
  header{height:auto!important;min-height:72px}
  .nav{min-height:72px;height:auto!important;flex-wrap:wrap;padding:10px 0}
  .nav nav{order:3;width:100%;display:flex!important;overflow-x:auto;white-space:nowrap;padding:8px 0 3px;gap:20px!important;scrollbar-width:none}
  .nav nav::-webkit-scrollbar{display:none}
  .nav>.btn{margin-left:auto}
  .hero,.heroGrid,.hero-inner,.introGrid,.intro-grid,.twoIntro,.sectionHead,.head,.when,.preventiveGrid,.prevention-grid,.checkGrid,.split,.two,.followGrid,.follow-grid,.final,.cta{
    grid-template-columns:1fr!important;
  }
  .conditionGrid,.condition-grid,.cards,.ailment-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .metricGrid,.metric-grid,.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .heroCopy,.hero-copy,.heroText{padding:50px 5%!important}
  .heroPhoto,.hero-image,.heroImg{min-height:0!important;height:380px!important}
  .heroPhoto img,.hero-image img,.heroImg img{height:100%!important;object-fit:cover}
  .whenPhoto,.when-photo,.whenImg,.finalPhoto,.final-photo,.cta-photo{height:360px!important;min-height:0!important}
  .whenPhoto img,.when-photo img,.whenImg img,.finalPhoto img,.final-photo img,.cta-photo img{height:100%!important;object-fit:cover}
  .whenCopy,.when-copy,.whenText,.finalCopy,.final-copy,.cta-copy,.cta>div{padding:50px 5%!important;height:auto!important;min-height:0!important}
  .section,.sec{padding:55px 0!important;height:auto!important;min-height:0!important}
  .conditions,.integral,.check,.approach,.follow{height:auto!important;min-height:0!important}
  .photo,.split-photo{height:320px!important}
}
@media (max-width:640px){
  body{font-size:15px!important}
  .shell,.wrap,.container{width:90%!important;max-width:90%!important}
  header .btn,.nav>.btn{display:none!important}
  .nav>a:first-child img,.nav img,.brand img{width:155px!important}
  .hero h1,.heroCopy h1,.hero-copy h1,.heroText h1{font-size:38px!important;line-height:1.05!important}
  .hero h2,.heroCopy h2,.hero-copy h2,.heroText h2{font-size:22px!important}
  .section h2,.sec h2,.when h2,.final h2,.cta h2{font-size:29px!important;line-height:1.15!important}
  .conditionGrid,.condition-grid,.cards,.ailment-grid,.trust,.intro-cards{grid-template-columns:1fr!important}
  .metricGrid,.metric-grid,.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .conditionGrid .wide,.condition-grid .wide,.cards .long,.ailment-grid .double{grid-column:auto!important}
  .heroPhoto,.hero-image,.heroImg{height:300px!important}
  .whenPhoto,.when-photo,.whenImg,.finalPhoto,.final-photo,.cta-photo{height:300px!important}
  .photo,.split-photo{height:280px!important}
  .studyGrid,.study-grid,.reviewGrid,.review-grid{grid-template-columns:1fr!important}
  footer .wrap,footer .shell,footer .container,.footer-inner,.foot{flex-direction:column!important;height:auto!important;gap:14px;padding:22px 0;text-align:center}
}
@media (max-width:420px){
  .metricGrid,.metric-grid,.metrics{grid-template-columns:1fr!important}
  .hero h1,.heroCopy h1,.hero-copy h1,.heroText h1{font-size:34px!important}
  .section h2,.sec h2,.when h2,.final h2,.cta h2{font-size:27px!important}
  .button,.btn{width:100%;text-align:center}
}


/* ===== LEGIBILIDAD GLOBAL v2 ===== */
body{font-size:17px!important}
p{font-size:15px!important;line-height:1.72!important}
nav a,.nav nav a{font-size:13.5px!important}
.btn,.button{font-size:13.5px!important}
small{font-size:11.5px}
.conditionGrid p,.condition-grid p,.cards b,.ailment-grid b{font-size:12.5px!important}
.conditionGrid small,.condition-grid small,.cards small,.ailment-grid small{font-size:10px!important}
.metricGrid b,.metric-grid b,.metrics b{font-size:11px!important}
.trust p,.trust small,.intro-cards p,.intro-cards small{font-size:12px!important}
.when li,.whenCopy li,.when-copy li,.whenText li{font-size:12.5px!important;line-height:1.5!important}
.studyGrid p,.study-grid p{font-size:12.5px!important}
.reviewGrid p,.review-grid p{font-size:13.5px!important}
@media(max-width:640px){
  body{font-size:16px!important}
  p{font-size:14.5px!important}
  .when li,.whenCopy li,.when-copy li,.whenText li{font-size:13px!important}
}


/* ===== AJUSTES GLOBALES DE NAVEGACIÓN Y RESPONSIVE ===== */
html{scroll-behavior:smooth}
body{width:100%;max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%;height:auto}
header img,footer img{max-width:100%}
.container,.wrap,.pw,.p-wrap{max-width:1180px;width:min(90%,1180px);margin-left:auto;margin-right:auto}

/* Desktop navigation: preserve HOME layout */
header{position:relative;z-index:1000}
header nav{display:flex;align-items:center}
header nav a{white-space:nowrap}
header .submenu,header .dropdown-menu,header nav ul ul{
    z-index:1200;
}

/* Tablet */
@media(max-width:1050px){
  header nav{gap:14px!important}
  header nav a{font-size:13px!important}
  .hero,.ph{min-height:auto!important}
}

/* Mobile/tablet navigation.
   Existing HOME menu keeps its own behavior; these rules prevent overflow. */
@media(max-width:820px){
  header{height:auto!important;min-height:70px}
  header .header-inner,header .nav-wrap,header>.container{
      width:94%!important;max-width:94%!important;
  }
  header nav{
      max-width:100%!important;
      flex-wrap:wrap!important;
      row-gap:8px!important;
  }
  header nav ul{
      max-width:100%!important;
  }
  header nav ul ul,
  header .submenu,
  header .dropdown-menu{
      min-width:210px!important;
      max-width:90vw!important;
  }
  section{max-width:100%}
  .grid,.cards,.services-grid{max-width:100%}
}

/* Phone */
@media(max-width:600px){
  h1{font-size:clamp(34px,10vw,44px)!important}
  h2{font-size:clamp(26px,7vw,34px)}
  p,li{line-height:1.55}
  .container,.wrap,.pw,.p-wrap{width:90%!important;max-width:90%!important}
  .cc-contact-footer *{max-width:100%}
  .cc-contact-footer{overflow:hidden}
}

/* Avoid footer/contact columns overflowing at intermediate widths */
@media(max-width:900px){
  .cc-contact-footer .cc-footer-grid,
  .cc-contact-footer .footer-grid{
      grid-template-columns:1fr!important;
      gap:28px!important;
  }
}
