/* =====================================================
   TIPOGRAFÍA Myriad Pro Regular · GESTIONES LEVANTE
   ===================================================== */

/* -------- Cargar La TIPOGRAFÍA Myriad Pro Regular -------- */
@font-face {
    font-family: 'Myriad Pro Regular';
    src: url('../fonts/myriad_pro_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}





/* =====================================================
   MENÚ PERSONALIZADO · GESTIONES LEVANTE
   ===================================================== */
   
/* -------- Menú PRINCIPAL Astra Con TIPOGRAFÍA  Myriad Pro Regular -------- */
#primary-site-navigation-desktop ul.main-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start; /* Ajusta la alineación si quieres */
    font-family: 'Myriad Pro Regular', sans-serif !important; /* Tipografía */
    font-weight: bold !important; /* Negrita */
}

#primary-site-navigation-desktop ul.main-header-menu li {
    position: relative;
    margin-right: 30px; /* Espaciado entre items */
}

#primary-site-navigation-desktop ul.main-header-menu li a {
    color: #75944E; /* Color inicial */
    font-weight: bold; /* Negrita */
    text-decoration: none;
    padding: 5px 0; /* Espaciado vertical */
    display: inline-block;
    transition: color 0.3s, border-bottom 0.3s;
    font-size: 20px; /* Tamaño de fuente deseado */
}

#primary-site-navigation-desktop ul.main-header-menu li a:hover,
#primary-site-navigation-desktop ul.main-header-menu li.current-menu-item > a,
#primary-site-navigation-desktop ul.main-header-menu li.current_page_item > a {
    color: #4C4C4A; /* Color al seleccionar o hover */
    border-bottom: 2px solid #4C4C4A; /* Subrayado */
}

/* Submenú (si hay dropdowns) */
#primary-site-navigation-desktop ul.main-header-menu li ul.sub-menu {
    font-family: 'Myriad Pro Regular', sans-serif !important;
    font-weight: bold !important;
}

#primary-site-navigation-desktop ul.main-header-menu li ul.sub-menu li a {
    color: #75944E;
    font-weight: bold;
    font-size: 20px; /* Tamaño de fuente deseado */
}

#primary-site-navigation-desktop ul.main-header-menu li ul.sub-menu li a:hover {
    color: #4C4C4A;
    border-bottom: 2px solid #4C4C4A;
}

/* =====================================================
   FIN MENÚ PERSONALIZADO · GESTIONES LEVANTE
   ===================================================== */




/* -------- Aplicar TIPOGRAFÍA Myriad Pro Regular  a H1, H2 y H3 En NEGRITA -------- */
h1, h2, h3 {
    font-family: 'Myriad Pro Regular', sans-serif !important;
    font-weight: bold !important;
}

/* -------- Aplicar TIPOGRAFÍA Myriad Pro Regular a BOTONES -------- */
.elementor-button, 
.elementor-button * {
    font-family: 'Myriad Pro Regular', sans-serif !important;
    font-weight: bold !important;
}





/* =====================================================
   FOOTER PERSONALIZADO · GESTIONES LEVANTE
   ===================================================== */

/* Eliminar padding vertical del contenedor superior */
.site-above-footer-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ⚠️ DESACTIVAR el stack de Astra solo aquí */
.site-above-footer-wrap.ast-footer-row-stack {
    display: block !important;
}

/* =====================
   FORZAR ANCHO COMPLETO EN TODOS LOS PADRES
   ===================== */
.site-above-footer-wrap,
.site-above-footer-wrap .ast-builder-grid-row-container-inner,
.site-above-footer-wrap .ast-builder-footer-grid-columns,
.site-above-footer-wrap .site-footer-above-section-1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer personalizado */
.footer-custom {
    width: 100%;
    background-color: #4C4C4A;
    padding: 30px 5vw; /* espacio lateral adaptable */
    font-family: 'Myriad Pro Regular', sans-serif;
    box-sizing: border-box;
}

/* Contenedor de las 4 columnas */
.footer-custom-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

/* Columnas individuales */
.footer-col {
    display: flex;
    flex-direction: column;
    flex: 1; 
    box-sizing: border-box;
}

/* =====================
   COLUMNA 1 · LOGO + DESCRIPCIÓN
   ===================== */
.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.footer-description {
    margin: 0;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.6;
}

/* =====================
   TÍTULOS DE COLUMNA
   ===================== */
.footer-title {
    font-size: 20px;
    font-weight: bold;
    color: #75944E;
    margin-bottom: 15px;
}

