/*
Theme Name: DEMEK
Theme URI: https://demek-km.net
Author: Yair Alvarez x Wybie Studio
Author URI: https://wybiestudio.com
Description: Tema exclusivo para Distribuidora Especializada de Medicamentos KM.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags:
Text Domain: demekxws
*/
 
:root {
    /* FUENTES */
    --mainFont : "apparat", sans-serif;
    --regularW : "wght" 300;
    --boldW    : "wght" 600;

    --iconFont : 'Font Awesome 5 Free', 'Font Awesome 5 Brands';

    /* COLORES */
    --accent : #057993;
    --demekBlue  : #00A4CF;

    --cloud      : #e9f4f8;
    --pale      : #f5f8fa;

    --gray      : #626262;
    --shade     : #C1C6C7;
    --black     : #000000;
    --white     : #FFFFFF;

    --gap   : transparent;
}

html {
    box-sizing : border-box;
    font-size  : 62.5%;
}

body {
    font-size   : 16px;
    font-size   : 1.6rem;
    line-height : 1.5;
    color: var(--gray);
    font-family: var(--mainFont);
    font-variation-settings: var(--regularW);
}

b {
    font-weight: unset;
    font-variation-settings: var(--boldW);
    color: var(--demekBlue);
}

*, *:before, *:after {
    box-sizing : inherit;
}

h1, h2, h3, h4 {
    font-variation-settings: var(--boldW);
    color: var(--demekBlue);
    margin: 0;
    padding: 0;
}

h1 {
    font-size : 4.2rem;
    line-height: 4.2rem;
}

h2 {
    font-size : 3.2rem;
    line-height: 3.2rem;
}

a:link,
a:hover,
a:visited,
a:active {
        margin: 0 auto;
    }

@media (min-width: 1200px) {
    h1 {
        font-size : 5.2rem;
        line-height: 5.2rem;
    }
    
    h2 {
        font-size : 4.2rem;
        line-height: 4.2rem;
    }
}

hr {
    border: none;
    height: 6rem;
    background-color: var(--gap);
    margin: 0;
    padding: 0;
}

a {
    text-decoration : none;
}

ul {
    list-style : none;
    margin     : 0;
    padding    : 0;
}

img {
    max-width : 100%;
    height    : auto;
}

.main {
    max-width : 100%;
    width     : 100%;
    margin    : 0 auto;
}

.container {
    max-width : 1000px;
    width     : 98%;
    margin    : 0 auto;
}

.header-lace {
    text-align: center;
    background-color: var(--accent);
    padding: 2rem 2rem;
    flex-basis: 100%;
    font-size: 1.6rem;
    color: var(--pale);
}

    @media (min-width: 1200px) {
        .header-lace {
        padding: 2rem 0;
        font-size: 1.4rem;
        }
    }

.header-lace span {
    padding-right: 3%;
}

.header-lace span:last-of-type {
    padding-right: 0;
}

.header-lace span::before {
    padding: 0 .5rem;
    font-family: var(--iconFont);
    font-weight: bold;
    color: var(--demekBlue);
}

.header-lace span:nth-of-type(1),
.header-lace span:nth-of-type(2) {
    display: none;
}

    @media (min-width: 1200px) {
        .header-lace span:nth-of-type(1),
        .header-lace span:nth-of-type(2) {
            display: unset;
        }
    }

.header-lace span:nth-child(1)::before {
    content: '\f0fe';
}

.header-lace span:nth-child(2)::before {
    content: '\f3c5';
}

.header-lace span:nth-child(3)::before {
    content: '\f879';
}

.header-lace span:nth-child(4)::before {
    content: '\f0e0';
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: unset;
    padding: 3rem 0;
}

    @media (min-width: 1200px) {
        .header-container {
            margin: 0 auto;
            max-width: 100rem;
        }
    }

.logo {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
}

    @media (min-width: 1200px) {
        .logo {
            flex: 0 0 25%;
        }
    }

.logo img {
    min-height: 10rem;
    max-height: 10rem;
}

    @media (min-width: 1200px) {
        .logo img {
            min-height: 8rem;
            max-height: 8rem;
        }
    }

.nav-css {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    height: fit-content;
    margin: 3rem 0;
}

    @media (min-width: 1200px) {
        .nav-css {
            flex: 0 0 50%;
        }
    }

.nav-css a {
    color: var(--demekBlue);
}

.nav-css #menu-principal {
    display: flex;
    justify-content: center;
    background-color: var(--pale);
    border-radius: 5rem;
    padding: 0 1rem;
}

.nav-css #menu-principal .menu-item {
    padding: 1rem 2rem;
}

