@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --blue: #00b8b8;
    --black: #333;
    --white: #fff;
    --light-color: #666;
    --light-bg: #eee;
    --border: 0.2rem solid rgba(0, 0, 0, 0.1);
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none !important;
    text-transform: none;
}

*::-webkit-scrollbar-track {
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--blue);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

section{
    padding: 7rem 2rem;
}

.heading{
    text-align: center;
    font-size: 4rem;
    color: var(--black);
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.link-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    background-color: var(--blue);
    cursor: pointer;
    font-size: 1.7rem;
    color: var(--white);
}

.link-btn:hover {
    background-color: var(--black);
    color: var(--white);
}

/* *Header */

.header {
    padding: 2rem;
    border-bottom: var(--border);
}

.header.active{
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border: 0;
}

.header .logo {
    font-size: 2.3rem;
    color: var(--black);
}

.header .logo span {
    color: var(--blue);
}

.header .nav a {
    margin: 0 1rem;
    font-size: 1.7rem;
    color: var(--black);
}

.header .nav a:hover {
    color: var(--blue);
}

#menu-btn {
    font-size: 2.5rem;
    color: var(--black);
    cursor: pointer;
    display: none;
}

section{
    padding: 7rem 2rem;
}

/* *Services */

.services{
    background-color: var(--light-bg);
}

.services .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(30rem, 1fr));
    gap: 2rem;
}

.services .box-container .box{
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 0.5rem;
}

.services .box-container .box img{
    margin: 1rem 0;
    height: 5rem;
}

.services .box-container .box h3{
    font-size: 2rem;
    padding: 1rem 0;
    color: var(--black);
}

.services .box-container .box p{
    font-size: 1.5rem;
    color: var(--light-color);
    line-height: 2;
}


.process .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
    padding-bottom: 5rem;
}

.process .box-container .box{
    background-color: var(--blue);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.process .box-container .box img{
    height: 5rem;
    margin: 1rem 0;
}

.process .box-container .box h3{
    font-size: 2rem;
    color: var(--white);
}

.process .box-container .box p{
    font-size: 1.5rem;
    color: var(--white);
    line-height: 2;
}

.process .box-container .box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process .box-container .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}


.reviews{
    background-color: var(--light-bg);
    padding-top: 80px;
}

.reviews .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.reviews .box-container .box{
    background-color: var(--white);
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.reviews .box-container .box img{
    height: 10rem;
    width: 10rem;
    border-radius: 100%;
}

.reviews .box-container .box p{
    padding: 2rem;
    line-height: 2;
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 0;
}

.reviews .box-container .box .stars{
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--light-bg);
    margin-bottom: 2rem;
    display: inline-block;
}

.reviews .box-container .box .stars i{
    font-size: 1.5rem;
    color: var(--blue);
}

.reviews .box-container .box h3{
    font-size: 2rem;
    color: var(--black);
}

.reviews .box-container .box span{
    font-size: 1.3rem;
    color: var(--light-color);
}

/* *Home */

.home {
    background: url(../img/364IAcentro_medico.jpg) no-repeat;
    background-size: cover;
}

.home .content{
    width: 66rem;
    padding: 1.25rem;
    min-height: 67vh;
}

.home .content h3{
    font-size: 4.5rem;
    text-transform: uppercase;
    color: var(--black);
}

.home .content p{
    line-height: 2;
    font-size: 1.46rem;
    color: var(--light-color);
    padding: 0.5rem 0;
    padding-right: 1.9rem;
}

.about .row{
    min-height: 60vh;
}

.about img{
    border-radius: 1.5%;
}

.about .content span{
    font-size: 2rem;
    color: var(--blue);
}

.about .content h3{
    font-size: 2.5rem;
    color: var(--black);
    margin-top: 2rem;
}

.about .content p{
    padding: 2rem 0;
    font-size: 1.5rem;
    color: var(--light-color);
    line-height: 2;
}

/* *Textos bajo el home */

.contact-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.contact-logo {
  max-width: 150px;
}

.contact-items {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #fff;
}

.contact-item i {
    margin-right: 0.8rem;
    color: #fff;
}



/* *Contact */

.contact form{
    border-radius: 0.5rem;
    background-color: var(--light-bg);
    padding: 2rem;
    margin: 0 auto;
    max-width: 50rem;
}

.contact form .message{
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    background-color: var(--blue);
    padding: 1.5rem 1rem;
    font-size: 1.7rem;
    color: var(--white);
    text-align: center;
}

.contact form .box{
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    background-color: var(--white);
    padding: 1.2rem 1.4rem;
    font-size: 1.5rem;
    color: var(--black);
}

.contact span{
    font-size: 1.2rem;
}


/* *Footer */

.footer{
    background-color: var(--white);
}

.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.footer .box-container .box{
    text-align: center;
}

.footer .box-container .box i{
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    line-height: 5rem;
    font-size: 2rem;
    background-color: var(--blue);
    color: var(--white);
    margin-bottom: 1rem;
}

.footer .box-container .box h3{
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--black);
}

.footer .box-container .box p{
    font-size: 1.5rem;
    color: var(--light-color);
    text-transform: none;
    line-height: 2;
}

.footer .credit{
    text-align: center;
    border-top: var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 1.7rem;
    color: var(--light-color);
    padding-bottom: 2rem;
}

.footer .credit span{
    color: var(--blue);
}

/* *Map */

.map-container {
    width: 80%;
    height: 450px;
    margin: 10px auto;
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 6rem;
  
    iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

    p{
        font-size: 1.7rem;
        color: var(--light-color);
        line-height: 2;
    }
}

/* *Gallery */

.gallery {
    padding: 15rem 15rem;
    text-align: center;
    background-color: var(--light-bg);
}

.gallery-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gallery-img {
    width: 200px; /* Ajusta según necesites */
    height: 150px; /* Ajusta para mantener proporción */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(2.3);
    z-index: 10;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}



/* *media queries */

@media (max-width: 991px) {
    html{
        font-size: 55%;
    }

    .header .link-btn {
        display: none;
    }

    section{
        padding: 5rem 2rem;
    }
}

@media (max-width: 768px) {

    .contact-bottom {
        font-size: 1rem;
    }
    
    section{
        padding: 3rem 1rem;
    }

    #menu-btn {
        display: inline-block;
        transition: transform 0.2s linear;
    }
    
    #menu-btn.fa-times {
        transform: rotate(180deg);
    }

    .header .nav {
        position: absolute;
        top: 99%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: var(--border);
        border-bottom: var(--border);
        padding: 1rem 0;
        text-align: center;
        flex-flow: column;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.2s linear;
    }

    .header .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .header .nav a {
        margin: 1rem 0;
        font-size: 2rem;
    }

    .home{
        background-position: left;
    }

    .home .content{
        width: auto;
    }

    .home .content h3{
        font-size: 3rem;
    }
}

.contact-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 25px;
    opacity: 0.8;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 600px) {
  .contact-bottom {
    flex-direction: column;
  }

  .contact-items {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 454px) {
    html{
        font-size: 50%;
    }

    .home .content h3{
        font-size: 3rem;
    }
    
    .heading{
        font-size: 3rem;
    }

    .header .link-btn {
        display: none;
    }
    .contact-bottom {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
}


.whatsapp-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
}

.whatsapp-btn img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease !important;
}

.whatsapp-btn:hover img {
    transform: scale(1.1) !important;
}