/* Bloque de Preguntas Frecuentes (FAQ) */
.jlc-faq-accordion {
    gap: 16px;
    width: 100%;
}

.jlc-faq-accordion .jlc-faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 0px;
    transition: all 0.3s ease;
}

.jlc-faq-accordion .jlc-faq-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.jlc-faq-accordion .jlc-faq-item > summary {
    font-weight: 600;
    font-size: 1.125rem; /* 18px */
    color: #1a202c; /* text-gray-900 */
    list-style: none; /* remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    padding: 0;
}

/* Remove default disclosure triangle in webkit browsers */
.jlc-faq-accordion .jlc-faq-item > summary::-webkit-details-marker {
    display: none;
}

/* Custom Icon (Chevron Down) */
.jlc-faq-accordion .jlc-faq-item > summary::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

/* Open state Icon (Chevron Up) */
.jlc-faq-accordion .jlc-faq-item[open] > summary::after {
    transform: rotate(180deg);
}

/* Spacing when open */
.jlc-faq-accordion .jlc-faq-item[open] > summary {
    margin-bottom: 16px;
}

/* The content text */
.jlc-faq-accordion .jlc-faq-item[open] > p,
.jlc-faq-accordion .jlc-faq-item[open] > .wp-block-paragraph {
    color: #4b5563; /* text-gray-600 */
    line-height: 1.6;
    margin: 0;
    font-size: 1rem; /* 16px */
}

.entry-content {
    margin-top: 0;
}

header.wp-block-template-part {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.wp-block-template-part.scrolled {
    background-color: #151c28;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

header.wp-block-template-part > div {
    background-color: transparent !important;
}

.admin-bar header.wp-block-template-part {
    top: 32px;
}

.lista-numero {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-navigation__submenu-container a {
    color: #4b5563 !important;
}

.form-contacto {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-contacto input:not([type="checkbox"]),
.form-contacto textarea {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    color: #1a202c;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--wp--preset--font-family--inter);
}

.form-contacto input:focus,
.form-contacto textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-contacto .mid,
.form-contacto .full {
    margin-bottom: 10px;
}

.form-contacto .mid {
    width: 49%;
}

.form-contacto .full {
    width: 100%;
}

.form-contacto form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-contacto .wpcf7-submit {
    width: 100%;
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.form-contacto .wpcf7-submit:hover {
    background-color: #2563eb !important;
}

.form-contacto .mid span,
.form-contacto .full span {
    width: 100%;
}

.wpcf7-list-item {
    margin: 0;
    font-size: 14px;
}

.hero-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px !important;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 32px;
    opacity: 1;
    transform: none;
    position: relative;
}

.hero-dot::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #3b82f6;
    animation: 2s cubic-bezier(0.4, 0, 0.6, 1) 0s infinite normal none running
        pulse;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.lista-azul {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

.lista-azul li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #3b82f6;
    margin-right: 8px;
}

@media (max-width: 1024px) {
    .form-contacto .mid {
        width: 100%;
    }

    h1 {
        font-size: 2.3rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }
}

.hero-cuadros {
    position: relative;
}

.hero-cuadros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(hsl(0, 0%, 98%) 1px, transparent 1px),
        linear-gradient(90deg, hsl(0, 0%, 98%) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
}

.iconos-flotantes {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
}

.zona-clientes a,
.btn-flecha a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.zona-clientes a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.zona-clientes a img,
.btn-flecha a img {
    width: 16px;
    height: 16px;
}

.btn-azul a {
    transition: all 0.3s ease;
}

.btn-azul a:hover {
    box-shadow: 0 10px 10px rgba(4, 92, 233, 0.452) !important;
    transform: translateY(-3px) !important;
}

.btn-transparente a {
    transition: all 0.3s ease;
}

.btn-transparente a:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.wp-block-navigation__submenu-container {
    border-radius: 10px;
    overflow: hidden !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

ul.wp-block-navigation__submenu-container li a {
    padding: 15px !important;
    transition: all .3s;
}

ul.wp-block-navigation__submenu-container li a:hover {
    background-color: #007fff2e 
}

.cont-menu-movil {
    display: none;
}

.cont-menu-movil.active {
    display: block;
}


/* 1. Ocultar todos los menús por defecto para evitar parpadeos y conflictos */
.header-escritorio,
.header-movil {
    display: none !important;
}

/* =========================================
   2. REGLAS PARA ESCRITORIO (+1025px)
========================================= */
@media (min-width: 1025px) {
    /* Mostrar el contenedor principal de escritorio */
    .header-escritorio {
        display: block !important; /* Puede ser flex si tu diseño lo requiere */
    }
    
    /* Ocultar los idiomas por defecto dentro de escritorio */
    .header-escritorio .menu-espanol,
    .header-escritorio .menu-ingles {
        display: none !important;
    }

    /* Mostrar el idioma correcto en escritorio como FLEX */
    html[lang|="es"] .header-escritorio .menu-espanol {
        display: flex !important;
    }
    html[lang|="en"] .header-escritorio .menu-ingles {
        display: flex !important;
    }
}

/* =========================================
   3. REGLAS PARA MÓVIL (Hasta 1024px)
========================================= */
@media (max-width: 1024px) {
    /* El .menu-escritorio ya está oculto por la regla general #1 */
    /* Los .menu-movil ya están ocultos por la regla general #1 */
    
    /* Mostrar el idioma correcto en móvil exclusivamente como BLOCK */
    html[lang|="es"] .header-movil.menu-espanol {
        display: block !important;
    }
    html[lang|="en"] .header-movil.menu-ingles {
        display: block !important;
    }
}

.idioma-menu ul.wp-block-polylang-language-switcher {
    margin: 0;
    padding: 0;
    list-style: none;
}


.idioma-menu a {
    color: #fff;
    text-decoration: none;
    opacity: 0.5;
    font-size: 12px;
    line-height: 14px;
    padding: 6px 12px;
    border-radius: 12px;
    gap: 6px;
    display: flex;
    transition: all .3s ease;
}

.idioma-menu a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.idioma-menu a:before {
    content: "";
    width: 14px;
    height: 14px;
    background-image: url(https://colectivofreelance.com/dev/jlc/wp-content/uploads/2026/03/language.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hover-box > .wp-block-group {
    transition: all .3s ease;
}

.hover-box > .wp-block-group:hover {
    border: 1px solid #007fff !important;
}

/* =========================================
   1. REGLAS PARA EL FRONT-END
========================================= */

/* Ocultar por defecto para evitar que se vean ambos */
.footer-espanol,
.footer-ingles,
.wa-en,
.wa-es{
    display: none;
}

.flot-cont-en,
.flot-cont-es {
     display: none !important;
}

/* Mostrar el footer correspondiente según el idioma del HTML */
html[lang|="es"] .footer-espanol, html[lang|="es"] .wa-es, html[lang|="es"] .flot-cont-es {
    display: block !important; /* Cambia a flex o grid si tu diseño lo requiere */
}

html[lang|="en"] .footer-ingles, html[lang|="en"] .wa-en, html[lang|="en"] .flot-cont-en {
    display: block !important; /* Cambia a flex o grid si tu diseño lo requiere */
}

/* =========================================
   2. REGLAS PARA EL EDITOR DE WORDPRESS (FSE)
========================================= */

/* .editor-styles-wrapper envuelve el contenido dentro del iframe del Site Editor */
/* .wp-admin cubre otras áreas del backend de WordPress */
.editor-styles-wrapper .footer-espanol,
.editor-styles-wrapper .header-escritorio,
.editor-styles-wrapper .menu-espanol,
.editor-styles-wrapper .menu-ingles,
.editor-styles-wrapper .header-movil,
.editor-styles-wrapper .footer-ingles,
.editor-styles-wrapper .flot-cont-en,
.editor-styles-wrapper .flot-cont-es,
.wp-admin .footer-espanol,
.wp-admin .footer-ingles {
    display: block !important; /* Fuerza a que sean visibles en el editor */
}

.paises-contenedor {
    position: relative;
}


.paises-contenedor__continente {
    position: absolute;
    top: -14px;
    z-index: 9;
}

.form-whatsapp form input, select {
    width: 100%;
    box-sizing: border-box;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
}

.form-whatsapp form input[type="checkbox"] {
    width: auto;
    height: auto;
}

.form-whatsapp form .full {
    width: 100%;
    margin-bottom: 10px;
}
.form-whatsapp form .mid {
    width: 49%;
    margin-bottom: 10px;
}
.form-whatsapp form {
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
}
.form-whatsapp {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #fff;
    z-index: 9999999;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.16);
    border-radius: 20px;
    max-width: 400px;
    transition: all .3s ease;
    opacity: 0;
    visibility: hidden;
}

.form-whatsapp.active {
    opacity: 1;
    visibility: visible;
}

.form-whatsapp .close {
    position: absolute;
    right: 14px;
    top: -4px;
    background-color: #1a202c;
    color: #fff;
    padding: 8px;
    line-height: 14px;
    font-weight: bold;
    border-radius: 7px;
    cursor: pointer;
}

.form-whatsapp span.wpcf7-spinner {
    position: absolute;
    bottom: 33px;
    right: 16px;
}

.form-whatsapp span.wpcf7-not-valid-tip {
    font-size: 12px;
}

.form-whatsapp  input.wpcf7-form-control.wpcf7-submit.has-spinner {
    border: 0;
    padding: 10px;
    height: auto;
    font-weight: bold;
    color: #fff;
    background-color: #007fff !important;
}

.form-whatsapp h3 {
    margin-top: 0;
}

.wh-btn {
    cursor: pointer;
}

.col-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
}
    


.logo-3 {
    grid-column: span 3 / span 3;
    grid-row-start: 2;
}

.logo-4 {
    grid-column: span 2 / span 2;
    grid-row-start: 3;
}

.logo-5 {
    grid-column: span 2 / span 2;
    grid-row-start: 4;
}

.categorias-blog li a {
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 40px;
    background-color: #ffffff0d;
    border-radius: 5px;
    text-transform: capitalize;
    transition: all .3s ease;
        box-sizing: border-box;
}

@media (max-width: 1100px) {
    .col-logos {
        display: block;
    }
    
    .paises-contenedor {
        flex-flow: wrap;
    }
}

.categorias-blog li a:hover {
    background-color: #ffffff1f;
}

.categorias-blog {
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

@media (max-width: 900px) {
    .categorias-blog {
        grid-template-columns: 1fr 1fr;
    }
    
    .categorias-blog li a {
        height: auto;
    }
}

.wp-block-query-pagination-numbers {
    display: flex;
    gap: 7px;
}

.wp-block-query-pagination-numbers .page-numbers {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cccccc5e;
    border-radius: 8px;
    text-decoration: none;
    transition: all .3s ease;
}

.wp-block-query-pagination-numbers .page-numbers.current {
    background-color: #007fff;
    color: #fff;
    border-color: #007fff;
}

.wp-block-query-pagination-numbers .page-numbers:hover {
    background-color: #007fff38;
}

.wp-block-query-pagination-numbers .page-numbers.current:hover {
    background-color: #007fff;
    color: #fff;
    border-color: #007fff;
}

a.wp-block-query-pagination-previous, a.wp-block-query-pagination-next {
    text-decoration: none;
}

.paginacion {
    border-top: 1px solid #cccccc4f;
    padding-top: 30px;
}

.cta-blog img {
    width: 100%;
    border-radius: 10px;
}
.cta-blog {
    display: block;
}

.single-post .code-block {
    position: sticky;
    top: 100px;
        margin: 0 !important;
}
  
 @media screen and (max-width: 768px) {
     
     .iconos-flotantes {
         flex-direction: row;
            width: 100%;
            align-items: center;
            justify-content: center;
            left: 0;
            right: 0;
            bottom: 0;
            gap: 0 !important;
     }
     
     .iconos-flotantes .wp-block-group {
        flex: 1;
        border-radius: 0 !important;
        text-align: center;
        justify-content: center;
        align-items: center;
        display: flex;
        
    }
 }