@media (min-width: 1200px) {

    
    .nav-css a {
        color: var(--demekBlue);
    }
    
    .nav-css #menu-principal {
        display: flex;
        justify-content: center;
        background-color: var(--pale);
        border-radius: 5rem;
        padding: 0 1rem;
    }
    
    .nav-css #menu-principal .menu-item {
        padding: 1rem 2rem;
    }
}

.whatsapp {
    display: flex;
    flex: 0 0 100%;
    height: fit-content;
}

.wa-bttn {
    background-color: #25d366;
    border: none;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5rem;
    padding: 1rem 2rem;
    color: var(--white);
    cursor: pointer;
}

.wa-bttn:hover {
    background-color: #128c7e;
}

.wa-bttn:hover span::before {
    color: #dcf8c6;
}

.wa-bttn span::before {
    content: '\f232';
    font-size: 1.6rem;
    padding: 0 .5rem;
    font-family: var(--iconFont);
    font-weight: normal;
    color: dcf8c6;
}

@media (min-width: 1200px) {
    .whatsapp {
        display: flex;
        flex: 0 0 25%;
        height: fit-content;
    }
    
    .wa-bttn {
        border: none;
        width: auto;
        display: block;
        margin: 0 auto;
        border-radius: 5rem;
        padding: 1rem 2rem;
        cursor: pointer;
    }
    
    .wa-bttn span::before {
        content: '\f232';
        font-size: 1.6rem;
        padding: 0 .5rem;
        font-family: var(--iconFont);
        font-weight: normal;
    }
}

.hero {
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 40rem;
    padding-left: 5rem;
    background: url(assets/hero_demek.jpg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slide-content {
    width: 50%;
    position: absolute;
    text-align: left;
    top: 50%;
    transform: translateY(-50%);
}

.slide-content p {
    width: 95%;
}

@media (min-width: 1200px) {
    .hero-slide {
        height: 35rem;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    
    .slide-content {
        width: 30%;
        position: absolute;
        text-align: left;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .slide-content p {
        width: 95%;
    }
}

.partners-section {
    text-align: center;
}

.partners-section p {
    width: 85%;
    margin: 0 auto;
}

.partners {
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.partners li {
    flex: 0 0 calc(50% - .5rem);
    padding: 5rem;
}



@media (min-width: 1200px) {
    .partners li {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 7rem;
        max-height: 7rem;
        display: flex;
        flex: 0 0 calc(20% - .9rem);
        padding: 2rem;
    }

    .contacto {
        background-color: var(--demekBlue);
        padding: .25rem .5rem;
        border-radius: .5rem;
    }

    .contacto:hover {
        background-color: var(--accent);
    }

    a:link.contacto,
    a:hover.contacto,
    a:visited.contacto,
    a:hover.contacto {
        color: var(--white);
    }
}

.contact-section { 
    background-color: var(--cloud);
    width: 100%;
    padding: 6rem 0;
    text-align: center;
}

/* FORM STYLE */

.wpcf7 { /* CONTENEDOR PRINCIPAL */
    width: 100%;
    margin: 0 auto;
}
.contact-section form {
    display: block;
}

.wpcf7-form.init p br { /* ESAPCIOS FANTASMA */
    display: none;
}

.contact-section form p { /* PARRAFOS (3) */
    margin: 0;
}

.contact-section form label span input { /* CAMPOS STANDARD */
    border: none;
    padding: 1.5rem;
    border: .1rem solid var(--demekBlue);
    background-color: var(--pale);
    border-radius: .5rem;
    width: 85%;
    margin-bottom: 1.5rem;
}

.contact-section form label:nth-of-type(1) span input { /* TOP MARGIN DEL PRIMER CAMPO */
    margin-top: 1.5rem;
}

.contact-section form p:nth-of-type(2) label span {
    margin: 0 auto;
    display: flex;
    width: 85%;
}

.contact-section form label span textarea {
    border: none;
    width: 100%;
    box-sizing: content-box;
    padding: 1.5rem;
    border: .1rem solid var(--demekBlue);
    background-color: var(--pale);
    border-radius: .5rem;
    display: block;
}

.contact-section form p:last-of-type {
    padding: 1.5rem 0 0 0;
    display: block;
}

.contact-section form p:last-of-type input {
    background-color: var(--demekBlue);
    padding: 2rem;
    border: none;
    color: white;
}

.contact-section form p:last-of-type input:hover {
    background-color: var(--accent);
    padding: 2rem;
    border: none;
    color: white;
    cursor: pointer;
}

.contact-section form p:last-of-type span {
    display: none;
    
}