* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scrollbar-color: var(--primaryColor) var(--lightGrey);
}


:root {
    /* Colores */
    --primaryColor: #036AAC;
    --secondaryColor: #35B5E4;
    --white: #F5F5F5;
    --dark-black: #1B1B1B;
    --lightGrey: #f5f5f5fa;
    --darkGrey: #788475;
    
    /* Fuentes */
    --font-poppins-regular: "Poppins", sans-serif;
    --font-poppins-regular-weight: 400;
    --font-poppins-regular-style: normal;
    
    --font-poppins-medium: "Poppins", sans-serif;
    --font-poppins-medium-weight: 500;
    --font-poppins-medium-style: normal;
    
    --font-poppins-semibold: "Poppins", sans-serif;
    --font-poppins-semibold-weight: 600;
    --font-poppins-semibold-style: normal;
    
    --font-poppins-bold: "Poppins", sans-serif;
    --font-poppins-bold-weight: 700;
    --font-poppins-bold-style: normal;
}

body {
    background-color: var(--lightGrey);
    min-height: 100vh;
    scroll-behavior: smooth;
}
button {
  border: 0;
  padding: 0;
  font-family: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.navbar {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  background: transparent;
  color: var(--white);
  font-family: "Poppins";
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.fixed {
    /* Color de fondo negro */
    background-color: var(--dark-black);
}

.logo-novamed {
    width: 190px;
    height: auto;
}

@media only screen and (min-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 0 0 0 16px;
  }
}

.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.navbarHorizontalRule{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--white);
    height: 5px;
    border-radius: 6.25rem;
    @media(min-width: 768px){
        display: none;
    }
}

body.open .navbar-overlay {
  visibility: visible;
  opacity: 1;
}

@media only screen and (min-width: 768px) {
  .navbar-overlay {
    display: none;
  }
}

.navbar-burger {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
}

@media only screen and (min-width: 768px) {
  .navbar-burger {
    display: none;
  }
}

.navbar-menu {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  translate: -100% 0;
  width: 270px;
  height: 100%;
  padding: 20px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--dark-black);
  visibility: hidden;
  transition: translate 0.3s;
}

body.open .navbar-menu {
  translate: 0 0;
  visibility: visible;
}

@media only screen and (min-width: 768px) {
  .navbar-menu {
    position: static;
    translate: 0 0;
    width: auto;
    background: transparent;
    flex-direction: row;
    visibility: visible;
  }
}


.navbar-menu > button {
    color: var(--white);
    background: transparent;
    padding: 0 8px;

}

.navbar-menu > button.active {
    color: inherit;
}

button > a {
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s ease;
    @media(max-width: 768px){
        font-size: 1.5rem;
    }
}

button > a:hover{
    color: var(--primaryColor);
}

.logo-container {
    text-align: center;
    order: -1;
}
.novamed-logo-lg {
    width: 80%;
    height: auto;
    margin-left: auto;
    margin-right: auto;

}

.headline-1 {
    font-size: 2rem;
    font-size: clamp(2rem, -3.894736842105263rem + 10.526315789473683vw, 4rem);
    color: var(--white);
    position: relative;
    @media(max-width: 900px){
        text-align: center;
    }
}

.hero-paragraph {
    color: var(--white);
    font-size: 1rem;
    font-size: clamp(1rem, -0.8076923076923077rem + 3.8461538461538463vw, 1.5rem);
    margin: 24px 0;
    @media(min-width: 480px) {
        text-align: center;
    }
    @media(min-width: 900px) {
        text-align: left;
    }
}


h2 > a, .contact-link-wrapper > a {
    text-decoration: none;
    color: transparent
}
.hero {
    width: 100vw;
    height: 100vh;
    background-image: url("/assets/imgs-webp/hero-image-mobile.webp");
    background-repeat: no-repeat;
    background-position: left;
    background-size: cover;
    z-index: -9999;
    display: flex;
    justify-content: center;
    align-items: center;

    @media(min-width: 900px){
        width: 100%;
        background-image: url("/assets/imgs-webp/novamed-logo-desktop.webp");
    }
}

.hero-flex {
    height: 70%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    @media(min-width: 900px) {
        flex-direction: row-reverse;

    }
}

.hero-info{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    @media(min-width: 900px) {
        width: calc(50% - 2rem);

    }
}



.primaryColor {
    color: var(--primaryColor);
}

.secondaryColor {
    color: var(--secondaryColor);
}

/* Tamaño Bold de la fuente */
.bold {
    font-weight: 600;
}