/* =====================
   COLUMNA 2 · CONTACTO + FRASE + REDES
   ===================== */
.footer-col-contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra todo horizontalmente */
    text-align: center;  /* Centra el texto dentro de los párrafos */
}

.footer-col-contact .footer-title {
    color: #75944E;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 20px;
}

.footer-col-contact .footer-contact-item {
    margin: 0 0 6px; /* Ajusta espacio entre líneas */
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;          /* Espacio entre emoji y texto */
    color: #FFFFFF !important;
    line-height: 1.5;
    justify-content: center; /* Centra icono + texto horizontalmente */
}

.footer-col-contact .footer-contact-item a {
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-col-contact .footer-contact-item a:hover {
    color: #75944E;
    border-bottom: 1px solid #75944E;
}

.footer-col-contact .footer-claim {
    font-style: italic;
    margin: 15px 0 20px; /* Separa frase del contacto y de los iconos */
    color: #FFFFFF;
    font-size: 16px;
    max-width: 220px; /* Para que la frase no sea muy larga */
}

/* =====================
   ICONOS SOCIALES
   ===================== */
.footer-col-contact .footer-social-icons {
    display: flex;
    justify-content: center; /* Centra los iconos horizontalmente */
    align-items: center;     /* Alinea iconos verticalmente */
    gap: 14px;               /* Espacio entre iconos */
    margin-top: 16px;
}

.footer-col-contact .footer-social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #75944E; /* círculo verde */
    transition: all 0.3s ease;
}

.footer-col-contact .footer-social-icons a img {
    display: block;      /* evita desalineación vertical */
    width: 30px;
    height: 30px;
    object-fit: contain; /* respeta proporciones del logo */
}

/* HOVER: círculo blanco, logo mantiene su color original */
.footer-col-contact .footer-social-icons a:hover {
    background-color: #FFFFFF;
}

/* =====================
   COLUMNA 3 · SERVICIOS
   ===================== */
.footer-services-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-services-menu li {
    margin-bottom: 8px;
}

.footer-services-menu li:last-child {
    margin-bottom: 0;
}

.footer-services-menu li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-services-menu li a:hover {
    color: #75944E;
    border-bottom: 1px solid #75944E;
}

/* =====================
   COLUMNA 4 · SERVICIOS ADICIONALES
   ===================== */
.footer-col-services-extra ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-services-extra ul li {
    margin-bottom: 8px;
}

.footer-col-services-extra ul li:last-child {
    margin-bottom: 0;
}

