/* ================================================================ */
/* =============== ESTILOS DE LA HOME PAGE DE MIEL ================ */
/* ================================================================ */

/* =================== GENERAL =================== */

html, body {
    font-family: 'Roboto', sans-serif !important;
}

body {
    background: url('../imagenes/home/fondo-trama.png') repeat;
}

/* responsive container como bootstrap */
.home-container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 768px) {
    .home-container {
        width: 750px;
    }
}
@media (min-width: 992px) {
    .home-container {
        width: 970px;
    }
}
@media (min-width: 1200px) {
    .home-container {
        width: 1170px;
    }
}

/* ==================== HEADER =================== */

header {
    z-index: 100 !important;
    background-color: rgba(0, 22, 6, .9);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

header > div {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.btnHeader {
    display: inline-block;
    padding-top: 6px;
    padding-right: 4px;
    color: rgb(250, 255, 255, .7);
    transition: color .25s ease;
    cursor: pointer;
}

.btnHeader:hover {
    color: rgb(250, 255, 255, 1);
}

@media (max-width: 768px) {
    header > div {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    header img.logo-header {
        height: 32px;
    }
    .btnHeader {
        padding-top: 4px;
        padding-right: 0;
    }
}

/* ================ SECCION LOGIN ================ */

/* ----------------- CONTENEDORES ---------------- */

section#login {
    position: absolute;
    height: 100vh;
    width: 100%;
    padding-top: 70px;
    background: #009674;
    background: linear-gradient(to bottom right, #009674 0%, #63cb5f 100%);
    color: white;
    overflow: hidden;
}

section#login > div {
    position: relative;
    z-index: 2;
}

section#login .home-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
}

section#login .home-container > div:first-child {
    flex: 1 1 0;
}

section#login .home-container > div:last-child {
    flex: 1 1 0;
}

#login-margin {
    height: 100vh;
}

@media (max-width: 768px) {
    section#login {
        padding-top: 0px;
        height: 600px;
    }
    #login-margin {
        height: 600px;
    }
}

/* ------------------- TITULOS ------------------- */

h1.title {
    margin-bottom: .1em;
    text-wrap: balance;
    font-family: 'Roboto', sans-serif !important;
    font-size: 4.5em;
    font-weight: bolder;
    letter-spacing: 2px;
    line-height: 1;
}

h2.subtitle {
    text-wrap: balance;
    font-family: 'Roboto', sans-serif !important;
    font-size: 2em;
    font-weight: lighter;
    letter-spacing: 1px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .titles {
        display: none;
    }
}

@media (max-width: 992px) {
    .titles h1.title {
        font-size: 3.5em;
    }
    .titles h2.subtitle {
        font-size: 1.6em;
    }
}

/* ----------- FONDO HEXAGONOS ANIMADOS ---------- */

.hexagons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hexagons li {
    position: absolute;
    list-style: none;
    display: block;
    bottom: -200px;
    -webkit-animation: bubble 25s infinite;
    animation: bubble 25s infinite;
    transition-timing-function: linear;
    opacity: 15%;
}

.hexagons li .hex:before {
    position: absolute;
    content: " ";
    width: 0;
    top: -29px;
    border-bottom: 30px solid white;
    border-left: 52px solid transparent;
    border-right: 52px solid transparent;
}

.hexagons li .hex {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 104px;
    height: 60px;
    background-color: white;
    position: relative;
}

.hexagons li .hex:after {
    position: absolute;
    content: "";
    width: 0;
    bottom: -29px;
    border-top: 30px solid white;
    border-left: 52px solid transparent;
    border-right: 52px solid transparent;
}

@-webkit-keyframes bubble {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-150vh) rotate(600deg);
    }
}
@keyframes bubble {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-150vh) rotate(600deg);
    }
}

/* --------------- FORMULARIO LOGIN -------------- */

.login-container {
    margin: 0 auto;
    max-width: 460px;
    background-color: rgba(0, 0, 0, .05);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 30px;
    border-radius: 6px;
    text-wrap: pretty;
}

.login-container h2.subtitle {
    margin-top: 0;
}

.login-container input[type=text],
.login-container input[type=password] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    padding: 8px 15px;
    outline: 0;
    font-size: 1.15em;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    transition: background-color 0.25s;
}

.login-container input[type=text]:hover,
.login-container input[type=password]:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.login-container input[type=text]:focus,
.login-container input[type=password]:focus {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.login-container input:-webkit-autofill,
.login-container input:-webkit-autofill:hover,
.login-container input:-webkit-autofill:focus,
.login-container input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px rgba(0, 0, 0, 0.2);
    caret-color: white;
}

input.error-validation {
    border-color: #f44336 !important;
}

/* ------------- CHECKBOX RECORDARME ------------- */

.login-checkbox {
    position: relative;
    padding-left: 30px;
    padding-top: 1px;
}

.login-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.login-checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.25s;
}

.login-checkbox:hover input {
    background-color: rgba(0, 0, 0, 0.2);
}

