/* Corporate service catalog: six equal-weight offerings, no featured service. */
.services-grid .service-card{min-width:0;}
.services-grid .service-card__body h3{font-size:clamp(1.25rem,1.55vw,1.7rem);line-height:1.18;overflow-wrap:break-word;hyphens:auto;}
#rmh-mega-servicios .rmh-mega__bottom{justify-content:space-between;flex-wrap:wrap;gap:10px 16px;}
#rmh-mega-servicios .rmh-mega__bottom a{white-space:normal;max-width:32%;font-size:clamp(10px,.9vw,12px);line-height:1.3;}
#rmh-mega-servicios .rmh-mega-card__title{font-size:clamp(12px,1vw,14px);}
#rmh-mega-servicios .rmh-mega-card__type{font-size:11px;line-height:1.35;}
.page-hero__row h1{overflow-wrap:break-word;}
body.rmh-service-remodelacion .page-hero__row h1{font-size:clamp(2.25rem,5.2vw,5rem);}
@media(max-width:700px){.services-grid .service-card__body h3{font-size:1.45rem;}.rmh-mobile-level--submenu[data-mobile-level="servicios"] a{white-space:normal;line-height:1.35;}}

/* Stretch each existing accessible "Ver servicio" link across its entire card.
   No nested anchors and no JS click handling: mouse, tap and keyboard remain native. */
.services-grid .service-card {position:relative;cursor:pointer;}
.services-grid .service-card .btn-link::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  cursor:pointer;
}
.services-grid .service-card:focus-within {
  outline:2px solid #E18763;
  outline-offset:3px;
}

/* 2026-10-10 — Servicios megamenu full-width premium for desktop/tablet landscape. */
@media (min-width:1121px) {
  #rmh-mega-servicios.rmh-mega--services {
    left:50%;
    width:100vw;
    max-width:none;
    transform:translate(-50%,-6px);
    border-left:0;
    border-right:0;
    box-shadow:0 28px 70px rgba(10,22,32,.20);
  }
  .rmh-nav-group:hover:not(.nav-suppressed) #rmh-mega-servicios.rmh-mega--services,
  .rmh-nav-group:focus-within:not(.nav-suppressed) #rmh-mega-servicios.rmh-mega--services,
  .rmh-nav-group.is-open #rmh-mega-servicios.rmh-mega--services {
    transform:translate(-50%,0);
  }
  #rmh-mega-servicios .rmh-mega__content--services {
    grid-template-columns:minmax(280px,360px) minmax(0,1fr);
    gap:40px;
    padding:34px clamp(28px,3.5vw,54px) 26px;
    align-items:start;
  }
  #rmh-mega-servicios .rmh-mega__intro--services {
    padding-right:24px;
  }
  #rmh-mega-servicios .rmh-mega__intro--services h2 {
    max-width:100%;
    font-size:clamp(2rem,2.65vw,3.15rem);
    margin-top:16px;
    margin-bottom:14px;
  }
  #rmh-mega-servicios .rmh-mega__intro--services p {
    max-width:32ch;
    font-size:13px;
    line-height:1.75;
  }
  #rmh-mega-servicios .rmh-mega__cards--services {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
  }
  #rmh-mega-servicios .rmh-mega-card__image {
    height:clamp(150px,11.8vw,194px);
  }
  #rmh-mega-servicios .rmh-mega-card__type {
    min-height:3.1em;
  }
  #rmh-mega-servicios .rmh-mega__facts {
    display:grid;
    gap:10px;
    margin-top:18px;
  }
  #rmh-mega-servicios .rmh-mega__fact {
    display:grid;
    gap:4px;
    padding:10px 0;
    border-top:1px solid #e7e1db;
  }
  #rmh-mega-servicios .rmh-mega__fact:last-child {
    border-bottom:1px solid #e7e1db;
  }
  #rmh-mega-servicios .rmh-mega__fact-title {
    font-size:11px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#172633;
    font-weight:800;
  }
  #rmh-mega-servicios .rmh-mega__fact-text {
    font-size:12px;
    line-height:1.6;
    color:#65727b;
  }
  #rmh-mega-servicios .rmh-mega__bottom--services {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0;
    padding:0;
    background:#f3efea;
    border-top:1px solid #e2ddd5;
    min-height:unset;
    align-items:stretch;
    justify-content:stretch;
  }
  #rmh-mega-servicios .rmh-mega__bottom--services a.rmh-mega-service-link {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:6px;
    min-height:92px;
    padding:18px clamp(18px,2vw,24px);
    white-space:normal;
    max-width:none;
    border-right:1px solid #e2ddd5;
  }
  #rmh-mega-servicios .rmh-mega__bottom--services a.rmh-mega-service-link:last-child {
    border-right:0;
  }
  #rmh-mega-servicios .rmh-mega-service-link__title {
    display:block;
    font-size:14px;
    line-height:1.35;
    font-weight:770;
    color:#283742;
  }
  #rmh-mega-servicios .rmh-mega-service-link__meta {
    display:block;
    font-size:12px;
    line-height:1.6;
    color:#69757e;
  }
}

