@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@400;500;700;800;900&family=M+PLUS+Rounded+1c&display=swap');


@font-face {
    font-family: Kotka;
    src: url(../vendor/fonts/kotka-bold.otf);
}

@font-face {
    font-family: KotkaSemBd;
    src: url(../vendor/fonts/KotkaSemBd-Regular.otf);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
}

:root {
    --primary: #FFD101;
    --secondary: #9259FE;
    --secondaryDark: #360568;
    --accent: #0B7BC1;
    --white: white;
    --black: black;
    --shadow: 2px 4px 0px var(--black);
    --border: solid 2px var(--black);
}

.btn {
    border-radius: 15px;
    background-color: var(--accent);
    border: var(--border);
    font-family: 'KotkaSemBd', sans-serif;
    color: white;
    padding: .5rem 1rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

body {
    background-color: var(--secondary);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-image: url(../img/fondo.webp);
}

header {
    background-color: var(--secondaryDark);
}

header section {
    display: flex;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: auto;
    flex-direction: column;
}

header img {
    max-width: 12rem;
}

header nav ul {
    list-style: none;
    display: flex;
}

@media(min-width:615px) {
    header section {
        flex-direction: row;
    }
}

header nav ul li a {
    display: block;
    padding: .5rem 1rem;
    color: white;
    text-decoration: none;
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width:720px) {
    header nav ul li a {
        padding-bottom: 0;
        padding-top: 1.2rem;
    }
}



.hero {
    background-color: var(--primary);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap-reverse;
}

.hero img {
    max-width: 30rem;
    max-width: 100%;
}

@media (max-width:720px) {
    .hero img {
        margin-top: -4rem;
        pointer-events: none;
    }
}


.hero div {
    margin-left: 2rem;
    max-width: 25rem;
}

.hero div h1 {
    font-family: 'Kotka', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: var(--secondaryDark);
}

@media(max-width: 927px) {
    .hero div h1 {
        margin-top: 2rem;
    }

}

.hero div p {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    color: var(--secondaryDark);
    margin-bottom: 1rem;
}

.hero .ondaonda {
    position: absolute;
    bottom: -1px;
    height: 55%;
}

@media (max-width:720px) {
    .hero .ondaonda {
        height: 15%;
    }
}

h2 {
    font-family: 'Kotka', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--secondaryDark);
    letter-spacing: .05em
}

.nosotros {
    padding: 2rem;
    max-width: 1280px;
    margin: auto
}

.nosotros p {
    color: white;
    /*max-width: 36rem;*/
}

.contenedor-nosotros {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start
}

.contenedor-nosotros article {
    border-radius: 15px;
    background-color: var(--white);
    border: var(--border);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    max-width: 40rem;
    margin-bottom: 1rem;
    margin-left: 1rem;
}

@media (max-width:720px) {
    .contenedor-nosotros article {
        margin: 0;
        flex-direction: column;
    }
}



.contenedor-nosotros article img {
    max-width: 15rem;
    max-height: 15rem;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1rem;
}

@media (max-width:720px) {
    .contenedor-nosotros article img {
        max-width: 100%;
        max-height: fit-content;
        margin-bottom: 1rem;
    }
}

.contenedor-nosotros article div {
    width: calc(100% - 18rem)
}

@media (max-width:720px) {
    .contenedor-nosotros article div {
        width: 100%;
    }
}

.contenedor-nosotros article div h3 {
    font-family: 'Kotka', sans-serif;
    font-size: 1.8rem;
    color: var(--secondaryDark);
}

.contenedor-nosotros article div ul {
    list-style: none;
    color: var(--secondaryDark);

}

.contenedor-nosotros article div p {
    list-style: none;
    color: var(--secondaryDark);
    font-weight: 700;
    margin: 1rem 0
}

.contenedor-nosotros article div p + ul {
    color: dimgrey;
    font-family: 'Kotka', sans-serif;

}

.contenedor-nosotros article.mic {
    margin-top: 2rem;
}

@media (min-width: 720px) {
    .contenedor-nosotros article.mic {
        margin: 1rem;

    }
}

@media (min-width: 1250px) {
    .contenedor-nosotros article.mic {
        margin-top: -2rem;
        margin-left: 30rem;
    }
}

.portfolio {
    padding: 2rem;
    max-width: 1280px;
    margin: auto
}

.portfolio p {
    color: white;
    max-width: 66rem;
}

.portfolio-container {
    display: grid;
    grid-gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}


.portfolio article {
    border-radius: 15px;
    background-color: var(--white);
    border: var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    min-height: 15rem;
}

.portfolio article {
    grid-row: span 1
}

.portfolio article > div {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    transition: all ease .5s;
    padding: 1rem;
    background: rgba(255, 255, 255, .9);
    min-height: 100%;

}

.portfolio article > div:after {
    content: ">";
    position: absolute;
    top: -2.5rem;
    left: 50%;
    color: white;
    font-size: 2rem;
    transform: rotate(-90deg) translateY(-1rem);
    font-weight: 900;
    text-shadow: 0 0 7px rgba(0, 0, 0, .5)
}


.portfolio article:hover > div {
    top: 0
}

.portfolio article > div h3 {
    color: var(--secondaryDark)
}

.portfolio article > div p {
    color: var(--secondaryDark)
}

