/*
    Theme Name: Blog Frasan Green de México
    Theme URI: 
    Author: Jonathan Márquez
    Author URI: 
    Description: Theme diseñado para el blog Frasan Green de México
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: 
    Text Domain: Frasan Green de México
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
  }
  
  html {
    width: 100%;
    font-family: 'poppins';
    font-size: 1.1vw;
    margin: 0 auto;
    scroll-behavior: smooth;
  }
  
  :root {
    --color-001: #111E13;
    --color-002: #177923;
    --color-003: #CECDCE;
    --color-004: #94B41A;
    --color-005: #004D29;
    --color-006: #81C131;
    --color-007: #F8F8EF;
  }

  body {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
  }
  
  body::before {
    width: 100%;
    height: 100%;
    position: absolute;
    position: fixed;
    top: 0;
    left: 0;
    content: '';
    background-image: url(img/background_web.png);
    background-size: contain;
    z-index: 1;
    filter: opacity(25%);
  }
  
  body::after {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    background: linear-gradient(to right, var(--color-002), white, var(--color-002));
    z-index: 1;
    filter: opacity(25%);
  }

  main {
    margin-top: 11vh;
    padding-top: .01%;
  }

  @media (max-width: 500px) {
    main {
        margin-top: 13vh;
        padding-top: .01%;
      }
  }


/* =================================

        Header 
        
================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 14vh;
    z-index: 100;
}

header .top-header {
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, var(--color-002), var(--color-006));
    display: flex;
}

header .top-header .left,
header .top-header .right {
    width: 100%;
    height: 100%;
}

header .top-header .left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3%;
    position: relative;
    left: -11%;
}

@media (max-width: 500px) {
    header .top-header .left {
        gap: 9%;
    }
}

header .bottom-header {
    width: 100%;
    height: 65%;
    background-color: var(--color-007);
    display: flex;
}

header .top-header .right {
    display: flex;
    justify-content: end;
    align-items: center;
    padding-right: 9%;
    color: var(--color-007);
}

header .top-header .right p {
    font-size: .9rem;
}

header .bottom-header .left,
header .bottom-header .right {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
}

header .bottom-header .left {
    margin-left: 15%;
}

header .bottom-header .left img {
    width: 30%;
    cursor: pointer;
}

header .bottom-header .right nav {
    width: 100%;
    display: flex;
    justify-content: end;
    padding-right: 45%;
    gap: 9%;
}

header .bottom-header .right nav a {
    font-size: 1rem;
    color: var(--color-005);
    transition: 90ms;
}

header .bottom-header .right nav a:hover {
    color: var(--color-006);
}

/* Botonera redes Header */
.redes-head {
    background-color: var(--color-001);
    width: 4%;
    padding: .8%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .6vw;
    cursor: pointer;
    transition: 90ms;
}

.redes-head img {
    width: 100%;
}

.redes-head:hover {
    padding: .5%;
    background-color: var(--color-005);
}

header .bottom-header .right .ham,
header .bottom-header .right nav .logo-movil-nav,
header .bottom-header .right nav .cerrar-menu {
    display: none;
}

@media (max-width: 500px) {
    .redes-head {
        width: 7%;
        padding: .9%;
        border-radius: 1.9vw;
    }

    .redes-head:hover {
        padding: .8%;
        background-color: var(--color-001);
    }
}

/* ======== Movil ============== */
@media (max-width: 500px) {

    header {
        height: 13vh;
    }

    header .top-header .right {
        display: none;
    }

    header .top-header {
        justify-content: center;
    }

    header .top-header .left {
        left: 0;
        justify-content: center;
    }

    header .bottom-header .right {
        width: 100%;
        display: flex;
        justify-content: end;
    }

    header .bottom-header .left img {
        width: 160%;
    }

    header .bottom-header .right .ham {
        display: block;
        margin-right: 19%;
        color: var(--color-005);
    }

    header .bottom-header .right nav {
        all: unset;
        width: 100% !important;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
        background: linear-gradient(to right, var(--color-002), var(--color-006) );
        display: flex;
        flex-direction: column;
        justify-content: center !important;
        align-items: center;
        gap: 2% !important;
        left: -140%;
        transition: 300ms;
    }

    .nav-on {
        left: 0 !important;
    }

    header .bottom-header .right nav .cerrar-menu {
        all: unset;
        display: block !important;
        background-color: var(--color-006);
        color: var(--color-007);
        padding: 4%;
        border-radius: 1vw;
        font-size: 4.9rem;
    }

    header .bottom-header .right nav a {
        width: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        text-align: center;
        padding: 9% 0;
        color: var(--color-007) !important;
        font-size: 4.9rem !important;
    }

    header .bottom-header .right nav .logo-movil-nav {
        display: block;
        width: 75%;
    }
}

/* ======================================= */

