* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Arial', sans-serif;
    color: #333333;
    background: #ffffff;
}

ul {
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

.banner{
    background-image: linear-gradient(rgba(13, 56, 51, 0.72), rgba(13, 56, 51, 0.72)), url(../../img/photos/local-interior.webp);
    background-position:  center 60%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 380px;
    height: 50vh;
    margin-bottom: 8rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.banner h1{
    font-family: 'Arial', sans-serif;
    color: white;
    font-size: clamp(3rem, 7vw, 5.6rem);
    margin-bottom: 20px;
}

.banner p{
    font-family: 'Arial', sans-serif;
    color: rgb(198, 198, 198);
    max-width: 680px;
    padding: 0 1.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
}


.historia{
    display: flex;
    justify-content: center;
    align-items: center;
    align-items: center;
    padding: 0 7rem 8rem;
}

.contenedor{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(1100px, 100%);
    gap: 6rem;
    align-items: center;
}

.img-local img{
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 18px 18px 0 #bfe5e4;
}

.texto-his{
    text-align: left;
}

.texto-his h2{
    font-family: 'Arial', sans-serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 2rem;
}

.texto-his p{
    font-family: 'Arial', sans-serif;
    color: #555555;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}


.valores-principales {
    padding: 8rem 7rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: aliceblue;
    gap: 2rem;
}


.valores-principales .tarjetitas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    width: min(1100px, 100%);
    margin: 0 auto;
}

.valores-principales .tarjeta {
    min-width: 0;
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valores-principales .tarjeta:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.valores-principales .tarjeta h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.valores-principales .tarjeta p {
    color: #666666;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.cta-nosotros {
    padding: 5rem 1.5rem;
    color: #ffffff;
    text-align: center;
    background: #0d3833;
}

.cta-nosotros h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-nosotros p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-nosotros a {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: #ffffff;
    background-color: #009e8c;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.cta-nosotros a:hover {
    background-color: #08796e;
}




@media (max-width: 1024px) {

    .banner h1,
    .texto-his h2 {
        font-size: clamp(2.2rem, 6vw, 4rem);
    }

    .contenedor {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .texto-his,
    .tarjeta {
        overflow-wrap: break-word;
    }
}

@media (max-width: 900px) {
    .contenedor {
        gap: 2rem;
    }

    .contenedor-doctora-info {
        gap: 3rem;
    }

    .historia,
    .valores-principales {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .valores-principales {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .valores-principales .tarjetitas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .valores-principales .tarjeta {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {


    .historia,
    .valores-principales {
        padding-left: 1rem;
        padding-right: 1rem;
    }

}

@media (max-width: 650px) {

    .banner {
        min-height: 320px;
        margin-bottom: 5rem;
    }

    .banner h1 {
        font-size: clamp(2.3rem, 11vw, 3.5rem);
        line-height: 1.1;
    }

    .banner p,
    .texto-his p,
    .info-doctora p,
    .valores-principales .tarjeta p,
    .cta-nosotros p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .historia {
        display: grid;
        grid-template-columns: 1fr;
        padding-bottom: 5rem;
    }

    .contenedor {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        grid-template-columns: 1fr;
    }

    .texto-his h2,
    .info-doctora h2,
    .valores-principales h1,
    .cta-nosotros h2 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .img-local {
        margin-right: 0;
    }

    .img-local img {
        width: 100%;
        box-shadow: 10px 10px 0 #bfe5e4;
    }

    .doctora {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .img-doctora img {
        height: 300px;
    }

    .valores-principales {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .valores-principales h1 {
        margin-bottom: 2rem;
    }

    .valores-principales .tarjetitas {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .valores-principales .tarjeta {
        width: 100%;
        padding: 1.25rem;
    }
}