@media (min-width:1121px) and (max-width:1360px) {
  #rmh-mega-servicios .rmh-mega__content--services {
    grid-template-columns:minmax(250px,315px) minmax(0,1fr);
    gap:28px;
    padding-inline:24px;
  }
  #rmh-mega-servicios .rmh-mega__cards--services {
    gap:16px;
  }
}


/* 2026-10-10: ajustes solicitados en servicios */
@media(min-width:1121px){
  #rmh-mega-servicios .rmh-mega__content--services{grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:34px;}
  #rmh-mega-servicios .rmh-mega__intro--services h2{font-size:clamp(2.05rem,2.55vw,3rem);line-height:1.08;overflow:visible;}
  #rmh-mega-servicios .rmh-mega__cards--services{gap:18px;}
  #rmh-mega-servicios .rmh-mega-card--six .rmh-mega-card__image{height:auto;aspect-ratio:1 / 1;}
  #rmh-mega-servicios .rmh-mega-card--six .rmh-mega-card__title{font-size:clamp(13px,1.05vw,15px);line-height:1.38;}
}
.page-services .services-grid .service-card,.services-page .services-grid .service-card,.page-servicios .services-grid .service-card{border-radius:0;}
.services-grid .service-card__photo{height:auto;aspect-ratio:1 / 1;}
.services-grid .service-card__photo img{width:100%;height:100%;object-fit:cover;}
@media(max-width:640px){#rmh-mega-servicios .rmh-mega__intro--services h2{line-height:1.06;}}


/* 2026-10-11 — Ajustes finales solicitados:
   - Heading del megamenú sin corte dentro de “Transformamos”
   - Tarjetas visualmente más cuadradas en desktop
   - Grid de “Por servicio” limitado a los 6 servicios oficiales */
@media (min-width:1121px) {
  #rmh-mega-servicios .rmh-mega__content--services {
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  #rmh-mega-servicios .rmh-mega__intro--services h2 {
    font-size: clamp(1.95rem, 2.15vw, 2.7rem);
    line-height: 1.06;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    text-wrap: balance;
    max-width: 11ch;
  }
  #rmh-mega-servicios .rmh-mega__intro--services p {
    max-width: 29ch;
  }
  #rmh-mega-servicios .rmh-mega__cards--services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    grid-auto-rows: 1fr;
  }
  #rmh-mega-servicios .rmh-mega-card--six {
    display: grid;
    grid-template-rows: auto auto minmax(0, auto) 1fr;
    align-content: start;
  }
  #rmh-mega-servicios .rmh-mega-card--six .rmh-mega-card__image {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  #rmh-mega-servicios .rmh-mega-card--six .rmh-mega-card__index {
    margin-top: 10px;
  }
  #rmh-mega-servicios .rmh-mega-card--six .rmh-mega-card__title {
    line-height: 1.3;
  }
  #rmh-mega-servicios .rmh-mega-card--six .rmh-mega-card__type {
    min-height: 2.8em;
  }
}


/* 2026-10-11 services menu compact */
#rmh-mega-servicios .rmh-mega-card--service-compact .rmh-mega-card__image{aspect-ratio:1/1;height:auto;}
