/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

body {
    font-family: var(--f-general);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5em;

    p {
        margin-bottom: 20px;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

/* SCROLL WEB */
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--c-azul-oscuro);
}

::-webkit-scrollbar-track {
    background: var(--c-gris);
}

/* TÍTULOS Y TEXTOS */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25em !important;
    font-weight: 400;
}

.tit {
    h1 {
        font-size: clamp(40px, 5vw, 60px);
        font-weight: 700;
        letter-spacing: -0.02em;
        /* background: var(--deg-oscuro);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent; */
    }

    h2 {
        font-size: clamp(32px, 3vw, 50px);
        font-weight: 700;
        letter-spacing: -0.02em;
        /* background: var(--deg-oscuro);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent; */
    }

    h3 {
        font-size: clamp(24px, 2vw, 30px);
        font-weight: 700;
    }

    h4 {
        font-size: clamp(18px, 1.5vw, 22px);
        font-weight: 600;
    }

    &.h1 {
        h2 {
            font-size: clamp(32px, 4vw, 45px);
            font-weight: 400;
        }
    }

    /* &.deg-claro {
        h1, h2 {
            background: var(--deg-claro);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-fill-color: transparent;
        }
    } */
}

.subtit {
    h1 {
        font-size: clamp(30px, 4vw, 40px);
        font-weight: 400;
    }

    h2 {
        font-size: clamp(24px, 2.5vw, 32px);
        font-weight: 400;
    }

    h3 {
        font-size: 20px;
        font-weight: 600;
    }

    h4 {
        font-size: clamp(16px, 1.5vw, 18px);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

.subtit-p {
    p {
        font-weight: 400;
        font-size: clamp(18px, 1vw, 22px);
    }

    h2 {
        font-size: 20px;
        font-weight: 600;
    }
}

.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;
    }
}

.c-blanco {
    color: var(--c-blanco);

    a {
        color: var(--c-blanco);

        &:hover {
            color: var(--c-azul-claro);
        }
    }
}

.c-azul {
    color: var(--c-azul);
}

.lista {
    ul {
        list-style: none;
        margin: 0 0 0 25px;

        li {
            position: relative;
            margin-bottom: 10px;

            &::before {
                content: "";
                position: absolute;
                background-color: var(--c-azul);
                width: 10px;
                height: 10px; 
                left: -20px;
                top: 7px;
                border-radius: 20px;
            }
        }
    }
}

.bg-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ICONOS */
.ico-azul {
    svg {
        path, circle, rect {
            fill: var(--c-azul);
        }
    }
}

.ico-blanco {
    svg {
        path, circle, rect {
            fill: var(--c-blanco);
        }
    }
}

.ico-azul-linea {
    svg {
        path, circle, rect {
            stroke: var(--c-azul);
        }
    }
}

.ico-blanco-linea {
    svg {
        path, circle, rect {
            stroke: var(--c-blanco);
        }
    }
}

.ico-lila-linea {
    svg {
        path, circle, rect {
            stroke: var(--c-azul-links);
        }
    }
}

.ico-azul-fondo {
    .elementor-icon {
        background-color: var(--c-azul-extra-claro);
        padding: 15px;
        border-radius: 50px;
        
        path, circle, rect {
            stroke: var(--c-azul);
        }
    }
}

.ico-lila-fondo {
    .elementor-icon {
        background-color: var(--c-lila);
        padding: 15px;
        border-radius: 50px;

        path, circle, rect {
            stroke: var(--c-azul-links);
        }
    }
}

/* DECORACIONES */
.top-deg {
    position: relative;

    &::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 10px;
        background: linear-gradient(90deg, var(--c-azul) 0%, #6caff7 50%, #9592fb 100%);
        top: 0;
        left: 0;
        border-radius: 10px 10px 0 0;
    }
}

.caja-blanca {
    background-color: var(--c-blanco);
    border-radius: 10px;
    border-left: 5px solid var(--c-azul);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* -- HOME -- */
.carrusel-textos-container {
    max-width: 100dvw;
    overflow: hidden;
    
    .carrusel-textos {
        display: flex;
        align-items: center;

        .carrusel-track {
            display: flex;
            width: max-content;
            animation: scroll-left 25s linear infinite;

            .slide-texto {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 10px;
                white-space: nowrap;
                padding: 20px 95px;
            }
        }
    }
}

@keyframes scroll-left {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* PESTAÑAS HOME */
.blq-tabs {
    border-radius: 10px;

    .e-n-tabs {
        border: 1px solid var(--c-azul-claro);
        border-radius: 10px;
        overflow: hidden;
    }

    button {
        &:first-child {
            border-left: none !important;
        }

        &:last-child {
            border-right: none !important;
        }
    }
}

.ico-glass {
    figure {
        margin-bottom: 15px !important;
    }
}

/* CARRUSEL SIMPLE DE CAJAS CON FLECHAS */
.carrusel-flechas {
    .swiper-wrapper {
        padding-left: 20px;
    }

    svg {
        rect {
            fill: rgba(255, 255, 255, 0.45);
        }
    }
}

/* BLOG HOME */
.fecha-blog {
    ul {
        justify-content: flex-end;
    }
}

/* BLOG */
/* pág general */
.entradas-blog {
    .elementor-pagination {
        .page-numbers {
            border: 1px solid;
            padding: 5px 10px;
            border-radius: 5px;

            &:hover {
                border-color: var(--c-azul) !important;
                color: var(--c-azul-oscuro) !important;
            }

            &.current {
                background-color: var(--c-azul);
                color: var(--c-blanco) !important;
                border-color: var(--c-azul);
            }
        }
    }
}

.filtro-blog {
    @media screen and (max-width: 768px) {
        padding: 0 0 10px 20px;
    }
}

/* post individual */
.contenido-blog {
    img {
        border-radius: 10px !important;
    }

    a {
        color: var(--c-azul-links);
        transition: all 0.35s ease;

        &:hover {
            color: var(--c-azul-oscuro);
        }
    }
}

.nav-blog {
    .elementor-post-navigation {
        gap: 20px;

        a {
            border: 1px solid var(--c-azul-claro);
            padding: 10px !important;
            border-radius: 10px;
            gap: 10px !important;
            transition: all 0.35s ease;

            svg {
                width: 12px;
                fill: var(--c-azul-claro);
                transition: all 0.35s ease;
            }

            &:hover {
                background-color: var(--c-azul-claro);
                
                svg {
                    fill: var(--c-azul-oscuro);
                }
            }
        }
    }

    @media screen and (max-width: 768px) {
        .elementor-post-navigation {
            gap: 10px;

            a {
                gap: 0 !important;
            }
        }
    }
}

