/* ==========================================================================
   ZELERI FAQ - Estilos
   ========================================================================== */

/* Wrapper principal */
.zeleri-faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

/* ==========================================================================
   Buscador
   ========================================================================== */

.zeleri-faq-search-wrapper {
    position: relative;
    z-index: 30;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.zeleri-faq-search-box {
    position: relative;
}

.zeleri-faq-search-input[type="text"] {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e015;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #1F2C2E;
    color: #fff!important;
}

.zeleri-faq-search-input[type="text"]:focus {
    border-color: #29C780;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    
}

.zeleri-faq-search-input[type="text"]:focus ~ span.zeleri-faq-search-icon svg {
    color: #29C780;
}

.zeleri-faq-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Resultados de búsqueda */
.zeleri-faq-search-wrapper .zeleri-faq-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #0A2F33;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: hidden!important;
}

.zeleri-faq-search-wrapper .zeleri-faq-search-results-inner {
    max-height: 400px;
    overflow-y: scroll!important;
}

.zeleri-faq-search-wrapper .zeleri-faq-search-results-inner > div {
    overflow: hidden!important;
}

.zeleri-faq-search-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.zeleri-faq-search-result-item {
    border-bottom: 1px solid #99999963;
}

.zeleri-faq-search-result-item:last-child {
    border-bottom: none;
}

.zeleri-faq-result-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.zeleri-faq-result-link:hover {
    background: #1F4546;
}

.zeleri-faq-result-content {
    flex: 1;
}

.zeleri-faq-result-title {
    margin: 0 0 5px 0!important;
    font-size: 16px;
    font-weight: 600;
    color: #29C780;
}

.zeleri-faq-result-excerpt {
    margin: 0 0 8px 0!important;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
}

.zeleri-faq-result-category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1em;
    background: #8258ED;
    color: #fff;
    border-radius: 24px;
}

.zeleri-faq-result-arrow {
    margin-left: 15px;
    font-size: 20px;
    color: #999;
}

.zeleri-faq-no-results,
.zeleri-faq-error {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* ==========================================================================
   Grid de Categorías
   ========================================================================== */

.zeleri-faq-categories-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.zeleri-faq-categories-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.zeleri-faq-categories-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.zeleri-faq-category-card {
    background: white;
    background: #08262A;
    border: 1px solid #99999963;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.zeleri-faq-category-card:hover {
    border-color: #29C780;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.zeleri-faq-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.zeleri-faq-category-content {
    flex: 1;
}

.zeleri-faq-category-title {
    margin: 0 0 12px 0!important;
    font-size: 20px;
    font-weight: 700;
    color: #29C780;
}

.zeleri-faq-category-description {
    margin: 0 0 16px 0!important;
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
}

.zeleri-faq-category-count {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1em;
    font-weight: 600;
    background: #8258ED;
    color: #fff;
    border-radius: 20px;
}

.zeleri-faq-category-arrow {
    margin-left: 15px;
    color: #29C780;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .zeleri-faq-categories-grid,
    .zeleri-faq-categories-grid[data-columns="2"],
    .zeleri-faq-categories-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .zeleri-faq-search-wrapper {
        margin-bottom: 30px;
    }
    
    .zeleri-faq-category-link {
        padding: 20px;
    }
    
    .zeleri-faq-category-title {
        font-size: 18px;
    }
}

/* ==========================================================================
   Archive Page
   ========================================================================== */

.zeleri-faq-archive-wrapper {
    min-height: 400px;
    background: #061C1E;
    background: #08262A;
}

/* Breadcrumbs y botón volver */
.zeleri-faq-breadcrumbs-wrapper {
    /* background: #f8f9fa; */
    padding: 0px;
    /* border-bottom: 1px solid #e0e0e0; */
}

.zeleri-faq-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    margin-bottom: 20px;
}

.zeleri-faq-breadcrumb-link {
    color: var(--global-palette5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.zeleri-faq-breadcrumb-link:hover {
    color: #8258ED;
    text-decoration: underline;
}

.zeleri-faq-breadcrumb-separator {
    margin: 0 10px;
    color: var(--global-palette5);
}

.zeleri-faq-breadcrumb-current {
    color: var(--global-palette4);
    font-weight: 600;
}

.zeleri-faq-back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: white;
    color: var(--global-palette5);
    text-decoration: none;
    border: 2px solid var(--global-palette5);
    border-radius: 32px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.zeleri-faq-back-button:hover {
    background: var(--global-palette5);
    color: white;
    transform: translateX(-3px);
}

.zeleri-faq-archive-header {
    background: linear-gradient(to right, var(--global-palette1) 0%, var(--global-palette2) 100%) !important;
    color: white;
    padding: 60px 20px;
    margin-bottom: 50px;
}

.zeleri-faq-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 1rem;
    /* background: #1F2C2E;
    border: 1px solid #99999963; */
}

.zeleri-faq-archive-container > .zeleri-faq-archive-container {
    padding: 0px;
}

.zeleri-faq-archive-title {
    margin: 0 0 15px 0!important;
    font-size: 42px;
    font-weight: 700;
    color: #29C780;
    color: #08262b;
}

.zeleri-faq-archive-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    text-wrap: balance;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 700px;
    color: white;
    color: var(--global-palette4);
}

.zeleri-faq-archive-content {
    padding: 0 20px 60px;
}

/* Sub-categorías */
.zeleri-faq-subcategory-section {
    margin-bottom: 60px;
}

.zeleri-faq-subcategory-section:last-child {
    margin-bottom: 0;
}

.zeleri-faq-subcategory-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    padding-bottom: 15px;
    border-bottom: 2px solid #29C780;
    margin-bottom: 1rem;
}

