@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');


:root {
    --Red: hsl(0, 78%, 62%);
    --Cyan: hsl(180, 62%, 55%);
    --Orange: hsl(34, 97%, 64%);
    --Blue: hsl(212, 86%, 64%);
    --VeryDarkBlue: hsl(234, 12%, 34%);
    --GrayishBlue: hsl(229, 6%, 66%);
    --VeryLightGray: hsl(0, 0%, 98%);
    --azulpielclinic: rgba(0, 52, 81, 0.6);
    --grispielclinic: #706f6f;
    --link: #006ed1;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    color: var(--VeryDarkBlue);
    background-image: url(images/Fondo.png);
    background-repeat: no-repeat;
    background-size: cover;
}


.container {
    margin: 40px 30px;
}

.container2 {
    margin: 40px 30px;
}

/* Header */

header {
    text-align: center;
    margin: 0 0px 0 -15px;
}

.contenedor {
    position: relative;
    display: inline-block;
    box-sizing: content-box;
}

.contenedor img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    box-shadow: 3px 2px 10px var(--azulpielclinic);
}

.texto1 {
    margin-left: 10px;

    position: absolute;
    color: white;
    background-color: var(--azulpielclinic);
    border-radius: 50px;

    top: 110px;
    right: 100px;
    font-size: 30px;
    padding: 5px 15px 5px 15px
}


header h1 {
    font-weight: 200;
    font-size: 1.6em;
    margin: 0;
    animation: leftright 1000ms;
}

header h2 {
    text-align: center;
    font-weight: 600;
    font-size: 1.6em;
    margin: 0;
    color: white;
    border-radius: 50px;
    background-color: var(--azulpielclinic);
    animation: rightleft 1000ms;
}

.texto2 {
    text-align: center;

}

.texto2 p {
    font-size: 1.20em;
    color: var(--grispielclinic);
    margin-bottom: 40px;
    animation: updown 1000ms;
}





/* CardsContainer */

.cardscontainer {
    max-width: 500px;
    margin: 0 auto;
    animation: downup 1000ms;
}

.cardscontainer h2 {
    font-weight: 900;
    color: var(--azulpielclinic);

}

.cards {
    border-radius: 8px;
    background-color: var(--VeryLightGray);
    box-shadow: 3px 10px 10px var(--azulpielclinic);
    margin-bottom: 60px;
    min-width: 310px;
    max-width: 500px;
    height: 222px;
    overflow: hidden;
}

.card1 .line {
    background-color: var(--azulpielclinic);
    height: 4px;
}

.card2 .line {
    background-color: var(--azulpielclinic);
    height: 4px;
}

.card3 .line {
    background-color: var(--azulpielclinic);
    height: 4px;
}

.card4 .line {
    background-color: var(--azulpielclinic);
    height: 4px;
}

.cardscontainer a {
    color: var(--link);
}

.cardscontainer a:hover {
    color: var(--azulpielclinic);
}

.content {
    padding: 20px;
}

.content h2 {
    margin-top: 0;
}

.content p {
    color: var(--azulpielclinic);
    font-size: 0.85em;
    margin: -15px 0 0px 0;
}

.p1 {
    font-size: 14px;
}

.image {
    text-align: right;
}

.image2 {
    text-align: right;
}

.image2 img {

    border-radius: 150%;
}

.image3 {
    text-align: right;
}

.image3 img {

    border-radius: 15px;
}

/* Footer */

.footercontainer {
    animation: leftright 1000ms;

}

.attribution {
    color: var(--azulpielclinic);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}



/* Footer REdes */

.socialcontainer {
    text-align: center;
    animation: rightleft 1000ms;
}

.redes {
    width: 208px;
    display: inline-flex;
    justify-content: space-between;
}

.redes a {
    border: 2px solid #555559;
    text-decoration: none;
    color: #555559;
    width: 60px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    padding-top: 10px;
}

.redes a:hover {
    border-color: var(--azulpielclinic);
    color: var(--azulpielclinic);
    cursor: pointer;
}

/* 600px */

@media (min-width:600px) {

    header {
        text-align: center;
        max-width: 500px;
        max-height: 150px;
        margin-bottom: 30px;
    }

    .contenedor {
        position: relative;
        display: inline-block;

    }

    .contenedor img {
        object-fit: cover;
        text-align: center;
        width: 550px;
        height: 150px;
    }

    .texto1 {
        position: absolute;
        border-radius: 50px;
        top: 40px;
        right: 150px;
        font-size: 40px;
    }


    /* header {
        max-width: 525px;
        margin: 0 auto;
    }

    header h1 {
        font-size: 2.5em;
    }

    header h2 {
        font-size: 2.5em;
    } */
}

/* 780px */

@media (min-width:780px) {

    header {
        text-align: center;
        max-width: 500px;
        max-height: 150px;
        margin-bottom: 30px;
    }

    .contenedor {
        position: relative;
        display: inline-block;

    }

    .contenedor img {
        object-fit: cover;
        text-align: center;
        width: 710px;
        height: 150px;
    }

    .texto1 {
        position: absolute;
        border-radius: 50px;
        top: 65px;
        right: 40%;
        font-size: 40px;
        padding: 5px 15px 5px 15px
    }


    .cardscontainer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 60px;
        max-width: 900px;
    }

    .twocards {
        grid-column: 2/3;
        grid-row: 1/3;
    }

    .attribution {
        padding: 0 200px 0 200px;
    }
}

@media (min-width:1366px) {
    header {
        text-align: center;
        max-width: 500px;
        max-height: 150px;
        margin: 0 0px 0 300px;
        margin-bottom: 30px;
    }

}

@media (min-width:1440px) {



    header {
        text-align: center;
        max-width: 500px;
        max-height: 150px;
        margin: 0 0px 0 230px;
        margin-bottom: 30px;
    }

    .contenedor {
        position: relative;
        display: inline-block;
        width: 70%;
        height: 200px;
        padding-left: 15%;
        padding-right: 15%;

    }

    .contenedor img {
        object-fit: cover;
        text-align: center;
        width: 100%;
        height: 100%;

    }

    .texto1 {
        position: absolute;
        border-radius: 50px;
        top: 65px;
        right: 40%;
        font-size: 40px;

    }

    .texto2 {
        padding: 0 300px 0 300px;
    }


    .attribution {
        padding: 0 450px 0 450px;
    }


}


/* 1175px */

/* @media (min-width:1175px) {
    .cardscontainer {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 1200px;
    }

    .cards {
        width: 355px;
        height: 254px;
    }
} */

/* Animations */
@keyframes updown {
    0% {
        transform: translateY(-500px);
    }

    100% {
        transform: translateY(0px)
    }
}

@keyframes downup {
    0% {
        transform: translateY(500px);
    }

    100% {
        transform: translateY(0px)
    }
}

@keyframes leftright {
    0% {
        transform: translateX(-500px);
    }

    100% {
        transform: translateX(0px)
    }
}

@keyframes rightleft {
    0% {
        transform: translateX(500px);
    }

    100% {
        transform: translateX(0px)
    }
}