@font-face {
    font-family: "Lato-Thin";
    src: url(../fonts/Lato-Thin.ttf);
}

@font-face {
    font-family: "Lato-Light";
    src: url(../fonts/Lato-Light.ttf);
}

@font-face {
    font-family: "Lato-Regular";
    src: url(../fonts/Lato-Regular.ttf);
}

:root {
    --hero-content-height: 90vh;
    --main-color-no-alpha: rgb(60,21,59);
    --main-color: rgba(60,21,59, 0.7);
    --faded-main-color: rgba(60,21,59, 0.4);
    --super-faded-main-color: rgba(60, 21, 59, 0.1);
    --secondary-color: #0d2149;
    --normal-font-size: 20px;
    --big-font-size: 2rem;
    --huge-font-size: 4rem;
    --small-padding: 5px;
    --medium-padding: 15px;
    --normal-padding: 30px;
    --very-big-padding: 100px;
    --normal-font-weight: 300;
    --light-font-weight: 100;
}

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

html {
    overflow: auto;
    overflow-x: hidden;
}

body {
    color: #333;
    font-size: var(--normal-font-size);
    font-family: "Lato-Light", sans-serif;
    font-weight: var(--normal-font-weight);
    font-style: normal;
}

p {
    padding: var(--medium-padding) var(--normal-padding);
    max-width: 60rem;
    text-align: justify;
    text-justify: auto;
    line-height: 140%;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
}

/* hero */

header {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: var(--hero-content-height);
    align-items: end;
    height: var(--hero-content-height);
    width: 100%;
    color: white;
}

header img {
    grid-column: 1;
    grid-row: 1;
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: var(--hero-content-height);
}

header::before {
    content: '';
    z-index: 2;
    width: 100%;
    height: var(--hero-content-height);
    display: block;
    position: absolute;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), var(--main-color));
}

.hero-content {
    z-index: 3;
    grid-column:1;
    grid-row: 1;
    margin-bottom: 10px;
}

h1 {
    color: #fff;
    font-family: "Lato-Thin", sans-serif;
    font-size: var(--huge-font-size);
    font-weight: var(--light-font-weight);
    text-align: left;
    padding: var(--medium-padding) var(--normal-padding);
}

h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    margin-right: -100%;
    border-bottom: 1px solid white;
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 18px;
    }
}

@media screen and (max-width: 400px) {
    h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 17px;
    }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
    h1 {
        font-size: 3rem;
        padding-top: 2rem;
    }

    .hero-content p {
        font-size: 18px;
    }
}

/* navigation menu*/

nav {
    width: 100%;
    max-width: 60rem;
    margin: 20px auto 40px auto;
}

nav ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: center;
}

.actual {
    position: relative;
    color: var(--main-color-no-alpha);
    font-weight: 800;
}

.actual::before,
.actual::after {
    position: absolute;
    content: "\2014";
    color: var(--main-color-no-alpha);
}

.actual::before {
    left: -1rem;
}

.detalle {
    font-weight: 800;
    font-style: italic;
    padding-top: var(--small-padding);
    padding-bottom: var(--small-padding);
}

/* secciones */

section {
    margin-bottom: 90px;
}

h2, h3 {
    font-family: "Lato-Regular";
    font-size: var(--big-font-size);
    max-width: 60rem;
    padding: var(--normal-padding);
    color: gray;
    font-weight: bolder;
}

h2::after, h3::after {
    content: '';
    display: block;
    width: 100%;
    margin-right: -100%;
    border-bottom: 3px solid var(--faded-main-color);
}

.alimentacion .section-content,
.sexual .section-content,
.autocuidado .section-content,
.madres .section-content,
.formulario-contacto .section-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: top;
    margin: 0 auto;
}

article {
    display: flex;
    flex-direction: column;
}

.sexual .section-content, .madres .section-content {
    flex-direction: row-reverse;
}

.section-content * {
    margin: 0 auto;
}

.section-content {
    max-width: calc(60rem + 400px + 100px);
    padding: 0;
}

.image-container {
    width: 70vw;
    height: 70vw;
    max-width: 400px;
    max-height: 400px;
    overflow: hidden;
    border-radius: 50%;
    margin: var(--normal-padding) auto 0 auto;
    margin-bottom: 20px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    object-position: left;
}

.image-container img.saludsexual {
    object-position: center top;
}

.madres {
    margin-bottom: 100px;
}

article {
    margin: 0;
}

blockquote {
    color: rgb(173, 173, 173);
    text-transform: uppercase;
    font-weight: bolder;
    font-style: italic;
    font-size: var(--big-font-size);
}

.cita {
    margin-top: 20px;
    margin-bottom: 40px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    text-align: center;
    padding-right: var(--normal-padding);
    padding-left: var(--normal-padding);
}

blockquote::after {
    content: '\201D';
    font-size: 4rem;
    color: rgb(210, 210, 210);
    vertical-align: -0.5rem;
}

blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: rgb(210, 210, 210);
    vertical-align: -0.5rem;
}

/* Formulario de contacto */

.formulario-contacto {
    padding: var(--normal-padding);
}

.formulario-contacto article {
    background-color: var(--super-faded-main-color);
    border-radius: 25px;
    max-width: 40rem;
}

.formulario-contacto form {
    display: flex;
    flex-direction: column;
    max-width: 40rem;
    padding: 0 var(--normal-padding);
    width: 100%;
    justify-content: start;
}

.formulario-contacto label {
    font-size: var(--normal-font-size);
    font-weight: bold;
    margin: 0;
}

.formulario-contacto input,
.formulario-contacto textarea {
    color: #333;
    font-size: var(--normal-font-size);
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid var(--faded-main-color);
    background: transparent;
    margin: var(--small-padding) 0 var(--normal-padding) 0;
}

.formulario-contacto textarea {
    resize: vertical;
    height: 4rem;
    min-height: 1.5rem;
}

input:focus,
input:valid,
input:invalid,
textarea:focus,
textarea:valid,
textarea:invalid {
    outline: none;
    font-family: "Lato-Light", sans-serif;
    font-weight: var(--normal-font-weight);
    font-style: normal;
}

.formulario-contacto button {
    background-color: var(--main-color);
    color: white;
    border: none;
    cursor: pointer;
    margin: var(--normal-padding) auto;
    padding: var(--medium-padding);
    font-size: var(--normal-font-size);
    border-radius: 10px;
}

.formulario-contacto button:hover {
    background-color: var(--faded-main-color);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: var(--small-padding) 0;
}


#privacy,
#interes {
    accent-color: var(--main-color);
    display: inline-block;
    width: auto;
    max-width: 30px;
    margin: 0;
}

.privacy-label a {
    text-decoration: underline;
    text-decoration-color: var(--faded-main-color);
}

.formulario-contacto .privacy-label,
.formulario-contacto .interes-label {
    display: inline-block;
    font-size: normal;
    font-weight: var(--normal-font-weight);
    max-width: 80%;
    margin: 0 var(--small-padding);
    vertical-align: middle;
}

/* footer */

.final {
    display: grid;
    place-items: center;
    text-align: center;
    max-width: 700px;
    max-height: 700px;
    width: 70vw;
    height: 70vw;
    margin: 0 auto 70px auto;
    background-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1),
            var(--main-color)), url("../images/cita_background3.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    border: 2px solid grey;
    border-radius: 50%;
}

.una {
    color: white;
}

address {
    font-style: normal;
}

footer {
    margin: var(--very-big-padding) auto var(--very-big-padding) auto;
}

footer li {
    display: inline-block;
    margin-top: 20px;
    margin-right: var(--normal-padding);
}

footer li:last-child {
    margin-right: 0;
}

@media screen and (max-width: 1000px) {
    footer {
        margin: 40px auto 40px auto;
        text-align: center;
    }

    ul {
        display: inline-block;
        list-style-type: none;
        padding: 0;
        text-align: start;
    }

    footer li {
        display: block;
    }
}

.instagram::before {
    display: inline-block;
    content: ' ';
    background-image: url(../images/Instagram_Glyph_Black.svg);
    object-fit: cover;
    vertical-align: middle;
    background-size: 28px 28px;
    height: 28px;
    width: 28px;
    margin-right: 0.5rem;
    filter: invert(9%) sepia(26%) saturate(4680%) hue-rotate(277deg) brightness(95%) contrast(94%) opacity(40%);
}

#whatsapp::before {
    display: inline-block;
    content: ' ';
    background-image: url(../images/Digital_Glyph_Black.svg);
    object-fit: cover;
    vertical-align: middle;
    background-size: 28px 28px;
    height: 28px;
    width: 28px;
    margin-right: 0.5rem;
    filter: invert(9%) sepia(26%) saturate(4680%) hue-rotate(277deg) brightness(95%) contrast(94%) opacity(40%);
}

#email::before {
    display: inline-block;
    content: ' ';
    background-image: url(../images/email.svg);
    object-fit: cover;
    vertical-align: middle;
    background-size: 28px 28px;
    height: 28px;
    width: 28px;
    margin-right: 0.5rem;
    filter: invert(9%) sepia(26%) saturate(4680%) hue-rotate(277deg) brightness(95%) contrast(94%) opacity(40%);
}

#phone::before {
    display: inline-block;
    content: ' ';
    background-image: url(../images/phone.svg);
    object-fit: cover;
    vertical-align: middle;
    background-size: 28px 28px;
    height: 28px;
    width: 28px;
    margin-right: 0.5rem;
    filter: invert(9%) sepia(26%) saturate(4680%) hue-rotate(277deg) brightness(95%) contrast(94%) opacity(40%);
}