.login-checkbox input:focus ~ .login-checkbox-checkmark {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.login-checkbox input:checked ~ .login-checkbox-checkmark {
    background-color: white;
}

.login-checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.login-checkbox input:checked ~ .login-checkbox-checkmark:after {
    display: block;
}

.login-checkbox .login-checkbox-checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #009674;
    border-width: 0 2px 2px 0;
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* ---------------- BOTONES LOGIN ---------------- */

.primary-button,
.secondary-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    padding: 8px 15px;
    font-size: 1.15em;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    transition-duration: 0.25s;
}

.primary-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #009674;
}

.primary-button:hover {
    background-color: white;
}

.secondary-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.login-container button.w3-disabled {
    opacity: 0.7;
}

.login-container hr {
    border-top-color: rgba(255, 255, 255, 0.3);
}

@media (max-width:600px) {
    .w3-row-padding .w3-half {
        padding: 8px 0;
    }
    .w3-row-padding .w3-half:first-child {
        padding-top: 0;
    }
    .w3-row-padding .w3-half:last-child {
        padding-bottom: 0;
    }
}

/* ================ SECCION CARDS ================ */

section#cards {
    margin-top: 50px;
    margin-bottom: 80px;
}

section#cards .home-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
}

section#cards .home-container .flex-card {
    flex: 1 1 0;
    margin: 10px;
    overflow: hidden;
    text-decoration: none;
}

section#cards .home-container .flex-card:first-child {
    margin-left: 0;
}

section#cards .home-container .flex-card:last-child {
    margin-right: 0;
}

section#cards .home-container .flex-card .card-image-wrapper {
    height: 250px;
    overflow: hidden;
}

section#cards .home-container .flex-card .card-image {
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all .5s ease-out;
}

section#cards .home-container .flex-card .card-image.card-sied {
    background-color: #009674;
    background-image: radial-gradient(#128268 1px, #009674 1px);
    background-size: 17px 17px;
    background-repeat: repeat;
}
section#cards .home-container .flex-card .card-image.card-sied > div {
    height: 100%;
    padding: 2rem;
    background-origin: content-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

section#cards .home-container .flex-card:hover .card-image {
    transform: scale(1.1);
}

section#cards .home-container .flex-card .card-content {
    padding: 8px 24px;
}

section#cards .home-container .flex-card .card-content h4 {
    font-family: 'Roboto', sans-serif !important;
    color: #009674;
    font-weight: bold;
}

section#cards .home-container .flex-card .card-content .card-content-media {
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
}

@media (max-width: 991px) {
    section#cards .home-container.noticias {
        display: block;
    }
    section#cards .home-container.noticias .flex-card {
        display: block;
        margin: 20px 0;
    }
    section#cards .home-container .flex-card .card-image-wrapper {
        height: 200px;
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    section#cards .home-container.enlaces {
        display: block;
    }
    section#cards .home-container.enlaces .flex-card {
        display: block;
        margin: 20px 0;
    }
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ------------------ POPUP SIED ----------------- */

#popupSied {
    overflow: hidden;
}

ul.lista-sied {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul.lista-sied > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    color: black;
    transition: background-color .2s;
}

ul.lista-sied > li > a:hover {
    background-color: #e9efe9;
}

ul.lista-sied > li > a > div:first-child {
    width: 32px;
    line-height: .8;
}

ul.lista-sied > li > a > div:last-child {
    flex: 1;
}

/* ================= SECCION FAQS ================ */

section#faqs {
    margin-top: 50px;
    margin-bottom: 80px;
}

section#faqs .home-container > div {
    max-width: 800px;
    margin: 0 auto;
}

section#faqs h2.subtitle {
    font-weight: 300;
}

details > div {
    color: #555;
    margin: 0 24px;
}

details > div p:first-child {
    margin-top: 0;
}

details > div p:last-child {
    margin-bottom: 0;
}

summary {
    position: relative;
    margin: 0 24px;
}

summary:before {
    content: '';
    left: -18px;
    top: 16px;
    border-width: .4rem;
    border-style: solid;
    border-color: transparent transparent transparent #222;
    position: absolute;
    transform: rotate(0);
    transform-origin: .2rem 50%;
    transition: .25s transform ease;
}

details[open] > summary:before {
    transform: rotate(90deg);
}

details summary::-webkit-details-marker {
    display:none;
}

/* ================= SECCION LEGAL ================ */

section#legal {
    padding-top: 100px;
    margin-bottom: 80px;
}

section#legal .home-container .flex-card {
    max-width: 800px;
    margin: 0 auto;
}

section#legal .home-container .flex-card .card-content {
    padding: 8px 24px;
}

section#legal .home-container .flex-card .card-content h4 {
    font-family: 'Roboto', sans-serif !important;
    color: #009674;
    font-weight: bold;
}

section#legal .home-container .flex-card .card-content h5 {
    font-family: 'Roboto', sans-serif !important;
    color: #222;
    font-weight: bold;
}

/* ==================== FOOTER =================== */

footer {
    background-color: black;
    color: #999;
}

footer h4 {
    color: white;
}

footer a {
    text-decoration: none;
    transition: color .15s;
}

footer a:hover {
    color: #eee;
}

footer .redes img {
    margin-right: 6px;
    height: 26px;
    opacity: 0.6;
    transition: opacity .15s;
}

footer .redes img:hover {
    opacity: 0.9;
}
