:root {
    /* Fuentes */
    --fuente-principal: 'Open Sans', sans-serif;
    --fuente-headings: 'Open Sans', sans-serif;

    /* Colores */
    --color-primario: #000;
    --color-secundario: #000;

    --rojo: #a61206;
    --naranja: #f19f30;
    --verde: #127427;
    --blanco: #ffffff;
    --negro: #000000;
    --gris-oscuro: #2f2e2e;
    --gris-claro: #c1c1c1;

    --contendor: 1200px;
}


/* ==== RESET root ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

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


/* ==== RESET rems ==== */

html {
    font-size: 62.5%;   /* Now 10px = 1rem! */
}

body{
    font-size: 16px;    /* px fallback */
    font-size: 1.6rem;  /* default font-size for document */
    line-height: 1.5;   /* a nice line-height */
}


/* ==== RESET HTML ==== */

body{
    width: 100%;
    height: 100vh;
    background-color: #fff;
    overflow-x: hidden;
}

ul li {
    list-style-type: none;
}

a {
    text-decoration: none;
}

button{
    background-color: transparent;
    border: none;
    outline: none;
    cursor:pointer;
}



/* ==== HEADINGS ==== */

h1, h2, h3, h4 {
    font-family: var(--fuente-headings);
    font-weight: 900;
    margin: 1rem 0;
    line-height: 1.2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
    text-align: center;
    color: var(--rojo);
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2.4rem;
}



/* ==== UTILIDADES ==== */

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

.texto-primario {
    color: var(--rojo);
}

/* === BOTONES === */

.boton {
    display: block;
    flex: 1;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--fuente-headings);
    text-transform: uppercase;
    border-radius: .5rem;
    padding: 1rem 3rem;
    border: none;
}

.boton:hover {
    cursor: pointer;
}

.boton-primario {
    color: var(--blanco);
    background-color: var(--naranja);
}

.boton-secundario {
    color: var(--blanco);
    background-color: var(--rojo);
}

@media (min-width: 768px) {
    .boton {
        display: inline-block;
        flex: 0 0 auto;
    }
}


/* ==== GLOBALES ==== */

body {
    font-family: var(--fuente-principal);
    font-size: 1.6rem;
    line-height: 2;
}

p {
    font-size: 1.8rem;
    line-height: 5rem;
}

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



/* ==== UTILIDADES ==== */

.contenedor {
    width: 95%;
    max-width: var(--contendor);
    margin: 0 auto;
}

.alignfull {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.seccion {
    padding: 1rem;
}

@media (min-width: 768px) {
    .seccion {
        position: relative;
        background-color: var(--blanco);
        margin-top: -9rem;
        padding: 6rem;
    }
}

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

.site-header {
    padding-top: 3rem;
    position: relative;
}
@media (min-width: 768px) {
    .site-header .contenedor{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .logo {
        grid-column: 2 / 3;
    }
}

.logo a {
    display: flex;
    justify-content: center;
}

.logo img {
    width: 80%;
    max-width: 30rem;

}

@media (min-width: 768px) {
    .informacion-header {
        grid-column: 3 / 4;
    }
}


.direccion {
    padding: 2rem 0;;
}

.direccion p {
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .direccion p {
        text-align: right;
        line-height: 1.2;
    }
}



/* ==== MENU RRSS ==== */

.sr-text {
    display: none;
}

.sociales {
    margin-top: 2rem;
}

.sociales ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, 3rem);
    grid-column-gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .sociales ul {
        justify-content: end;
    }
}


.sociales a:before {
    content: '';
    display: inline-block;
    height: 3rem;
    width: 3rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 3rem;
}

.sociales a[href*="facebook"]:before {
    background-image: url(../img/icons/facebook.svg);
}

.sociales a[href*="twitter"]:before {
    background-image: url(../img/icons/twitter.svg);
}

.sociales a[href*="instagram"]:before {
    background-image: url(../img/icons/instagram.svg);
}

.sociales a[href*="youtube"]:before {
    background-image: url(../img/icons/youtube.svg);
}



/* ==== MENU ESCRITORIO ==== */

.menu-principal {
    display: none;
    margin-top: 3rem;
    border-top: 1px solid var(--gris-claro);
}
@media (min-width: 768px) {
    .menu-principal {
        display: block;
    }
}

.menu-nav .menu{
    display: flex;
    justify-content: space-between;
}

.menu-nav .menu li {
    flex: 1;
}
.menu-nav .menu li:hover {
    background-color: var(--naranja);
}

.menu-nav .menu li.current-menu-item  {
    border-bottom: .5rem solid var(--rojo);
}

.menu-nav .menu a {
    display: block;
    font-family: var(--fuente-headings);
    text-transform: uppercase;
    color: var(--negro);
    padding: 1rem;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
}



/* ==== MENU RESPONSIVE ==== */

.slicknav_btn{
    padding: 1rem;
    /*position: absolute;
    top: 0;
    right: 0;
    margin: 2rem;*/
}

.slicknav_menu {
    background-color: var(--blanco);
}
@media (min-width: 768px) {
    .slicknav_menu {
        display: none;
    }
}

.slicknav_nav {
    background-color: #fafafa;
}

