/*
 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;
        }
    }
}

/* TÍTULOS Y TEXTOS */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--f-titulos);
    line-height: 1.25em !important;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 300;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.75rem);
    font-weight: 300;

    em {
        font-style: normal;
        color: var(--c-enfasis);
    }
}

h3 {
    font-size: clamp(1.375rem, 2vw, 1.875rem);
    font-weight: 400;
}

h4 {
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 500;
}

.subtit-p {
    font-family: var(--f-titulos);
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    font-weight: 300;
}

.tipo-tits {
    font-family: var(--f-titulos);
}

.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-gris-claro);
        }
    }
}

.c-gris {
    color: var(--c-gris);
}

.c-enfasis {
    color: var(--c-enfasis);
}

.lista {
    ul {
        list-style: none;
        margin: 0 0 0 25px;

        li {
            position: relative;
            margin-bottom: 10px;

            &::before {
                content: "";
                position: absolute;
                background-color: var(--c-enfasis);
                width: 10px;
                height: 10px;
                left: -20px;
                top: 7px;
                border-radius: 20px;
            }
        }
    }
}

.bg-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* HEADER */
.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    color: var(--c-blanco);
    background-color: transparent;

    .inside-header {
        width: 100%;
        max-width: 1440px;

        .site-logo {
            a {
                opacity: 1;
                transition: all 0.35s ease;

                &:hover {
                    opacity: 0.85;
                }

                /* img {
                    content: url(/wp-content/uploads/2026/10/dpa-logo-blanco.webp);
                } */
            }
        }

        .main-title {
            a {
                color: var(--c-blanco);
                font-weight: 500;
                font-size: 0.8125rem;
                letter-spacing: 0.2em;
                text-transform: uppercase;
            }
        }

        nav {
            ul.menu {
                gap: 20px;

                .menu-item {
                    a {
                        font-size: 15px;
                        font-weight: 500;
                        letter-spacing: 0.16em;
                        text-transform: uppercase;
                        position: relative;
                        padding: 6px;
                        transition: all 0.35s ease;

                        &::after {
                            content: '';
                            background-color: var(--c-enfasis);
                            width: 0;
                            height: 1px;
                            position: absolute;
                            left: 0;
                            bottom: 0;
                            transition: all 0.35s ease;
                        }

                        &:hover {
                            &::after {
                                width: 100%;
                            }
                        }
                    }

                    &.current-menu-item {
                        a::after {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }

    @media screen and (max-width: 768px) {
        padding: 0;

        .inside-header {
            .site-logo {
                img {
                    width: 60px;
                }
            }
            
            .main-title {
                display: none;
            }
        }
    }
}

/* FOOTER */
.site-footer {
    padding: 60px 20px 20px;
    background-color: var(--c-negro);

    .f-grid {
        display: flex;
        gap: 50px;
        max-width: 1440px;
        margin-inline: auto;
        
        .f-brand {
            width: 60%;

            a {
                opacity: 1;
                transition: all 0.35s ease;

                &:hover {
                    opacity: 0.85;
                }

                img {
                    max-width: 60px;
                    margin-bottom: 20px;
                }
            }

            .f-claim {
                font-family: var(--f-titulos);
                font-weight: 300;
                font-size: clamp(1.5rem, 2.4vw, 2.25rem);
                line-height: 1.2;
                color: var(--c-blanco);
                max-width: 16ch;
                
                em {
                    font-style: normal;
                    color: var(--c-enfasis);
                }
            }
        }

        .f-col {
            color: var(--c-gris-claro);

            .tit-footer {
                font-size: 0.75rem;
                font-weight: 500;
                letter-spacing: 0.2em;
                text-transform: uppercase;
                color: var(--c-blanco);
                margin-bottom: 20px;
            }

            ul {
                list-style: none;
                padding: 0;
                display: grid;
                gap: 5px;
                font-size: 0.9375rem;
            }

            a {
                color: var(--c-gris-claro);
                text-decoration: none;
                
                &:hover {
                    color: var(--c-enfasis);
                }
            }
        }
    }

    .site-info {
        margin-top: 40px;

        .copyright-bar {
            width: 100%;
            
            .logos-kit {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                gap: 30px;

                img {
                    max-width: 150px;
                }
            }

            .f-bottom {
                width: 100%;
                margin-top: 20px;
                padding-top: 24px;
                border-top: 1px solid var(--c-gris-medio);
                display: flex;
                justify-content: space-between;
                gap: 6px;
                flex-wrap: wrap;
                font-size: 0.8125rem;
                color: var(--c-gris-claro);
                text-align: left;

                a {
                    color: var(--c-gris-claro);
                    text-decoration: none;
                    
                    &:hover {
                        color: var(--c-enfasis);
                    }
                }
            }
        }
    }

    @media screen and (max-width: 1024px) {
        .f-grid {
            .f-brand {
                width: 40%;
            }
        }
    }

    @media screen and (max-width: 768px) {
        .f-grid {
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 0;

            .f-brand {
                width: 100%;
                margin-bottom: 20px;
            }

            .f-col {
                width: 48%;
            }
        }

        .site-info {
            .inside-site-info {
                padding: 0 !important;
                
                    .copyright-bar {
                    .logos-kit {
                        justify-content: flex-start;
                    }
                }
            }
        }
    }
}