/* .sectionFirst .heading  */
.nova {
    color: var(--primaryColor);
    /* Color para 'Nova' */
}

/* .sectionFirst .heading  */
.med {
    color: var(--secondaryColor);
    /* Color para 'med' */
}


.hero-buttons-container a,
.hero-buttons-container a:first-child,
.hero-buttons-container a:last-child {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    border: 0.063rem solid var(--primaryColor);
    border-radius: 6.25rem;
    box-shadow: .25rem .25rem 1.5rem 0px var(--dark-black);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-buttons-container a:first-child {
    background-color: transparent;
    border: 0.063rem solid var(--white);
    color: var(--white);
    box-shadow: .25rem .25rem 1.5rem 0px var(--dark-black);
}

.hero-buttons-container a:last-child {
    background-color: var(--primaryColor);
    color: var(--white);
}

.hero-buttons-container a:hover {
    background-color: var(--secondaryColor);
    color: var(--white);
}

.hero-buttons-container a:first-child:hover {
    background-color: var(--white);
    color: var(--primaryColor);
}

.hero-buttons-container a,
.hero-buttons-container a:first-child,
.hero-buttons-container a:last-child  {
    font-size: 0.7rem;
    font-size: clamp(0.7rem, -0.07027027027027055rem + 3.2432432432432443vw, 1rem);
    @media(min-width: 768px){
        font-size: 1rem;
        font-size: clamp(1rem, -1rem + 4.166666666666666vw, 1.5rem);
    }
}

.hero-buttons-container {
    margin: 24px auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
    @media(min-width: 900px){
        justify-content: flex-start;
    }
}

.hero-buttons-container > a {
    text-decoration: none;
}


.address {
    color: var(--white);
    font-size: 0.5rem;
    font-size: clamp(0.5rem, -3.071428571428571rem + 14.285714285714285vw, 1.5rem);
    line-height: 1.2em;
    @media(max-width: 900px) {
        text-align: center;
    }
}

/* UNDERLINE DE LOS ELEMENTOS H2 */

.underline {
    display: inline-block;
    position: relative;
}

.underline:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 10px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #036AAC 50%, #35B5E4 50.5%);;
    transform-origin: bottom right;
    transition: transform 0.6s ease-out;
}

.underline:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.underlineNav {
    display: inline-block;
    position: relative;
}

.underlineNav:after {
    content: '';
    position: absolute;
    width: 80%;
    transform: scaleX(0);
    height: .3rem;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #036AAC 50%, #35B5E4 50.5%);;
    transform-origin: bottom right;
    transition: transform 0.6s ease-out;
}

.underlineNav:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
    border-radius: 6.25rem;
}

/* .aboutUs  */

.aboutUs {
    padding: 5rem 1%;
    color: var(--dark-black);
    max-width: 90%;
    margin: 0 auto;
}

.content-wrapper {
    padding: 3rem;
    background: var(--white);
    border-radius: .5rem;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 7rem;
    flex-wrap: wrap;

    @media(max-width: 850px) {
        flex-direction: column;
        gap: 3rem;
    }

    @media(max-width: 450px){
        padding: 2rem;
        gap: 2rem;
    }
}

.aboutUs .text-content {
    flex: 1;
    min-width: 300px;
    @media(max-width: 400px) {
        min-width: auto;
    }
}

.section-title {
    font-size: 2rem;
    font-size: clamp(2rem, -0.36842105263157876rem + 7.017543859649122vw, 3rem);
    color: var(--primaryColor);
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.horizontalRule {
    width: 80%;
    height: .6rem;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, #036AAC 50%, #35B5E4 50.5%);
    border-radius: 6.25rem;
}

.horizontalRule .hrCard {
    width: 40%;
    margin-top: .5rem;

}

.horizontalRule .hrFwCard {
    width: 20%;
    margin-top: .5rem;

}

.aboutUs .description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.aboutUs .image-content {
    flex: 1;
    min-width: 100px;
}

.aboutUs .image-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: .5rem;
}

.cards-section {
    padding: 4rem 2%;
    color: var(--dark-black);
    padding: 2rem;
    margin-top: 1.875rem;

}
@media(max-width: 500px){
    .cards-section {
        padding: 0;
    }
}