.slicknav_nav a {
    color: var(--negro);
    font-size: 1.8rem;
    text-transform: uppercase;
    text-align: center;
}

.slicknav_nav a:hover {
    border-radius: 0;
    background-color: var(--rojo);
    color: var(--blanco);
}


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

.site-footer {
    margin-top: 3rem;
    padding: 3rem 0;
    border-top: 1px solid var(--gris-claro);
}

@media (min-width: 768px) {
    .footer-nav .menu {
        display: flex;
        justify-content: center;
    }
}


.footer-nav .menu li {
    text-align: center;
}

.footer-nav .menu a {
    color: var(--negro);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.4rem;
    font-family: var(--fuente-headings);
}

.separador {
    display: none;
}

@media (min-width: 768px) {
    .separador {
        display: inline;
        margin: 0 2rem;
    }
    .footer-nav li:last-of-type .separador {
        display: none;
    }
}

.site-footer .direccion p {
    text-align: center;
    font-size: 1.1rem;
}



/* ==== PAGINAS ==== */

.hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    height: 45rem;
    margin: 0 auto;
    position:relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero::after {
    position: absolute;
    content: '';
    background-color: rgba(0, 0, 0, .6);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.hero h1 {
    color: var(--blanco);
    z-index: 1;
    position: relative;
}


/* ==== BLOG ==== */
@media (min-width: 768px) {
    .con-sidebar {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-gap: 4rem;
    }
}

.entrada-blog {
    padding-top: 3rem;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gris-claro);
}

.entrada-blog:last-of-type {
    border: none;
}

.informacion-entrada {
    display: grid;
    grid-template-columns: 7rem 1fr;
    grid-gap: 2rem;
    margin-bottom: 2rem;
}

.informacion-entrada .titulo-entrada {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--negro);
}

.informacion-entrada .titulo-entrada a {
    color: var(--negro);
}

.informacion-entrada .titulo-entrada a:hover {
    color: var(--naranja);
}

.informacion-entrada .fecha {
    background-color: var(--naranja);
    height: 7rem;
    text-align: center;
    line-height: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.informacion-entrada .fecha time {
    font-size: 3rem;
    font-family: var(--fuente-headings);
    font-weight: 700;
}

.informacion-entrada .fecha time span {
    font-size: 1.6rem;
    display: block;
    text-transform: uppercase;
}

.entrada-blog p.autor {
    text-transform: uppercase;
    font-family: var(--fuente-headings);
    margin-bottom: 2rem;
}

.autor span {
    color: var(--naranja);
    font-weight: 700;
    font-size: 2rem;
}

.entrada-blog p {
    margin: .5rem 0;
    line-height: 1.5;
}

.entrada-blog .boton {
    margin-top: 2rem;
}


.paginacion {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.paginacion a:first-of-type {
    margin-right: 2rem;
}



/* === Sidebar === */

.searchform {
    position: relative;
}

.searchform label {
    display: none;
}

.searchform div {
    display: flex;
}

.searchform input[type="text"] {
    padding: 1rem;
    flex: 1;
}

.searchform input[type="submit"] {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5rem;
    background-color: var(--rojo);
    background-image: url(../img/buscador.png);
    background-repeat: no-repeat;
    background-position: center center;
    border: none;
    text-indent: -9999px;
    display: block;
}

.searchform input[type="submit"]:hover {
    cursor: pointer;
}

.widget h3 {

    text-transform: uppercase;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
}

.widget a {
    color: var(--negro);
}

.widget a:hover {
    color: var(--naranja);
}



/* === Comentarios === */

.comentarios h3 {
    font-weight: 700;
    text-align: center;
}
@media (min-width: 992px) {
    .comentarios {
        width: 60%;
    }
}

.comment-form p.comment-notes {
    display: block;
    text-align: center;

}
.comment-form p {
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.comment-form p label {
    flex: 0 0 100%;
    margin-right: 2rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .comment-form p label {
        flex: 0 0 20rem;
        text-align: right;
    }
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
    flex: 1;
    border: 1px solid var(--gris-claro);
    padding: 1rem;
}

.comment-form-cookies-consent {
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
}



p.comment-form-cookies-consent label{
    flex: 1 1 auto;
    font-size: 1.4rem;
    font-weight: 400;
}

.form-submit {
    display: flex;
    justify-content: center;
}


.comentarios .logged-in-as {
    display: flex;
    justify-content: center;
}

.comentarios .logged-in-as a:last-of-type {
    margin-left: 2rem;
}

.comentarios a {
    color: var(--rojo);
}

.lista-comentarios .comment {
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #f6f6f6;
    border-bottom:  .5rem solid var(--rojo);
}

.lista-comentarios .comment cite {
    color: var(--rojo);
    font-size: 2rem;
    font-weight: bold;
}

.lista-comentarios .comment .comment-author {
    margin-bottom: 2rem;
}

.lista-comentarios .comment ul.children li {
    background-color: var(--blanco);
    margin-top: 2rem;
    border: none;
}

/* === FORMULARIO CONTACTO === */

.wpcf7 p label {
    font-size: 2rem;
}

input.wpcf7-form-control {
    padding: 2rem;
    border: 1px solid var(--gris-claro);
    width: 100%;
}