/*
Theme Name: Tierra y Persona
Template: hello-elementor
Version: 1.0.0
Description: Tema hijo de Hello Elementor para Tierra y Persona — RAÍCES
*/

/* =========================================================
   TIERRA Y PERSONA — IDENTIDAD GLOBAL
   ========================================================= */

:root {
    --typ-tierra: #8B4E2E;
    --typ-arcilla: #C97F5B;
    --typ-oliva: #6B7055;
    --typ-piedra: #4A4A46;
    --typ-carbon: #2E2E2E;
    --typ-papel: #EADCC8;

    --typ-contenido: 1180px;
    --typ-lectura: 740px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--typ-papel);
    color: var(--typ-carbon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: var(--typ-carbon);
    font-weight: 500;
    line-height: 1.08;
}

a {
    color: var(--typ-tierra);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--typ-arcilla);
}

::selection {
    background: var(--typ-arcilla);
    color: #fff;
}

/* Imágenes */

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

/* Utilidades propias */

.typ-ancho-contenido {
    max-width: var(--typ-contenido);
    margin-left: auto;
    margin-right: auto;
}

.typ-ancho-lectura {
    max-width: var(--typ-lectura);
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */

@media (max-width: 767px) {

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 34px;
    }
}

/* =========================================================
   CABECERA
   ========================================================= */

.typ-header {
    width: 100%;
    background: rgba(234, 220, 200, .96);
    border-bottom: 1px solid rgba(74, 74, 70, .12);
    position: relative;
    z-index: 999;
}

.typ-header-inner {
    max-width: var(--typ-contenido);
    min-height: 92px;
    margin: 0 auto;
    padding: 12px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.typ-brand {
    display: block;
    line-height: 0;
}

.typ-brand img {
    width: 235px;
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
}


/* Navegación */

.typ-nav {
    margin-left: auto;
}

.typ-menu {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 30px;
}

.typ-menu li {
    margin: 0;
}

.typ-menu a {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: var(--typ-carbon);
    position: relative;
}

.typ-menu a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--typ-tierra);

    transition: width .25s ease;
}

.typ-menu a:hover::after,
.typ-menu .current-menu-item > a::after {
    width: 100%;
}


/* Botón móvil */

.typ-menu-toggle {
    display: none;

    width: 38px;
    height: 38px;

    padding: 6px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.typ-menu-toggle span {
    display: block;

    width: 24px;
    height: 1px;

    margin: 6px auto;

    background: var(--typ-carbon);

    transition: .2s ease;
}


/* =========================================================
   PIE
   ========================================================= */

.typ-footer {
    background: #DED0BC;
    color: var(--typ-carbon);

    padding: 85px 30px 25px;

    border-top: 1px solid rgba(74, 74, 70, .12);
}

.typ-footer-inner {
    max-width: var(--typ-contenido);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    gap: 70px;
    align-items: start;
}


/* Identidad */

.typ-footer-brand {
    text-align: left;
}

.typ-footer-symbol {
    width: 92px;
    margin-bottom: 20px;
}

.typ-footer-name {
    font-family: "Cormorant Garamond", Georgia, serif;

    font-size: 24px;
    letter-spacing: .09em;
}

.typ-footer-roots {
    margin-top: 6px;

    font-family: "Montserrat", Arial, sans-serif;

    font-size: 11px;
    letter-spacing: .35em;

    color: var(--typ-tierra);
}


/* Frase */

.typ-footer-phrase p {
    margin: 0;

    max-width: 330px;

    font-family: "Cormorant Garamond", Georgia, serif;

    font-size: 30px;
    line-height: 1.2;

    font-style: italic;

    color: var(--typ-tierra);
}


/* Enlaces */

.typ-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px 25px;
}

.typ-footer-links a {
    font-size: 14px;
    color: var(--typ-carbon);
}

.typ-footer-links a:hover {
    color: var(--typ-tierra);
}


/* Línea RAÍCES */

.typ-footer-roots-line {
    max-width: var(--typ-contenido);

    margin: 75px auto 35px;

    padding-top: 25px;

    border-top: 1px solid rgba(74, 74, 70, .18);

    text-align: center;

    font-family: "Montserrat", Arial, sans-serif;

    font-size: 11px;
    letter-spacing: .08em;

    color: var(--typ-piedra);
}

.typ-footer-roots-line span {
    padding: 0 10px;
    color: var(--typ-tierra);
}


/* Inferior */

.typ-footer-bottom {
    max-width: var(--typ-contenido);

    margin: 0 auto;

    padding-top: 20px;

    border-top: 1px solid rgba(74, 74, 70, .12);

    display: flex;
    justify-content: space-between;

    font-size: 11px;

    color: var(--typ-piedra);
}

.typ-footer-legal {
    display: flex;
    gap: 20px;
}

.typ-footer-legal a {
    color: inherit;
}


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

@media (max-width: 900px) {

    .typ-header-inner {
        min-height: 76px;
        padding: 10px 20px;
    }

    .typ-brand img {
        width: 185px;
    }

    .typ-menu-toggle {
        display: block;
    }

    .typ-nav {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        background: var(--typ-papel);

        border-top: 1px solid rgba(74, 74, 70, .12);
        border-bottom: 1px solid rgba(74, 74, 70, .12);
    }

    .typ-nav.is-open {
        display: block;
    }

    .typ-menu {
        display: block;

        padding: 20px 25px 28px;
    }

    .typ-menu li {
        padding: 11px 0;
    }

    .typ-menu a {
        font-size: 14px;
    }


    /* Footer */

    .typ-footer {
        padding-top: 60px;
    }

    .typ-footer-inner {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .typ-footer-brand,
    .typ-footer-phrase {
        text-align: center;
    }

    .typ-footer-symbol {
        margin-left: auto;
        margin-right: auto;
    }

    .typ-footer-phrase p {
        margin-left: auto;
        margin-right: auto;
    }

    .typ-footer-links {
        max-width: 380px;
        width: 100%;

        margin: 0 auto;
    }

    .typ-footer-roots-line {
        line-height: 2.2;
    }

    .typ-footer-bottom {
        flex-direction: column;

        align-items: center;

        gap: 15px;

        text-align: center;
    }
}


@media (max-width: 520px) {

    .typ-brand img {
        width: 155px;
    }

    .typ-footer-links {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .typ-footer-phrase p {
        font-size: 26px;
    }

}