.portfolio article > div .btn {
    margin-top: 1rem
}

.portfolio article .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

@media(max-width: 720px) {
    .portfolio article .modal div {
        margin: .5rem;
        width: 100%;
    }

}

.portfolio article .modal div {
    background: white;
    margin: 1rem auto;
    width: 60rem;
    max-width: 100%;
    border-radius: 15px;
    background-color: var(--white);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.portfolio article .modal figcaption {

    max-width: 100%;
    width: 60rem;
    margin: 1rem auto;
}

.portfolio article .modal .backBtn {
    margin-bottom: 1rem;
    cursor: pointer;
    display: block;
}

.portfolio article .modal h4 {
    font-family: 'Kotka';
    color: var(--secondaryDark);
    font-size: 3.1rem;
}

.portfolio article .modal p {

    color: var(--secondaryDark);
}

.portfolio article .modal img {
    width: 60rem;
    margin: 1rem auto;
    border: var(--border);
    max-width: 100%;
}

.servicios {
    padding: 2rem;
    max-width: 1280px;
    margin: auto
}

.servicios p {
    color: white;
    /*max-width: 36rem;*/
}

.servicios article {
    background-color: var(--white);
    box-shadow: var(--shadow);
    border: var(--border);
    border-radius: 15px;
    margin-top: 1rem;
    padding: 3rem;
    margin-bottom: 1rem;

}

.servicios article > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    grid-gap: 1rem;
}

.servicios article > div:first-of-type {
    margin-bottom: 1rem;
}


.servicios article h3 {
    font-family: 'Kotka', sans-serif;
    font-size: 2rem;
    color: var(--secondaryDark);
}

@media (max-width:720px) {
    .servicios article h3 {

        margin-top: 1rem;
    }
}

.servicios article ul {
    list-style: none;
    color: var(--secondaryDark);

}

.promos {
    padding: 2rem;
    max-width: 1280px;
    margin: auto
}

.promos p {
    color: white;
    /* max-width: 36rem;*/
}

.promos .contenedor-promo {}

@media (max-width:720px) {
    .promos .contenedor-promo {

        margin-right: -2rem;
    }
}

.promos article {
    background-color: var(--primary);
    box-shadow: var(--shadow);
    border: var(--border);
    border-radius: 15px;
    margin: 1rem .5rem;
    padding: 1rem;

}

.promos article h3 {
    font-family: 'Kotka', sans-serif;
    font-size: 2rem;
    color: var(--secondaryDark);
}

.promos article ul {
    list-style: circle;
    list-style-position: inside;
    color: var(--secondaryDark);
    margin-bottom: 1rem;
    min-height: 7rem;
}

.promos article p {
    font-family: 'Kotka', sans-serif;
    font-size: 2rem;
    color: var(--black);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--white);
    letter-spacing: .05em
}

.contacto {
    padding: 2rem;
    max-width: 1280px;
    margin: auto;
    display: grid;

    grid-template-columns: 1fr 20rem;
}

@media (max-width:720px) {
    .contacto {
        grid-template-columns: 1fr;
    }
}

.contacto p {
    color: white;
    /*max-width: 36rem;*/
}


.contacto img {
    max-width: 20rem;
}

.first-input {
    display: flex;
    margin-top: 1rem;

    flex-wrap: wrap;
}

.input-con {
    display: flex;
    flex-direction: column;
    margin-bottom: .5rem;
    flex-grow: 1;
}

.contacto .btn {
    margin-top: 1rem;
}

.input-con label {
    color: var(--white)
}

.input-con input,
.input-con textarea {
    background-color: var(--white);
    box-shadow: var(--shadow);
    border: var(--border);
    border-radius: 10px;
    padding: .5rem;
    margin-right: .5rem;
}

footer {
    background-color: var(--primary);
    padding: 1rem;
    color: var(--secondaryDark);

}

footer section {
    padding: 2rem;
    max-width: 1280px;
    margin: auto;
}

footer section img {
    margin: 1rem 0;
    max-width: 15rem
}

footer section article {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    margin: 3rem 0;
    grid-gap: 1rem;
}

footer section article div h3 {
    font-family: 'Kotka', sans-serif;
    font-size: 1.2rem;
    color: var(--secondaryDark);
}

footer section > p {
    text-align: right;
    border-top: solid 1px var(--secondaryDark);
    padding: .5rem 0;
}


.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: 1rem;
    padding: .5rem;
}

.portfolio-page {
    max-width: 1280px;
    margin: 1rem auto;

}

.portfolio-page article {
    background-color: var(--primary);
    box-shadow: var(--shadow);
    border: var(--border);
    border-radius: 15px;
    padding: 2rem;
}

.portfolio-title {
    font-family: 'Kotka', sans-serif;
    font-size: 2.5rem;
    color: var(--secondaryDark);

    letter-spacing: .05em
}

.img-portfolio {
    box-shadow: var(--shadow);
    border: var(--border);
    border-radius: 15px;
    margin: 1rem auto;
}

.iframe-portfolio {
    box-shadow: var(--shadow);
    outline: var(--border);
    border-radius: 15px;
    margin: 1rem auto;
    display: block;
}

.portfolio-page ul {
    list-style-position: inside
}

/*Extra*/
body.modal-open {
  overflow: hidden;
}
figure.modal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}