.cards-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    /* padding: 2rem; */
    /* Añadir espacio interno para separar las cards del borde */
    border-radius: .5rem;
    /* Redondear bordes del fondo interno */
}
@media(max-width: 900px) {
    .cards-wrapper {
        flex-direction: column;
    }
}
.card {
    flex: 1;
    width: 100%;
    padding: 2rem;
    border-radius: .5rem;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.3);
    background-color: var(--white);
    

    @media(min-width: 540px) {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        /* max-width: calc(100% - 1rem); */
    }
}

@media(min-width: 540px) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.5);
    }
}

.card-fullwidth {
    min-width: 100%;
    /* width: 80%; */
    margin-left: auto;
    margin-right: auto;
    padding: 5rem;
    border-radius: .5rem;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.3);
    @media(min-width: 540px) {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}
@media(min-width: 540px) {
    .card-fullwidth:hover {
        transform: translateY(-5px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.5);
    }
}
@media(max-width: 900px) {
    .card-fullwidth{
        padding: 2rem;
    }
}
.card-title {
    font-size: 1.5rem;
    font-size: clamp(1.5rem, 0.3157894736842106rem + 3.508771929824561vw, 2rem);
    color: var(--white);
    background-color: var(--primaryColor);
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem .2rem;
    border-radius: .5rem;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.3);
}

.card-description {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.card-list {
    list-style-type: none;
    padding: 0;
    margin-top: 1rem;
}

.card-list li {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primaryColor);
    font-weight: bold;
}

.coverage {
    padding: 5rem 1%;
    color: var(--dark-black);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;

    @media(max-width: 400px) {
        max-width: 80%;
    }
}

.coverage-wrapper {
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;

    @media (max-width: 450px) {
        gap: 0;
    }
}

.coverage-container{
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: repeat(6, 1fr);
    grid-gap: 1.25rem;
}
@media(max-width: 653px) {
    .coverage-container{
        grid-gap: 3rem;
    }
}
@media(max-width: 652px) {
    .coverage-container {
        grid-template-columns: none;
    }
}

.beneficts-container {
    border-radius: .5rem;
    background-color: var(--white);
    
    display: grid;
    grid-template-columns: 25% 75%;
    align-items: center;
    
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.3);
}

@media(max-width: 910px) {
    .beneficts-container {
        grid-template-rows: 50% 25%;
        grid-template-columns: none;
    }
}