@media (max-width: 1024px) and (min-width: 501px) {

    .redes-head {
        background-color: var(--color-001);
        width: 11%;
        padding: 1.4%;
        border-radius: 1.2vw;
        cursor: unset;
    }
    
    .redes-head:hover {
        padding: 1.4%;
        background-color: var(--color-001);
    }

    header .bottom-header .right nav a {
        font-size: 2.9rem;
    }

    header .bottom-header .left img {
        width: 65%;
        cursor: unset;
    }

    header .top-header .right p {
        font-size: 1.9rem;
    }

    header .top-header .left {
        gap: 9%;
        left: 2%;
    }

}

/* ==================================

    Post

======================================*/

.post-container {
    position: relative;
    z-index: 3;
    width: 75%;
    height: 19vh;
    margin: 4% auto;
}

.post-container .pleca,
.post-container .post {
    width: 100%;
    height: 100%;
    position: absolute;
}

.post-container .post {
    display: flex;
    align-items: end;
}

.post-container .post .left,
.post-container .post .right {
    width: 50%;
    height: 100%;
}

.post-container .post .left .imagen {
    width: 75%;
    height: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 1vw 1vw 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        .19vw .19vw 0px #ffffff,
        -.19vw .19vw 0px #ffffff,
        .19vw -.19vw 0px #ffffff,
        -.19vw -.19vw 0px #ffffff;
}

.post-container .post .left .imagen img {
    width: 100%;
    height: auto;
}

.post-container .post .right {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-container .post .right a h2 {
    color: var(--color-007);
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.9rem;
}

.post-container .post .right a h2:hover {
    color: var(--color-006);
}

.post-container .pleca {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.post-container .pleca .inlay {
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, var(--color-006), var(--color-001));
    border-radius: 0 1vw 1vw 0;
}

@media (max-width: 500px) {
    .post-container {
        width: 95%;
        height: 12vh;
    }

    .post-container .post .right a h2 {
        font-size: 3rem;
        line-height: 3.9rem;
    }

    .post-container .post .left .imagen img {
        width: auto;
        height: 100%;
    }

    .post-container .pleca .inlay {
        height: 90%;
    }

    .post-container .post .right {
        height: 90%;
    }
}




@media (max-width: 1024px) and (min-width: 501px) {

    .post-container {
        width: 85%;
        height: 9vh;
        margin: 4% auto;
    }

    .post-container .post .left .imagen img {
        width: auto;
        height: 100%;
    }

    .post-container .post .right a h2 {
        font-size: 1.9rem;
    }

    .pagination .nav-links span,
    .pagination .nav-links a {
        font-size: 2.2rem !important;
        margin: 0 4%;
    }    
    
    .pagination .nav-links {
        width: 100%;
        display: flex;
        justify-content: center;
    }


}

/* ======================================

    Footer

=======================================*/

footer {
    width: 100%;
    height: 60vh;
    background: linear-gradient(to right, var(--color-005), var(--color-001));
    display: flex;
    position: relative;
    z-index: 50;
}

footer .col_1,
footer .col_2,
footer .col_3 {
    width: 33.33%;
    height: 100%;
}

/* Columna 1 */
footer .col_1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4%;
}

footer .col_1 img {
    width: 65%;
}

footer .col_1 a {
    color: var(--color-007);
    width: 100%;
    text-align: start;
    padding-left: 24%;
    font-size: .9rem;
}

/* Columna 2 */

footer .col_2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9%;
}

footer .col_2 h2 {
    color: var(--color-007);
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: .04rem;
}

footer .col_3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4%;
}

