/* Estilos Premium para Formacion ICF */
.formacion-icf-wrap {
    margin: 20px 0;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #334155;
    box-sizing: border-box;
}

.icf-header-premium {
    background: #64748b;
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.icf-header-premium h1 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.icf-header-premium p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.icf-nav-container {
    background: white;
    padding: 10px 10px 25px 10px; /* Cubre el hueco de abajo */
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    box-sizing: border-box;
}

.icf-tabs {
    display: flex;
    width: 100%; /* Stretch container */
    margin: 0 auto;
    padding: 0;
    list-style: none;
    gap: 10px;
    justify-content: center;
}



.icf-tab:hover {
    background: #f1f5f9;
    color: #4f46e5;
}



.icf-tab {
    padding: 10px 15px;
    background: var(--tab-color, #4f46e5); /* Solid color by default */
    color: white; /* White text for contrast */
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
}

.icf-tab.active {
    background: var(--tab-color, #4f46e5) !important;
    color: white !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5), 0 4px 6px rgba(0,0,0,0.1) !important;
    opacity: 1;
    transform: scale(1.02);
}

.icf-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.icf-tab-content.active {
    display: block;
}

.icf-card-premium {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.icf-card-premium h2 {
    margin-top: 0;
    color: #0f172a;
    font-size: 22px;
}

.icf-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 30px;
    border: 2px dashed #cbd5e1;
    color: #94a3b8;
}

.icf-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.icf-tab.locked {
    opacity: 0.6;
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.icf-tab.locked:hover {
    background: #e2e8f0;
    color: #94a3b8;
}

.icf-tab .dashicons-lock {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    line-height: 1.2;
}

.icf-locked-state {
    text-align: center;
    padding: 40px 20px;
    background: #fef2f2;
    border-radius: 8px;
    border: 2px dashed #fca5a5;
    color: #ef4444;
}

.icf-locked-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #f87171;
}

.icf-locked-state h2 {
    color: #991b1b;
    margin-top: 0;
}

.icf-locked-state p {
    color: #b91c1c;
}

/* SUB-TABS (PILLS) */
.icf-sub-nav {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.icf-sub-tabs {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
}

.icf-sub-tab {
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.icf-sub-tab:hover {
    background: #f1f5f9;
    color: #3b82f6;
    border-color: #94a3b8;
}

.icf-sub-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.icf-sub-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.icf-sub-tab-content.active {
    display: block;
}

/* DATA TABLE */
.icf-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.icf-table-toolbar h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.btn-icf-primary {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.btn-icf-primary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.icf-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 500px;
}

.icf-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

.icf-data-table th {
    background: #f8fafc;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #cbd5e1;
    border-right: 1px solid #e2e8f0;
    color: #334155;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 5;
}

.icf-data-table td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    color: #475569;
}

.icf-data-table tr:hover {
    background: #f1f5f9;
}

.icf-empty-row {
    text-align: center;
    padding: 30px !important;
    color: #94a3b8 !important;
    font-style: italic;
}

/* Floating Save Button */
.icf-btn-floating {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
    transition: all 0.2s ease;
    z-index: 100;
}

.icf-btn-floating:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.5);
}

.icf-card-premium {
    position: relative; /* For the absolute button */
}

/* Secondary Button */
.btn-icf-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.btn-icf-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Editable Cells */
.icf-celda-editable {
    cursor: text;
    transition: all 0.2s ease;
    min-width: 40px;
}

.icf-celda-editable:hover {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.icf-celda-editable:focus {
    outline: none;
    background: white;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

/* Make inputs look seamless */
.icf-data-table td[contenteditable="true"]:empty:before {
    content: "\feff";
}

/* Delete Button */
.icf-btn-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.icf-btn-delete:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Checkboxes */
.icf-cb-acreditar {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* DASHBOARD STYLES */
.icf-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.icf-dashboard-header h2 {
    margin: 0 0 5px 0;
    color: #0f172a;
}

.icf-dashboard-header p {
    margin: 0;
    color: #64748b;
}

.icf-create-encuentro-box {
    display: flex;
    gap: 10px;
}

.icf-create-encuentro-box input {
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    min-width: 200px;
}

.icf-grid-encuentros {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.icf-encuentro-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    text-align: center;
}

.icf-encuentro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.icf-encuentro-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1e293b;
}

.icf-encuentro-card p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

/* WORKSPACE STYLES */
.icf-workspace-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

/* ADVANCED CARDS */
.icf-encuentro-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.icf-card-header {
    padding: 15px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icf-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.icf-card-body p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 5px;
}

.icf-horarios-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.icf-horario-label {
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
}

.icf-card-footer {
    padding: 10px 15px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.icf-card-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.icf-card-btn.delete { color: #ef4444; }
.icf-card-btn.delete:hover { color: #dc2626; background: #fee2e2; border-radius: 4px; padding: 2px 6px; margin: -2px -6px;}

.icf-card-btn.archive { color: #f59e0b; }
.icf-card-btn.archive:hover { color: #d97706; background: #fef3c7; border-radius: 4px; padding: 2px 6px; margin: -2px -6px;}

/* COLOR PICKER CIRCLE */
input[type="color"].icf-color-circle {
    -webkit-appearance: none;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}
input[type="color"].icf-color-circle::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"].icf-color-circle::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

input[type="color"].icf-color-circle {
    min-width: 42px !important;
    min-height: 42px !important;
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
}



/* Make sure the flip is smooth and interactive */
.icf-card-front, .icf-card-back {
    cursor: pointer;
}

/* Hover trigger for flip */
.icf-encuentro-card-3d:hover .icf-card-inner {
    transform: rotateY(180deg);
}

.icf-card-front, .icf-card-back {
    cursor: default;
}

/* Remove CSS hover flip, we will use JS so we can control the hit area */
.icf-encuentro-card-3d:hover .icf-card-inner {
    transform: none; /* override the previous one */
}
.icf-encuentro-card-3d.flipped .icf-card-inner {
    transform: rotateY(180deg);
}

/* NORMAL WIDTH AND CENTERED */
.icf-nav-container, .icf-config-nav-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    position: -webkit-sticky;
    position: sticky;
    padding: 20px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    z-index: 99 !important;
    display: flex;
    justify-content: center;
}

/* Hide annoying WordPress Page Title */
.entry-title, .page-title, h1.entry-title {
    display: none !important;
}

/* Modern Icon Buttons (Añadir, Excel) */
.icf-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.icf-icon-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.icf-icon-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Modern Save Button (Guardar) */
.icf-btn-save-inline {
    background: linear-gradient(135deg, #ee5340, #ff7b6b);
    color: white !important;
    border: none !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px -2px rgba(238, 83, 64, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icf-btn-save-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(238, 83, 64, 0.45);
}

.icf-btn-save-inline:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px -2px rgba(238, 83, 64, 0.3);
}

/* ==========================================
   MOBILE FIRST / RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    /* Forzar ancho completo anulando paddings del tema de WordPress con margen negativo */
    .formacion-icf-wrap {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        /* No usar overflow hidden para que sticky funcione */
    }
    
    .icf-top-nav-container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 60px !important; /* Ajuste para debajo del menu WP */
        z-index: 101 !important;
        background: white !important;
        padding: 10px 10px 15px 10px !important; /* Padding en lugar de margin */
        margin-bottom: 0 !important; /* Elimina el hueco transparente */
        border-bottom: none !important; /* Eliminada la linea gris a peticion del usuario */
    }

    .icf-nav-container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 110px !important; /* Ajuste para debajo del top-nav */
        z-index: 100 !important;
        background: white !important;
        padding: 10px 2px 20px 2px !important; /* Aumentado padding-bottom para evitar cortes, minimizado horizontal */
        margin-bottom: 0 !important; 
        border-bottom: 1px solid #f1f5f9 !important; 
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    }

    .icf-sub-nav-external {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 185px !important; /* Movido más abajo para que no tape los botones azules */
        z-index: 99 !important;
        background: #f8fafc !important; /* Mismo que el fondo de la app */
        padding: 15px 10px 10px 10px !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        border-bottom: 1px solid #e2e8f0;
    }


    .icf-dashboard-header, .icf-card-premium {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        /* Se restaura el estilo de tarjeta (curvas y bordes laterales) */
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 15px !important;
        margin-top: 15px !important;
    }
    
    .icf-top-tabs {
        flex-wrap: nowrap !important;
        display: flex !important;
        gap: 6px !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }
    .icf-top-tab {
        flex: 1 1 0 !important;
        font-size: 10px !important;
        padding: 12px 2px !important;
        text-align: center;
        margin: 0 !important;
        white-space: normal !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
    }
    
    /* Plataforma de Modulos block */
    .icf-dashboard-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 15px !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }
    .icf-dashboard-header h2 {
        font-size: 16px !important; /* 30% reduction */
        margin: 0 !important;
        line-height: 1.2 !important;
    }
    .icf-dashboard-header p {
        font-size: 12px !important;
        margin: 0 !important;
    }

    /* Sirviendo a los demas block */
    .icf-module-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
        gap: 15px !important;
    }
    .icf-module-header > div {
        text-align: left !important;
        width: 100% !important;
    }
    .icf-module-header h3 {
        font-size: 17px !important; /* 30% reduction */
        margin: 0 0 5px 0 !important;
    }
    .icf-module-header p {
        font-size: 11px !important;
    }
    .icf-create-encuentro-box {
        margin-bottom: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }
    .icf-create-encuentro-box button {
        width: 100% !important;
        font-size: 13px !important;
        padding: 12px !important;
        justify-content: center;
    }

    /* Tabs (1 to 10) */
    .icf-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        gap: 2px !important;
        justify-content: center !important;
    }
    .icf-tab {
        padding: 8px 4px !important;
        flex: 1 1 0 !important;
        min-width: 25px !important;
        margin: 0 !important;
    }
    #icf-tabs .icf-tab-name, #icf-tabs .icf-mod-text {
        display: none !important;
    }
    #icf-tabs .icf-tab.single-module .icf-tab-name {
        display: block !important;
        margin-top: 4px;
        font-size: 13px !important;
    }
    #icf-tabs .icf-tab.single-module {
        min-width: 120px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .icf-tab-mod-number {
        font-size: 13px !important;
        font-weight: bold;
        margin: 0 !important;
    }
    .icf-logistica-l {
        display: block !important;
    }

    /* Cards */
    .icf-grid-encuentros {
        grid-template-columns: 1fr;
        gap: 15px !important;
        padding: 0 10px !important;
    }
    .icf-encuentro-card h4 {
        font-size: 14px !important;
    }
    .icf-encuentro-card p {
        font-size: 11px !important;
    }

    /* Tables */
    .icf-table-wrapper {
        border-radius: 0 !important;
        border: none !important;
    }
    .icf-data-table {
        font-size: 11px !important;
    }
    .icf-data-table th, .icf-data-table td {
        padding: 8px 5px !important;
    }
    .icf-table-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }
    .icf-table-toolbar > div {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .icf-table-toolbar button {
        width: 100%;
    }
    
    .icf-action-buttons-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }
    .icf-action-buttons-container .icf-btn-abrir-modal-alumno,
    .icf-action-buttons-container .icf-btn-importar {
        padding: 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    .icf-action-buttons-container .icf-btn-acreditar-cruz,
    .icf-action-buttons-container .icf-btn-acreditar {
        grid-column: 1 / -1;
        width: 100%;
        padding: 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        justify-content: center;
        text-align: center;
    }
    .icf-action-buttons-container .icf-btn-acreditar-cruz span {
        color: #10b981 !important;
    }
    /* Sub-tabs cuadricula 2x2 */
    .icf-sub-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .icf-sub-tab {
        text-align: center !important;
        padding: 10px 5px !important;
        font-size: 12px !important;
        margin: 0 !important;
    }

    /* Fix Guardar Cambios flotante y Workspace Header */
    .icf-workspace-header {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding-bottom: 15px !important;
    }
    .icf-workspace-header h3 {
        font-size: 16px !important;
    }
    .icf-btn-floating {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        justify-content: center !important;
    }
}





