* {
    box-sizing: border-box;
}

div, body, head, ul, li, a, span, label, h1, h2, h3, h4, h5, p {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat';
    width: 100%;
}

html, body {
    scroll-behavior: smooth;
}



/* ----- HEADER SECTION ----- */

.header {
    background-color: ghostwhite;
    height: 10dvh;
    box-shadow: 0 0 8px black;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 30;
}

.header__logo {
    width: 6rem;
    animation: aparecer 1s both ease;
}

.header__a {
    padding-right: .5rem;
    padding-top: .6rem;
}



/* ----- HOME SECTION ----- */

.home__wrapper {
    width: 100%;
    height: 90dvh;
    overflow: hidden;
    margin-bottom: 10dvh;
}

.home__wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(5px);
    position: relative;
}

.header__gradient {
    width: 100%;
    height: 80dvh;
    background-image: linear-gradient(#000000ce 60%,#00000000);
    position: absolute;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.home__paragraph, .home__title, .home__paragraph2, .home__title2 {
    text-align: center;
    color: rgba(255, 255, 255, 0.718);
}

.home__title {
    font-size: 4.6rem;
    animation: aparecer-texto 1.5s both ease-in-out;
}

.home__title2 {
    font-size: 4.6rem;
    animation: aparecer-texto 1.5s .3s both ease-in-out;
}

.home__paragraph {
    font-size: 1.5rem;
    animation: aparecer-texto 1.5s .6s both ease-in-out;
}

.home__paragraph2 {
    font-size: 1.5rem;
    animation: aparecer-texto 1.5s .9s both ease-in-out;
}

.p__container1, .p__container2, .h1__container1, .h1__container2 {
    overflow: hidden;
}

.h1__container1 {
    margin-top: 5rem;
    margin-bottom: .2rem;
}

.p__container1 {
    margin: 1.5rem .6rem;
    margin-bottom: .3rem;
}

@keyframes aparecer-texto {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* ----- ABOUT SECTION ----- */

.about__section {
    min-height: 90dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about__section__title {
    text-align: center;
    font-size: 2.3rem;
    text-decoration: underline;
    animation: aparecerscroll-reverse both;
    animation-timeline: view();
    animation-range: entry 50% cover 80%;
}

.about__section__paragraph__container {
    text-align: center;
    background-color: #a8d5ba;
    margin: 4dvh 0;
    padding: 2rem 1rem;
    border-radius: 30px;
    width: 95%;
    animation: aparecerscroll both;
    animation-timeline: view();
    animation-range: entry 45% cover 55%;
}

@keyframes aparecerscroll {
    from {
        transform: translateY(8dvh);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes aparecerscroll-reverse {
    from {
        transform: translateY(-8dvh) scale(.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


.about__section__paragraph {
    line-height: 1.4;
}

.paragraph1 {
    background-color: #4CAF50;
}

.paragraph2 {
    background-color: #008CBA;
}

.paragraph3 {
    background-color: #77DD77;
}

.paragraph4 {
    background-color: #1976D2;
    margin-bottom: 15dvh;
}


/* ----- UBICATION SECTION ----- */

.ubication__section {
    width: 100%;
    height: 90dvh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.ubication__section__container {
    width: 90%;
    height: 80%;
    text-align: center;
    background-color: #a8d5ba;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 0 15px rgb(87, 87, 87);
    justify-self: center;
    align-self: center;
    animation: aparecerscroll both;
    animation-timeline: view();
    animation-range: entry 45% cover 55%;
}

.maps {
    border-radius: 20px;
}

.maps__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 70%;
}

.ubication__section__title__container {
    display: flex;
    justify-content: center;
    height: 10dvh;
    margin-bottom: .7rem;
    animation: aparecerscroll both;
    animation-timeline: view();
    animation-range: entry 30% cover 40%;
}

.ubication__section__title {
    font-size: 2.5rem;
    align-self: center;
}

#icon {
    font-size: 3rem;
    align-self: center;
}

.ubication__section__h4 {
    margin-top: .5rem;
}

.ubication__section__container__wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.farmacia-logo {
    width: 5rem;
    position: absolute;
    top: 2rem;
    right: .3rem;
    animation: aparecerscroll-logo2 both;
    animation-timeline: view();
    animation-range: entry 80% cover 100%;
}

.fl2 {
    left: .3rem;
    animation: aparecerscroll-logo1 both;
    animation-timeline: view();
    animation-range: entry 80% cover 100%;
}

@keyframes aparecerscroll-logo2 {
    from {
        transform: translateY(8dvh) rotate(15deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(15deg);
        opacity: 1;
    }
}

@keyframes aparecerscroll-logo1 {
    from {
        transform: translateY(8dvh) rotate(-15deg) rotateY(180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(-15deg) rotateY(180deg);
        opacity: 1;
    }
}


/* ----- CONTACT SECTION ----- */

.contact__section {
    height: 90dvh;
    width: 100%;
    position: relative;
}

.contact__section__title__container {
    display: flex;
    justify-content: center;
    height: 10dvh;
    animation: aparecerscroll both;
    animation-timeline: view();
    animation-range: entry 45% cover 55%;
}

.contact__section__title{
    font-size: 2.5rem;
}

#icon2 {
    font-size: 3rem;
}

.contact__section__container__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 80dvh;
}

.contact__section__container {
    width: 90%;
    height: 80%;
    text-align: center;
    background-color: #a8d5ba;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 0 15px rgb(87, 87, 87);
    justify-self: center;
    align-self: center;
    animation: aparecerscroll both;
    animation-timeline: view();
    animation-range: entry 45% cover 55%;
}

.contact__info {
    font-size: 1.3rem;
}

.social-media__container {
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.social-media__li {
    list-style: none;
    width: 95%;
    height: 4rem;
    background-color: ghostwhite;
    border-radius: 20px;
    display: flex;
}

.social-media__a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: #779985;
    text-decoration: none;
    font-size: 1.2rem;
    margin-left: 2rem;
}

.trato-imagen {
    width: 5rem;
    position: absolute;
    top: 1.15rem;
    right: .3rem;
    animation: aparecerscroll-logo-trato2 both;
    animation-timeline: view();
    animation-range: entry 80% cover 100%;
}

.ti2 {
    left: .3rem;
    animation: aparecerscroll-logo-trato1 both;
    animation-timeline: view();
    animation-range: entry 80% cover 100%;
}

@keyframes aparecerscroll-logo-trato2 {
    from {
        transform: translateY(8dvh);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes aparecerscroll-logo-trato1 {
    from {
        transform: translateY(8dvh) rotateY(180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateY(180deg);
        opacity: 1;
    }
}


/* ----- TIME SECTION ----- */

.time__section {
    height: 90dvh;
    width: 100%;
    position: relative;
}

.time__section__title__container {
    display: flex;
    justify-content: center;
    height: 10dvh;
    animation: aparecerscroll both;
    animation-timeline: view();
    animation-range: entry 45% cover 55%;
}

.time__section__title {
    font-size: 2.5rem;
    margin-left: .3rem;
}

#icon3 {
    font-size: 3rem;
}

.time__section__container__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 80dvh;
}

.time__section__container {
    width: 90%;
    height: 80%;
    text-align: center;
    background-color: #a8d5ba;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 0 15px rgb(87, 87, 87);
    justify-self: center;
    align-self: center;
    animation: aparecerscroll both;
    animation-timeline: view();
    animation-range: entry 45% cover 55%;
}

.time__random__container {
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.time__section__table {
    width: 70dvw;
    height: 50dvh;
}

th {
    border-bottom: 2px solid ghostwhite;
    border-right: 2px solid ghostwhite;
}

td {
    border-right: 2px solid ghostwhite;
}

tr :last-child {
    border-right: none;
}

.closed {
    text-decoration: underline 1px white;
}

.clock-image {
    width: 4rem;
    position: absolute;
    top: 1.15rem;
    right: .5rem;
    animation: aparecerscroll-logo2 both;
    animation-timeline: view();
    animation-range: entry 80% cover 100%;
}

.ci2 {
    left: .5rem;
    animation: aparecerscroll-logo1 both;
    animation-timeline: view();
    animation-range: entry 80% cover 100%;
}



/* ----- FOOTER SECTION ----- */

footer {
    width: 100%;
    padding: .8rem;
    margin-top: auto;
    background-color:#a8d5ba;
}

.footer__paragraph {
    font-size: .8rem;
    text-align: justify;
}



/* ----- MEDIA QUERIES ----- */

@media screen and (min-width: 850px) {
    .about__section__paragraph__container {
        max-width: 50%;
    }

    .contact__section__container {
        max-width: 60%;
    }

    .time__section__container {
        max-width: 70%;
    }

    .social-media__a {
        margin-left: 30%;
        text-align: center;
    }

    .social-media__container :nth-child(2) :nth-child(2) {
        margin-left: 32.9%;
    }

    .social-media__container :nth-child(3) :nth-child(2) {
        margin-left: 32.2%;
    }

    .home__title, .home__title2 {
        font-size: 6rem;
    }

    .home__paragraph, .home__paragraph2 {
        font-size: 2rem;
    }

    .header__gradient {
        height: 85dvh;
    }

    .header__logo {
        width: 10rem;
    }
}

@media screen and (min-width: 700px) {
    .farmacia-logo {
        right: 20%;
    }

    .fl2 {
        left: 20%;
    }

    .trato-imagen {
        right: 10%;
    }

    .ti2 {
        left: 10%;
    }

    .clock-image {
        right: 10%;
    }

    .ci2 {
        left: 10%;
    }
}

@media screen and (min-width: 1000px) {
    .farmacia-logo {
        right: 25%;
        width: 12rem;
        top: -1rem;
    }

    .fl2 {
        left: 25%;
    }

    .trato-imagen {
        right: 25%;
        width: 12rem;
        top: -2rem;
    }

    .ti2 {
        left: 25%;
    }

    .clock-image {
        right: 20%;
        width: 12rem;
        top: -2rem;
    }

    .ci2 {
        left: 20%;
    }
}

@media screen and (max-width: 360px) {
    .home__title, .home__title2 {
        font-size: 3.1rem;
    }

    .home__paragraph, .home__paragraph2 {
        font-size: 1.2rem;
    }

    .contact__info {
        font-size: 1.1rem;
    }
}