/* 
 Theme Name:   Uno Child
 Theme URI:    http://www.codesymbol.com/
 Description:  
 Author:       ril.es
 Author URI:   https://www.musttstudio.com/
 Template:     uno
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

.txt {
    font-family: var(--f-primaria);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.3em;

    p {
        margin-bottom: 20px;

        &:last-child {
            margin-bottom: 0;
        }
    }

    a {
        transition: all 0.35s ease;
    }
}

.tit {
    h1 {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-size: clamp(36px, 5vw, 50px);
        line-height: 1.2em;
        font-weight: 400;
        text-transform: none;
    }

    h2 {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-size: clamp(28px, 3vw, 36px);
        line-height: 1.2em;
        font-weight: 400;
        text-transform: none;
    }

    h3 {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-size: clamp(24px, 2vw, 30px);
        line-height: 1.2em;
        font-weight: 400;
        text-transform: uppercase;
    }

    h4 {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-size: clamp(18px, 1.5vw, 24px);
        line-height: 1.2em;
        font-weight: 400;
        text-transform: none;
    }

    &.h1 {
        h2 {
            letter-spacing: 0;
            font-family: var(--f-primaria);
            font-size: clamp(32px, 4vw, 45px);
            line-height: 1.2em;
            font-weight: 400;
            text-transform: none;
        }
    }
}

.subtit {
    h1 {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-size: clamp(30px, 4vw, 40px);
        line-height: 1.2em;
        font-weight: 400;
        text-transform: none;
    }

    h2 {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-size: clamp(24px, 2.5vw, 32px);
        line-height: 1.2em;font-weight: 400;
        text-transform: none;
    }

    h3 {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-family: var(--f-primaria);
        font-size: clamp(20px, 1.5vw, 24px);
        line-height: 1.2em;
        text-transform: uppercase;
        font-weight: 400;
    }

    h4 {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-size: clamp(16px, 1.5vw, 18px);
        line-height: 1.2em;
        font-weight: 400;
        text-transform: none;
    }
}

.subtit-p {
    p {
        letter-spacing: 0;
        font-family: var(--f-primaria);
        font-weight: 400;
        font-size: clamp(18px, 1vw, 22px);
        line-height: 1.2em;
        text-transform: none;
    }
}

.f300 {
    font-weight: 300;

    p, h1, h2, h3, h4, h5, h6 {
        font-weight: 300;
    }
}

.f400 {
    font-weight: 400;

    p, h1, h2, h3, h4, h5, h6 {
        font-weight: 400;
    }
}

.f500 {
    font-weight: 500;

    p, h1, h2, h3, h4, h5, h6 {
        font-weight: 500;
    }
}

.f600 {
    font-weight: 600;

    p, h1, h2, h3, h4, h5, h6 {
        font-weight: 600;
    }
}

.f700 {
    font-weight: 700;

    p, h1, h2, h3, h4, h5, h6 {
        font-weight: 700;
    }
}

.p16 {
    font-size: 16px;
}

.c-blanco {
    color: var(--c-blanco);

    a {
        color: var(--c-blanco);

        &:hover {
            color: var(--c-verde);
        }
    }
}

.lista {
    ul {
        list-style: none;
        margin: 0 0 0 25px;

        li {
            position: relative;
            margin-bottom: 10px;

            &::before {
                content: "";
                position: absolute;
                background-color: var(--c-gris);
                width: 10px;
                height: 10px; 
                left: -20px;
                top: 7px;
                border-radius: 20px;
            }
        }
    }
}

.bg-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* RESETEO PÁGINAS ELEMENTOR */
body.elementor-template-full-width {
    padding: 0 !important;

    header, footer {
        padding: 0 50px;
    }
}

/* PROYECTOS LANDING CAJAS */
.caja-proyecto {
    .info-proyecto {
        opacity: 0;
        transition: all 0.4s ease;
    }

    &:hover {
        .info-proyecto {
            opacity: 1;
        }
    }

    @media screen and (max-width: 1024px) {
        .info-proyecto {
            opacity: 1;
        }
    }
}

/* BLOQUE CON LOGO CENTRAL */
.seccion-icono-animado {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;

    * {
        box-sizing: border-box;
    }

    .contenedor-seccion {
        position: relative;
        max-width: 1300px;
        margin: auto;
        min-height: 800px;

        .mustt-ico {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.85);
            width: 150px;
            height: 150px;
            z-index: 0;
            opacity: 0;
            filter: drop-shadow(0 0 26px rgba(217, 187, 132, 0.35));
            transition: opacity 900ms ease, transform 900ms cubic-bezier(.2, .7, .2, 1);
            
            img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                display: block;
            }
        }

        .subtit {
            width: 30%;
            height: fit-content;
            color: var(--c-negro);
            border: 1px solid var(--c-negro);
            padding: 20px;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 1000ms ease, transform 1000ms ease;
            text-align: center !important;

            &.is-shown {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .text-top {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            margin: auto;
            text-align: left;

            &::before {
                content: '';
                background-color: var(--c-gris);
                position: absolute;
                bottom: -80px;
                left: 0;
                right: 0;
                margin: auto;
                width: 1px;
                height: 0;
                transition: all 0.7s ease;
            }

            &.is-shown {
                &::before {
                    height: 80px;
                }
            }
        }

        .text-right {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            margin: auto;
            text-align: left;

            &::before {
                content: '';
                background-color: var(--c-gris);
                position: absolute;
                top: 0;
                bottom: 0;
                left: -140px;
                margin: auto;
                width: 0;
                height: 1px;
                transition: all 0.7s ease;
            }

            &.is-shown {
                &::before {
                    width: 140px;
                }
            }
        }

        .text-bottom {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
            text-align: left;

            &::before {
                content: '';
                background-color: var(--c-gris);
                position: absolute;
                top: -100px;
                left: 0;
                right: 0;
                margin: auto;
                width: 1px;
                height: 0;
                transition: all 0.7s ease;
                z-index: 1;
            }

            &.is-shown {
                &::before {
                    height: 100px;
                }
            }
        }

        .text-left {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            margin: auto;
            text-align: left;

            &::before {
                content: '';
                background-color: var(--c-gris);
                position: absolute;
                top: 0;
                bottom: 0;
                right: -140px;
                margin: auto;
                width: 0;
                height: 1px;
                z-index: 2;
                transition: all 0.7s ease;
                z-index: 1;
            }

            &.is-shown {
                &::before {
                    width: 140px;
                }
            }
        }

        &.is-active {
            .mustt-ico {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }
    }

    @media screen and (max-width: 850px) {
        z-index: 0;

        .contenedor-seccion {
            display: flex;
            flex-direction: column;
            min-height: unset;
            padding-top: 100px;
            gap: 20px;

            .mustt-ico {
                top: 45px;
                width: 80px;
                height: 80px;
            }

            .subtit {
                position: relative;
                width: 100% !important;
                top: unset;
                left: unset;
                bottom: unset;
                right: unset;
                
                &::before {
                    display: none;
                }
            }
        }
    }
}


/* TABLA COOKIES */
.tabla-cookies {
    td, th {
        border: 1px solid var(--c-gris-oscuro);
        padding: 8px;
    }

    @media screen and (max-width: 768px) {
        overflow-x: scroll;
    }
}

/* OCULTAR FOOTER TEMA */
body.page-id-2897,
body.page-id-3271,
body.page-id-3256 {
    footer {
        display: none;
    }
}