/* ========= Movil ============== */
@media (max-width:500px) {
footer {
    width: 100%;
    height: 553px;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

footer .col_2 {
    height: 290px;
}

footer .col_3 {
    display: flex;
    flex-direction: row;
    gap: 0;
    height: 290px;
}

footer .col_1,
footer .col_2,
footer .col_3 {
    width: 100%;
}

footer .col_1 a {
    color: var(--color-007);
    width: 100%;
    text-align: start;
    padding-left: 24%;
    font-size: 4rem;
}

footer .col_2 h2 {
    font-size: 3.9rem;
}

}

/* ======= Boton Whatsapp Footer ========= */
button {
    width: 300px;
    height: 100px;
    background-image: url(img/banner_contacto_wa.jpg);
    background-position: center left;
    background-size: cover;
    border: none;
    border-radius: 1vw;
    position: relative;
    z-index: 0;
    overflow: hidden;
    cursor: pointer;
}

button img,
button .black-layer {
    position: absolute;
    top: 0;
    left: 0;
    transition: ease-out 150ms;
}

button img {
    width: 20%;
    position: relative;
    left: 19%;
    z-index: 3;
}

button:hover .black-layer {
    background-color: var(--color-001);
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: opacity(75%);
}

button:hover img {
    left: 0;
    width: 28%;
    filter: drop-shadow(0 0 .3vw white);
}

@media (hover: none) and (pointer: coarse) {
    button:hover .black-layer,
    button:hover img {
        all: unset;

        width: 20%;
        position: relative;
        left: 19%;
        z-index: 3;
    }
}


@media (max-width: 1024px) and (min-width: 501px) {

    button:hover .black-layer,
    button:hover img {
        all: unset;

        width: 20%;
        position: relative;
        left: 19%;
        z-index: 3;
    }

}



/* ====== Botones Redes Footer ========== */

.redes-footer {
    width: 230px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.redes-footer img,
.redes-footer .pleca {
    position: absolute;
}

.redes-footer img {
    height: 100%;
}

.redes-footer .pleca {
    opacity: 0;
}

.pleca {
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.redes-footer:hover .imagen-redes-footer {
    animation-name: animacion;
    animation-duration: 100ms;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes animacion {
    0% {
        left: 100px;
    }

    100% {
        left: 0px;
    }
}

.redes-footer:hover .pleca {
    animation-name: animacion-pleca;
    animation-duration: 100ms;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes animacion-pleca {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        background-color: rgba(255, 255, 255);
        width: 81.5%;
        height: 70%;
        left: 18.5%;
        border-radius: 0 1vw 1vw 0;
    }
}

@media (max-width: 1024px) and (min-width: 501px) {

    .redes-footer:hover .imagen-redes-footer {
        animation-name: unset;
    }

    .redes-footer:hover .pleca {
        animation-name: unset;
    }

}

/* ======== Movil ============== */
@media (hover: none) and (pointer: coarse) {
    .redes-footer:hover .imagen-redes-footer,
    .redes-footer:hover .pleca {
        animation: none;
    }
}


/* =========================== */

@media (max-width: 1024px) and (min-width: 501px) {

    footer {
        height: 35vh;
    }
    
    footer .col_1 a {
        font-size: 1.9rem;
    }

    button {
        width: 250px;
        cursor: unset;
    }

    footer .col_2 h2 {
        font-size: 1.9rem;
    }
    

}




/* ===============================

        Post Completo

===================================*/
.post-completo {
    margin-top: 14vh !important;
    position: relative;
    z-index: 3;
    width: 75%;
    margin: 0 auto;
    z-index: 3;
}

.post-completo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-007);
    filter: opacity(50%);
    z-index: 0;
}

.post-completo .post-wrap {
    width: 85%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.post-completo .post-wrap h2,
.post-completo .post-wrap .imagen,
.post-completo .post-wrap .contenido {
    width: 100%;
}

.post-completo .post-wrap .imagen {
    padding: 2%;
    background-color: #80c13175;
    border-radius: 2.5vw;
}

.post-completo .imagen img {
    width: 100%;
    height: auto;
    border-radius: 2.5vw;
}

.post-completo .post-wrap h2 {
    font-size: 1.9rem;
    color: var(--color-005);
    font-weight: 800;
}

.post-completo .post-wrap .contenido > p {
    font-size: 1rem;
    color: var(--color-001);
    margin: 1% 0;
    letter-spacing: .02vw;
}

.post-completo .post-wrap .contenido > table {
    margin: 1% 0;
}

.post-completo .post-wrap .contenido > table img {
    width: 100%;
    padding: 2%;
}

.post-completo .post-wrap .contenido > table iframe {
    padding: 2%;
}

@media (max-width: 500px) {

    .post-completo .post-wrap .contenido > table iframe {
        width: 100%;
        height: 25vh;
    }
    
    .post-completo {
        margin-top: 13vh !important;
        position: relative;
        width: 96%;
    }

    .post-completo .post-wrap {
        width: 95%;
    }

    .post-completo .post-wrap h2 {
        font-size: 4.9rem;
    }

    .post-completo .post-wrap .contenido > p {
        font-size: 3rem;
        letter-spacing: .01vw;
    }

    .post-completo .post-wrap .contenido > table tbody tr {
        display: flex;
        flex-direction: column;
    }

    .post-completo .post-wrap .contenido table tbody tr td {
        width: 100% !important;
        font-size: 3rem;
        letter-spacing: .01vw;
    }

    .post-completo .post-wrap .contenido table tbody tr td img {
        width: 100%;
        height: auto;
    }

}


@media (max-width: 1024px) and (min-width: 501px) {

    .post-completo {
        width: 90%;
    }

    .post-completo .post-wrap h2 {
        font-size: 2.9rem;
    }
    
    .post-completo .post-wrap .contenido > p {
        font-size: 1.9rem;
    }

    .post-completo .post-wrap .contenido table tbody tr {
        display: flex;
        flex-direction: column;
    }

    .post-completo .post-wrap .contenido table tbody tr td img {
        width: 100%;
        height: auto;
    }

    .post-completo .post-wrap .contenido table tbody tr td,
    .post-completo .post-wrap .contenido table tbody tr td p {
        width: 100% !important;
        font-size: 1.9rem;
    }

}




/* ===============================

    Paginación de Posts

==================================*/

.pagination {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pagination h2 {
    display: none;
}

.pagination .nav-links {
    margin: 2% 0;
}

.pagination .nav-links span,
.pagination .nav-links a {
    cursor: pointer;
    color: var(--color-002);
    font-size: 1.2rem;
    letter-spacing: .1rem;
}

.pagination .nav-links span:hover,
.pagination .nav-links a:hover {
    color: var(--color-006);
}

@media (max-width: 500px) {
    .pagination .nav-links span,
    .pagination .nav-links a {
        font-size: 3.9rem;
        margin: 0 4%;
    }    
    
    .pagination .nav-links {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}