.zeleri-faq-subcategory-description {
    margin: 15px 0 25px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   Acordeones
   ========================================================================== */

.zeleri-faq-accordion-list {
    margin: 0;
}

.zeleri-faq-accordion-item {
    background: #0D3E45;
    border: 1px solid #99999963;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zeleri-faq-accordion-item:hover {
    border-color: #29C780;
}

.zeleri-faq-accordion-item.is-active {
    border-color: #29C780;
    box-shadow: 0 5px 20px rgba(41, 199, 128, 0.15);
}

.zeleri-faq-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.zeleri-faq-accordion-header:hover {
    background: #29C780;
}

.zeleri-faq-accordion-item.is-active .zeleri-faq-accordion-header {
    background: #29C780;
}

.zeleri-faq-accordion-header:focus {
    background: inherit;
}

.zeleri-faq-accordion-question {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    padding-right: 20px;
}

.zeleri-faq-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    transition: transform 0.3s ease;
}

.zeleri-faq-accordion-item.is-active .zeleri-faq-accordion-icon {
    transform: rotate(180deg);
}

.zeleri-faq-accordion-content {
    display: none;
    /* border-top: 1px solid #e0e0e0; */
}

.zeleri-faq-accordion-content-inner {
    padding: 25px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.zeleri-faq-accordion-content-inner p {
    margin: 0 0 15px 0;
    color: #fff;
}

.zeleri-faq-accordion-content-inner h1,
.zeleri-faq-accordion-content-inner h2,
.zeleri-faq-accordion-content-inner h3,
.zeleri-faq-accordion-content-inner h4,
.zeleri-faq-accordion-content-inner h5,
.zeleri-faq-accordion-content-inner h6 {
    margin: 20px 0 10px 0;
    color: #29C780;
}

.zeleri-faq-accordion-content ul,
.zeleri-faq-accordion-content ol {
    margin: 0 0 15px 20px;
    padding-left: 20px;
    color: #fff;
}

.zeleri-faq-accordion-content li {
    margin-bottom: 8px;
    color: #fff;
}   

.zeleri-faq-accordion-content-inner p:last-child {
    margin-bottom: 0;
}

.zeleri-faq-accordion-content-inner ul,
.zeleri-faq-accordion-content-inner ol {
    margin: 0 0 15px 20px;
    padding-left: 20px;
}

.zeleri-faq-accordion-content-inner li {
    margin-bottom: 8px;
}

.zeleri-faq-accordion-content-inner a {
    color: #4a90e2;
    text-decoration: underline;
}

.zeleri-faq-accordion-content-inner a:hover {
    color: #357abd;
}

/* No posts message */
.zeleri-faq-no-posts {
    text-align: center;
    padding: 60px 20px;
}

.zeleri-faq-no-posts p {
    font-size: 18px;
    color: #999;
}

/* ==========================================================================
   Responsive - Archive
   ========================================================================== */

@media (max-width: 768px) {
    .zeleri-faq-archive-header {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
    
    .zeleri-faq-archive-title {
        font-size: 32px;
    }
    
    .zeleri-faq-archive-description {
        font-size: 16px;
    }
    
    .zeleri-faq-subcategory-title {
        font-size: 24px;
    }
    
    .zeleri-faq-accordion-header {
        padding: 15px 20px;
    }
    
    .zeleri-faq-accordion-question {
        font-size: 16px;
    }
    
    .zeleri-faq-accordion-content-inner {
        padding: 20px;
        font-size: 15px;
    }
    
    .zeleri-faq-breadcrumbs-wrapper {
        padding: 0px;
    }
    
    .zeleri-faq-breadcrumbs {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .zeleri-faq-back-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Componente de Soporte WhatsApp
   ========================================================================== */

.zeleri-faq-support {
    margin-top: 0px;
    padding: 60px 0px;
    background-color: #061C1E;
}

.zeleri-faq-support-container {
    max-width: 1200px;
    padding: 0 24px;
    margin: 0 auto;
}

.zeleri-faq-support-card {
    background: linear-gradient(135deg, #08262A 0%, #08262A 100%);
    border: 1px solid #29C780;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.zeleri-faq-support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(41, 199, 128, 0.08) 0%, rgba(8, 38, 42, 0.08) 100%);
    pointer-events: none;
}

.zeleri-faq-support-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.zeleri-faq-support-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.0);
    border-radius: 50%;
    backdrop-filter: blur(10px);

    svg {
        fill: white;
    }
}

.zeleri-faq-support-text {
    flex: 1;
}

.zeleri-faq-support-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.zeleri-faq-support-highlight {
    color: #29C780;
    font-weight: 600;
}

.zeleri-faq-support-subtitle {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.zeleri-faq-support-button {
    background: linear-gradient(90deg, #29C780 0%, #A4DF1E 100%);
    background-size: 200% 100%;
    background-position: center center;
    color: #08262A;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.zeleri-faq-support-button:hover {
    background-position: left center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 199, 128, 0.3);
    color: #08262A;
    text-decoration: none;
}

.zeleri-faq-support-button-text {
    font-weight: 600;
}

/* Responsive para el componente de soporte */
@media (max-width: 768px) {
    .zeleri-faq-support {
        margin-top: 0px;
        padding: 60px 16px;
    }
    
    .zeleri-faq-support-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }
    
    .zeleri-faq-support-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .zeleri-faq-support-icon {
        width: 56px;
        height: 56px;
    }
    
    .zeleri-faq-support-title,
    .zeleri-faq-support-subtitle {
        font-size: 16px;
    }
    
    .zeleri-faq-support-button {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
        max-width: 240px;
    }
}