.benefict-image {
    width: 96px;
    height: auto;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.beneficts-image {
    width: 96px;
    height: auto;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.benefics-description {
    font-size: 1rem;
    font-family: var(--font-poppins-medium);
    font-weight: var(--font-poppins-medium-weight);
    padding: 1rem;
}

.coverage-news {
    width: 100%;
    padding: 5rem 1%;
}

.margin-h2{
    margin-left: 10%;
}

.news-container {
    background: var(--white);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    border-radius: .5rem;
    box-shadow: .25rem .25rem 1.5rem 0 rgba(27, 27, 27, 0.25);

    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 1.5rem;
    @media(max-width: 950px){
        grid-template-columns: none;
        grid-column: unset;

    }

}

.news-subtitle {
    font-size: 1.2rem;
    font-size: clamp(1.2rem, 0.44999999999999984rem + 3.0000000000000004vw, 1.5rem);
    margin-bottom: 1rem;
}

.glasses-container{
    text-align: center;
}

.news-img {
    width: 90%;
    max-width: 250px;
}

.floating { 
    animation-name: floating;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    margin-top: .5rem;
}
 
@keyframes floating {
    0% { transform: translate(0,  0px); }
    50%  { transform: translate(0, 25px); }
    100%   { transform: translate(0, -0px); }   
}

.news-desc-info{
    font-weight: bold;
}

.news-requirements{
    margin-left: 1.5rem;
}

.news-requirements li{
    font-weight: bold;
}

.news-adventage{
    color: var(--dark-black);
}

.telephone-copy-container {
    width: 90%;
    max-width: 300px;
    background-color: var(--primaryColor);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border-radius: 6.25rem;
}

.news-contact-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.telephone-number {
    font-size: 1.2rem;
    font-size: clamp(1.2rem, 0.44999999999999984rem + 3.0000000000000004vw, 1.5rem);
    text-align: center;
}

/* ELEMENTOS GRID DE LA SECCION CONVENIOS */

.agreement-card {
    @media(max-width: 610px) {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }

    @media(max-width: 380px) {
        width: 80%;
    }

}

.agreement-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-gap: 2rem;

    @media(max-width: 980px) {
        grid-template-rows: repeat(4, 1fr);
        grid-template-columns: repeat(2, 1fr);
    };
    @media(max-width: 610px) {
        grid-template-rows: repeat(12, 1fr);
        grid-template-columns: 1fr;
        font-size: 1rem;
    }
}

.agreement-card-image {
    width: 100%;
    height: auto;
    border-radius: .5rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.agreement-image-container{
    text-align: center;
}

.agreement-name {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.agreement-contact-container{
    cursor: pointer;
}
.agreement-label-container{
    display: inline;
}

.agreement-label{
    font-weight: 600;
}

.agreement-card-direction {
    margin-bottom: 1rem;
}

.agreement-telephone{
    width: 100%;
}

.number-copied {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    padding: .5rem;
    background-color: var(--primaryColor);
    color: var(--white);
    font-size: 1rem;
    border-radius: .5rem;
    animation: fadeOut 3s;
    opacity: 0;
    display: none;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.contact {
    padding: 5rem 1%;
    color: var(--dark-black);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;

    @media(max-width: 450px) {
        max-width: 100%;
    }
}

.contact-wrapper{
    margin-left: auto;
    margin-right: auto;
    background-color: var(--white);
    box-shadow: .25rem .25rem 1.5rem 0 rgba(27, 27, 27, 0.25);
    border-radius: .5rem;
}

.contact-section-container {
    width: 100%;
    display: grid;
    grid-template-columns: 40% 60%;

    @media(max-width: 1020px) {
        grid-template-columns: none;
    }
}

.contact-img {
    width: 100%;
    height: auto;
}

.ContactUs-subtitle{
    font-size: 1.5rem;
    font-size: clamp(1.5rem, 0.6666666666666667rem + 2.7777777777777777vw, 2rem);
    color: var(--primaryColor);
    margin: 2rem;
    @media(max-width: 480px) {
        text-align: center;
    }
}

.contact-underline {
    display: inline-block;
    position: relative;
}

.contact-underline:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #036AAC 50%, #35B5E4 50.5%);
}

.contactUs-paragraph{
    color: var(--dark-black);
    margin: 1rem;
}

.contact-link-wrapper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 3rem;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 1rem;

    @media(max-width: 700px){
        grid-template-columns: none;
    }

}
.telephone-container{
    width: 300px;
    background-color: var(--primaryColor);
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    text-align: center;
    border-radius: 6.25rem;
}
.contact-container{
    max-width: 350px;
    background-color: var(--primaryColor);
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    text-align: center;
    border-radius: 6.25rem;

    display: grid;
    grid-template-columns: 2fr 1fr;
    justify-content: center;
    align-items: center;
    grid-gap: .5rem;

    @media(max-width: 1022px){
        width: 250px;
    }
}

.contact-options-container{
    @media(max-width: 1020px){
        padding-bottom: 2rem;
    }
}

.person-number{
    color: var(--white);
    font-size: 1.2rem;
}

.email-container{
    width: 250px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--primaryColor);
    border-radius: 6.25rem;
    padding: 1rem 2rem;
    margin-bottom: 2rem;

    display: grid;
    grid-template-columns: 2fr 1fr;
}

.contact-email-text {
    color: var(--white);
    font-size: 1.2rem;
}

.paragraph-center{
    text-align: center;
}

.map-container{
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.google-maps-api{
    width: 80%;
    border-radius: .5rem;
    border-style: none;
    box-shadow: .20rem .20rem .7rem 0px var(--dark-black);
}

.direction-info{
    text-align: center;
}

.direction-bold{
    font-weight: 700;
}

.send-cv{
    /* width: 100%; */
    cursor: pointer;
    font-size: 1.5rem;
    text-align: center;
    text-decoration-line: underline;
    padding-top: 2rem;
    margin-bottom: 1rem;

}

.footer {
    background-color: var(--primaryColor);
    color: var(--white);
    /* height: 50px; */
    text-align: center;
}

.footer-elements-container{
    width: 90%;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;

    @media(max-width: 540px) {
        grid-template-columns: none;
        grid-template-rows: 1fr 1fr;
    }
}

.credits-footer {
    color: var(--white);
    text-decoration-line: underline;
}

@media(max-width: 380px) {
    .news-container{
        width: 100%;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ANIMACION SCROLL EN IMAGENES CON CSS */
@keyframes show {
    from {
        opacity: 0;
        scale: 25%;

    }

    to {
        opacity: 1;
        scale: 100%;
    }
}

.img-animation {
    view-timeline-name: --image;
    view-timeline-axis: block;
    animation-timeline: --image;
    animation-name: show;
    animation-range: entry 25% cover 40%;
    animation-fill-mode: both;
}