.footer-col-services-extra li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-col-services-extra li a:hover {
    color: #75944E;
    border-bottom: 1px solid #75944E;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
    .footer-custom-inner {
        flex-wrap: wrap !important;
    }
    .footer-col {
        flex: 1 1 48%;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .footer-col {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

/* --------------------------------------------------------- */

/* -------- Menú LEGAL “Horizontal” En FOOTER Astra -------- */
.ast-footer-html-1 ul.legal-horizontal {
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: transparent; /* opcional, si quieres fondo */
}

.ast-footer-html-1 ul.legal-horizontal li {
    display: inline-flex !important;
    margin-right: 20px;
    font-family: 'Myriad Pro Regular', sans-serif !important; /* Tipografía */
    font-weight: bold !important; /* Negrita */
    font-size: 16px; /* Tamaño de fuente deseado */
}

.ast-footer-html-1 ul.legal-horizontal li:last-child {
    margin-right: 0;
}

/* Enlaces dentro del menú */
.ast-footer-html-1 ul.legal-horizontal li a {
    color: #FFFFFF; /* Color de texto normal */
    text-decoration: none; /* Sin subrayado inicial */
    padding-bottom: 2px; /* Espacio para subrayado */
    border-bottom: 2px solid transparent; /* Línea invisible por defecto */
    transition: all 0.3s ease; /* Animación suave */
    font-size: 16px; /* Tamaño de fuente deseado */
}

/* Hover: cambiar color y subrayado */
.ast-footer-html-1 ul.legal-horizontal li a:hover {
    color: #4C4C4A; /* Color al pasar el cursor */
    border-bottom: 2px solid #4C4C4A; /* Subrayado visible */
}

/* Ajuste de padding del contenedor del menú legal */
.site-primary-footer-wrap {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* -------- Aplicar TIPOGRAFÍA Personalizada En COPYRIGHT FOOTER -------- */
.ast-footer-copyright,
.ast-footer-copyright p,
.ast-footer-copyright span,
.ast-footer-copyright a {
    font-family: 'Myriad Pro Regular', sans-serif !important;
    font-weight: bold !important;
    font-size: 16px; /* Tamaño de fuente deseado */
}

/* =====================================================
   FIN FOOTER PERSONALIZADO · GESTIONES LEVANTE
   ===================================================== */





/* -------- Aplicar TIPOGRAFÍA Personalizada En PREGUNTAS FRECUENTES (Títulos) -------- */
.e-n-accordion-item-title-text {
    font-family: 'Myriad Pro Regular', sans-serif !important; /* Fuente personalizada */
    font-weight: bold !important; /* Negrita */
}




/* =====================================================
   MEGA MENÚ SERVICIOS · GESTIONES LEVANTE
   ===================================================== */

/* El LI padre debe ser referencia para posicionar el desplegable */
.main-header-menu li > .mega-menu-servicios {
    align-items: flex-start;
}

/* Contenedor del Mega Menú */
.main-header-menu li > .mega-menu-servicios {
    display: none !important;        
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    display: inline-flex;         /* contenedor ajusta ancho al contenido */
    flex-direction: row;
    gap: 30px;                    /* separación entre columnas */

    padding: 20px 20px;           /* margen izquierdo y derecho igual */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 9999;

    max-width: 90vw;              /* nunca se salga de pantalla */
    white-space: nowrap;           /* evita saltos de línea inesperados */
}

/* Mostrar al pasar el ratón */
.main-header-menu li:hover > .mega-menu-servicios {
    display: flex !important;
}

/* Cada columna ocupa solo lo que necesita */
.mega-menu-column {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;                  /* para que texto largo no desborde */
    white-space: nowrap;            /* cada servicio en una línea */
}

/* Títulos de las columnas */
.mega-menu-column h4 {
    margin-bottom: 6px;
    font-size: 16px;
    color: #4C4C4A;
    font-family: 'Myriad Pro Regular', sans-serif;
    font-weight: bold;
    text-transform: uppercase;      /* ahora en mayúsculas */
}

/* Listas dentro de las columnas */
.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 2px;            /* más compacto verticalmente */
    line-height: 1.3;
}

/* Enlaces de los servicios */
.mega-menu-column ul li a {
    display: block;
    text-decoration: underline;       /* activamos subrayado */
    font-size: 16px !important;
    color: #75944E !important;        /* fuerza color independiente del menú principal */
    font-family: 'Myriad Pro Regular', sans-serif;
    font-weight: normal !important;   /* independiente del menú principal */
    white-space: nowrap;               /* una línea por servicio */
    padding: 2px 0;
    transition: all 0.2s ease;
}

/* Hover de los enlaces */
.mega-menu-column ul li a:hover {
    color: #4C4C4A !important;       /* sobrescribe cualquier hover del menú principal */
    padding-left: 4px;
}


/* Ajuste entre título y primera opción */
.mega-menu-column h4 + ul {
    margin-top: 4px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .main-header-menu li > .mega-menu-servicios {
        position: static;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        flex-direction: column;
        padding: 15px;
    }

    .mega-menu-column {
        margin-bottom: 15px;
    }
}




/* =====================================================
   SLIDER TESTIMONIOS · GESTIONES LEVANTE
   ===================================================== */
.testimonial-slider {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    margin: 40px 0; /* espacio superior e inferior */
}

.slider-wrapper {
    flex: 1;
    overflow: hidden;
}

.slider-content {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.testimonial-item {
    flex: 0 0 33.333%; /* 3 testimonios visibles */
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.testimonial-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Nombre del cliente */
.testimonial-item .testimonial-name {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    font-style: italic; /* ahora en cursiva */
    color: #75944E; /* color corporativo */
}

/* Texto del testimonio */
.testimonial-item .testimonial-text {
    font-size: 16px;
    color: #4C4C4A;
    line-height: 1.5;
}

/* Botones */
.slider-button {
    background-color: #75944E;
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-button.left {
    left: 10px;
}

.slider-button.right {
    right: 10px;
}

.slider-button:hover {
    background-color: #4C4C4A;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 50%; /* 2 testimonios */
    }
}

@media (max-width: 480px) {
    .testimonial-item {
        flex: 0 0 100%; /* 1 testimonio */
    }
    
    .testimonial-item img {
        width: 100px;
        height: 100px;
    }

    .testimonial-item h3 {
        font-size: 16px;
    }

    .testimonial-item p {
        font-size: 14px;
    }

    .slider-button {
        padding: 10px;
        font-size: 16px;
    }
}
