/* ========================================================
   DIFUSIÓN COMUNICACIÓN - Buscador Asistente IA (Estilos)
   ======================================================== */

.df-search-container {
    position: relative;
    width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.df-search-container * {
    box-sizing: border-box;
}

/* Contenedor del Input */
.df-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    padding: 10px 20px;
    box-shadow: 0 4px 20px -2px rgba(0, 31, 63, 0.07);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
}

.df-input-wrapper:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 24px -2px rgba(0, 31, 63, 0.10);
}

.df-search-container.is-active .df-input-wrapper,
.df-input-wrapper:focus-within {
    border-color: #009eb3;
    box-shadow: 0 0 0 4px rgba(0, 158, 179, 0.15), 0 8px 30px rgba(0, 31, 63, 0.10);
}

.df-search-icon {
    display: flex;
    align-items: center;
    color: #009eb3;
    margin-right: 14px;
    flex-shrink: 0;
}

.df-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 16px !important;
    color: #0f172a !important;
    padding: 6px 0 !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}

.df-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Fila del Botón (Abajo a la derecha) */
.df-search-container .df-button-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 24px !important; /* Separación amplia de la barra */
    padding: 0 !important;
    position: relative;
    z-index: 10;
    clear: both !important;
}

.df-search-container .df-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    background: #009eb3 !important;
    background-color: #009eb3 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 13px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 158, 179, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    width: auto !important;
}

.df-submit-btn:hover {
    background: #008799 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 158, 179, 0.45);
}

.df-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 158, 179, 0.3);
}

.df-submit-btn svg {
    transition: transform 0.2s ease;
}

.df-submit-btn:hover svg {
    transform: translateX(3px);
}

/* ========================================================
   Dropdown de Sugerencias
   ======================================================== */

.df-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 18px 40px -4px rgba(0, 31, 63, 0.15), 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.df-search-container.is-active .df-suggestions-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.df-suggestions-header {
    padding: 6px 12px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
}

.df-suggestions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
}

.df-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

.df-suggestion-item:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    transform: translateX(2px);
}

.df-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e6f7f9;
    color: #009eb3;
    flex-shrink: 0;
}

.df-item-title {
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.df-item-arrow {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.df-suggestion-item:hover .df-item-arrow {
    color: #009eb3;
    transform: translateX(3px);
}

/* Modo móvil */
@media (max-width: 640px) {
    .df-input-wrapper {
        padding: 8px 16px;
    }

    .df-search-input {
        font-size: 15px !important;
    }

    .df-search-container .df-button-row {
        margin-top: 18px !important;
        justify-content: flex-end !important;
    }

    .df-search-container .df-submit-btn {
        width: auto !important;
        margin-left: auto !important;
        padding: 11px 24px !important;
        font-size: 14px !important;
    }

    .df-suggestions-list {
        grid-template-columns: 1fr;
    }
}