/* =========================================================
   TOP TABS (Expuestos a la Cruz, Módulos, Configuración)
   ========================================================= */
.icf-top-nav-container {
    background: white;
    position: relative;
    z-index: 100;
    padding: 15px 10px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.icf-top-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 40px;
    max-width: 1200px;
}

.icf-top-tab {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icf-top-tab:hover {
    color: #334155;
}

.icf-top-tab.active {
    color: #4f46e5;
    background: #4f46e5;
    color: white !important;
    border-color: #4f46e5;
}

.icf-top-content {
    display: none;
}

.icf-top-content.active {
    display: block;
}


/* Hide WP Header completely */

html { margin-top: 0 !important; }

/* STICKY MENUS (3 LEVELS) */
.site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
body.admin-bar .site-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px !important; }
}

.icf-top-nav-container {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--icf-level2-top, 70px) !important;
    z-index: 9998 !important;
    background: #fff;
}

.icf-nav-container, .icf-config-nav-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--icf-level3-top, 140px) !important;
    z-index: 9997 !important;
    background: #fff !important;
    padding: 15px 30px !important;
    border-bottom: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.icf-sub-nav-external {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--icf-level4-top, 220px) !important; /* Asegurar que en escritorio tampoco tape */
    z-index: 9996 !important;
    background: #f8fafc !important;
    padding: 15px 20px 10px 20px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #e2e8f0;
}

/* Modal Styles */
.icf-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); z-index: 10000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.icf-modal-content { background: white; padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); position: relative; animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); max-height: 90vh; overflow-y: auto; box-sizing: border-box; }
.icf-modal-close { position: absolute; top: 20px; right: 20px; font-size: 24px; color: #94a3b8; cursor: pointer; transition: color 0.2s; line-height: 1; }
.icf-modal-close:hover { color: #0f172a; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }




