@import url('https://fonts.googleapis.com/css2?family=Saira+Semi+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

body, html {
    max-width:100%;
}

.container {
    max-width:100%;
    padding:0px;
}

.row {
    margin:0;
}

.hero-new-home {
    position: relative;
    overflow: hidden;
    background-color: #000839;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
}

.hero-new-home .filter-background-video {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.hero-medias {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-color: #000839;
}

.hero-new-home-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .9s ease-in-out;
}

.hero-new-home-video.is-active {
    opacity: 1;
}

.hero-new-home .container {
    position: relative;
    z-index: 1;
}

.hero-new-home  h3 {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    font-weight: 500;
    font-size: 80px;
    margin: 0;
    line-height:0.9;
}
.hero-new-home  p {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.3;
    margin: 15px 0;
    max-width:65%;
}
/* ---- slider del hero ---- */
.hero-slider {
    position: static;
}

.hero-slide-btn {
    display: inline-block;
    font-family: "Saira Semi Condensed", sans-serif;
    text-decoration: none;
    color: #fff;
    border: 1px #fff solid;
    padding: 10px 35px;
    border-radius: 30px;
    font-size: 14px;
    line-height: normal;
    margin-top: 15px;
    transition: background-color .3s ease, color .3s ease;
}

.hero-slide-btn:hover {
    background-color: #fff;
    color: #000839;
}

.hero-slides {
    position: relative;
    display: grid;
}

.hero-slide {
    grid-area: 1 / 1;
    /* todos los slides comparten la celda del más alto: centra el contenido
       para que los más cortos no queden pegados arriba */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease-in-out, visibility 0s linear .9s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .9s ease-in-out, visibility 0s;
}

.hero-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hero-slider-dot {
    position: relative;
    width: 60px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, .35);
    cursor: pointer;
    appearance: none;
    transition: background-color .3s ease, transform .3s ease;
}

/* área de click ampliada: la barra sigue siendo fina, pero se puede clickear
   una franja de ~24px de alto sin que se pisen los dots vecinos */
.hero-slider-dot::before {
    content: '';
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: -5px;
    right: -5px;
}

.hero-slider-dot:hover {
    background-color: rgba(255, 255, 255, .6);
    transform: scaleY(1.6);
}

.hero-slider-dot-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    border-radius: 2px;
    background-color: #0057b8;
}

.hero-slider-dot.is-filled .hero-slider-dot-fill {
    width: 100%;
}

.hero-slider-dot.is-active .hero-slider-dot-fill {
    animation: hero-dot-fill var(--hero-slider-duration, 6000ms) linear forwards;
}

@keyframes hero-dot-fill {
    from { width: 0; }
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .hero-slider-dot.is-active .hero-slider-dot-fill { animation: none; width: 100%; }
}

.hero-new-home-scroll {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: block;
    line-height: 0;
    animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

.hero-new-home-scroll img {
    width: 35px;
    height: auto;
    display: block;
    opacity:.6;
}

@keyframes hero-scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}


.explora-home {
    background-image:url('../img/block-02.jpg');
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.explora-home h5 {
    font-family: "Saira Semi Condensed", sans-serif;
    margin: 0;
    color: #fff;
    font-weight: 300;
    font-size: 40px;
}

.explora-home .anclas-btns {
    display: flex;
    background: rgb(255 255 255 / 70%);
    padding: 14px 30px;
    border-radius: 30px;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    margin: 50px auto 0px;
}

.explora-home .anclas-btns a {
    color: #000839;
    font-family: "Saira Semi Condensed", sans-serif;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

/* Menú de anclas fijo al pasar la sección
   (mantiene exactamente el estilo de la pastilla en la sección:
    mismo fondo translúcido, mismo padding/border-radius y mismo
    espaciado de botones gracias al ancho fijado por JS) */
.anclas-btns.is-fixed {
    position: fixed;
    top: 15px;
    left: 50%;
    z-index: 1000;
    margin: 0;
    transform: translate(-50%, 0);
    animation: anclas-entra .35s ease;
}

@keyframes anclas-entra {
    from { opacity: 0; transform: translate(-50%, -16px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}


.block-flc {
    background-image:url('../img/block-03.jpg');
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height:90vh;
}

.block-flc .container {
    margin-top: auto;
    margin-bottom: 50px;
}

.block-flc .tira-imgs {
    display: flex;
    align-items:center;
    justify-content:center;
}

.block-flc .tira-imgs a {
    flex:1;
    position:relative;
    display: inline-block;
    margin: 0px 5px;
}

.block-flc .tira-imgs a img {
    max-width:100%;
    height:auto;
}

.block-flc .tira-imgs a:hover .hover-img-txt {
    opacity:1;
    transition: .6s;
}

.block-flc .tira-imgs a .hover-img-txt {
    position: absolute;
    top:0;
    left:0;
    bottom:0;
    right:0;
    opacity:0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgb(0 13 89 / 27%);
    transition: .6s;
}

.block-flc .tira-imgs a .hover-img-txt h5 {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    font-size: 13px;
    margin: 0;
    line-height: 1;
    font-weight: 600;
    text-transform:uppercase;
}

.block-flc h6, .block-tori h6 {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-size: 17px;
}

.block-flc h3 {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    font-weight: 500;
    font-size: 85px;
    line-height: 0.9;
    margin: 0 0 20px;
}

.block-tori h3  {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    font-weight: 500;
    font-size: 85px;
    line-height: 0.9;
    margin: 0 auto 20px;
    max-width: 65%;
}

.block-flc p {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    margin: 0 auto 30px;
    font-size: 22px;
    max-width: 55%;
}

.extra-mod-flc {
    padding: 90px 0px 70px;
}

.extra-mod-flc .row {
    justify-content:center;
}

.extra-mod-flc .back-ext-mod {
    background-image:url('../img/backgorund-img-md-atencion.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 23px;
    width: auto;
}

.extra-mod-flc .back-ext-mod h4 {
    color: #fff;
    font-family: "Saira Semi Condensed", sans-serif;
    font-weight: 500;
    line-height: 1.2;
    font-size: 27px;
    max-width: 25%;
}

.extra-mod-flc .back-ext-mod img {
    max-width: 600px;
    margin: -30px -10px -10px;
}

.extra-mod-flc .back-ext-mod a {
    font-family: "Saira Semi Condensed", sans-serif;
    text-decoration: none;
    color: #fff;
    border: 1px #fff solid;
    padding: 10px 35px;
    border-radius: 30px;
    font-size: 14px;
    line-height: normal;
}


.block-tori p {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    margin: 0 auto;
    font-size: 22px;
        max-width: 55%;
}

.block-tori {
    background-image:url('../img/block-04.jpg');
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height:90vh;
}

.block-tori-txts {
    padding: 50px 0px;
}

.block-tori-txts p {
    color: #000d59;
    font-size: 20px;
    font-family: "Saira Semi Condensed", sans-serif;
    line-height: 1.4;
    margin: 0 auto 50px;
    max-width: 45%;
}

.extra-mod-cirugia {
    padding: 90px 0px 70px;
}

.extra-mod-cirugia .row {
    justify-content:center;
}

.extra-mod-cirugia .back-ext-mod {
    background-image:url('../img/backgorund-img-md-cirugia.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 23px;
    width: auto;
    padding:10px 0px;
}

.extra-mod-cirugia .back-ext-mod .content-txts-int {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    max-width: 27%;
}

.extra-mod-cirugia .back-ext-mod h4 {
    color: #fff;
    font-family: "Saira Semi Condensed", sans-serif;
    font-weight: 500;
    line-height: 1.2;
    font-size: 27px;
    margin: auto 0 20px;
}

.extra-mod-cirugia .back-ext-mod img {
    max-width: 600px;
    margin: -45px 0px -20px;
}

.extra-mod-cirugia .back-ext-mod a {
    font-family: "Saira Semi Condensed", sans-serif;
    text-decoration: none;
    color: #fff;
    border: 1px #fff solid;
    padding: 10px 35px;
    border-radius: 30px;
    font-size: 14px;
    line-height: normal;
    margin-bottom: auto;
}

.content-icons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-icons .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin: 0px 60px;
}

.content-icons .icon img {
    max-width: 90px;
    width: 100%;
    margin: auto 0px;
}

.content-icons .icon a {
    text-decoration: none;
    line-height: 1;
    border: 1px #000839 solid;
    border-radius: 30px;
    padding: 10px 30px;
    color: #000839;
    margin-top: 20px;
    font-size: 13px;
    font-family: "Saira Semi Condensed", sans-serif;
}


.block-hospi {
    background-image:url('../img/block-05.jpg');
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height:90vh;
}

.block-hospi h6 {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-size: 17px;
}

.block-hospi h3  {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    font-weight: 500;
    font-size: 85px;
    line-height: 0.9;
    margin: 0 auto 20px;
    max-width:65%;
}

.block-hospi p {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    margin: 0 auto;
    font-size: 22px;
        max-width: 60%;
}

.block-hospi-txts {
    padding: 50px 0px;
}

.block-hospi-txts p {
    color: #000d59;
    font-size: 20px;
    font-family: "Saira Semi Condensed", sans-serif;
    line-height: 1.4;
    margin: 0 auto 50px;
    max-width:45%;
}

.block-cuidado {
    position: relative;
    overflow: hidden;
    background-color: #000839;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height:90vh;
}

.block-cuidado-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.block-cuidado .container {
    position: relative;
    z-index: 1;
    margin-bottom: auto;
    margin-right: auto;
    margin-left: 0;
    margin-top: 80px;
}

.block-cuidado h3 {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    font-weight: 300;
    font-size: 65px;
    line-height: 1;
}

.block-cuidado p {
    font-family: "Saira Semi Condensed", sans-serif;
    color: #fff;
    font-size: 21px;
    font-weight: 400;
    margin: 20px 0 15px;
    line-height: 1.3;
}

.block-cuidado .col-12.col-md-4 {
    text-align:left;
}

.block-cuidado a {
    color: #fff;
    font-family: "Saira Semi Condensed", sans-serif;
    text-decoration: none;
    border: 1px #fff solid;
    border-radius: 30px;
    padding: 10px 35px;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
}

/* ---- contenedor general ---- */
.hr-fp{
  background:#eef1f5;
  padding:60px 20px;
  font-family:inherit; /* hereda la tipografía del sitio */
}

.hr-fp h3 {
    font-family: "Saira Semi Condensed", sans-serif;
    font-weight: 300;
    color: #000d59;
    font-size: 48px;
    margin: 0 0 40px;
}

.hr-fp *{ box-sizing:border-box; }
.hr-fp-wrap{ max-width:1140px; margin:0 auto; }

/* ---- tabs ---- */
.hr-fp-tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px 40px;
  margin-bottom:44px;
}
.hr-fp-tab{
    position:relative;
    background:none;
    border:none;
    cursor:pointer;
    padding:0 0 15px;
    font:inherit;
    font-size:16px;
    font-weight:500;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:#6b7b8a;
    transition:color .25s ease;
    font-family: "Saira Semi Condensed", sans-serif;
    letter-spacing: 0px;
}
.hr-fp-tab:hover{ color:#0e3a5f; }
.hr-fp-tab.is-active{ color:#0e3a5f; }
.hr-fp-tab::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:6px;
  border-radius:0px;
  background:linear-gradient(90deg,#0b63b8,#34c3f0);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .3s ease;
}
.hr-fp-tab.is-active::after{ transform:scaleX(1); }

/* ---- grilla de tarjetas ---- */
.hr-fp-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  transition:opacity .25s ease;
}
.hr-fp-grid.is-fading{ opacity:0; }

/* ---- tarjeta ---- */
.hr-fp-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  background:#fff;
  border-radius:0px 20px 0px 20px;
  padding:30px 22px 28px;
  box-shadow:0 10px 30px rgba(13,40,70,.06);
  transition:transform .25s ease, box-shadow .25s ease;
}
.hr-fp-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(13,40,70,.12);
}
.hr-fp-card-img{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:150px;
}
.hr-fp-card-img img{
  max-width:100%;
  max-height:170px;
  height:auto;
  object-fit:contain;
}
.hr-fp-card-title{
    margin: 20px 0 0;
    text-align: center;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    color: #051771;
    font-family: "Saira Semi Condensed", sans-serif;
}

.hr-fp-card:hover .hr-fp-vermas {
    background-color: #000839;
    color:#fff;
    transition:.6s;
}

.hr-fp-vermas {
    text-decoration: none;
    line-height: 1;
    border: 1px #000839 solid;
    border-radius: 30px;
    padding: 10px 30px;
    color: #000839;
    font-size: 14px;
    transition:.6s;
    font-family: "Saira Semi Condensed", sans-serif;
    text-align: center;
    display: inline-block;
    margin: 20px auto 0px;
}

/* ---- responsive ---- */
@media (max-width:992px){
  .hr-fp-grid{ grid-template-columns:repeat(2,1fr); }
}

/* corta palabras largas en los títulos grandes */
.block-flc h3, .block-tori h3, .block-hospi h3,
.hero-new-home h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* resetea los margins laterales negativos en mobile */
@media (max-width:767px) {
  .extra-mod-flc .back-ext-mod img,
  .extra-mod-cirugia .back-ext-mod img {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width:767px) {

    .block-hospi-txts p  {
        max-width:100%;
    }

    .extra-mod-cirugia .back-ext-mod .content-txts-int {
        max-width:100%;
        padding:0 10px;
    }

    .block-tori-txts p {
        max-width:100%;
    }

    .explora-home {
        min-height: inherit;
        padding: 50px 0px;
    }



    .hero-slider-dots {
        gap: 8px;
        bottom: 20px;
    }

    .hero-slider-dot {
        width: 40px;
    }

    .hero-new-home {
        padding: 30px 30px 60px;
        max-width: 100%;
        min-height: inherit;
    }

    .extra-mod-flc .back-ext-mod, .extra-mod-cirugia .back-ext-mod {
        flex-direction:column;
    }

    .extra-mod-flc .back-ext-mod img, .extra-mod-cirugia .back-ext-mod img {
        max-width:100%;
    }

    .content-icons {
        flex-direction: column;
    }

    .hero-new-home h3 {
        font-size: 47px;
    }
    .hero-new-home p {
        font-size: 19px;
        max-width:100%;
    }
    .hero-new-home-scroll img {
        width: 32px;
    }
    .hero-new-home-scroll {
        bottom: 15px;
    }

    .explora-home h5 {
        font-size: 35px;
    }

    .explora-home .anclas-btns {
        flex-direction: column;
        margin: 30px auto 0px;
    }

    .block-flc .tira-imgs a .hover-img-txt {
        opacity: 1;
    }

    .explora-home .anclas-btns a {
        font-size: 17px;
        margin:10px 0px;
    }

    .anclas-btns.is-fixed {
        top: 10px;
        display:none;
    }

    .block-flc h3, .block-tori h3 {
        font-size:47px;
            max-width: 100%;
            margin-top:10px;
    }

    .block-flc p, .block-tori p {
        font-size:15px;
            max-width: 100%;
    }

    .content-icons .icon {
        margin:15px 0px;
    }

    .block-hospi h3 {
        font-size:47px;
        max-width:100%;
    }

    .hr-fp h3 {
        font-size:33px;
    }

    .block-hospi p {
        font-size:15px;
        max-width:100%;
    }

    .hr-fp-tabs {
        flex-direction: column;
        max-width: 70%;
        margin: 0 auto;
    }

    .extra-mod-cirugia .back-ext-mod h4 {
        font-size: 23px;
        margin: 35px 0 20px;
        text-align:center;
    }

    .extra-mod-cirugia .back-ext-mod a {
        margin:0 auto 30px;
    }

    .extra-mod-cirugia.cust-res  .back-ext-mod a {
        margin-bottom: 80px;
    }

    .extra-mod-flc .back-ext-mod h4 {
        margin-bottom: 45px;
        margin-top: 30px;
        max-width: 100%;
        text-align:center;
        padding:0px 10px;
    }

    .extra-mod-flc .back-ext-mod a {
        margin:40px 0px 30px;
    }

    .block-cuidado {
        min-height: inherit;
        padding-bottom: 80px;
    }

    .block-flc {
        min-height: inherit;
        padding: 50px 0px 0px;
    }

    .block-flc .tira-imgs {
        flex-direction: row;
        flex-wrap:wrap;
    }

    .block-flc .tira-imgs a {
        flex: 0 0 40%;
        margin: 5px;
    }

    .block-tori {
        min-height: 45vh;
    }

    .block-hospi {
        min-height:50vh;
    }

}

@media (max-width:560px){
  .hr-fp-grid{ grid-template-columns:1fr; }
  .hr-fp-tabs{ gap:12px 22px; }
}