/*
Theme Name: Diversity4Equality
Theme URI: https://diversity4equality.com
Template: hello-elementor
Author: Loratu Studio
Author URI: https://loratustudio.com/
Description: Tema personalizado para Diversity4Equality, basado en Hello Elementor
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: diversity4equality
*/

/* Aquí puedes agregar tus estilos personalizados */

/* Reset básico */
html .site-header {
    width: 100%;
    position: relative;
}

html .site-header .header-inner {
    max-width: 1820px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

/* Menú principal */
.site-navigation {
    justify-self: start;
}

.site-navigation .main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

/* Logo central */
.site-branding {
    justify-self: center;
    text-align: center;
}

.site-branding img {
    max-width: 4.875em;
    height: auto;
}
header{
    padding: 0.5rem 0 !important;
}
body:not(.home) header{
    border-bottom: 1px solid #BABABA;
    /* margin-bottom: 3.4rem; */
}
body.home header{
    position: absolute;
    z-index: 1;
    
}
header .menus{
    display: flex;
    justify-content: end;
    gap: 1.875em;
}
header .dashicons{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
header .dashicons:before{
    color: #115159;
}
header a:hover .dashicons:before{
    color: #B01D20;
}
.dashicons{
    width: auto;
    height: auto;
}
.dashicons:before {
    font-size: 1.1605em;
}

/* Menú social derecho */
.header-right-menu, .header-hub-menu {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Estilos existentes para botones */
.header-hub-menu .header-button a {
    display: inline-block;
    padding: 0.55em 1.575em;
    background-color: var(--e-global-color-primary, #000);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5625em;
}

.header-hub-menu .header-button a:hover {
    background-color: var(--e-global-color-secondary, #333);
}

/* Estilos para iconos sociales */
.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--e-global-color-text, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-social {
    min-width: 2em;
    min-height: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 100%;
    box-shadow: 0px 3px 6px #00000029;
}

/* Estilos del menú principal */
body.home nav #menu-header li a {
    color: #fff;
}

nav #menu-header li a {
    font-size: 1.375em;
    font-weight: 700;
    color: #000;
    padding: 8px 16.5px;
}
nav #menu-header li a:hover{
    color: #B01D20 !important;
}
nav #menu-header li.current-menu-item a{
    color: #B01D20 !important;
}


footer ul li.wpml-ls-menu-item:not(:last-child):after {
    content: '/';
    color: white;
}
footer ul li.wpml-ls-menu-item{
    display: flex;
}

body .site-navigation-dropdown > ul.menu{
    padding-top: 1em;
    background: #B01D20;
    padding-bottom: 3.625em;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
}
body .site-navigation-dropdown ul.menu li{
    border-bottom: 1px solid #fff;
}
body .site-navigation-dropdown ul.menu li a{
    background: transparent;
    font-family: "Space Grotesk", Sans-serif;
    font-weight: 700;
    font-size: 2.5em;
    color: #fff;
    padding: 0.5em;
}
body .site-navigation-dropdown ul #menu-header-derecho-social{
    padding-top: 3.625em;    
    justify-self: start;
    padding-left: 1.875em;
}
body .site-navigation-dropdown ul #menu-header-derecho-social li a{
    padding: 0;
}

.home .premium-carousel-dots-below ul.slick-dots{
    text-align: right;
    margin-right: 4.9375rem;
    position: absolute;
    right: 0;
}
.home .premium-carousel-dots-below ul.slick-dots li{
    width: 20px !important;
}
.home .slick-dots li .fa-circle{
    border: 1px solid white;
    border-radius: 100%;
}


.flecha {
    position: relative;
    padding: 0;
    width: 100%;
    height: 2px; /* Grosor de la línea */
    background: white; /* Color de la línea */
}
.flecha::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid white; /* Color de la flecha */
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.elementor-button{
    border-width: 2px;
}
.elementor-button:hover{
    border-width: 2px;
}
/* Estilo para palabra coloreada con animación */
.d4e-colored-word {
    display: inline-block;
    transition: color 0.3s ease;
    animation: colorPulse 2s infinite;
}
@keyframes colorPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Estilo para palabra subrayada con animación */
.d4e-underlined-word {
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}
.d4e-underlined-word::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--underline-color);
    animation: underlineWave 4s ease-in-out infinite;
}
@keyframes underlineWave {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    50.1% {
        transform: scaleX(1);
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* Estilo para palabra redondeada con animación */
.d4e-rounded-word{
    position: relative;
    display: inline-block;
}
.d4e-rounded-word:after {
    position: absolute;
    content: '';
    top: 2%;
    left: -3%;
    width: 105%;
    height: 110%;
    padding: 4px 12px;
    border-radius: 105%;
    border: 10px solid #115159;
    transition: all 0.3s ease;
    border-color: inherit;
    z-index: 1;
    animation: circleEffect 4s ease-in-out infinite;
}
@keyframes circleEffect {
    0% {
        transform: rotate(0deg);
        border-radius: 105%;
    }
    25% {
        transform: rotate(2deg);
        border-radius: 95% 105% 95% 105%;
    }
    50% {
        transform: rotate(0deg);
        border-radius: 105% 95% 105% 95%;
    }
    75% {
        transform: rotate(-2deg);
        border-radius: 95% 105% 95% 105%;
    }
    100% {
        transform: rotate(0deg);
        border-radius: 105%;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .site-header .header-inner {
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .site-header .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }

    .site-navigation:not(.show-mobile-menu) {
        display: none;
    }

    .header-right-menu {
        gap: 1em;
    }
    
    .header-hub-menu .header-button a {
        padding: 0.2em 1.2em;
        font-size: 1.25em;
    }
    .mobile-hidden{
        display: none;
    }

    body .site-navigation-toggle-holder .site-navigation-toggle{
        background: none;
    }
    .site-navigation-toggle-holder .site-navigation-toggle[aria-expanded="true"]{
        position: absolute;
        right: 1rem;
        top: 1rem;
        z-index: 10;
    }
    .site-navigation-dropdown.show{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin-top: 0;
        z-index: 1;
    }
    body.home header{
        padding-top: 0;
    }
    body .site-navigation-toggle-holder:not(.elementor-active) .site-navigation-toggle-icon:after{
        content:none;
    }
    body .site-navigation-toggle-holder.elementor-active .site-navigation-toggle-icon:after,
    body .site-navigation-toggle-holder.elementor-active .site-navigation-toggle-icon:before{
        color: #fff;
    }
    body .site-navigation-toggle-holder .site-navigation-toggle-icon{
        width: 2em;
    }
    body .site-navigation-toggle-holder{
        padding: 0;
    }
    .site-branding img{
        max-width: 2.5em;
    }
    body:not(.home) header{
        margin-bottom: 30px;
    }
    .d4e-underlined-word::after {
        height: 5px;
    }
    .d4e-rounded-word:after {
        border-width: 5px;
    }
    .menu-social {
        flex: 0 0 auto;
        width: 40px !important;
        height: 40px !important;
    }
}
